Problem with cross-compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

	I had an issue with the cross toolchain. When i compile the kernel
with version 4.2.0 CodeSourcery Sourcery  i can boot the kernel
without any issues. But when i compiled with arm-linux- tool chain, i
am getting an alignment exception. Did any one faced this?

Following are the boot prints when compiled with arm-linux- toolchain:

Uncompressing Linux...............................................................................................
done, booting the kernel.
<5>Linux version 2.6.22-omap1-omap2evm-ms1 (arun@localhost) (gcc
version 3.4.4) #28 Thu Jan 31 21:50:54 IST 2008
CPU: ARMv6-compatible processor [4107b366] revision 6 (ARMv6TEJ), cr=00c5387f
Machine: OMAP2530 evm2530 board
Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 8192
<7>  DMA zone: 64 pages used for memmap
<7>  DMA zone: 0 pages reserved
<7>  DMA zone: 8128 pages, LIFO batch:0
<7>  Normal zone: 0 pages used for memmap
<6>OMAP24302
<6>SRAM: Mapped pa 0x40200000 to va 0xd0000000 size: 0x100000
CPU0: D VIPT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists.  Total pages: 8128
<5>Kernel command line: console=ttyS0,115200n8 noinitrd rw
root=/dev/nfs nfsroot=192.168.13.50:/home/arun/rootfs,rsize=1024,wsize=1024,tcp,nolock
mem=32M ip=dhcp
<6>Clocking rate (Crystal/DPLL/MPU): 13.0/660/330 MHz
<3>clock.c: Enable for dpll_ck without enable code
<6>GPMC revision 3.0
<6>IRQ: Found an INTC at 0xd80fe000 (revision 3.0) with 96 interrupts
<6>Total of 96 interrupts on 1 active controller
<6>OMAP243x GPIO hardware version 2.4
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>Memory: 32MB = 32MB total
<5>Memory: 29376KB available (2580K code, 295K data, 196K init)
<7>Calibrating delay loop... 329.31 BogoMIPS (lpj=1646592)
Mount-cache hash table entries: 512
<6>CPU: Testing write buffer coherency: ok
<6>NET: Registered protocol family 16
Registering USB device
<6>OMAP DMA4 hardware Initialized (max lch=32)
<3>omapdsp: could not acquire dsp_fck handle.
MUX settings for USB OMAP2EVM
CM_ICLKEN2_CORE:fff
<6>OMAP Display hardware version 1.0
<6>i2c_omap i2c_omap.2: bus 2 rev3.7 at 2600 kHz
<6>i2c_omap i2c_omap.1: bus 1 rev3.7 at 400 kHz
<6>TWL4030: TRY attach Slave TWL4030-ID0 on Adapter OMAP I2C adapter [1]
<6>TWL4030: TRY attach Slave TWL4030-ID1 on Adapter OMAP I2C adapter [1]
<6>TWL4030: TRY attach Slave TWL4030-ID2 on Adapter OMAP I2C adapter [1]
<6>TWL4030: TRY attach Slave TWL4030-ID3 on Adapter OMAP I2C adapter [1]
<6><6>TWL4030: Driver registration complete.
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>musb_hdrc: version 2.2a/db-0.5.2, musb-dma, otg (peripheral+host), debug=0
<7>musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X),
bulk split (X), HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
<7>musb_hdrc: MHDRC RTL version 1.400
<7>musb_hdrc: setup fifo_mode 2
<7>musb_hdrc: 7/15 max ep, 2624/16384 memory
<7>musb_hdrc: hw_ep 0shared, max 64
<7>musb_hdrc: hw_ep 1tx, max 512
<7>musb_hdrc: hw_ep 1rx, max 512
<7>musb_hdrc: hw_ep 2tx, max 512
<7>musb_hdrc: hw_ep 2rx, max 512
<7>musb_hdrc: hw_ep 3shared, max 256
<7>musb_hdrc: hw_ep 4shared, max 256
<6>musb_hdrc: USB OTG mode controller at c2800000 using DMA, IRQ 92
<1>Unhandled fault: alignment exception (0x001) at 0x4374669b
Internal error: : 1 [#1]
Modules linked in:
CPU: 0    Not tainted  (2.6.22-omap1-omap2evm-ms1 #28)
PC is at klist_node_attached+0xc/0x1c
LR is at driver_bound+0x1c/0x6c
pc : [<c022b4d8>]    lr : [<c0158eac>]    psr: 60000013
sp : c036be88  ip : c036be98  fp : c036be94
r10: 00000000  r9 : c0023864  r8 : 00000000
r7 : c02dc5f4  r6 : c03004b4  r5 : 4374669b  r4 : 4374666f
r3 : 00000000  r2 : 00000001  r1 : 00000001  r0 : 4374669b
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: 00c5387f  Table: 80004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc036a250)
Stack: (0xc036be88 to 0xc036c000)
be80:                   c036beac c036be98 c0158eac c022b4d8 4374666f 00000000
bea0: c036bed0 c036beb0 c01590e4 c0158e9c c02c7694 c02c75bc c0159224 c02dc5f4
bec0: 00000000 c036bee8 c036bed4 c015929c c0158ffc 00000000 c036beec c036bf14
bee0: c036beec c01580f4 c0159230 c02d8a94 c02d8a94 c02c7604 00000000 c02dc5f4
bf00: c02dc5fc c02d89a8 c036bf24 c036bf18 c0159314 c01580b0 c036bf4c c036bf28
bf20: c01588ac c0159300 c02dc5f4 00000000 00000000 c036a000 c0022070 00000000
bf40: c036bf60 c036bf50 c0159780 c0158838 00000000 c036bf70 c036bf64 c015b108
bf60: c015970c c036bf80 c036bf74 c001d00c c015b0a8 c036bff4 c036bf84 c0008be8
bf80: c001cfe8 e3a01004 e1a00005 00000000 00000001 e50bc03c 00000000 00000000
bfa0: 00000000 c036bfb0 c0039e64 c004f998 00000000 00000000 c0008b14 c00559f8
bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
bfe0: 00000000 00000000 00000000 c036bff8 c00559f8 c0008b20 ebff53d7 e3500000
Backtrace:
[<c022b4cc>] (klist_node_attached+0x0/0x1c) from [<c0158eac>]
(driver_bound+0x1c/0x6c)
[<c0158e90>] (driver_bound+0x0/0x6c) from [<c01590e4>]
(driver_probe_device+0xf4/0x180)
 r5:00000000 r4:4374666f
[<c0158ff0>] (driver_probe_device+0x0/0x180) from [<c015929c>]
(__driver_attach+0x78/0xd0)
 r8:00000000 r7:c02dc5f4 r6:c0159224 r5:c02c75bc r4:c02c7694
[<c0159224>] (__driver_attach+0x0/0xd0) from [<c01580f4>]
(bus_for_each_dev+0x50/0x84)
 r5:c036beec r4:00000000
[<c01580a4>] (bus_for_each_dev+0x0/0x84) from [<c0159314>]
(driver_attach+0x20/0x28)
 r7:c02d89a8 r6:c02dc5fc r5:c02dc5f4 r4:00000000
[<c01592f4>] (driver_attach+0x0/0x28) from [<c01588ac>]
(bus_add_driver+0x80/0x1b8)
[<c015882c>] (bus_add_driver+0x0/0x1b8) from [<c0159780>]
(driver_register+0x80/0x88)
[<c0159700>] (driver_register+0x0/0x88) from [<c015b108>]
(platform_driver_register+0x6c/0x88)
 r4:00000000
[<c015b09c>] (platform_driver_register+0x0/0x88) from [<c001d00c>]
(musb_init+0x30/0x48)
[<c001cfdc>] (musb_init+0x0/0x48) from [<c0008be8>] (kernel_init+0xd4/0x284)
[<c0008b14>] (kernel_init+0x0/0x284) from [<c00559f8>] (do_exit+0x0/0x72c)
Code: e89da810 e1a0c00d e92dd800 e24cb004 (e5900000)
<0>Kernel panic - not syncing: Attempted to kill init!

Waiting for valuable suggestions.

Arun K S
-
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux