On Mon, Jun 24, 2002 at 05:46:36PM +0200, Jan-Hendrik Palic wrote:
> I: building tftp image in tftpboot-r4k-ip22.img
> ./tftpboot.sh: line 78: 17920 Segmentation fault      addinitrd
> $tftpimage $rootimage $tftpimage.tmp
> E: ./tftpboot.sh abort
What kernel are you using? Addinitrd is not working with kernels newer
than 2.4.16 due to head.S changes (I submitted a patch to work around
this to the linux-mips list some time ago though).
For newer kernels use tip22, a tftpbootloader that properly embedds
kernel and initrd:
 http://honk.physik.uni-konstanz.de/linux-mips/arcboot/tip22_0.3.3_mips.deb
Note that you also need a small kernel patch included in the package(and
in the newer(>= 2.4.18 debian mips kernel packages)). To make
bootfloppies aware of this change use the attached patch(and feel free
to commit to boot-floppies CVS if it works for you).
Regards,
 -- Guido
Index: config
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/config,v
retrieving revision 1.157
diff -u -u -r1.157 config
--- config      2002/05/07 19:49:38     1.157
+++ config      2002/06/24 16:53:38
@@ -44,7 +44,7 @@
     kver       := 2.4.17
 endif
 ifeq "$(architecture)" "mips"
-    kver        := 2.4.16
+    kver        := 2.4.18
 endif
 ifeq "$(architecture)" "mipsel"
     kver        := 2.4.17
Index: kernel.sh
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/kernel.sh,v
retrieving revision 1.44
diff -u -u -r1.44 kernel.sh
--- kernel.sh   2002/03/11 03:30:41     1.44
+++ kernel.sh   2002/06/24 16:53:38
@@ -108,6 +108,9 @@
        cp $extractdir/boot/vmlinux-* linux$subarch.bin
        cp $extractdir/boot/vmlinux.coff-* linux$subarch.coff
        ;;
+    mips/*)
+       cp $extractdir/boot/vmlinux-* linux$subarch.bin
+       ;;
     hppa/*|mipsel/*)
         # From kernel-package 7.79 on, the kernel package contains 
         # only an ELF kernel for mipsel by default. We need ELF for
@@ -126,9 +129,6 @@
                 info "elf2ecoff not installed, cannot provide ECOFF kernel" 
             fi
        fi
-       ;;
-    mips/*)
-       cp $extractdir/boot/vmlinux* linux$subarch.bin
        ;;
     *)
        cp $extractdir/boot/vmlinuz* linux$subarch.bin
Index: tftpboot.sh
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/tftpboot.sh,v
retrieving revision 1.25
diff -u -u -r1.25 tftpboot.sh
--- tftpboot.sh 2002/04/11 22:19:08     1.25
+++ tftpboot.sh 2002/06/24 16:53:38
@@ -72,8 +72,11 @@
        if (echo $tftpimage | grep -q netwinder); then
                cat $rootimage >>$tftpimage
        fi
-elif [ "$arch" = "mips" -o "$arch" = "mipsel" ]; then
+elif [ "$arch" = "mipsel" ]; then
                addinitrd $tftpimage $rootimage $tftpimage.tmp
+               mv $tftpimage.tmp $tftpimage
+elif [ "$arch" = "mips" ]; then
+               tip22 $tftpimage $rootimage $tftpimage.tmp
                mv $tftpimage.tmp $tftpimage
 fi
 
Index: debian/control
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/debian/control,v
retrieving revision 1.104
diff -u -u -r1.104 control
--- debian/control      2002/03/15 08:13:37     1.104
+++ debian/control      2002/06/24 16:53:38
@@ -4,7 +4,7 @@
 Maintainer: Debian Install System Team <[EMAIL PROTECTED]>
 Uploaders: Adam Di Carlo <[EMAIL PROTECTED]>, David Kimdon <[EMAIL PROTECTED]>
 Standards-Version: 3.1.1
-Build-Depends: glibc-pic, slang1-pic (>= 1.4.4-7.2) | slang1-utf8-pic (>= 1.4.4-7.2), 
libnewt-dev (>= 0.50.17-9.4) | libnewt-utf8-dev (>= 0.50.17-9.4), libnewt-pic (>= 
0.50.17-9.4) | libnewt-utf8-pic (>= 0.50.17-9.4), libpopt-dev, zlib1g-dev, recode, 
gettext, m4, debiandoc-sgml (>= 1.1.53), libi18n-langtags-perl, man-db, libpaperg, 
tetex-extra, perl5, libwww-perl, locales [i386 arm powerpc alpha], libpng2-dev [i386 
arm powerpc alpha], pointerize, libgd-dev, bogl-bterm [i386 arm powerpc alpha], 
libbogl-dev (>= 0.1.8-1), bison, ash, dpkg-awk, flex, file, debhelper, gawk, 
python-dev (>= 2.1.1-4), python2.1-xml (>= 0.7-1), bf-utf-source, zlib-bin [i386 arm], 
dosfstools [powerpc alpha m68k], console-common [arm], vmelilo [m68k], s390-tools 
[s390], aboot [alpha], wget, kernel-source-2.2.20 [alpha], syslinux [i386], 
debootstrap, catsboot [arm], zip [arm], bzip2 [powerpc], mips-tools [mips mipsel], 
makedev (>= 2.3.1-58)
+Build-Depends: glibc-pic, slang1-pic (>= 1.4.4-7.2) | slang1-utf8-pic (>= 1.4.4-7.2), 
+libnewt-dev (>= 0.50.17-9.4) | libnewt-utf8-dev (>= 0.50.17-9.4), libnewt-pic (>= 
+0.50.17-9.4) | libnewt-utf8-pic (>= 0.50.17-9.4), libpopt-dev, zlib1g-dev, recode, 
+gettext, m4, debiandoc-sgml (>= 1.1.53), libi18n-langtags-perl, man-db, libpaperg, 
+tetex-extra, perl5, libwww-perl, locales [i386 arm powerpc alpha], libpng2-dev [i386 
+arm powerpc alpha], pointerize, libgd-dev, bogl-bterm [i386 arm powerpc alpha], 
+libbogl-dev (>= 0.1.8-1), bison, ash, dpkg-awk, flex, file, debhelper, gawk, 
+python-dev (>= 2.1.1-4), python2.1-xml (>= 0.7-1), bf-utf-source, zlib-bin [i386 
+arm], dosfstools [powerpc alpha m68k], console-common [arm], vmelilo [m68k], 
+s390-tools [s390], aboot [alpha], wget, kernel-source-2.2.20 [alpha], syslinux 
+[i386], debootstrap, catsboot [arm], zip [arm], bzip2 [powerpc], mips-tools [mipsel], 
+tip22 [mips], makedev (>= 2.3.1-58)
 
 Package: install-doc
 Section: doc


Reply via email to