[meta-ti] Stumped. Can't get 2.6.37 TI kernel to boot when built with toolchain from denzil or Linaro gcc-linaro-arm-linux-gnueabihf-4.8-2013.07-1_linux/

Brian Hutchinson b.hutchman at gmail.com
Fri Aug 16 13:58:39 PDT 2013


On Fri, Aug 16, 2013 at 11:37 AM, Khem Raj <raj.khem at gmail.com> wrote:

>
> On Fri, Aug 16, 2013 at 8:12 AM, Brian Hutchinson <b.hutchman at gmail.com>wrote:
>
>>  At this point I'm using the toolchains outside of OE (meta-toolchain
>> from denzil branch and Linaro 4.8) to make life a bit simpler.
>
>
>
> ​can you use the the toolchain from OE-Core and see if it happens with
> that too ?​
>
>
OK, that kept me busy for a while.  I built core-image-minimal -c
populate_sdk with OE Core + meta-ti and installed that on my application
development machine (bitbake build server is debian 7.1 64bit, app
development machine (behind firewall, slow network connection etc. is
Ubuntu 12.04 LTS 32 bit for running Code Composer etc.)

So after installing oecore-i686-armv7a-vfp-neon-toolchain-oe-core.0.sh (I
know, I went the long way around doing this ... don't ask :) ) I built my
2.6.37 kernel that I patched memset earlier.  Different result this time.
 Looks a bit different.  Boots but dies in the same place but with a
slightly different message (I still see a bunch of mbox stuff in there
hmmm):

## Booting kernel from Legacy Image at 83000000 ...
   Image Name:   Linux-2.6.37+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2348304 Bytes = 2.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37+ (hutch at Strider) (gcc version 4.8.1 (GCC) ) #1 Fri Aug
16 16:33:18 EDT 2013
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8168evm
reserved size = 0 at 0x0
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8168 2.0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 42164
Kernel command line: mem=166M console=ttyO2,115200n8 noinitrd
ip=192.168.1.1:192.168.1.5:192.168.1.0:255.255.255.0:255.255.255.1:eth0:off
eth=84:7e:40:d6:a7:5e root=/dev/nfs nfsroot=192.168.1.5:
/home/hutch/ione_wcs_yocto_test/trunk/arm/rootfs
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 166MB = 166MB total
Memory: 163444k/163444k available, 6540k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xca800000 - 0xf8000000   ( 728 MB)
    lowmem  : 0xc0000000 - 0xca600000   ( 166 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0037000   ( 188 kB)
      .text : 0xc0037000 - 0xc0466000   (4284 kB)
      .data : 0xc0466000 - 0xc04a20c0   ( 241 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:407
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
GPMC revision 6.0
Trying to install interrupt handler for IRQ400
Trying to install interrupt handler for IRQ401
Trying to install interrupt handler for IRQ402
Trying to install interrupt handler for IRQ403
Trying to install interrupt handler for IRQ404
Trying to install interrupt handler for IRQ405
Trying to install interrupt handler for IRQ406
Trying to install type control for IRQ407
Trying to set irq flags for IRQ407
OMAP clockevent source: GPTIMER1 at 27000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
omap_voltage_early_init: voltage driver support not added
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
omap_voltage_add_dev: VDD specified does not exist!
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
configure pinmux for RS485. etc
omap_mux_init: Add partition: #1: core, flags: 0
_omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
_omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
registered NOR flash on CS1 (second NOR)
registered ti816x_sram_procfs_bootcount device
dsa:  initialize distributed switch architecture (dsa) marvell (mv)
ethernet switch
dsa:  dsa_on_flag=1
pm_dbg_init: only OMAP3 supported
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
USBSS revision 4ea20809
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
i2c i2c-2: Invalid 7-bit I2C address 0x00
i2c i2c-2: Can't create device at 0x00
Switching to clocksource gp timer
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
MUSB controller-0 revision 4ea20800
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.37+ musb-hcd
usb usb1: SerialNumber: musb-hdrc.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.0: USB Host mode controller at ca822000 using DMA, IRQ
18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
MUSB controller-1 revision 4ea20800
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.37+ musb-hcd
usb usb2: SerialNumber: musb-hdrc.1
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb-hdrc musb-hdrc.1: USB Host mode controller at ca826800 using DMA, IRQ
19
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
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.
NetWinder Floating Point Emulator V0.97 (double precision)
omap-iommu omap-iommu.0: ducati registered
omap-iommu omap-iommu.1: sys registered
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 319
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled
brd: module loaded
loop: module loaded
physmap platform flash device: 08000000 at 08000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID
0x000001 Chip ID 0x002801
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.5.
Enabling Spansion 65nm mode, writesize = 512 bytes
number of CFI chips: 1
RedBoot partition parsing not available
Using physmap partition information
Creating 8 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000060000 : "u-boot_env1"
0x000000060000-0x000000080000 : "u-boot_env2"
0x000000080000-0x0000000a0000 : "pad1"
0x0000000a0000-0x0000004a0000 : "kernel_1"
0x0000004a0000-0x0000036a0000 : "rootfs_1"
0x0000036a0000-0x0000068a0000 : "appfs_1"
0x0000068a0000-0x000007b60000 : "overlay_1"
physmap platform flash device: 08000000 at 10000000
physmap-flash.1: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID
0x000001 Chip ID 0x002801
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.5.
Enabling Spansion 65nm mode, writesize = 512 bytes
number of CFI chips: 1
RedBoot partition parsing not available
Using physmap partition information
Creating 8 MTD partitions on "physmap-flash.1":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000060000 : "u-boot_env1"
0x000000060000-0x000000080000 : "u-boot_env2"
0x000000080000-0x0000000a0000 : "pad2"
0x0000000a0000-0x0000004a0000 : "kernel_2"
0x0000004a0000-0x0000036a0000 : "rootfs_2"
0x0000036a0000-0x0000068a0000 : "appfs_2"
0x0000068a0000-0x000007b60000 : "overlay_2"
davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
davinci_mdio davinci_mdio.0: detected phy mask fffffffc
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
PPP generic driver version 2.4.2
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver uas
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-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-onetouch
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
usb 1-1: new high speed USB device using musb-hdrc and address 2
rtc-ds1307 1-0068: rtc core: registered ds1337 as rtc0
i2c /dev entries driver
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
Unable to handle kernel NULL pointer dereference at virtual address 0000004c
pgd = c0004000
[0000004c] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.37+ #1)
PC is at strcmp+0x10/0x48
LR is at omap_mbox_get+0x40/0x1cc
pc : [<c01dcd94>]    lr : [<c0061a50>]    psr: a0000013
sp : ca023f10  ip : ca023f20  fp : ca023f1c
r10: ca022018  r9 : 00000000  r8 : c04a20c0
r7 : c049c5c8  r6 : c04a2798  r5 : c0408919  r4 : c047d898
r3 : 00000000  r2 : 00000064  r1 : c0408919  r0 : 0000004c
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5387d  Table: 80004019  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xca0222e8)
Stack: (0xca023f10 to 0xca024000)
3f00:                                     ca023f44 ca023f20 c0061a50
c01dcd90
3f20: c02b67c0 c01dcd90 c049c4a0 c049c56c c049c4a0 c0024ec8 ca023f6c
ca023f48
3f40: c02b9fe4 c0061a1c 00000001 00000000 c002b040 c002b040 c04d1f08
c006a954
3f60: ca023f94 ca023f70 c0024f04 c02b9e70 c002b040 c002b0d0 c006a954
c0024ec8
3f80: c04a20c0 00000000 ca023fd4 ca023f98 c00373b8 c0024ed4 00000036
00000000
3fa0: ca023fbc 00000196 c04896cc c002b040 c002b0d0 c006a954 00000013
00000000
3fc0: 00000000 00000000 ca023ff4 ca023fd8 c0008d68 c003730c 00000000
00000000
3fe0: 00000000 c0008cc0 00000000 ca023ff8 c006a954 c0008ccc eda485b5
b186e796
Backtrace:
[<c01dcd84>] (strcmp+0x0/0x48) from [<c0061a50>] (omap_mbox_get+0x40/0x1cc)
[<c0061a10>] (omap_mbox_get+0x0/0x1cc) from [<c02b9fe4>]
(notify_shm_drv_setup+0x180/0x254)
 r7:c0024ec8 r6:c049c4a0 r5:c049c56c r4:c049c4a0
[<c02b9e64>] (notify_shm_drv_setup+0x0/0x254) from [<c0024f04>]
(notify_init+0x3c/0x2a8)
 r6:c006a954 r5:c04d1f08 r4:c002b040
[<c0024ec8>] (notify_init+0x0/0x2a8) from [<c00373b8>]
(do_one_initcall+0xb8/0x180)
 r9:00000000 r8:c04a20c0 r7:c0024ec8 r6:c006a954 r5:c002b0d0
r4:c002b040
[<c0037300>] (do_one_initcall+0x0/0x180) from [<c0008d68>]
(kernel_init+0xa8/0x150)
[<c0008cc0>] (kernel_init+0x0/0x150) from [<c006a954>] (do_exit+0x0/0x5dc)
 r5:c0008cc0 r4:00000000
Code: e1a0c00d e92dd800 e24cb004 e3a03000 (e7d02003)
---[ end trace 599d30e660dbf8fa ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0044aec>] (dump_backtrace+0x0/0x104) from [<c0351cf0>]
(dump_stack+0x18/0x1c)
 r6:c01dcd96 r5:0000000b r4:c04a2858 r3:ffffffff
[<c0351cd8>] (dump_stack+0x0/0x1c) from [<c0351ee0>] (panic+0x60/0x178)
[<c0351e80>] (panic+0x0/0x178) from [<c006a9c0>] (do_exit+0x6c/0x5dc)
 r3:c0480894 r2:ca020130 r1:00000001 r0:c040ad52
 r7:ca022000
[<c006a954>] (do_exit+0x0/0x5dc) from [<c0044f58>] (die+0x280/0x2bc)
 r7:ca022000
[<c0044cd8>] (die+0x0/0x2bc) from [<c0351d50>]
(__do_kernel_fault.part.4+0x5c/0x7c)
[<c0351cf4>] (__do_kernel_fault.part.4+0x0/0x7c) from [<c035862c>]
(do_page_fault+0x200/0x21c)
 r7:ca020000 r3:ca023ec8
[<c035842c>] (do_page_fault+0x0/0x21c) from [<c035866c>]
(do_translation_fault+0x24/0xa4)
[<c0358648>] (do_translation_fault+0x0/0xa4) from [<c00371f8>]
(do_DataAbort+0x3c/0xa0)
 r7:ca023ec8 r6:0000004c r5:c046a550 r4:00000005
[<c00371bc>] (do_DataAbort+0x0/0xa0) from [<c035672c>]
(__dabt_svc+0x4c/0x60)
Exception stack(0xca023ec8 to 0xca023f10)
3ec0:                   0000004c c0408919 00000064 00000000 c047d898
c0408919
3ee0: c04a2798 c049c5c8 c04a20c0 00000000 ca022018 ca023f1c ca023f20
ca023f10
3f00: c0061a50 c01dcd94 a0000013 ffffffff
 r7:c049c5c8 r6:c04a2798 r5:ca023efc r4:ffffffff
[<c01dcd84>] (strcmp+0x0/0x48) from [<c0061a50>] (omap_mbox_get+0x40/0x1cc)
[<c0061a10>] (omap_mbox_get+0x0/0x1cc) from [<c02b9fe4>]
(notify_shm_drv_setup+0x180/0x254)
 r7:c0024ec8 r6:c049c4a0 r5:c049c56c r4:c049c4a0
[<c02b9e64>] (notify_shm_drv_setup+0x0/0x254) from [<c0024f04>]
(notify_init+0x3c/0x2a8)
 r6:c006a954 r5:c04d1f08 r4:c002b040
[<c0024ec8>] (notify_init+0x0/0x2a8) from [<c00373b8>]
(do_one_initcall+0xb8/0x180)
 r9:00000000 r8:c04a20c0 r7:c0024ec8 r6:c006a954 r5:c002b0d0
r4:c002b040
[<c0037300>] (do_one_initcall+0x0/0x180) from [<c0008d68>]
(kernel_init+0xa8/0x150)
[<c0008cc0>] (kernel_init+0x0/0x150) from [<c006a954>] (do_exit+0x0/0x5dc)
 r5:c0008cc0 r4:00000000

To build the above, I simple sourced the
/usr/local/oecore-i686/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi
script and then unset LDFLAGS.

For kicks, I did a clean build of the kernel again and built with make
EXTRA_CFLAGS=-mno-unaligned-access uImage and that resulted in a hung
kernel:

## Booting kernel from Legacy Image at 83000000 ...
   Image Name:   Linux-2.6.37+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2348876 Bytes = 2.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


Regards,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20130816/8f9c6d7a/attachment.html>


More information about the meta-ti mailing list