* Re: Multi-platform kernel - Support for Freescale iMX6 (Wandboard/Utilite)
2014-01-25 15:28 Multi-platform kernel - Support for Freescale iMX6 (Wandboard/Utilite) Michael Tremer
@ 2014-02-02 19:58 ` Stefan Schantl
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Schantl @ 2014-02-02 19:58 UTC (permalink / raw)
To: sig-arm
[-- Attachment #1: Type: text/plain, Size: 16983 bytes --]
Hello Michael,
hello list,
I've put the latest IPFire 2.15 image on a brand new SD-Card and booted
up my Wandboard Quad.
The kernel starts up fine but unfortunately crashes while switching the
root device. I've got a couple of messages displayed that the mmc device
got unplugged.
Best,
- Stefan
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.28-ipfire-multi
(root(a)odroid-x.warriors.ipfire-at-home.com) (gcc version 4.4.7 (GCC) )
#1 SMP Sat Feb 1 18:44:37 GMT 2014
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Wandboard
i.MX6 Quad Board
cma: CMA: reserved 16 MiB at 3e800000
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 9 pages/cpu @c2222000 s13952 r8192 d14720 u36864
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 522768
Kernel command line: console=ttymxc0,115200n8 smsc95xx.macaddr=
root=/dev/mmcblk0p3 ro
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
allocated 4194304 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 2048MB = 2048MB total
Memory: 2044276k/2044276k available, 52876k reserved, 1318912K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0764900 (7539 kB)
.init : 0xc0b00000 - 0xc0b92680 ( 586 kB)
.data : 0xc0c00000 - 0xc0ca4948 ( 659 kB)
.bss : 0xc0ca4948 - 0xc0d657b4 ( 772 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
Hierarchical RCU autobalancing is disabled.
RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
Experimental no-CBs for all CPUs
Experimental no-CBs CPUs: 0-7.
NR_IRQS:16 nr_irqs:16 16
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size:
1048576 B
sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 65075ms
CPU identified as i.MX6Q, silicon rev 1.2
Console: colour dummy device 80x30
Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
pid_max: default: 32768 minimum: 501
Security Framework initialized
Mount-cache hash table entries: 512
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio
Initializing cgroup subsys perf_event
CPU: Testing write buffer coherency: ok
ftrace: allocating 23234 entries in 69 pages
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0763b20 - 0xc0763b78
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
CPU2: Booted secondary processor
CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
CPU3: Booted secondary processor
CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
Brought up 4 CPUs
SMP: Total of 4 processors activated (6324.22 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered
syscon 21bc000.ocotp: regmap [mem 0x021bc000-0x021bffff] registered
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
bio: create slab <bio-0> at 0
mxs-dma 110000.dma-apbh: initialized
2P5V: 2500 mV
3P3V: 3300 mV
vgaarb: loaded
Error: Driver '88PM80X' is already registered, aborting...
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 2168K (e2001000 - e221f000)
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters
available
audit: initializing netlink socket (disabled)
type=2000 audit(2.289:1): initialized
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 1452
alg: No test for crc32 (crc32-table)
alg: No test for stdrng (krng)
NET: Registered protocol family 38
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-sdma 20ec000.sdma: initialized
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
Serial: IMX driver
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
console [ttymxc0] enabled
21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
Non-volatile memory driver v1.3
brd: module loaded
loop: module loaded
libphy: Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ehci-omap: OMAP-EHCI Host Controller driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised:
dm-devel(a)redhat.com
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
mmc1: no vqmmc regulator found
mmc1: no vmmc regulator found
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
mmc2: no vqmmc regulator found
mmc2: no vmmc regulator found
mmc1: queuing unknown CIS tuple 0x80 (50 bytes)
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
mmc1: queuing unknown CIS tuple 0x80 (4 bytes)
ledtrig-cpu: registered to indicate activity on CPUs
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
mmc1: queuing unknown CIS tuple 0x02 (1 bytes)
ip_tables: (C) 2000-2006 Netfilter Core Team
mmc1: new SDIO card at address 0001
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 17
Bridge firewalling registered
Key type dns_resolver registered
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
ThumbEE CPU extension supported.
Registering SWP/SWPB emulation handler
registered taskstats version 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
omap_vout:Could not register Video driver
Freeing unused kernel memory: 584K (c0b00000 - c0b92000)
mmc2: host does not support reading read-only switch. assuming
write-enable.
mmc2: new high speed SDHC card at address e624
mmcblk0: mmc2:e624 SU08G 7.40 GiB
mmcblk0: p1 p3
udevd[88]: starting version 208
imx-sdma 20ec000.sdma: firmware not found
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131944
Buffer I/O error on device mmcblk0p3, logical block 109
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131952
Buffer I/O error on device mmcblk0p3, logical block 110
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131952
Buffer I/O error on device mmcblk0p3, logical block 110
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131584
Buffer I/O error on device mmcblk0p3, logical block 64
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131584
Buffer I/O error on device mmcblk0p3, logical block 64
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 135168
Buffer I/O error on device mmcblk0p3, logical block 512
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 135168
Buffer I/O error on device mmcblk0p3, logical block 512
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131856
Buffer I/O error on device mmcblk0p3, logical block 98
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131880
Buffer I/O error on device mmcblk0p3, logical block 101
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
end_request: I/O error, dev mmcblk0, sector 131880
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
EXT4-fs (mmcblk0p3): mounted filesystem without journal. Opts: (null)
dracut: Mounted root filesystem /dev/mmcblk0p3
dracut: Switching root
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
mmc2: Card removed during transfer!
mmc2: Resetting controller.
mmcblk0: unknown error -123 sending read/write command, card status 0x900
EXT4-fs warning (device mmcblk0p3): __ext4_read_dirblock:1372: error
reading directory block (ino 9179, block 3)
/sbin/init: error while loading shared libraries: libgcc_s.so.1: cannot
open shared object file: No such file or directory
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
> Hello Brad,
> hello list,
>
> I got a couple of minutes to play around with our multi platform kernel
> on the Utilite device. Since I have a workaround for the u-boot issues,
> I am able to load and execute a kernel and debug that.
>
> As expected there are some issues when the device is booting up. The
> kernel crashes right at the start. Please see the console output below.
>
> My assumption is that the kernel tries to access the part of the memory
> where the device tree file has been copied to by the bootloader. Some
> grsec mechanism tries to intervene and kill the kernel. I hope that Brad
> can help us with that.
>
> It appears that other systems boot fine with device tree. I currently
> cannot confirm that Wandboard which booted with an earlier development
> version of kernel still boots. Pandaboard (without device tree) does
> boot perfectly.
>
> Kernel sources:
> http://git.ipfire.org/?p=people/arne_f/kernel.git;a=shortlog;h=refs/heads/linux-3.10.x-grsecurity-2.9.1
>
> Kernel config:
> http://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=config/kernel/kernel.config.armv5tel-ipfire-multi;h=128742d4681bac3ce80a55103f5516b0f636d871;hb=refs/heads/next
>
> Thanks for your help in advance.
>
> -Michael
>
>
>
>
> mmc2 is current device
> reading boot.scr
> 324 bytes read in 12 ms (26.4 KiB/s)
> ## Executing script at 13800000
> reading zImage-ipfire-multi
> 3163176 bytes read in 210 ms (14.4 MiB/s)
> reading uInit-ipfire-multi
> 2237636 bytes read in 143 ms (14.9 MiB/s)
> reading board.dtb
> 22996 bytes read in 37 ms (606.4 KiB/s)
> Kernel image @ 0x10800000 [ 0x000000 - 0x304428 ]
> ## Loading init Ramdisk from Legacy Image at 11800000 ...
> Image Name:
> Image Type: ARM Linux RAMDisk Image (lzma compressed)
> Data Size: 2237572 Bytes = 2.1 MiB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> ## Flattened Device Tree blob at 14800000
> Booting using the fdt blob at 0x14800000
> Loading Ramdisk to 4fddd000, end 4ffff484 ... OK
> Loading Device Tree to 4fdd4000, end 4fddc9d3 ... OK
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
> Booting Linux on physical CPU 0x0
> Initializing cgroup subsys cpuset
> Initializing cgroup subsys cpu
> Initializing cgroup subsys cpuacct
> Linux version 3.10.27-ipfire-multi (root(a)hokey.ipfire.org) (gcc version 4.4.7 (GCC) ) #1 SMP Fri Jan 17 00:38:17 GMT 2014
> CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
> CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
> Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: CompuLab CM-FX6
> bootconsole [earlycon0] enabled
> cma: CMA: reserved 16 MiB at 3e800000
> Memory policy: ECC disabled, Data cache writealloc
> Unable to handle kernel paging request at virtual address ffdd4000
> pgd = c0004000
> [ffdd4000] *pgd=00000000
> Internal error: Oops: 5 [#1] SMP ARM
> Modules linked in:
> CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.27-ipfire-multi #1
> task: c0b0d608 ti: c0b00000 task.ti: c0b00000
> PC is at __unflatten_device_tree+0x70/0x2d0
> LR is at unflatten_device_tree+0x24/0x3c
> pc : [<c05b6080>] lr : [<c0a3d928>] psr: 600001d3
> sp : c0b01f30 ip : c05b6028 fp : c0b01f64
> r10: c082edf0 r9 : c2233200 r8 : c0a05d98
> r7 : c0b0e880 r6 : c0be9620 r5 : ffdd4000 r4 : c0b65c18
> r3 : 0000feed r2 : c0a05d98 r1 : c0c18d58 r0 : ffdd4000
> Flags: nZCv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel
> Control: 10c5387d Table: 1000404a DAC: 00000011
> Process swapper (pid: 0, stack limit = 0xc0b00240)
> Stack: (0xc0b01f30 to 0xc0b02000)
> 1f20: ffffffff c0b1c498 c0c18d58 c0134078
> 1f40: c0b01f6c c0a05d98 80000200 c0be9620 c0b0e880 c0b1c498 c0b01f7c c0b01f68
> 1f60: c0a3d928 c05b601c c0a460c0 80000200 c0b01fb4 c0b01f80 c0a04b5c c0a3d910
> 1f80: c0393128 10c5387d c082cfdc ffffffff c0b67200 00000001 c0b0e69c 00000000
> 1fa0: 412fc09a 00000000 c0b01ff4 c0b01fb8 c0a00a5c c0a04574 00000000 00000000
> 1fc0: 00000000 00000000 d278bdb0 c0a4eb38 00000000 10c5387d c0b084a4 c0a4eb34
> 1fe0: c0b0e69c 1000406a 00000000 c0b01ff8 10008074 c0a009a8 00000000 00000000
> [<c05b6080>] (__unflatten_device_tree+0x70/0x2d0) from [<c0a3d928>] (unflatten_device_tree+0x24/0x3c)
> [<c0a3d928>] (unflatten_device_tree+0x24/0x3c) from [<c0a04b5c>] (setup_arch+0x5f4/0x70c)
> [<c0a04b5c>] (setup_arch+0x5f4/0x70c) from [<c0a00a5c>] (start_kernel+0xc0/0x374)
> [<c0a00a5c>] (start_kernel+0xc0/0x374) from [<10008074>] (0x10008074)
> Code: e1d43db2 e3130004 1a000059 e30f3eed (e5952000)
> ---[ end trace a2123bb2ee168675 ]---
> Kernel panic - not syncing: grsec: halting the system due to suspicious kernel crash caused by root
>
> _______________________________________________
> SIG-ARM mailing list
> SIG-ARM(a)lists.ipfire.org
> http://lists.ipfire.org/mailman/listinfo/sig-arm
^ permalink raw reply [flat|nested] 2+ messages in thread