• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 2 3 [4]
Author Topic: MMC/SD support in u-boot  (Read 57033 times)
westyd1982
Newbie
*

Karma: 1
Posts: 29


View Profile
« Reply #45 on: August 22, 2009, 12:12:05 AM »

try to make a small first primary partition for boot. Like 500MB as ext2. The rest with the root filesystem can be ext3 or ext4.
Having swap on a SD Card is not the best idea (even with builtin wear leveling)

That seems to work.  I made a boot partition and copied all of the files from /boot.  It starts booting from the SD card.  It stops booting with errors only because I don't have enough knowledge on how to configure Linux to boot from the two partitions.  The booting ends with:

mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= bootarg.


BusyBox v1.10.2 (Debian 1:1.10.2-2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)


I know I'm close.
Logged

westyd1982
Newbie
*

Karma: 1
Posts: 29


View Profile
« Reply #46 on: August 31, 2009, 10:19:17 PM »

I never figured out what was wrong with my plug and the Transcend 16 GB card.  I ended up using the USB recovery procedure to completely redo my plug - I also said yes when it asked to replace the env variables.  The card worked fine after that.  It is formatted with a 15GB ext2 partition and a 1GB swap partition with Debian installed.
Logged

westyd1982
Newbie
*

Karma: 1
Posts: 29


View Profile
« Reply #47 on: September 15, 2009, 10:18:54 PM »

On two different Sheeva Plugs I have had the same problem.  When power is applied and u-boot starts up it can't find the MMC/SD card and gives the output below.  If I am connected to the console and type "reset" it will boot up normally from my SD card.  I can also use a paper clip to reset the plug and it will boot up normally.  I tried adding a rootdelay=10 with no effect.  It has bootdelay=3.  I even loaded the latest Marvell u-boot version 3.4.19.  Still the same problem.  Any ideas on how to fix this so it boots properly when the power is applied?

Code:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Apr 29 2009 - 13:10:05) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CF100

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Error! cmd : 8, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00400000 ...
Bad Magic Number
Marvell>>

Logged

CqCn
Full Member
***

Karma: 0
Posts: 169



View Profile
« Reply #48 on: September 18, 2009, 08:35:39 PM »

westyd1982,  The solution to this problem in a slightly different context was given here by me ~1 week ago. I am in a bit of a hurry; search for recent msgs from me and you would see it.
Logged

Cordially, CqCn

segfault
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #49 on: September 19, 2009, 11:19:42 PM »

Hi all,

I just got my SheevaPlug and am still very new to U-Boot, etc.

It appears that the latest SheevaPlug Installer (v1.0) includes the ability to install to an SD card. Is that functionality any different than what's being discussed in this thread, and if so, how?

I'm pondering buying a 32GB SDHC card to install to, but would be more inclined to if I could be somewhat confident that it would actually work.

Regards,

segfault
Logged

westyd1982
Newbie
*

Karma: 1
Posts: 29


View Profile
« Reply #50 on: September 20, 2009, 10:24:44 AM »

westyd1982,  The solution to this problem in a slightly different context was given here by me ~1 week ago. I am in a bit of a hurry; search for recent msgs from me and you would see it.
CqCn -

I'm not sure I found your solution.  I tried adding rootdelay=10 to my bootargs_root.  It didn't make a difference.  So far the only thing that has worked is to have two mmcinit; commands.  On a power-on boot up, the first one fails, and the second one works.  On a reboot they both work.
Logged

DamonHD
Full Member
***

Karma: 4
Posts: 169


View Profile WWW
« Reply #51 on: September 20, 2009, 11:37:22 AM »

Hi segfault,

I just moved to a SanDisk 32GB SD card today (class 2, model SDSDB-032G-E11 I think), and it works fine with the 2.6.31 kernel.

Rgds

Damon
Logged

segfault
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #52 on: September 20, 2009, 12:29:01 PM »

Hi segfault,

I just moved to a SanDisk 32GB SD card today (class 2, model SDSDB-032G-E11 I think), and it works fine with the 2.6.31 kernel.

Rgds

Damon

Good to know, Damon. I was eyeing a Kingston Class 4 32GB SDHC card, model SD4/32GB. I'm still not sure about the distinction between booting from SD using the custom U-Boot discussed in this thread vs. doing an MMC install using the SheevaPlug installer, can anyone shed some light on this?
Logged

h2
Newbie
*

Karma: 0
Posts: 7


View Profile WWW
« Reply #53 on: September 21, 2009, 03:18:32 AM »

Hello.

I have written a bash script to build the MMC/SD supporting u-boot binary because the method shown by kwonsk needs some fixes including a fix by himself.

If you like to use it, please read, understand, and fix it before using it. It is short.

Regards,

Hiroki Horiuchi
« Last Edit: September 21, 2009, 03:31:54 AM by h2 » Logged

Pages: 1 2 3 [4]
Print
Jump to: