• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Put /boot on a sd card and root and all the other stuff on an usb disk  (Read 2857 times)

Karma: 0
Posts: 4

View Profile
« on: June 11, 2009, 02:39:06 AM »

is there any possibility to put /boot from Martin Michlmayrs Debian lenny tar ball (http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html) on a sd card?
Because i have the problem, that the sheevaplug only boots from my usb stick.
But I need my usb harddisk, too and I don't want to buy an usb hub.

Thanks for any help and sorry for my bad english...

Full Member

Karma: 10
Posts: 128

View Profile
« Reply #1 on: June 11, 2009, 03:34:18 AM »

Hi Andreas,

on the webpage of Martin is a description how to change the boot-args for MMC/SD via the serial console in Marvell U-Boot enviroment
BUT in order to use it you have to update your U-Boot "BIOS" to a version which has Boot-Support for MMC/SD

You will need to setup a TFTP-Server, put 3 Lines in the Marvell-enviroment and start the update-process with the
"bubt u-boot.bin"

The new u-boot.bin could be found in the Thread which has Martin marked on his Page prepared a version of u-boot

The u-boot.bin file is here in this forum.

Because I updated my U-Boot yesterday I didnt test the boot from MMC/SD since yesterday. 
But I only have to change the boot-args, because I already prepared a 8GB TransCend SDHC with the debian-tarball.

If you wouldnt stress your english-skills you are welcome to ask at www.sheevaplug.de in german language :-)
or we will help you to translate your problem for creating a thread for this forum here.


Now I have changed by boot-args to boot from SD and voila it works :-))
Here is the Output from the serial console booting my 8GB TransCend SDHC:

U-Boot 1.1.4 (Apr 29 2009 - 13:10:05) Marvell version: 3.4.16
U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CF100

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0

SDHC found. Card desciption is:
Manufacturer:       0x1c, OEM "SV"
Product name:       "SDC  ", revision 1.0
Serial number:      6087371
Manufacturing date: 3/2008
CRC:                0x00, b0 = 0

4257419 bytes read
1720340 bytes read

## Booting image at 00400000 ...
   Image Name:   Debian kernel
   Created:      2009-05-19  18:38:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1720276 Bytes =  1.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

## Loading Ramdisk Image at 00800000 ...
   Image Name:   Debian ramdisk
   Created:      2009-05-19  18:38:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4257355 Bytes =  4.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

« Last Edit: June 11, 2009, 05:07:06 AM by guidol » Logged


Karma: 0
Posts: 4

View Profile
« Reply #2 on: June 11, 2009, 12:33:13 PM »

Thank you very much for your detailed answer...
but then I have to put mountpoint "/" on the sd card.
I only want to put "/boot" on the sd card....
But as far as I know all mountpoints are managed in /etc/fstab...

So how can i realize this? With grub!?



Karma: 0
Posts: 2

View Profile
« Reply #3 on: August 27, 2009, 01:39:53 PM »

but then I have to put mountpoint "/" on the sd card.
I only want to put "/boot" on the sd card....
But as far as I know all mountpoints are managed in /etc/fstab...

I've put an ext2 filesystem on my SD-card and  copied /boot onto it. Then I combined the usb-disc and SD-card sections for U-boot in Martin Michlmayr's guide
http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html so the system will use /dev/sda1 as the root-fs, but wiil boot from the SD-card.

setenv bootargs_root 'root=/dev/sda1 rootdelay=10'
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 uInitrd; ext2load mmc 0 0x400000 uImage'
setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_mmc; bootm 0x400000 0x0800000'


Pages: [1]
Jump to: