Kernel Oops

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kernel Oops

906 Views
michaelcarrier
Contributor III

Our custom board was designed based on the imx6ulevk. One difference between our design and the EVK is the amount of DDR on our custom board. To test changes before attempting to run on our board I first load the sd card onto the EVK. If I take the SDcard image generated by yocto build bitbake fsl-image-machine-test an burn it to an sd card, load the card onto the EVK, the EVK boots into linux as expected. I then change uboot's PHYS_SDRAM_SIZE from SZ_512M to say SZ_256M then build fsl-image-machine-test and load that SD image onto the EVK, the EVK boots into linux but the kernel then oopses :

IR SANYO protocol handler initialized

IR MCE Keyboard/mouse protocol handler initialized

i2c-core: driver [mag3110] using legacy suspend method

i2c-core: driver [mag3110] using legacy resume method

imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

Unable to handle kernel NULL pointer dereference at virtual address 00000000

pgd = 80004000

[00000000] *pgd=00000000

Internal error: Oops: 5 [#1] PREEMPT SMP ARM

Modules linked in:

CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.38-6UL_ga+ge4944a5 #31

task: 8c058000 ti: 8c05c000 task.ti: 8c05c000

PC is at bitmap_clear+0xa0/0xbc

LR is at 0xffffffff

pc : [<802ac184>]    lr : [<ffffffff>]    psr: 20000193

sp : 8c05ddec  ip : 00000000  fp : 00000000

r10: 809db998  r9 : 8c0d3c10  r8 : 00001000

r7 : 8fdf7000  r6 : 00000000  r5 : 00000001  r4 : ffffffff

r3 : 00000001  r2 : ffffffff  r1 : 00000001  r0 : 00000000

Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

Control: 10c53c7d  Table: 8000406a  DAC: 00000015

Process swapper/0 (pid: 1, stack limit = 0x8c05c238)

Stack: (0x8c05ddec to 0x8c05e000)

dde0:                            80000113 0007ffff 8001a22c 00000647 00000000

de00: 804e7db4 8c192ac0 00000000 8c192ac0 8c192800 0000b407 07eb0000 00000000

de20: 8c192ac0 809bcac4 00000000 804e8038 00000000 8c0d3c10 8c2c7310 8c192ac0

de40: 8c0d3c00 8c0d3c10 00000000 804ea1c8 804e9ca0 80aaabd8 8c0d3c10 80a24d84

de60: fffffdfb 80a24d84 00000000 803683c8 80368384 80aaabd8 8c0d3c10 80a45438

de80: 00000000 803669e8 808d1098 8c0d5680 80a24d84 8c0d3c10 80a24d84 8c0d3c44

dea0: 80a00b50 80a4f540 000000d6 80366d1c 00000000 80a24d84 80366c90 80364c7c

dec0: 8c03d55c 8c0d16b4 80a24d84 8c2c7280 00000000 80366014 808d1098 80a24d84

dee0: 00000000 80a24d84 00000000 809ab928 80a4f540 8036733c 00000000 8c05c008

df00: 00000000 80008958 8c0a3680 8068d534 0000009f 00000000 0000f500 8013434c

df20: 00000000 809e275c 00000008 00000000 8fded2b4 8004bb44 809e2750 809c8ef8

df40: 808b74a4 00000006 00000006 8fded2b6 809e274c 809c91cc 809c9720 00000006

df60: 809bcabc 80a4f540 80a4f540 000000d6 809bcac4 8096cc74 00000006 00000006

df80: 8096c514 8005492c 00000000 80680ac8 00000000 00000000 00000000 00000000

dfa0: 00000000 80680ad0 00000000 8000f238 00000000 00000000 00000000 00000000

dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 fcd9bbfe ded4a779

[<802ac184>] (bitmap_clear) from [<8001a22c>] (__arm_dma_free.isra.18+0xd8/0x21c)

[<8001a22c>] (__arm_dma_free.isra.18) from [<804e8038>] (sdhci_add_host+0xb78/0xee4)

[<804e8038>] (sdhci_add_host) from [<804ea1c8>] (sdhci_esdhc_imx_probe+0x528/0x804)

[<804ea1c8>] (sdhci_esdhc_imx_probe) from [<803683c8>] (platform_drv_probe+0x44/0xa4)

[<803683c8>] (platform_drv_probe) from [<803669e8>] (driver_probe_device+0x144/0x3a8)

[<803669e8>] (driver_probe_device) from [<80366d1c>] (__driver_attach+0x8c/0x90)

[<80366d1c>] (__driver_attach) from [<80364c7c>] (bus_for_each_dev+0x6c/0xa0)

[<80364c7c>] (bus_for_each_dev) from [<80366014>] (bus_add_driver+0x15c/0x218)

[<80366014>] (bus_add_driver) from [<8036733c>] (driver_register+0x78/0xf8)

[<8036733c>] (driver_register) from [<80008958>] (do_one_initcall+0xd4/0x18c)

[<80008958>] (do_one_initcall) from [<8096cc74>] (kernel_init_freeable+0x13c/0x1dc)

[<8096cc74>] (kernel_init_freeable) from [<80680ad0>] (kernel_init+0x8/0xe8)

[<80680ad0>] (kernel_init) from [<8000f238>] (ret_from_fork+0x14/0x3c)

Code: 10811003 1201101f 10633001 11e03312 (e5902000)

---[ end trace a71e59ea759f309c ]---

Labels (1)
0 Kudos
2 Replies

556 Views
igorpadykov
NXP Employee
NXP Employee

Hi michael

one can refer to attached Yocto Guide sect.7 Creating a Custom Board Configuration:

Customize the kernel config files as needed. The kernel config file is location in arch/arm/configs.

For example default kernel is built by using the imx_v7_defconfig and has

CONFIG_CMA_SIZE_MBYTES=320

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

556 Views
tommyduan
Contributor III
  • How can I solve the same problem

0 Kudos