New IT forum Follow us on Twitter
22 May 2012, 11:06:27 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TonidoPlug2 - Now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [resolved] Booting from SDHC and therefore chrooting on USB disk  (Read 1302 times)
maisondouf
Jr. Member
**
Posts: 68


Crazy hacker's family since 1982


WWW
« on: 08 May 2010, 10:51:39 pm »

As the boot on usb disk is hazardous and I want to be sure than the plug always run after a general power breakdown, I have a question.

I would try to put uImage and uInitrd in a SDHC (mmcblk0p1) and after loading by u-boot these images would load the root-fs from an external USB disk with a partition sda1 for /root and sda2 for swap.

Perhaps, this method can solve the boot issues.


Is there anyone to help me for this try ?
« Last Edit: 30 May 2010, 05:46:46 pm by maisondouf » Logged

NSLU2 owner since 4 years...
Very new owner of a black eSata Sheevaplug.
(Wiki en français http://plug.maisondouf.fr)
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 09 May 2010, 12:34:12 pm »

The most common issue regarding booting from USB seems to be hdd spin-up. That issue would occur regardless of whether you boot (everything) from USB, or just mount the rootfs, or some parts of it, after a successful first stage. A quick search on the plug computer forum for "USB boot spin" lists many threads where this is discussed.
Logged
maisondouf
Jr. Member
**
Posts: 68


Crazy hacker's family since 1982


WWW
« Reply #2 on: 09 May 2010, 04:07:19 pm »

thanks
Logged

NSLU2 owner since 4 years...
Very new owner of a black eSata Sheevaplug.
(Wiki en français http://plug.maisondouf.fr)
maisondouf
Jr. Member
**
Posts: 68


Crazy hacker's family since 1982


WWW
« Reply #3 on: 09 May 2010, 06:32:19 pm »

I've found this
Quote
To boot on USB external drive you must use an SD Card too.
You just need to copy uInitrd and uImage from /boot of you debian installation to the SD Card.
You had to configure the uBoot to load uInitrd and uImage from SD Card.

Then, kernel loaded will correctly access to your USB external drive and boot your Debian System with success.

You'll only have to copy the uInitrd and uImage after each Debian kernel update from USB to SD Card.

To be tried....
Logged

NSLU2 owner since 4 years...
Very new owner of a black eSata Sheevaplug.
(Wiki en français http://plug.maisondouf.fr)
maisondouf
Jr. Member
**
Posts: 68


Crazy hacker's family since 1982


WWW
« Reply #4 on: 10 May 2010, 03:03:19 am »

It is really marvellous !

I never have seen my plug booting so quickly.

I have installed Debian with net-install on an USB disk, I have formatted a SDHC card with a little ext2 partition at the beginning, I have copied all the files in the boot partition of the USB disk in it.

The uboot parameters here:

Quote
setenv bootargs_console 'console=ttyS0,115200n8'
setenv bootroot_usb 'root=/dev/sda2 rootdelay=10 rootfstype=ext3'
setenv bootload_mmc 'mmcinit; ext2load mmc 0 0x01100000 /uInitrd; ext2load mmc 0 0x00800000 /uImage'
setenv dualboot 'setenv bootargs $(bootargs_console) $(bootroot_usb); run bootload_mmc; bootm 0x00800000 0x01100000'
setenv bootcmd 'run dualboot'
saveenv
boot

so gooooood !
Logged

NSLU2 owner since 4 years...
Very new owner of a black eSata Sheevaplug.
(Wiki en français http://plug.maisondouf.fr)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!