Mmc boot

Is it possible to boot Foxboard from sdcard? YES

  1. Edit target/linux/etrax/config-2.6.30 and change kernel commad line with root=/dev/mmc1 rootfstype=ext2,jffs2 rootwait noinitrd console=ttyS0,115200
  2. Enjoy!

The Evidence

root@CrisOs:/# df   
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               482214      3909    453406   1% /
tmpfs                    14864        48     14816   0% /tmp
tmpfs                      512         0       512   0% /dev
root@CrisOs:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,errors=continue)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=14864k)
tmpfs on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
none on /proc/bus/usb type usbfs (rw,relatime)

The bootlog:

Linux version 2.6.30-rc7 (claudyus@claudyus-laptop) (gcc version 4.3.3 (GCC) ) #5 Thu May 28 23:39:42 CEST 2009
console [ttyS0] enabled
Setting up paging and the MMU.
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat c0238368, node_mem_map c02e2000
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4080 pages, LIFO batch:0
Linux/CRIS port on ETRAX 100LX (c) 2001 Axis Communications AB
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 4080
Kernel command line: root=/dev/mmc1 rootfstype=ext2,jffs2 rootwait noinitrd console=ttyS0,115200
NR_IRQS:32
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 1, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 0, 8192 bytes)
Memory: 29664k/32768k available (1710k kernel code, 3104k reserved, 548k data, 56k init)
Calibrating delay loop... 98.91 BogoMIPS (lpj=494592)
Mount-cache hash table entries: 1024
net_namespace: 476 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 0, 8192 bytes)
TCP established hash table entries: 1024 (order: 0, 8192 bytes)
TCP bind hash table entries: 1024 (order: -1, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
console [ttyS0] enabled
fast_timer_init()
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 57
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
ETRAX 100LX serial-driver 1.25 $, (c) 2000-2004 Axis Communications AB
ttyS0 at 0xb0000060 is a builtin UART with DMA
ttyS2 at 0xb0000070 is a builtin UART with DMA
ttyS3 at 0xb0000078 is a builtin UART with DMA
IRQ 8/serial : IRQF_DISABLED is not guaranteed on shared IRQs
Driver 'sd' needs updating - please use bus_type methods
zd1211rw usb_init()
usbcore: registered new interface driver zd1211rw
zd1211rw initialized
usbcore: registered new interface driver zd1201
ETRAX 100LX 10/100MBit ethernet v2.0 (c) 1998-2007 Axis Communications AB
eth0: changed MAC to 00:40:8c:cd:00:00
ETRAX 100LX USB Host Controller version 1.00-openwrt_diff (c) 2005, 2006 Axis Communications AB
usb_devdrv: Etrax 100LX USB Revision 16 v1,2
usb_devdrv: Bulk timer interval, start:2 eot:6
usb_devdrv: Claimed interface for USB physical port 1
usb_devdrv: Claimed interface for USB physical port 2
hc-crisv10 hc-crisv10.0: ETRAX 100LX USB Host Controller
hc-crisv10 hc-crisv10.0: new USB bus registered, assigned bus number 1
hc-crisv10 hc-crisv10.0: reset
hc-crisv10 hc-crisv10.0: start
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver cdc_wdm
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
cse0: Probing a 0x04000000 bytes large window at 0xe0000000.
cse0: Found 1 x16 devices at 0x0 in 16-bit bank
cse0: Found an alias at 0x800000 for the chip at 0x0
cse0: Found an alias at 0x1000000 for the chip at 0x0
cse0: Found an alias at 0x1800000 for the chip at 0x0
cse0: Found an alias at 0x2000000 for the chip at 0x0
cse0: Found an alias at 0x2800000 for the chip at 0x0
cse0: Found an alias at 0x3000000 for the chip at 0x0
cse0: Found an alias at 0x3800000 for the chip at 0x0
 Amd/Fujitsu Extended Query Table at 0x0040
cse0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cse1: Probing a 0x04000000 bytes large window at 0xe4000000.
cse0: 0x00800000 bytes of flash memory.
Scanning flash for end of kernel magic
Kernel ends at 0x00130000
 Using default partition table.
Creating 2 MTD partitions on "cse0":
0x000000000000-0x000000130000 : "kernel"
0x000000130000-0x000000800000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "cse0"
 Adding RAM partition for romfs image:
  /dev/flash1 at 0x00000000, size 0x00000000
GPIO port G: in_bits: 0x01FFFF3F out_bits: 0x3200003E val: F9FFFFEF
GPIO port G: dir: 00000000 changeable: 01FFFF01
ETRAX 100LX GPIO driver v2.5, (c) 2001-2008 Axis Communications AB
IRQ 2/gpio poll: IRQF_DISABLED is not guaranteed on shared IRQs
IRQ 11/gpio PA: IRQF_DISABLED is not guaranteed on shared IRQs
mmc: MultiMediaCard Driver V1.01 - (c) 2007 AFM Design
mmc: Card insert detect disabled
mmc: Activity LED disabled
mmc: Device driver initialized
TCP westwood registered
NET: Registered protocol family 17
mmc: SDC  , size 513277952 bytes (489 MiB) (MMC)
mmc: Serial# 3353088, MID = 28, 'SV'
 mmc: mmc1
VFS: Mounted root (ext2 filesystem) readonly on device 126:2.
Freeing unused kernel memory: 56k freed
Please be patient, while OpenWrt loads ...
Closing eth0.

Claudio 2009/05/28 21:46

documentation/other/mcmboot.txt · Last modified: 2010/02/06 11:02 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0