Welcome! Log In Create A New Profile

Advanced

Booting from USB Problems

Posted by Oscar 
Oscar
Booting from USB Problems
September 28, 2016 07:21AM
I cant boot Goflex Net from USB.
It stop with the following output error:

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: 3 ### 2 ### 1 ### 0
(Re)start USB...
................... omissis.....................

Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
3154896 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
7179935 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.4.0-kirkwood-tld-1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3154832 Bytes = 3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.4.0-kirkwood-tld-1
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7179871 Bytes = 6.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


Error: unrecognized/unsupported machine ID (r1 = 0x00000831).


Available machine support:


ID (hex) NAME

ffffffff Generic DT based system

ffffffff Marvell Kirkwood (Flattened Device Tree)


Please check your kernel config and/or bootloader.

What is wrong.
Many thanks for help
Re: Booting from USB Problems
September 28, 2016 10:10AM
Oscar,
>
> U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
> Seagate GoFlexNet

Your u-boot is too old. So it can not boot FDT kernel, unless the DTB is embedded inside uImage. Meaning when you created the rootfs Debian-4.4.0-kirkwood-tld-1 , you need to complete step 4:

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time). 

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts). 

Generate the uImage with DTB embedded inside: 
cd /media/sdb1/boot
cp -a zImage-4.4.0-kirkwood-tld-1  zImage.fdt
cat dts/kirkwood-goflexnet.dtb  >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt  uImage
sync

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Oscar
Re: Booting from USB Problems
September 28, 2016 11:51AM
Thanks for you help bodhi ,
I have done what you've suggested and it worked perfectly !
I am in debian now :)
During flashing the (old)u-Boot, I was not able to save all the files in /tmp for my reference later, which contain the dump of the original u-Boot that was installed (uboot-mtd0-dump): is there a way to recover them, before reflashing with a fresh u-boot ?

Thanks again.
Re: Booting from USB Problems
September 28, 2016 05:54PM
Oscar Wrote:
-------------------------------------------------------
> Thanks for you help bodhi ,
> I have done what you've suggested and it worked
> perfectly !
> I am in debian now :)
> During flashing the (old)u-Boot, I was not able to
> save all the files in /tmp for my reference later,
> which contain the dump of the original u-Boot that
> was installed (uboot-mtd0-dump): is there a way to
> recover them, before reflashing with a fresh
> u-boot ?
>
> Thanks again.

See the Wiki sticky thread:
http://forum.doozan.com/read.php?2,23630

Section:
Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions

Since you are running the GoFlex Net, make sure the flash_erase and the nanddump commands are adjusted for it if necessary. Post the series of commands that you are about to execute and I'll double check for you.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: