Fredrik
Kernel install fails with Wheezy script August 12, 2012 02:18PM |
I: Configuring libapt-pkg4.12:armel... I: Configuring libreadline6:armel... I: Configuring gnupg... I: Configuring libgnutls26:armel... I: Configuring libkrb5-3:armel... I: Configuring initramfs-tools... I: Configuring module-init-tools... I: Configuring libgssapi-krb5-2:armel... I: Configuring apt... I: Configuring flash-kernel... I: Configuring linux-image-3.2.0-3-kirkwood... I: Configuring wget... I: Configuring linux-image-kirkwood... I: Configuring openssh-client... I: Configuring openssh-server... I: Configuring initramfs-tools... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /tmp/debian/debootstrap/debootstrap.log for details (possibly the package initramfs-tools is at fault) I: Configuring flash-kernel... I: Configuring initramfs-tools... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /tmp/debian/debootstrap/debootstrap.log for details (possibly the package initramfs-tools is at fault) I: Configuring initramfs-tools... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /tmp/debian/debootstrap/debootstrap.log for details (possibly the package initramfs-tools is at fault) I: Configuring initramfs-tools... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /tmp/debian/debootstrap/debootstrap.log for details (possibly the package initramfs-tools is at fault) I: Configuring initramfs-tools... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /tmp/debian/debootstrap/debootstrap.log for details (possibly the package initramfs-tools is at fault) debootstrap failed. See /tmp/debian/debootstrap/debootstrap.log for more information.
Setting up openssh-client (1:6.0p1-2) ... Setting up openssh-server (1:6.0p1-2) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Creating SSH2 ECDSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd Warning: Fake start-stop-daemon called, doing nothing Warning: Fake start-stop-daemon called, doing nothing . Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.2.0-3-kirkwood Warning: root device does not exist Unable to abort; system will probably be broken! Unsupported platform. run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1 dpkg: error processing initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for flash-kernel ... Unsupported platform. dpkg: error processing flash-kernel (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: initramfs-tools flash-kernel Setting up initramfs-tools (0.107) ... update-initramfs: deferring update (trigger activated) Setting up flash-kernel (3.2) ... Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.2.0-3-kirkwood Warning: root device does not exist Unable to abort; system will probably be broken! Unsupported platform.
Fredrik
Re: Kernel install fails with Wheezy script August 13, 2012 07:30PM |
Re: Kernel install fails with Wheezy script September 28, 2012 03:44PM |
Registered: 10 years ago Posts: 9 |
tuxuser
Re: Kernel install fails with Wheezy script October 12, 2012 02:27PM |
Re: Kernel install fails with Wheezy script October 15, 2012 12:30PM |
Registered: 10 years ago Posts: 9 |
Selecting previously unselected package linux-image-3.3.2-kirkwood-dg. (Reading database ... 10119 files and directories currently installed.) Unpacking linux-image-3.3.2-kirkwood-dg (from linux-image-3.3.2-kirkwood-dg_1.1_armel.deb) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) debconf: falling back to frontend: Teletype Done. Setting up linux-image-3.3.2-kirkwood-dg (1.1) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) debconf: falling back to frontend: Teletype Hmm. There is a symbolic link /lib/modules/3.3.2-kirkwood-dg/build However, I can not read it: No such file or directory Therefore, I am deleting /lib/modules/3.3.2-kirkwood-dg/build Hmm. The package shipped with a symbolic link /lib/modules/3.3.2-kirkwood-dg/source However, I can not read the target: No such file or directory Therefore, I am deleting /lib/modules/3.3.2-kirkwood-dg/source Running depmod. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.3.2-kirkwood-dg /boot/vmlinuz-3.3.2-kirkwood-dg update-initramfs: Generating /boot/initrd.img-3.3.2-kirkwood-dg df: Warning: cannot read table of mounted file systems: No such file or directory warning: failed to read mtab run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 3.3.2-kirkwood-dg /boot/vmlinuz-3.3.2-kirkwood-dg
Re: Kernel install fails with Wheezy script October 17, 2012 03:35PM |
Registered: 12 years ago Posts: 4 |
Re: Kernel install fails with Wheezy script October 18, 2012 07:31AM |
Registered: 10 years ago Posts: 9 |
mkdir /tmp/wheezy
mount /dev/sda1 /tmp/wheezy
chroot /tmp/wheezy /bin/bash
exit
tuxuser
Re: Kernel install fails with Wheezy script October 18, 2012 11:32AM |
> mkdir /tmp/wheezy >>
> mount /dev/sda1 /tmp/wheezy >>
> chroot /tmp/wheezy /bin/bash >>
> exit >
# Mount roofs mkdir /tmp/wheezy mount /dev/sda1 /tmp/wheezy cd /tmp/wheezy # Prepare chroot-environment mount -t proc proc proc/ mount -t sysfs sys sys/ mount -o bind /dev dev/ mount -t devpts pts dev/pts/ chroot /tmp/wheezy /bin/bash # Now here we go with the kernel install #Dependencies apt-get update apt-get install dialog ca-certificates openssl wget https://dl.dropbox.com/sh/nwt2kbvetvgvroo/661x9b5PLg/Kirkwood/kernel/linux-image-3.3.2-kirkwood-dg_1.1_armel.deb?dl=1 -O linux-image-3.3.2-kirkwood-dg_1.1_armel.deb # Safety cp -r /boot /boot-backup # flash-kernel never installed for me successfully for me -> removing postinstall-script, otherways update-initramfs will bug around rm /etc/kernel/postinst.d/zz-flash-kernel # Install Kernel dpkg -i linux-image-3.3.2-kirkwood-dg_1.1_armel.deb # Build proper uboot images cd /boot mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.3.2 -d vmlinuz-3.3.2-kirkwood-dg uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.3.2-kirkwood-dg -d initrd.img-3.3.2-kirkwood-dg uInitrd # Exit chroot exit # Unmount chroot-environment umount /tmp/wheezy/dev/pts umount /tmp/wheezy/dev umount /tmp/wheezy/sys umount /tmp/wheezy/proc cd / umount /tmp/wheezy #Reboot init 6
Re: Kernel install fails with Wheezy script November 06, 2012 11:28AM |
Registered: 10 years ago Posts: 2 |
/usr/bin/mkimage: Can't open /boot/vmlinuz-3.2.0-3-kirkwood: No such file or directory /usr/bin/mkimage: Can't open /boot/initrd.img-3.2.0-3-kirkwood: No such file or directory
Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.3.2-kirkwood-dg /boot/vmlinuz-3.3.2-kirkwood-dg update-initramfs: Generating /boot/initrd.img-3.3.2-kirkwood-dg Warning: root device /dev/root does not exist Press Ctrl-C to abort build, or Enter to continue
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.3.2-kirkwood-dg.postinst line 341, <STDIN> line 2. Errors were encountered while processing: linux-image-3.3.2-kirkwood-dg
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0-4 -d vmlinuz-3.2.0-4-kirkwood uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.2.0-4-kirkwood -d initrd.img-3.2.0-4-kirkwood uInitrd
Sw1val
Re: Kernel install fails with Wheezy script November 09, 2012 07:48PM |
mount -o remount,rw / rm /usr/sbin/debootstrap rm -rf /usr/share/debootstrap chmod 666 /usr/bin/microperl
cd /tmp wget http://projects.doozan.com/debian/kirkwood.debian-wheezy.sh chmod +x kirkwood.debian-wheezy.sh export PATH=$PATH:/usr/sbin:/sbin ./kirkwood.debian-wheezy.sh
I: Base system installed successfully. /usr/bin/mkimage: Can't open /boot/vmlinuz-3.2.0-3-kirkwood: No such file or directory /usr/bin/mkimage: Can't open /boot/initrd.img-3.2.0-3-kirkwood: No such file or directory Installation complete You can now reboot your device into Debian. If your device does not start Debian after rebooting, you may need to restart the device by disconnecting the power. The new root password is 'root' Please change it immediately after logging in. Reboot now? [Y/n] Y
# Mount roofs mkdir /tmp/wheezy mount /dev/sda1 /tmp/wheezy cd /tmp/wheezy
chroot /tmp/wheezy /bin/bash
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0-4 -d vmlinuz-3.2.0-4-kirkwood uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.2.0-4-kirkwood -d initrd.img-3.2.0-4-kirkwood uInitrd
exit
Re: Kernel install fails with Wheezy script November 14, 2012 11:01AM |
Registered: 12 years ago Posts: 8 |
> I: Base system installed successfully. > /usr/bin/mkimage: Can't open > /boot/vmlinuz-3.2.0-3-kirkwood: No such file or > directory > /usr/bin/mkimage: Can't open > /boot/initrd.img-3.2.0-3-kirkwood: No such file or > directory > > > > > Installation complete > > You can now reboot your device into Debian. > If your device does not start Debian after > rebooting, > you may need to restart the device by > disconnecting the power. > > The new root password is 'root' Please change it > immediately after > logging in. > > Reboot now? [Y/n] Y > >
Carl Jay
Re: Kernel install fails with Wheezy script November 15, 2012 01:39PM |
Re: Kernel install fails with Wheezy script November 21, 2012 12:29PM |
Registered: 11 years ago Posts: 49 |
Re: Kernel install fails with Wheezy script November 28, 2012 07:29AM |
Registered: 10 years ago Posts: 25 |
Re: Kernel install fails with Wheezy script November 28, 2012 10:20AM |
Registered: 12 years ago Posts: 8 |
Re: Kernel install fails with Wheezy script November 28, 2012 11:36AM |
Registered: 10 years ago Posts: 25 |
nc -klup 6666 & socat STDIO UDP-SENDTO:192.168.1.14:6666
Re: Kernel install fails with Wheezy script November 28, 2012 12:26PM |
Registered: 12 years ago Posts: 8 |
Re: Kernel install fails with Wheezy script November 28, 2012 01:54PM |
Registered: 10 years ago Posts: 25 |
rescue:~# fw_printenv ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_rootfstype=ext2 usb_rootdelay=10 usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=00:10:75:1A:DD:43 usb_root=/dev/sda1 ro usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts init=/sbin/init-ro serverip=192.168.1.6 ipaddr=192.168.1.14 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole rescue_installed=1 arcNumber=2998
# Validating existing uBoot... Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000... Connecting to jeff.doozan.com (50.116.34.13:80) Connecting to projects.doozan.com (50.116.34.13:80) valid-uboot.md5 100% |****************************************************************************| 1133 0:00:00 ETA ## Valid uBoot detected: [dockstar davygravy-2012-02-12-current] ## The newest uBoot is already installed on mtd0.
Re: Kernel install fails with Wheezy script November 28, 2012 03:59PM |
Admin Registered: 12 years ago Posts: 17,689 |
Re: Kernel install fails with Wheezy script November 28, 2012 04:24PM |
Registered: 10 years ago Posts: 25 |
Re: Kernel install fails with Wheezy script November 28, 2012 07:00PM |
Admin Registered: 12 years ago Posts: 17,689 |
me
Re: Kernel install fails with Wheezy script January 23, 2013 11:40PM |
Re: Kernel install fails with Wheezy script January 24, 2013 05:46AM |
Registered: 12 years ago Posts: 157 |
Lester
Re: Kernel install fails with Wheezy script February 13, 2015 02:54AM |
You should fix /etc/initramfs/post-update.d/flash-kernel so that it successfully flashes your kernel & initrd. It's in /etc, so you're free to edit it to make it work on your board. If you can't edit it to make it work (e.g., flashing is done with JTAG), then you ought to have it print out a big warning reminding you to flash it, and exit 0. Once you've fixed it, then you can run dpkg --configure -a.
Lester
Re: Kernel install fails with Wheezy script February 13, 2015 05:14AM |