Welcome! Log In Create A New Profile

Advanced

Install script stops with "debootstrap failed."

Posted by azeera 
Install script stops with "debootstrap failed."
March 23, 2013 01:24PM
Hi,

I tried to install debian wheezy on my new FreeAgent GoFlex Net. When I run ./kirkwood.debian-wheezy.sh it installs uBoot but later stops with:

# Starting debootstrap installation
I: Retrieving InRelease
debootstrap failed.
See /tmp/debian/debootstrap/debootstrap.log for more information.

cat /tmp/debian/debootstrap/debootstrap.log shows

-bash-3.2# cat /tmp/debian/debootstrap/debootstrap.log
Connecting to cdn.debian.net (149.20.20.135:80)
debootstrap.invalid_ 100% |*****************************************************************************************************| 218k 00:00:00 ETA
/usr/share/debootstrap/functions: line 534: gpg: command not found

Any hint?

Thanks Azeera
Re: Install script stops with "debootstrap failed."
March 23, 2013 02:30PM
Install Squeeze then upgrade to Wheezy. See:

http://forum.doozan.com/read.php?2,11987

-syong
Re: Install script stops with "debootstrap failed."
March 24, 2013 07:20AM
Thanks, that helped to install squeeze the GoFlex Net. But after the reboot Debian does not boot from the USB stick. The LED just blicks yellow. Same if I remove the usb stick, LED keeps blicking yellow the original OS is not loaded.

I build a serial cable and captured the boot process with attached USB stick:

----------
U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1749
UBI: number of bad PEBs: 3
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1728
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
** File not found /boot/uImage
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
** File not found /boot/uImage
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: ......... done.
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...
--------------------------------------------------------

Can someone please help me understand this output.
Thanks
Re: Install script stops with "debootstrap failed."
March 24, 2013 11:32AM
Re: Install script stops with "debootstrap failed."
March 24, 2013 12:47PM
Thanks for pointing me to this thread. In order to follow the steps to create uBoot, I need at first to boot my GoFlex, what does not work at the moment. What do I have to do to boot the original image?
Re: Install script stops with "debootstrap failed."
March 24, 2013 01:16PM
Your uboot seems good, do not touch that.

My suggestion would be:

1. Putting file named "rescueme" in the first partition of your usb stick and boot the original uboot.

2. Do the installation again without reinstalling uboot.

3. At the end of installation, generate kernel for uboot before reboot.

4. Reboot and enjoy.

-syong
Re: Install script stops with "debootstrap failed."
March 24, 2013 01:21PM
PS, Step 2 above may not be needed.

-syong
Re: Install script stops with "debootstrap failed."
March 24, 2013 03:01PM
After creating the rescueme file, GoFlex loads uboot-original-mtd0.kwb. The green LED keeps on blinking but it seems to stuck somewhere. This is what I see on the serial console:

U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
0 bytes read
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x1700000
Scanning JFFS2 FS: ......... done.
### JFFS2 load complete: 524288 bytes loaded to 0x1700000
## Starting application at 0x00800200 ...

Thanks for your help.
Re: Install script stops with "debootstrap failed."
March 24, 2013 03:54PM
I guess it is trying to get its ip.

Do you have a dhcpd on your net?

-syong
Re: Install script stops with "debootstrap failed."
March 25, 2013 01:30AM
There is dhcpd on my network. I used wireshark and an old network hub for sniffing but did not find any packets from my GoFlex. So it seems it is doing something different.
Re: Install script stops with "debootstrap failed."
March 25, 2013 02:33AM
azeera Wrote:
-------------------------------------------------------
> Thanks, that helped to install squeeze the GoFlex
> Net. But after the reboot Debian does not boot
> from the USB stick. The LED just blicks yellow.
> Same if I remove the usb stick, LED keeps blicking
> yellow the original OS is not loaded.
>
> I build a serial cable and captured the boot
> process with attached USB stick:
>
> ----------
> U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
> Seagate GoFlexNet
>
> SoC: Kirkwood 88F6281_A1
> DRAM: 128 MiB
> WARNING: Caches not enabled
> NAND: 256 MiB
> In: serial
> Out: serial
> Err: serial
> Net: egiga0
> 88E1116 Initialized on egiga0
> Hit any key to stop autoboot: 0
> (Re)start USB...
> USB: Register 10011 NbrPorts 1
> USB EHCI 1.00
> scanning bus for devices... 2 USB Device(s) found
> scanning bus for storage devices... 1
> Storage Device(s) found
> Loading file "/rescueme" from usb device 0:1
> (usbda1)
> ** File not found /rescueme
> reading /rescueme.txt
>
> ** Unable to read "/rescueme.txt" from usb 0:1 **
> Creating 1 MTD partitions on "nand0":
> 0x000002500000-0x000010000000 : "mtd=3"
> UBI: attaching mtd1 to ubi0
> UBI: physical eraseblock size: 131072 bytes (128
> KiB)
> UBI: logical eraseblock size: 129024 bytes
> UBI: smallest flash I/O unit: 2048
> UBI: sub-page size: 512
> UBI: VID header offset: 512 (aligned
> 512)
> UBI: data offset: 2048
> UBI: attached mtd1 to ubi0
> UBI: MTD device name: "mtd=3"
> UBI: MTD device size: 219 MiB
> UBI: number of good PEBs: 1749
> UBI: number of bad PEBs: 3
> UBI: max. allowed volumes: 128
> UBI: wear-leveling threshold: 4096
> UBI: number of internal volumes: 1
> UBI: number of user volumes: 0
> UBI: available PEBs: 1728
> UBI: total number of reserved PEBs: 21
> UBI: number of PEBs reserved for bad PEB handling:
> 17
> UBI: max/mean erase counter: 1/1
> UBIFS error (pid 0): ubifs_get_sb: cannot open
> "ubi:rootfs", error -19
> Error reading superblock on volume 'ubi:rootfs'!
> Loading file "/boot/uImage" from usb device 0:1
> (usbda1)
> ** File not found /boot/uImage
> ** Block device usb 1 not supported
> ** Block device usb 2 not supported
> ** Block device usb 3 not supported
> Loading file "/boot/uImage" from usb device 0:1
> (usbda1)
> ** File not found /boot/uImage
> Loading file "/boot/uInitrd" from usb device 0:1
> (usbda1)
> ** File not found /boot/uInitrd
> Wrong Image Format for bootm command
> ERROR: can't get kernel image!
> stopping USB..
> ### JFFS2 loading 'uboot-original-mtd0.kwb' to
> 0x800000
> Scanning JFFS2 FS: ......... done.
> ### JFFS2 load complete: 524288 bytes loaded to
> 0x800000
> ## Starting application at 0x00800200 ...
> --------------------------------------------------
> ------
>
> Can someone please help me understand this
> output.
> Thanks

It does not look like you have the Squeeze stick plugged in during this boot?

Try booting with the stick again and capture the serial output.
Re: Install script stops with "debootstrap failed."
March 25, 2013 02:10PM
The stick with squeeze is plugged in with the rescueme file on / . This is the output from the boot:

U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
0 bytes read
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x1700000
Scanning JFFS2 FS: ......... done.
### JFFS2 load complete: 524288 bytes loaded to 0x1700000
## Starting application at 0x00800200 ...
Re: Install script stops with "debootstrap failed."
March 25, 2013 02:39PM
If that does not work out, try

1. Removing file named "rescueme" in the first partition of your usb stick.
2. Making uImage and uInitrd in /boot on your usb stick by

apt-get install uboot-mkimage 
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-<version> -d /<usb stick mount point>/boot/vmlinuz-<version> /<usb stick mount point>/boot/uImage 
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n Initrd-<version> -d /<usb stick mount point>/boot/initrd.img-<version> /<usb stick mount point>/boot/uInitrd

-syong
Re: Install script stops with "debootstrap failed."
March 25, 2013 04:21PM
Thanks for this hint, that resolved the issue. After updating uImage and uInitrd I can boot from the stick and upgraded from squeeze to wheezy.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: