root on SD

M. Warner Losh imp at bsdimp.com
Wed Nov 1 03:27:18 UTC 2006


In message: <20061101014328.GB37930 at mail.secure.net>
            David Sharp <daimon at dev-random.org> writes:
: should using an SD card for root work, or is this still
: work in progress?  my board hangs after the at the 
: 'Trying to mount root' message.

It works for me...

: Found SD card 252968960 bytes
: \
: Default: /kernel.gz.tramp
: boot: 
: cmd is ''
: KDB: debugger backends: ddb
: KDB: current backend: ddb
: Copyright (c) 1992-2006 The FreeBSD Project.
: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
:         The Regents of the University of California. All rights reserved.
: FreeBSD is a registered trademark of The FreeBSD Foundation.
: FreeBSD 7.0-CURRENT #4: Tue Oct 31 23:48:21 UTC 2006
:     root at hush.wa.sharp.org:/usr/src/sys/arm/compile/DRCPS0
: CPU: ARM920T rev 0 (ARM9TDMI core)
:   DC enabled IC enabled WB enabled LABT
:   16KB/32B 64-way Instruction cache
:   16KB/32B 64-way write-back-locking-A Data cache
: real memory  = 67108864 (64 MB)
: avail memory = 62189568 (59 MB)
: atmelarm0: <AT91RM9200 device bus> on motherboard
: at91_st0: <ST> mem 0xdffffd00-0xdffffdff irq 1 on atmelarm0
: at91_st0: watchdog registered, timeout intervall max. 64 sec
: at91_pio0: <PIOA> mem 0xdffff400-0xdffff5ff irq 1 on atmelarm0
: at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x738001f ODSR: 0
: at91_pio0: [FAST]
: at91_pio1: <PIOB> mem 0xdffff600-0xdffff7ff irq 1 on atmelarm0
: at91_pio1: ABSR: 0xff338 OSR: 0 PSR:0x3fc00cc7 ODSR: 0
: at91_pio1: [FAST]
: at91_pio2: <PIOC> mem 0xdffff800-0xdffff9ff irq 1 on atmelarm0
: at91_pio2: ABSR: 0 OSR: 0 PSR:0xc07f ODSR: 0
: at91_pio2: [FAST]
: at91_pio3: <PIOD> mem 0xdffffa00-0xdffffbff irq 1 on atmelarm0
: at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0
: at91_pio3: [FAST]
: at91_pmc0: <PMC> mem 0xdffffc00-0xdffffcff irq 1 on atmelarm0
: at91_pmc0: Primary: 10000000 Hz PLLA: 180 MHz CPU: 180 MHz MCK: 60 MHz
: at91_rtc0: <RTC> mem 0xdffffe00-0xdffffeff irq 1 on atmelarm0
: at91_rtc0: [FAST]
: at91_mci0: <MCI mmc/sd host bridge> mem 0xdffb4000-0xdffb7fff irq 10 on atmelarm0
: mmc0: <mmc/sd bus> on at91_mci0
: ate0: <EMAC> mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0
: ate0: Cannot find my PHY.
: device_attach: ate0 attach returned 6
: uart0: <DBGU> mem 0xdffff200-0xdffff3ff irq 1 on atmelarm0
: uart0: [FAST]uart0: console (115200,n,8,1)
: uart1: <USART0> mem 0xdffc0000-0xdffc3fff irq 6 on atmelarm0
: uart1: [FAST]
: uart2: <USART1> mem 0xdffc4000-0xdffc7fff irq 7 on atmelarm0
: uart2: [FAST]
: uart3: <USART2> mem 0xdffc8000-0xdffcbfff irq 8 on atmelarm0
: uart3: [FAST]
: uart4: <USART3> mem 0xdffcc000-0xdffcffff irq 9 on atmelarm0
: uart4: [FAST]
: at91_ssc0: <SSC> mem 0xdffd0000-0xdffd3fff irq 14 on atmelarm0
: at91_ssc1: <SSC> mem 0xdffd4000-0xdffd7fff irq 15 on atmelarm0
: at91_ssc2: <SSC> mem 0xdffd8000-0xdffdbfff irq 16 on atmelarm0
: at91_spi0: <SPI> mem 0xdffe0000-0xdffe3fff irq 13 on atmelarm0
: spibus0: <spibus bus> on at91_spi0
: Cannot get 100 Hz clock; using 128Hz
: at91_st0: [FAST]
: Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000
: Timecounters tick every 7.812 msec
: at91_mci0: Setting controller bus width to 1
: at91_mci0: Setting controller bus width to 1
: at91_mci0: Setting controller bus width to 1
: at91_mci0: Setting controller bus width to 1
: at91_mci0: Setting controller bus width to 1
: at91_mci0: Setting controller bus width to 1
: SD CARD: 252968960 bytes
: at91_mci0: Setting controller bus width to 1
: mmcsd0: <mmc or sd flash card> on mmc0
: mmc0: setting transfer rate to 30.000MHz
: at91_mci0: Setting controller bus width to 1
: Trying to mount root from ufs:mmcsd0s1a

What does your /etc/fstab look like?  What happens if you have boot
verbose set?

I'll check to make sure I've merged everything from p4...

Warner


More information about the freebsd-arm mailing list