[meta-freescale] i.MX28 SDCARD boot fail after dd Yocto fsl-image-gui-sdk image

Vladan Jovanovic vladan.jovanovic at gmail.com
Thu May 2 04:21:05 PDT 2013


Looking at meta-fsl-arm/classes/image_types_fsl.bbclass,
generate_mxs_sdcard puts rootfs in second partition. Mainline u-boot seems
to have default setting of /dev/mmcblk0p3 when it should be changed to
/dev/mmcblk0p2 for Yocto.


On Thu, May 2, 2013 at 1:51 PM, <ttom at ms5.url.com.tw> wrote:

> Hi,
>
> Afer use fsl-image-gui-sdk's sd card image, Then the SD Card can't replace
> fsl-image-gui and fsl-image-test by dd.
>
> DD command is "sudo dd if= <fsl-image-test-xxxxxx file>.sdcard of=/dev/sdX
> bs=4M"
>
> Error message list below
>
> Any way to solve this problem?
>
> ********************
>
> U-Boot 2013.04 (Apr 29 2013 - 12:21:11)
>
> CPU:   Freescale i.MX28 rev1.2 at 454 MHz
> BOOT:  SSP SD/MMC #0, 3V3
> DRAM:  128 MiB
> NAND:  No NAND device found!!!
> 0 MiB
> MMC:   MXS MMC: 0
> MMC0: Command 8 timeout (status 0xe0384020)
> *** Warning - bad CRC, using default environment
>
>
> In:
> serial
> Out:
> serial
> Err:
> serial
> Net:   FEC0
> [PRIME]
> Warning: FEC0 using MAC address from net
> device
> ,
> FEC1
>
> Warning: FEC1 using MAC address from net
> device
>
>
> Hit any key to stop autoboot:
> 0
> mmc0 is current
> device
> MMC0: Command 8 timeout (status
> 0xe02c4020)
> reading
> boot.scr
> ** Unable to read file boot.scr
> **
> reading
> uImage
> 2601492 bytes read in 801 ms (3.1
> MiB/s)
> Booting from mmc
> ...
> reading
> imx28-evk.dtb
> ** Unable to read file imx28-evk.dtb
> **
> ## Booting kernel from Legacy Image at 42000000
> ...
>    Image Name:
> Linux-2.6.35.3-1.1.0+yocto+g9145
>    Created:      2013-04-29   3:46:03
> UTC
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
>    Data Size:    2601428 Bytes = 2.5
> MiB
>    Load Address:
> 40008000
>    Entry Point:
> 40008000
>    Verifying Checksum ...
> OK
>    Loading Kernel Image ...
> OK
> OK
>
>
>
> Starting kernel
> ...
>
>
> Uncompressing Linux... done, booting the
> kernel.
> Linux version 2.6.35.3-1.1.0+yocto+g914558e (thomas at thomas-Linux) (gcc
> version 3
> CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ),
> cr=00053177
> CPU: VIVT data cache, VIVT instruction
> cache
> Machine: Freescale MX28EVK
> board
> Memory policy: ECC disabled, Data cache
> writeback
> Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
> 32512
> Kernel command line: console=ttyAMA0,115200 root=/dev/mmcblk0p3 rw
> rootwait
> PID hash table entries: 512 (order: -1, 2048
> bytes)
> Dentry cache hash table entries: 16384 (order: 4, 65536
> bytes)
> Inode-cache hash table entries: 8192 (order: 3, 32768
> bytes)
> Memory: 128MB = 128MB
> total
> Memory: 124228k/124228k available, 6844k reserved, 0K
> highmem
> Virtual kernel memory
> layout:
>     vector  : 0xffff0000 - 0xffff1000   (   4
> kB)
>     fixmap  : 0xfff00000 - 0xfffe0000   ( 896
> kB)
>     DMA     : 0xfde00000 - 0xffe00000   (  32
> MB)
>     vmalloc : 0xc8800000 - 0xf0000000   ( 632
> MB)
>     lowmem  : 0xc0000000 - 0xc8000000   ( 128
> MB)
>     modules : 0xbf000000 - 0xc0000000   (  16
> MB)
>       .init : 0xc0008000 - 0xc0030000   ( 160
> kB)
>       .text : 0xc0030000 - 0xc050b000   (4972
> kB)
>       .data : 0xc050c000 - 0xc054a4a0   ( 250
> kB)
> SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1,
> Nodes=1
> Hierarchical RCU
> implementation.
>         RCU-based detection of stalled CPUs is
> disabled.
>         Verbose stalled-CPUs detection is
> disabled.
> NR_IRQS:288
>
> Console: colour dummy device
> 80x30
> console [ttyAMA0]
> enabled
> Calibrating delay loop... 226.09 BogoMIPS
> (lpj=1130496)
> pid_max: default: 32768 minimum:
> 301
> Security Framework
> initialized
> SELinux:
> Initializing.
> Mount-cache hash table entries:
> 512
> CPU: Testing write buffer coherency:
> ok
> devtmpfs:
> initialized
> regulator: core version
> 0.5
> NET: Registered protocol family
> 16
> regulator: vddd: 800 <--> 1575 mV at 1500 mV fast
> normal
> regulator: vdddbo: 800 <--> 1575 mV fast
> normal
> regulator: vdda: 1500 <--> 2275 mV at 1800 mV fast
> normal
> vddio = 3380000,
> val=10
> regulator: vddio: 2880 <--> 3680 mV at 3380 mV fast
> normal
> regulator: overall_current: fast
> normal
> regulator:
> vbus5v:
> regulator: mxs-duart-1: fast
> normal
> regulator: mxs-bl-1: fast
> normal
> regulator: mxs-i2c-1: fast
> normal
> regulator: mmc_ssp-1: fast
> normal
> regulator: mmc_ssp-2: fast
> normal
> regulator: charger-1: fast
> normal
> regulator: power-test-1: fast
> normal
> regulator: cpufreq-1: fast
> normal
> i.MX IRAM pool: 124 KB at 0xc8820000
>
> usb DR wakeup device is
> registered
> IMX usb wakeup
> probe
> audit: cannot initialize inotify
> handle
> bio: create slab <bio-0> at
> 0
> SCSI subsystem
> initialized
> Freescale USB OTG Driver loaded, $Revision: 1.55
> $
> usbcore: registered new interface driver
> usbfs
> usbcore: registered new interface driver
> hub
> usbcore: registered new device driver
> usb
> Advanced Linux Sound Architecture Driver Version
> 1.0.23.
> Switching to clocksource mxs clock
> source
> NET: Registered protocol family
> 2
> IP route cache hash table entries: 1024 (order: 0, 4096
> bytes)
> TCP established hash table entries: 4096 (order: 3, 32768
> bytes)
> TCP bind hash table entries: 4096 (order: 2, 16384
> bytes)
> TCP: Hash tables configured (established 4096 bind
> 4096)
> TCP reno
> registered
> UDP hash table entries: 256 (order: 0, 4096
> bytes)
> UDP-Lite hash table entries: 256 (order: 0, 4096
> bytes)
> NET: Registered protocol family
> 1
> RPC: Registered udp transport
> module.
> RPC: Registered tcp transport
> module.
> RPC: Registered tcp NFSv4.1 backchannel transport
> module.
> Bus freq driver module
> loaded
> IMX usb wakeup
> probe
> usb h1 wakeup device is
> registered
> mxs_cpu_init: cpufreq init
> finished
> audit: initializing netlink socket
> (disabled)
> type=2000 audit(0.490:1):
> initialized
> VFS: Disk quotas
> dquot_6.5.2
> Dquot-cache hash table entries: 1024 (order 0, 4096
> bytes)
> JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat,
> Inc.
> msgmni has been set to
> 242
> alg: No test for stdrng
> (krng)
> cryptodev: driver
> loaded.
> Block layer SCSI generic (bsg) driver version 0.4 loaded (major
> 253)
> io scheduler noop
> registered
> io scheduler deadline
> registered
> io scheduler cfq registered
> (default)
> Console: switching to colour frame buffer device
> 100x30
> mxs-duart.0: ttyAMA0 at MMIO 0x80074000 (irq = 47) is a
> DebugUART
> mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a
> mxs-auart.0
> Found APPUART
> 3.1.0
> mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 113) is a
> mxs-auart.1
> Found APPUART
> 3.1.0
> mxs-auart.2: ttySP2 at MMIO 0x8006e000 (irq = 114) is a
> mxs-auart.2
> Found APPUART
> 3.1.0
> mxs-auart.3: ttySP3 at MMIO 0x80070000 (irq = 115) is a
> mxs-auart.3
> Found APPUART
> 3.1.0
> mxs-auart.4: ttySP4 at MMIO 0x80072000 (irq = 116) is a
> mxs-auart.4
> Found APPUART
> 3.1.0
> brd: module
> loaded
> loop: module
> loaded
> i.MX GPMI
> NFC
> NFC: Version 1, 8-chip GPMI and
> BCH
> gpmi-nfc: probe of gpmi-nfc.0 failed with error
> 1
> mxs-spi mxs-spi.0: Max possible speed 120000 = 120000000/2
> kHz
> mxs-spi mxs-spi.0: at 0x80014000 mapped to 0xF0014000, irq=84, bus 1, DMA
> ver_m4
> FEC Ethernet
> Driver
> fec_enet_mii_bus:
> probed
> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
> Driver
> fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host
> Controller
> fsl-ehci fsl-ehci: new USB bus registered, assigned bus number
> 1
> fsl-ehci fsl-ehci: irq 93, io base
> 0x80080000
> fsl-ehci fsl-ehci: USB 2.0 started, EHCI
> 1.00
> hub 1-0:1.0: USB hub
> found
> hub 1-0:1.0: 1 port
> detected
> fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host
> Controller
> fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number
> 2
> fsl-ehci fsl-ehci.0: irq 92, io base
> 0x80090000
> fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI
> 1.00
> hub 2-0:1.0: USB hub
> found
> hub 2-0:1.0: 1 port
> detected
> Initializing USB Mass Storage
> driver...
> usbcore: registered new interface driver
> usb-storage
> USB Mass Storage support
> registered.
> ARC USBOTG Device Controller driver (1 August
> 2005)
> mice: PS/2 mouse device common for all
> mice
> input: mxs-kbd as
> /devices/platform/mxs-kbd.0/input/input0
> input: MXS touchscreen as
> /devices/virtual/input/input1
> MXS RTC driver v1.0 hardware
> v2.3.0
> mxs-rtc mxs-rtc.0: rtc core: registered mxs-rtc as
> rtc0
> IR NEC protocol handler
> initialized
> IR RC5(x) protocol handler
> initialized
> IR RC6 protocol handler
> initialized
> IR JVC protocol handler
> initialized
> IR Sony protocol handler
> initialized
> Linux video capture interface:
> v2.00
> mxs-pxp mxs-pxp.0:
> initialized
> mxs watchdog: initialized, heartbeat 19
> sec
> mxs-mmc: MXS SSP Controller MMC Interface
> driver
> mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 82 ERRIRQ
> 96
> dcp dcp.0: DCP crypto
> enabled.!
> usbcore: registered new interface driver
> hiddev
> usbcore: registered new interface driver
> usbhid
> usbhid: USB HID core
> driver
> sgtl5000-i2c 0-000a: SGTL5000 revision
> 17
> mmc0: new high speed SD card at address
> 0002
> mmcblk0: mmc0:0002 N/A   3.67 GiB
> (ro)
>  mmcblk0: p1 p2
> p3
> mxs-spdif mxs-spdif.0: MXS SPDIF Audio
> Transmitter
> No device for codec mxs
> spdif
> No device for DAI mxs
> spdif
> No device for DAI
> mxs-saif
> No device for DAI
> mxs-spdif
> asoc: SGTL5000 <-> mxs-saif mapping
> ok
> Failed to add route LINE_OUT->Ext
> Spk
> asoc: mxs spdif <-> mxs-spdif mapping
> ok
> ALSA device
> list:
>   #0: mxs-evk
> (SGTL5000)
>   #1: mxs-evk (mxs
> spdif)
> TCP cubic
> registered
> NET: Registered protocol family
> 17
> can: controller area network core (rev 20090105 abi
> 8)
> NET: Registered protocol family
> 29
> can: raw protocol (rev
> 20090105)
> mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 00:00:06 UTC
> (6)
> VFS: Cannot open root device "mmcblk0p3" or
> unknown-block(179,3)
> Please append a correct "root=" boot option; here are the available
> partitions:
> b300         3850240 mmcblk0 driver:
> mmcblk
>   b301            1024
> mmcblk0p1
>   b302           10240
> mmcblk0p2
>   b303          372736
> mmcblk0p3
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(179,3)
> Backtrace:
>
> [<c0034110>] (dump_backtrace+0x0/0x10c) from [<c03d2364>]
> (dump_stack+0x18/0x1c)
>  r6:c0029a14 r5:c7471000 r4:c054b3f8
> r3:00000002
> [<c03d234c>] (dump_stack+0x0/0x1c) from [<c03d254c>]
> (panic+0x74/0xf0)
> [<c03d24d8>] (panic+0x0/0xf0) from [<c0008f14>]
> (mount_block_root+0x1d4/0x218)
>  r3:00000000 r2:00000001 r1:c7c27f48
> r0:c048cdf4
> [<c0008d40>] (mount_block_root+0x0/0x218) from [<c0009130>]
> (mount_root+0xe0/0x)
> [<c0009050>] (mount_root+0x0/0x124) from [<c00092e0>]
> (prepare_namespace+0x16c/)
>  r5:c0029a29
> r4:c054a758
> [<c0009174>] (prepare_namespace+0x0/0x1cc) from [<c0008b14>]
> (kernel_init+0x12c)
>  r5:c0028600
> r4:c0028600
> [<c00089e8>] (kernel_init+0x0/0x16c) from [<c004f490>]
> (do_exit+0x0/0x6c0)
>  r5:c00089e8 r4:00000000
>
> **************************
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130502/3363dbdc/attachment.html>


More information about the meta-freescale mailing list