This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Kernel Panic on boot from SDCard

Other Parts Discussed in Thread: AM3358

hi,

My customer is design their own PCB board with AM3358, the same SDCARD test on beaglebone black can boot up correctly into Ubuntu OS without issue. However, when move the sdcard to their custom make board having kernel panic issue. Any expert advice will be helpful,....

Below is the error log message:

U-Boot SPL 2016.03-00001-g148e520 (Jun 06 2016 - 11:27:44)
Trying to boot from MMC
bad magic

U-Boot 2016.03-00001-g148e520 (Jun 06 2016 - 11:27:44 -0500), Build: jenkins-github_Bootloader-Builder-395

       Watchdog enabled
I2C:   ready
DRAM:  1 GiB
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
Could not get PHY for cpsw: addr 0
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
reading uEnv.txt
1037 bytes read in 4 ms (252.9 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
837 bytes read in 39 ms (20.5 KiB/s)
5617184 bytes read in 339 ms (15.8 MiB/s)
2973307 bytes read in 198 ms (14.3 MiB/s)
26098 bytes read in 65 ms (391.6 KiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x55b620 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Using Device Tree in place at 88000000, end 880095f1

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.398731] omap2_mbox_probe: platform not supported
[    0.554041] tps65217-bl tps65217-bl: no platform data provided
[    0.616617] bone-capemgr bone_capemgr.9: slot #0: No cape found
[    0.653724] bone-capemgr bone_capemgr.9: slot #1: No cape found
[    0.690833] bone-capemgr bone_capemgr.9: slot #2: No cape found
[    0.727942] bone-capemgr bone_capemgr.9: slot #3: No cape found
[    0.749500] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN conflict P8.45 (#10:BB-BONELT-HDMIN)
[    0.759259] bone-capemgr bone_capemgr.9: slot #6: Failed verification
[    0.765997] bone-capemgr bone_capemgr.9: loader: failed to load slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[    0.780911] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
[    0.816198] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8
[    0.827873] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[    0.835155] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single
[    0.865261] dummy 0-0034: Error -121 writing to cec:0xff
[    0.870990] tda998x 0-0070: Error -121 reading from 0xa
[    0.876587] tda998x 0-0070: Error -121 writing to 0xa
[    0.933100] tda998x 0-0070: Error -121 reading from 0xa
[    0.938699] tda998x 0-0070: Error -121 writing to 0xa
[    0.995601] tda998x 0-0070: Error -121 reading from 0x1
[    1.001159] tda998x 0-0070: Error -121 writing to 0x1
[    1.006525] tda998x 0-0070: Error -121 reading from 0x1
[    1.012056] tda998x 0-0070: Error -121 writing to 0x1
[    1.017413] tda998x 0-0070: Error -121 writing to REG_CURPAGE
[    1.023494] tda998x 0-0070: Error -121 writing to 0x200
[    1.029027] tda998x 0-0070: Error -121 writing to 0x201
[    1.034578] tda998x 0-0070: Error -121 writing to 0x202
[    1.040125] tda998x 0-0070: Error -121 writing to 0x203
[    1.045663] tda998x 0-0070: Error -121 writing to 0x204
[    1.051263] tda998x 0-0070: Error -121 writing to 0x205
[    1.056810] tda998x 0-0070: Error -121 writing to 0x20e
[    1.062344] tda998x 0-0070: Error -121 writing to 0x211
[    1.067884] tda998x 0-0070: Error -121 writing to 0x207
[    1.073423] tda998x 0-0070: Error -121 writing to 0x208
[    1.078963] tda998x 0-0070: Error -121 writing to 0x209
[    1.084498] tda998x 0-0070: Error -121 writing to 0x20a
[    1.090040] tda998x 0-0070: Error -121 writing to 0x206
[    1.095576] tda998x 0-0070: Error -121 writing to REG_CURPAGE
[    1.101652] tda998x 0-0070: Error -121 reading from 0x0
[    1.107187] tda998x 0-0070: Error -121 reading from 0x2
[    1.112880] tilcdc 4830e000.fb: no encoders/connectors found
[    1.118815] tilcdc 4830e000.fb: failed to initialize mode setting
[    1.175831] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf00fa000
[    1.183841] Internal error: : 1008 [#1] SMP THUMB2
[    1.188842] Modules linked in:
[    1.192035] CPU: 0    Not tainted  (3.8.13-bone70 #1)
[    1.197324] PC is at cpsw_probe+0x348/0x960
[    1.201698] LR is at ioremap_page_range+0x95/0xf8
[    1.206606] pc : [<c0325698>]    lr : [<c0255c75>]    psr: a0000033
[    1.206606] sp : ee871e18  ip : 00000000  fp : ee8d3400
[    1.218572] r10: c0837c18  r9 : eebd8000  r8 : eebd8590
[    1.224022] r7 : eebd8000  r6 : eebd8540  r5 : 00000000  r4 : f00fa000
[    1.230830] r3 : 80000000  r2 : 00000000  r1 : f00fb000  r0 : f00fa000
[    1.237642] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment kernel
[    1.245449] Control: 50c5387d  Table: aec14019  DAC: 00000015
[    1.251437] Process swapper/0 (pid: 1, stack limit = 0xee870240)
[    1.257698] Stack: (0xee871e18 to 0xee872000)
[    1.262241] 1e00:                                                       00000000 c00b6a89
[    1.270767] 1e20: c0883bb8 c0883bb8 eebd8540 eebd8298 ee8d3410 eeb85108 00000000 ee871e90
[    1.279298] 1e40: ee871e90 c00ff1b3 22222222 22222222 00000000 c0883bb8 eeb85108 eeb84840
[    1.287839] 1e60: eeb85108 c00ff0ef eeb85108 00000000 ee871e90 eeb85248 ee8d5c48 c00ff967
[    1.296374] 1e80: ee8494b8 c0049697 00000000 ee8d3444 00000020 00000008 ee8d3410 c0932e2c
[    1.304915] 1ea0: ee8d3410 c08a2c40 00000000 c081a039 00000100 c0837c18 00000000 c02c8279
[    1.313453] 1ec0: c02c8269 c02c771b 00000000 ee8d3410 c08a2c40 ee8d3444 00000000 c02c787b
[    1.321989] 1ee0: c08a2c40 c02c7831 00000000 c02c684f ee849478 ee8c4180 c08a2c40 c0898090
[    1.330527] 1f00: eeb84840 c02c720f c07460fc c08a2c40 c08a2c40 ee870000 c08c3980 00000000
[    1.339064] 1f20: c081a039 c02c7b7d 00000000 c0824838 ee870000 c08c3980 00000000 c081a039
[    1.347592] 1f40: 00000100 c000867f 00000007 00000007 c087bc98 c0824834 c0824838 00000007
[    1.356133] 1f60: c0824818 c08c3980 c07fe1c9 c0837c18 00000000 c07fe6a3 00000007 00000007
[    1.364664] 1f80: c07fe1c9 c1156fc0 00000000 c04c77c9 00000000 00000000 00000000 00000000
[    1.373197] 1fa0: 00000000 c04c77cf 00000000 c000c8fd 00000000 00000000 00000000 00000000
[    1.381725] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.390256] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 aaaaaaaa aaaaaaaa
[    1.398808] [<c0325698>] (cpsw_probe+0x348/0x960) from [<c02c8279>] (platform_drv_probe+0x11/0x14)
[    1.408168] [<c02c8279>] (platform_drv_probe+0x11/0x14) from [<c02c771b>] (driver_probe_device+0x53/0x168)
[    1.418257] [<c02c771b>] (driver_probe_device+0x53/0x168) from [<c02c787b>] (__driver_attach+0x4b/0x4c)
[    1.428077] [<c02c787b>] (__driver_attach+0x4b/0x4c) from [<c02c684f>] (bus_for_each_dev+0x27/0x48)
[    1.437522] [<c02c684f>] (bus_for_each_dev+0x27/0x48) from [<c02c720f>] (bus_add_driver+0xe3/0x168)
[    1.446958] [<c02c720f>] (bus_add_driver+0xe3/0x168) from [<c02c7b7d>] (driver_register+0x3d/0xc4)
[    1.456307] [<c02c7b7d>] (driver_register+0x3d/0xc4) from [<c000867f>] (do_one_initcall+0x1f/0xf4)
[    1.465671] [<c000867f>] (do_one_initcall+0x1f/0xf4) from [<c07fe6a3>] (kernel_init_freeable+0xc3/0x158)
[    1.475574] [<c07fe6a3>] (kernel_init_freeable+0xc3/0x158) from [<c04c77cf>] (kernel_init+0x7/0x98)
[    1.485022] [<c04c77cf>] (kernel_init+0x7/0x98) from [<c000c8fd>] (ret_from_fork+0x11/0x34)
[    1.493743] Code: f000 81d2 f8c7 05c0 (6803) f44f
[    1.498749] ---[ end trace 4e3fd77f93b18e91 ]---
[    1.503682] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.503682]

  • Are they modified the device tree file for their custom board ?
    Ask them to remove the code which is not applicable to their custom board and rebuild the kernel and dts file.
  • > omap2_mbox_probe: platform not supported
    > [ 0.554041] tps65217-bl tps65217-bl: no platform data provided

    If you started from the eval board code, the platform code reads from straps or EEPROM to determine the type of eval board. Then based on the type, the code initializes peripherals. The message: 'platform not supported' means that the code can't read the type. I'm guessing this is because the custom board doesn't have the expected hardware that provides the type, either by straps or EEPROM. If this is the case, the code for the custom board must be modified to either bypass the eval board type check or hardcode a type to pretend that its a particular board type.