unable to use mmc for fatload

29 views
Skip to first unread message

Kai Warncke

unread,
Mar 20, 2012, 7:44:11 AM3/20/12
to hidav-devel-list
Hi,

I've build the hydraip-devimage and flashed it onto a sdcard.
When i try to boot I'm getting the following:

U-Boot 2010.06-00260-g2ec1a17-dirty (Mar 15 2012 - 14:17:01)

DRAM: 1 GiB
Using default environment

Hit any key to stop autoboot: 0
mmc - MMC sub-system

Usage:
mmc init [dev] - init MMC sub system
mmc device [dev] - show or set current device

** Unable to use mmc 0:1 for fatload **
## Starting application at 0x80800000 ...

Nothing happens after that. The jumper are set correctly for
sdcard boot. I'm not sure whats going wrong.

Any Idea?

Regards,
Kai

Message has been deleted

Kai Warncke

unread,
Mar 20, 2012, 11:39:46 AM3/20/12
to hidav-devel-list
Maybe the output of the ti816x-bootable-sdcard.sh script is
useful.

THIS WILL ERASE ALL DATA ON /dev/sdf. ARE YOU SURE? (y/N):y
umount: /dev/sdf1: not mounted
umount: /dev/sdf2: not mounted
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.20075 s, 5.2 MB/s
Disk /dev/sdf doesn't contain a valid partition table
DISK SIZE - 7948206080 bytes
----
Creating Partitions
--
CYLINDERS= 966

SIZE= 7948206080

Checking that no-one is using this disk right now ...
OK

Disk /dev/sdf: 966 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdf: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0

Device Boot Start End #cyls #blocks Id System
/dev/sdf1 * 0+ 8 9- 72261 c W95 FAT32 (LBA)
/dev/sdf2 10 965 956 7679070 83 Linux
/dev/sdf3 0 - 0 0 0 Empty
/dev/sdf4 0 - 0 0 0 Empty
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use
dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512
count=1
(See fdisk(8).)
----
Formatting FAT Partition
--
mkfs.vfat 3.0.12 (29 Oct 2011)
----
Formatting EXT4 (root) Partition
--
mke2fs 1.42 (29-Nov-2011)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
480496 inodes, 1919767 blocks
95988 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1967128576
59 block groups
32768 blocks per group, 32768 fragments per group
8144 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

----
Flushing changes to device
--
----
Copying bootloader and kernel
--
----
Flushing changes to device
--
----
DONE.

Thilo Fromm

unread,
Apr 20, 2012, 4:39:15 AM4/20/12
to hidav-de...@dresearch-fe.de
Hello Kai,

SDCard boot seems to work since what you see is the SDCard boot
loader. Let me see...

It seems that texas instruments supports different sets of mmc
bootloader commands for ti8168-evm and ti8148-evm.

The problem is in u-boot's boot scripts (see
include/configs/ti8168_evm.h, include/configs/ti8148_evm.h; lines ~65
- ~100). We maintain ti8168_evm.h alongside with ti8148_evm.h although
we don't currently have a 8168 dev board to test things on. So while
all the mmc commands seem to work on a ti8148 platform there seems to
be some trouble on 8168.

Could you please run the boot loader interactively (i.e. press a key
while the 5sec countdown is displaying) and then check whether you can
get the mmc system to load a kernel manually? Help with u-boot
commandline is built into u-boot, so issuing a "help" gives you a list
of available commands, while issuing a "help <cmd>" returns detailed
descriptions about <cmd>.

Regards,
Thilo

--
Dipl.-Ing (FH) Thilo Fromm, MSc., Embedded Systems Architect
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, D-10319 Berlin, Germany
Tel: +49 (30) 515 932 228   mailto:fr...@dresearch-fe.de
Fax: +49 (30) 515 932 77    http://www.dresearch.de
Amtsgericht: Berlin Charlottenburg, HRB 130120 B
Ust.-IDNr. DE273952058
Geschäftsführer: Dr. M. Weber, W. Mögle

Reply all
Reply to author
Forward
0 new messages