New IT forum
27 June 2022, 11:30:32 am *
Welcome, %1$s. Please login or register.

: PiHub now in stock.
 
Pages: [1]

Author Topic: Boot from NewIt image on USB stick  (Read 4263 times)

antoine rennuit

  • Newbie
  • *
  • Posts: 8
Boot from NewIt image on USB stick
« on: 21 February 2013, 05:25:08 pm »

Dear all,

I have a DP 0801 model. I have setup uBoot in order to boot from the USB stick (root=/dev/sdc2 + fatload usb 2). I have made a dd of the 2Gb wheezy image provided by NewIt on my USB stick (the image is NewIT-Dreamplug-Debian-Wheezy-2Gb-31Aug11.img.gz).

When I insert the USB stick in the DP, sometimes it does boot and sometimes uBoot says it does not find the kernel. It seems that once it goes wrong once I need to redo a dd to have the boot work a few times (and then it suddenly stops working again).

Any idea of what can go wrong?

Here is printenv of uBoot:

Code: [Select]
Marvell>> printenv                                                          
bootcmd=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_k;
bootdelay=3                            
baudrate=115200                        
x_bootcmd_ethernet=ping 192.168.2.1    
x_bootcmd_usb=usb start                
x_bootargs=console=ttyS0,115200        
ethaddr=F0:AD:4E:00:80:07              
eth1addr=F0:AD:4E:00:80:08
x_bootcmd_kernel=fatload usb 2 0x6400000 uImage
x_bootargs_root=root=/dev/sdc2 rootdelay=10
stdin=serial
stdout=serial
stderr=serial
ethact=egiga1
bootargs=console=ttyS0,115200 root=/dev/sdc2 rootdelay=10

Environment size: 582/4092 bytes
Marvell>>

and the output of the console when I boot and it does not work:

Code: [Select]
Marvell>> boot
No link on egiga0
No link on egiga1
ping failed; host 192.168.2.1 is not alive
No link on egiga1
No link on egiga0
ping failed; host 192.168.2.1 is not alive
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 5 USB Device(s) found
       scanning bus for storage devices... Device NOT ready
   Request Sense returned 02 3A 00
2 Storage Device(s) found

** Invalid boot device **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Marvell>>

Kind regards,

Antoine.

UPDATE: it does the same with the Squeeze image NewIT-Dreamplug-Debian-Squeeze-2Gb-30Aug11.img.gz.
« Last Edit: 21 February 2013, 05:48:16 pm by antoine rennuit »
Logged

NewIT_Malcolm

  • Administrator
  • Jr. Member
  • *****
  • Posts: 65
Re: Boot from NewIt image on USB stick
« Reply #1 on: 22 February 2013, 09:18:49 am »

Try using a different USB stick, preferably a different brand. I think your Usb stick may not be starting up fast enough for the Dreamplug to recognise it.

Also are you using any other devices in the other USB  or eSata port?

Logged

Ralph Houston

  • New IT customer
  • Full Member
  • *
  • Posts: 136
Re: Boot from NewIt image on USB stick
« Reply #2 on: 24 February 2013, 07:02:11 am »

Hi Antoine
I have wasted days on this problem and never found a solution. The problem is that the DreamPlug does not recognise sdc consistently as the same number of usb device. It also depends on what else you have plugged in - external hard drives etc.

See this thread:
Booting off sdc and sdd is unreliable as the relationship between usb 2/3 and sdc/d is not fixed- the operating system frequently finds the wrong root system, causing havoc. A single extra device with two partitions (uImage and root) is often seen as usb 2/sdc and then works, but not always.

Any suggestions?

Best of luck
Ralph
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!