[meta-freescale] i.mx23 olinuxino kernel (or cross-toolchain?) broken in Yocto dora branch
Fabio Estevam
festevam at gmail.com
Wed Jan 8 07:17:52 PST 2014
Hi Leon,
On Fri, Dec 20, 2013 at 1:54 PM, Leon Woestenberg
<sidebranch.openembedded at gmail.com> wrote:
> Hello all,
>
> I see a problem in the "dora" release (repo) set of the meta-fsl community
> bsp for i.mx23 olinuxino (maxi). I had no such issues with the "dylan"
> release (repo) set.
>
> Once the kernel 3.12 tries to boot, the i.MX23 Olinuxino Maxi board moves
> into a quick reset loop where u-boot reports the DRAM size then resets (just
> before reporting MMC).
>
> Reverting to the 3.8.x (dylan) recipe of the kernel, but using the "dora"
> release of anything else, this kernel does not boot after "Starting kernel".
>
> I have seen reports of illegal instruction during the kernel boot.
>
> I am actually suspecting the cross toolchain at this point rather than the
> kernel.
>
> I lack any debug reports as I am writing this just before leaving office to
> go home, in the hope someone else can verify my findings.
Daiane kindly built a dora image for mx23evk (I don't have olinuxino
handy) and it boots fine here, but I have a different issue:
U-Boot 2013.10 (Jan 08 2014 - 11:52:15)
CPU: Freescale i.MX23 rev1.3 at 454 MHz
BOOT: SSP SD/MMC #0
DRAM: 128 MiB
MMC: MXS MMC: 0
*** Warning - bad CRC, using default environment
Video: MXSFB: 'videomode' variable not set!
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading uImage
3475064 bytes read in 1188 ms (2.8 MiB/s)
Booting from mmc ...
reading imx23-evk.dtb
9988 bytes read in 28 ms (347.7 KiB/s)
## Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-3.12.1-fslc+g9ab5833
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3475000 Bytes = 3.3 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41000000
Booting using the fdt blob at 0x41000000
Loading Kernel Image ... OK
Loading Device Tree to 47b68000, end 47b6d703 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.1-fslc+g9ab5833 (daiane at b19406) (gcc version 4
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Freescale MXS (Device Tree), model: Freescale i.MX23 Evt
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa2
[ 0.000000] Kernel command line: console=ttyAMA0,115200 root=/dev/mmcblk0p3 t
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 117436K/131072K available (4644K kernel code, 285K rwdat)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc06495a4 (6406 kB)
[ 0.000000] .init : 0xc064a000 - 0xc0681ab0 ( 223 kB)
[ 0.000000] .data : 0xc0682000 - 0xc06c96d0 ( 286 kB)
[ 0.000000] .bss : 0xc06c96d0 - 0xc0c25050 (5487 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] of_irq_init: children remain, but no parents
[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps eves
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingr
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3695 kB
[ 0.000000] per task-struct memory footprint: 1152 bytes
[ 0.060000] Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 512
[ 0.070000] CPU: Testing write buffer coherency: ok
[ 0.080000] Setting up static identity map for 0xc046b3f8 - 0xc046b450
[ 0.090000] devtmpfs: initialized
[ 0.100000] pinctrl core: initialized pinctrl subsystem
[ 0.110000] regulator-dummy: no parameters
[ 0.120000] NET: Registered protocol family 16
[ 0.120000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.170000] Serial: AMBA PL011 UART driver
[ 0.180000] 80070000.serial: ttyAMA0 at MMIO 0x80070000 (irq = 17, base_baud2
[ 0.360000] console [ttyAMA0] enabled
[ 0.390000] bio: create slab <bio-0> at 0
[ 0.410000] mxs-dma 80004000.dma-apbh: initialized
[ 0.420000] mxs-dma 80024000.dma-apbx: initialized
[ 0.430000] vddio-sd0: 3300 mV
[ 0.430000] lcd-3v3: 3300 mV
[ 0.440000] SCSI subsystem initialized
[ 0.440000] usbcore: registered new interface driver usbfs
[ 0.450000] usbcore: registered new interface driver hub
[ 0.450000] usbcore: registered new device driver usb
[ 0.460000] pps_core: LinuxPPS API ver. 1 registered
[ 0.460000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[ 0.470000] PTP clock support registered
[ 0.470000] Advanced Linux Sound Architecture Driver Initialized.
[ 0.480000] Switched to clocksource mxs_timer
[ 0.800000] NET: Registered protocol family 2
[ 0.810000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.810000] TCP bind hash table entries: 1024 (order: 3, 36864 bytes)
[ 0.820000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.830000] TCP: reno registered
[ 0.830000] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.840000] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.850000] NET: Registered protocol family 1
[ 0.860000] RPC: Registered named UNIX socket transport module.
[ 0.860000] RPC: Registered udp transport module.
[ 0.870000] RPC: Registered tcp transport module.
[ 0.870000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.880000] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.970000] NFS: Registering the id_resolver key type
[ 0.980000] Key type id_resolver registered
[ 0.980000] Key type id_legacy registered
[ 0.980000] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 0.990000] msgmni has been set to 229
[ 1.020000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[ 1.020000] io scheduler noop registered (default)
[ 1.060000] Console: switching to colour frame buffer device 60x17
[ 1.070000] mxsfb 80030000.lcdif: initialized
[ 1.530000] of_dma_request_slave_channel: dma-names property of node '/apb at 8y
[ 1.540000] uart-pl011 80070000.serial: no DMA platform data
[ 1.550000] 8006c000.serial: ttyAPP0 at MMIO 0x8006c000 (irq = 146, base_baul
[ 1.560000] mxs-auart 8006c000.serial: Found APPUART 3.0.0
[ 1.580000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd7 (Samsung NAND 8
[ 1.590000] Scanning device for bad blocks
[ 2.730000] Bad eraseblock 1192 at 0x00002547f000
[ 4.470000] Bad eraseblock 3012 at 0x00005e27f000
[ 5.600000] Bad eraseblock 4194 at 0x00008317f000
[ 5.780000] Bad eraseblock 4375 at 0x000088bff000
[ 7.480000] Bad eraseblock 6156 at 0x0000c067f000
[ 9.150000] Bad eraseblock 7899 at 0x0000f6dff000
[ 9.440000] gpmi-nand 8000c000.gpmi-nand: driver registered.
[ 9.450000] usbcore: registered new interface driver asix
[ 9.460000] usbcore: registered new interface driver ax88179_178a
[ 9.470000] usbcore: registered new interface driver cdc_ether
[ 9.470000] usbcore: registered new interface driver r815x
[ 9.480000] usbcore: registered new interface driver smsc95xx
[ 9.490000] usbcore: registered new interface driver net1080
[ 9.490000] usbcore: registered new interface driver cdc_subset
[ 9.500000] usbcore: registered new interface driver zaurus
[ 9.500000] usbcore: registered new interface driver cdc_ncm
[ 9.510000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 9.520000] usbcore: registered new interface driver usb-storage
[ 9.530000] ci_hdrc ci_hdrc.0: doesn't support gadget
[ 9.530000] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 9.540000] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 9.570000] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 9.580000] hub 1-0:1.0: USB hub found
[ 9.590000] hub 1-0:1.0: 1 port detected
[ 9.600000] mousedev: PS/2 mouse device common for all mice
[ 9.610000] stmp3xxx-rtc 8005c000.rtc: rtc core: registered 8005c000.rtc as 0
[ 9.620000] i2c /dev entries driver
[ 9.630000] stmp3xxx_rtc_wdt stmp3xxx_rtc_wdt: initialized watchdog with heas
[ 9.690000] mxs-mmc 80010000.ssp: initialized
[ 9.700000] usbcore: registered new interface driver usbhid
[ 9.710000] usbhid: USB HID core driver
[ 9.730000] input: mxs-lradc as /devices/soc0/80000000.apb/80040000.apbx/8000
[ 9.760000] TCP: cubic registered
[ 9.760000] NET: Registered protocol family 17
[ 9.770000] Key type dns_resolver registered
[ 9.780000] registered taskstats version 1
[ 9.790000] stmp3xxx-rtc 8005c000.rtc: setting system clock to 1970-01-01 00)
[ 9.800000] mmc0: new SDHC card at address a5d5
[ 9.820000] mmcblk0: mmc0:a5d5 SD04G 3.69 GiB
[ 9.840000] mmcblk0: p1 p2 p3
[ 9.850000] ALSA device list:
[ 9.850000] No soundcards found.
[ 9.890000] JBD: no valid journal superblock found
[ 9.890000] EXT3-fs (mmcblk0p3): error loading journal
[ 9.910000] EXT2-fs (mmcblk0p3): warning: mounting ext3 filesystem as ext2
[ 9.910000] EXT2-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fd
[ 9.950000] VFS: Mounted root (ext2 filesystem) on device 179:3.
[ 9.960000] devtmpfs: mounted
[ 9.970000] Freeing unused kernel memory: 220K (c064a000 - c0681000)
[ 10.040000] EXT2-fs (mmcblk0p3): error: ext2_check_page: bad entry in direct0
[ 10.260000] EXT2-fs (mmcblk0p3): error: ext2_check_page: bad entry in direct0
INIT: version 2.88 booting
INIT: No inittab file found
Enter runlevel:
It keeps asking for the runlevel.
Daiane/Otavio,
Any ideas?
(Also suggest that we bump 3.12 to the latest 3.12.6)
Regards,
Fabio Estevam
More information about the meta-freescale
mailing list