imx233 Android kernel build.

Started by kishorebe, April 21, 2013, 05:16:12 PM

Previous topic - Next topic

kishorebe

I am trying to port android on iMX233-OLinuXino-MAXI   board.

Can you please help me with the porting procedure?

I am getting below log when boot the kernel.

I added ASHMEM , other android specific flags also.


HTLLCLC



U-Boot 2013.01-00033-g852e10a-dirty (Feb 07 2013 - 16:21:11)



CPU:   Freescale i.MX23 rev1.4 at 454 MHz

BOOT:  SSP SD/MMC #0

DRAM:  64 MiB

MMC:   MXS MMC: 0

*** Warning - bad CRC, using default environment



In:    serial

Out:   serial

Err:   serial

Net:   Net Initialization Skipped

No ethernet found.

Hit any key to stop autoboot:  0

mmc0 is current device

439 bytes read in 0 ms

Loaded environment from uEnv.txt

Importing environment from mmc ...

2809640 bytes read in 0 ms

8450 bytes read in 0 ms

Booting from mmc ...

## Flattened Device Tree blob at 41000000

   Booting using the fdt blob at 0x41000000

   Using Device Tree in place at 41000000, end 41005101



Starting kernel ...



Uncompressing Linux... done, booting the kernel.

[    0.000000] Booting Linux on physical CPU 0x0

[    0.000000] Linux version 3.8.6 (kishore@kishore-thunder-bolt) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 Sun Apr 7 17:20:58 IST 2013

[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

[    0.000000] CPU: VIVT data cache, VIVT instruction cache

[    0.000000] Machine: Freescale i.MX23 (Device Tree), model: i.MX23 Olinuxino Low Cost Board

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

[    0.000000] Kernel command line: noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/init rw rootwait ssp1=mmc

[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] __ex_table already sorted, skipping sort

[    0.000000] Memory: 64MB = 64MB total

[    0.000000] Memory: 53956k/53880k available, 11580k reserved, 0K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)

[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)

[    0.000000]       .text : 0xc0008000 - 0xc04fb29c   (5069 kB)

[    0.000000]       .init : 0xc04fc000 - 0xc051fd34   ( 144 kB)

[    0.000000]       .data : 0xc0520000 - 0xc055bc80   ( 240 kB)

[    0.000000]        .bss : 0xc055bc80 - 0xc0aac268   (5442 kB)

[    0.000000] SLUB: Genslabs=13, 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 every 4294967286ms

[    0.000000] Console: colour dummy device 80x30

[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar

[    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.070000] Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)

[    0.070000] pid_max: default: 32768 minimum: 301

[    0.070000] Mount-cache hash table entries: 512

[    0.070000]

[    0.070000] CPU: Testing write buffer coherency: ok

[    0.080000] Setting up static identity map for 0x40387490 - 0x403874e8

[    0.090000] devtmpfs: initialized

[    0.100000] pinctrl core: initialized pinctrl subsystem

[    0.110000] regulator-dummy: no parameters

[    0.110000] NET: Registered protocol family 16

[    0.110000] BUG: Bad page state in process swapper  pfn:438bc

[    0.110000] page:c0b1e780 count:1024 mapcount:0 mapping:  (null) index:0x0

[    0.110000] page flags: 0x0()

[    0.110000] Modules linked in:

[    0.110000] [<c0013e58>] (unwind_backtrace+0x0/0xf0) from [<c00978f0>] (bad_page+0xa8/0x108)

[    0.110000] [<c00978f0>] (bad_page+0xa8/0x108) from [<c0097f58>] (get_page_from_freelist+0x4b8/0x5d8)

[    0.110000] [<c0097f58>] (get_page_from_freelist+0x4b8/0x5d8) from [<c0098a84>] (__alloc_pages_nodemask+0xe4/0x7e8)

[    0.110000] [<c0098a84>] (__alloc_pages_nodemask+0xe4/0x7e8) from [<c001550c>] (__dma_alloc_buffer.isra.15+0x2c/0xd0)

[    0.110000] [<c001550c>] (__dma_alloc_buffer.isra.15+0x2c/0xd0) from [<c00155c4>] (__alloc_remap_buffer.isra.18+0x14/0xb0)

[    0.110000] [<c00155c4>] (__alloc_remap_buffer.isra.18+0x14/0xb0) from [<c04fe844>] (atomic_pool_init+0x6c/0x11c)

[    0.110000] [<c04fe844>] (atomic_pool_init+0x6c/0x11c) from [<c00087c8>] (do_one_initcall+0x30/0x16c)

[    0.110000] [<c00087c8>] (do_one_initcall+0x30/0x16c) from [<c04fc82c>] (kernel_init_freeable+0xf0/0x1b8)

[    0.110000] [<c04fc82c>] (kernel_init_freeable+0xf0/0x1b8) from [<c037f174>] (kernel_init+0x8/0xe4)

[    0.110000] [<c037f174>] (kernel_init+0x8/0xe4) from [<c000e9c8>] (ret_from_fork+0x14/0x2c)

[    0.110000] Disabling lock debugging due to kernel taint

[    0.110000] DMA: preallocated 256 KiB pool for atomic coherent allocations

[    0.140000] Serial: AMBA PL011 UART driver

[    0.140000] 80070000.serial: ttyAMA0 at MMIO 0x80070000 (irq = 129) is a PL011 rev2

[    0.420000] console [ttyAMA0] enabled

[    0.440000] bio: create slab <bio-0> at 0

[    0.450000] mxs-dma 80004000.dma-apbh: initialized

[    0.460000] mxs-dma 80024000.dma-apbx: initialized

[    0.470000] usb0_vbus: 5000 mV

[    0.470000] SCSI subsystem initialized

[    0.480000] usbcore: registered new interface driver usbfs

[    0.480000] usbcore: registered new interface driver hub

[    0.490000] usbcore: registered new device driver usb

[    0.490000] Advanced Linux Sound Architecture Driver Initialized.

[    0.500000] Switching to clocksource mxs_timer

[    0.550000] BUG: Bad page state in process swapper  pfn:434df

[    0.560000] page:c0b16be0 count:1024 mapcount:0 mapping:  (null) index:0x1

[    0.560000] page flags: 0x0()

[    0.570000] Modules linked in:

[    0.570000] [<c0013e58>] (unwind_backtrace+0x0/0xf0) from [<c00978f0>] (bad_page+0xa8/0x108)

[    0.580000] [<c00978f0>] (bad_page+0xa8/0x108) from [<c0097f58>] (get_page_from_freelist+0x4b8/0x5d8)

[    0.590000] [<c0097f58>] (get_page_from_freelist+0x4b8/0x5d8) from [<c0098a84>] (__alloc_pages_nodemask+0xe4/0x7e8)

[    0.600000] [<c0098a84>] (__alloc_pages_nodemask+0xe4/0x7e8) from [<c00c7778>] (new_slab+0x64/0x30c)

[    0.610000] [<c00c7778>] (new_slab+0x64/0x30c) from [<c03830b0>] (__slab_alloc.constprop.58+0x380/0x4e8)

[    0.620000] [<c03830b0>] (__slab_alloc.constprop.58+0x380/0x4e8) from [<c00c7b88>] (kmem_cache_alloc+0x118/0x178)

[    0.630000] [<c00c7b88>] (kmem_cache_alloc+0x118/0x178) from [<c00e1504>] (__d_alloc+0x1c/0x140)

[    0.640000] [<c00e1504>] (__d_alloc+0x1c/0x140) from [<c00e1800>] (d_alloc+0x10/0x60)

[    0.650000] [<c00e1800>] (d_alloc+0x10/0x60) from [<c00d5fd0>] (lookup_dcache+0x84/0xa8)

[    0.650000] [<c00d5fd0>] (lookup_dcache+0x84/0xa8) from [<c00d600c>] (__lookup_hash+0x18/0x44)

[    0.660000] [<c00d600c>] (__lookup_hash+0x18/0x44) from [<c00da248>] (lookup_one_len+0xf0/0x14c)

[    0.670000] [<c00da248>] (lookup_one_len+0xf0/0x14c) from [<c0185184>] (__create_file+0x6c/0x1d8)

[    0.680000] [<c0185184>] (__create_file+0x6c/0x1d8) from [<c007ad24>] (trace_create_file+0x18/0x40)

[    0.690000] [<c007ad24>] (trace_create_file+0x18/0x40) from [<c0081594>] (event_create_dir+0xb8/0x35c)

[    0.700000] [<c0081594>] (event_create_dir+0xb8/0x35c) from [<c0503eac>] (event_trace_init+0x1a8/0x260)

[    0.710000] [<c0503eac>] (event_trace_init+0x1a8/0x260) from [<c00087c8>] (do_one_initcall+0x30/0x16c)

[    0.720000] [<c00087c8>] (do_one_initcall+0x30/0x16c) from [<c04fc82c>] (kernel_init_freeable+0xf0/0x1b8)

[    0.730000] [<c04fc82c>] (kernel_init_freeable+0xf0/0x1b8) from [<c037f174>] (kernel_init+0x8/0xe4)

[    0.740000] [<c037f174>] (kernel_init+0x8/0xe4) from [<c000e9c8>] (ret_from_fork+0x14/0x2c)

[    0.810000] NET: Registered protocol family 2

[    0.820000] TCP established hash table entries: 512 (order: 0, 4096 bytes)

[    0.820000] TCP bind hash table entries: 512 (order: 2, 18432 bytes)

[    0.830000] TCP: Hash tables configured (established 512 bind 512)

[    0.840000] TCP: reno registered

[    0.840000] UDP hash table entries: 256 (order: 2, 20480 bytes)

[    0.850000] 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.870000] RPC: Registered udp transport module.

[    0.870000] RPC: Registered tcp transport module.

[    0.880000] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.880000] NetWinder Floating Point Emulator V0.97 (double precision)

[    0.940000] NFS: Registering the id_resolver key type

[    0.940000] Key type id_resolver registered

[    0.950000] Key type id_legacy registered

[    0.950000] msgmni has been set to 105

[    0.960000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)

[    0.960000] io scheduler noop registered (default)

[    0.970000] uart-pl011 80070000.serial: no DMA platform data

[    0.980000] 8006c000.serial: ttyAPP0 at MMIO 0x8006c000 (irq = 126) is a 8006c000.serial

[    0.990000] mxs-auart 8006c000.serial: Found APPUART 3.0.0

[    1.000000] usbcore: registered new interface driver asix

[    1.010000] usbcore: registered new interface driver cdc_ether

[    1.010000] usbcore: registered new interface driver smsc95xx

[    1.020000] usbcore: registered new interface driver net1080

[    1.030000] usbcore: registered new interface driver cdc_subset

[    1.030000] usbcore: registered new interface driver zaurus

[    1.040000] usbcore: registered new interface driver cdc_ncm

[    1.040000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[    1.050000] Initializing USB Mass Storage driver...

[    1.060000] usbcore: registered new interface driver usb-storage

[    1.060000] USB Mass Storage support registered.

[    1.070000] imx_usb 80080000.usb: pinctrl get/select failed, err=-19

[    1.080000] ci_hdrc ci_hdrc.0: doesn't support gadget

[    1.080000] ci_hdrc ci_hdrc.0: EHCI Host Controller

[    1.090000] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1

[    1.110000] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00

[    1.110000] hub 1-0:1.0: USB hub found

[    1.120000] hub 1-0:1.0: 1 port detected

[    1.120000] mousedev: PS/2 mouse device common for all mice

[    1.130000] stmp3xxx-rtc 8005c000.rtc: rtc core: registered 8005c000.rtc as rtc0

[    1.140000] i2c /dev entries driver

[    1.190000] mxs-mmc 80010000.ssp: initialized

[    1.190000] leds-gpio leds.5: pins are not configured from the driver

[    1.210000] usbcore: registered new interface driver usbhid

[    1.210000] usbhid: USB HID core driver

[    1.220000] ashmem: initialized

[    1.230000] logger: created 256K log 'log_main'

[    1.230000] logger: created 256K log 'log_events'

[    1.240000] logger: created 256K log 'log_radio'

[    1.240000] logger: created 256K log 'log_system'

[    1.260000] TCP: cubic registered

[    1.260000] mmc0: host does not support reading read-only switch. assuming write-enable.

[    1.270000] NET: Registered protocol family 17

[    1.270000] Key type dns_resolver registered

[    1.280000] mmc0: new high speed SDHC card at address b368

[    1.290000] registered taskstats version 1

[    1.290000] BUG: Bad page state in process kthreadd  pfn:43b2e

[    1.300000] page:c0b235c0 count:1024 mapcount:0 mapping:  (null) index:0x0

[    1.300000] page flags: 0x0()

[    1.310000] Modules linked in:

[    1.310000] [<c0013e58>] (unwind_backtrace+0x0/0xf0) from [<c00978f0>] (bad_page+0xa8/0x108)

[    1.320000] [<c00978f0>] (bad_page+0xa8/0x108) from [<c0097f58>] (get_page_from_freelist+0x4b8/0x5d8)

[    1.330000] [<c0097f58>] (get_page_from_freelist+0x4b8/0x5d8) from [<c0098a84>] (__alloc_pages_nodemask+0xe4/0x7e8)

[    1.340000] [<c0098a84>] (__alloc_pages_nodemask+0xe4/0x7e8) from [<c001a89c>] (copy_process+0x108/0xfe0)

[    1.350000] [<c001a89c>] (copy_process+0x108/0xfe0) from [<c001b7e0>] (do_fork+0x48/0x2cc)

[    1.360000] [<c001b7e0>] (do_fork+0x48/0x2cc) from [<c001ba94>] (kernel_thread+0x30/0x38)

[    1.360000] [<c001ba94>] (kernel_thread+0x30/0x38) from [<c003c5b0>] (kthreadd+0xc8/0x108)

[    1.370000] [<c003c5b0>] (kthreadd+0xc8/0x108) from [<c000e9c8>] (ret_from_fork+0x14/0x2c)

[    1.380000] mmcblk0: mmc0:b368 00000 7.51 GiB

[    1.390000] stmp3xxx-rtc 8005c000.rtc: setting system clock to 1970-01-01 00:03:05 UTC (185)

[    1.410000] ALSA device list:

[    1.410000]   No soundcards found.

\FF[    1.420000]  mmcblk0: p1 p2

[    1.440000] kjournald starting.  Commit interval 5 seconds

[    1.450000] EXT3-fs (mmcblk0p2): using internal journal

[    1.450000] EXT3-fs (mmcblk0p2): recovery complete

[    1.460000] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode

[    1.460000] VFS: Mounted root (ext3 filesystem) on device 179:2.

[    1.470000] Freeing init memory: 140K

[    1.500000] usb 1-1: new high-speed USB device number 2 using ci_hdrc

[    1.500000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

[    1.500000]

[    1.500000] [<c0013e58>] (unwind_backtrace+0x0/0xf0) from [<c03806f8>] (panic+0x98/0x1f4)

[    1.500000] [<c03806f8>] (panic+0x98/0x1f4) from [<c00219e0>] (do_exit+0x718/0x850)

[    1.500000] [<c00219e0>] (do_exit+0x718/0x850) from [<c0021c70>] (do_group_exit+0x48/0xb0)

[    1.500000] [<c0021c70>] (do_group_exit+0x48/0xb0) from [<c002f1f4>] (get_signal_to_deliver+0x340/0x63c)

[    1.500000] [<c002f1f4>] (get_signal_to_deliver+0x340/0x63c) from [<c03800fc>] (do_signal+0x78/0x464)

[    1.500000] [<c03800fc>] (do_signal+0x78/0x464) from [<c00117f0>] (do_work_pending+0xc4/0xe0)

[    1.500000] [<c00117f0>] (do_work_pending+0xc4/0xe0) from [<c000e968>] (work_pending+0xc/0x20)

[   19.070000] pgd = c3b54000

[   19.070000] [eaffffc8] *pgd=00000000

[   19.070000] Internal error: Oops: 5 [#1] ARM

[   19.070000] Modules linked in:

[   19.070000] CPU: 0    Tainted: G    B         (3.8.6 #1)

[   19.070000] PC is at radix_tree_lookup_element+0x24/0xb0

[   19.070000] LR is at generic_handle_irq+0xc/0x30

[   19.070000] pc : [<c01b4ac8>]    lr : [<c0068910>]    psr: 20000093

[   19.070000] sp : c382fd4c  ip : 00000002  fp : c3a19b1c

[   19.070000] r10: c055c0c0  r9 : c382e000  r8 : 0002cf88

[   19.070000] r7 : c382fdb4  r6 : 00000001  r5 : 00000010  r4 : 00000010

[   19.070000] r3 : c34004c0  r2 : 00000000  r1 : 00000010  r0 : eaffffc0

[   19.070000] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user

[   19.070000] Control: 0005317f  Table: 43b54000  DAC: 00000015

[   19.070000] Process init (pid: 1, stack limit = 0xc382e1b8)

[   19.070000] Stack: (0xc382fd4c to 0xc3830000)

[   19.070000] fd40:                            00000010 00000010 00000000 c053e278 c000f820

[   19.070000] fd60: f5000000 c382fd80 c055bf88 c00086f8 c01b1688 20000013 ffffffff c000e564

[   19.070000] fd80: 0001a5dd ffffffff 00000450 c01b165c 00000001 00000035 c053e240 0002cec0

[   19.070000] fda0: 0002cf88 c382e000 c055c0c0 c3a19b1c 60000093 c382fdc8 c0380818 c01b1688

[   19.070000] fdc0: 20000013 ffffffff c3830254 c382fdf4 c3830000 c052f8e8 c3b48058 c3830000

[   19.070000] fde0: c3a19b20 c382e000 c382e000 c00219e0 c0467c00 00000004 c3830000 c3838000

[   19.070000] fe00: c382fdfc c382fe14 c382e000 00000001 00000000 c382fe14 c382fe14 c3830144

[   19.070000] fe20: 00000080 c3838000 00000004 c382e000 0830009f c3a19b20 c382e000 c382e000

[   19.070000] fe40: c3a19b1c c0021c70 c3b27980 c382e000 00000004 c382fec8 0830009f c002f1f4

[   19.070000] fe60: 80000093 c0047c14 00000000 80000093 c3830274 c382e000 0000000c c3a19fe4

[   19.070000] fe80: c3a19ae0 c382e000 c3838000 c382ff48 00000000 c382ffb0 00000000 00000000

[   19.070000] fea0: 00000000 00000000 c382e000 c382e000 00000000 c03800fc 00000000 c002d7cc

[   19.070000] fec0: c055a8b8 60000013 00000004 00000000 00030001 00016964 00000001 00000002

[   19.070000] fee0: 00000000 c005cca4 c055a8b8 c3830000 00000000 c002e0ec c382ffb0 00016964

[   19.070000] ff00: ffff0fe0 00000000 00000f00 c000852c 00000006 00000000 00000004 00000000

[   19.070000] ff20: 00030001 00016964 00000001 00000002 00000000 c005cca4 00000001 00000000

[   19.070000] ff40: 00000000 c00385a0 00000000 c00d3290 c0b22480 c00c6dfc 60000013 00000000

[   19.070000] ff60: c3804558 00000001 00000000 c382e000 c382ffb0 c382e000 c382e000 00000000

[   19.070000] ff80: c382e000 c382e000 00000000 c00117f0 c055a8b8 00000001 00016964 60000010

[   19.070000] ffa0: c382e050 00000001 00000000 c000e968 00021188 0002114c 00000000 ffff0fe0

[   19.070000] ffc0: 0002114c befc3f10 00006b14 befc3ec0 00000000 00000000 00000000 00000000

[   19.070000] ffe0: 0000a04c befc3eb0 0001695f 00016964 60000010 ffffffff 00000020 00800000

[   19.070000] [<c01b4ac8>] (radix_tree_lookup_element+0x24/0xb0) from [<c053e278>] (__irq_regs+0x0/0x4)

[   19.070000] Code: 0a000019 e3c33001 e593c000 e59f0084 (e790010c)

[   19.070000] ---[ end trace c1e47b62d9a00eaa ]---