AnsweredAssumed Answered

Problems with SDCARD booting LS1021ATWR

Question asked by khandavalli on Feb 3, 2015
Latest reply on Mar 6, 2015 by Stefan Eichenberger

Hi, I’m working on LS1021A-Twr hardware using QorIQ SDK-V1.7, according to Ls1021aatwr document SDboot is supported, I’m facing few issues w.r.t SDBOOT.

 

Following is my set-up description:

a) Hardware: LS1021A-TWR

b) Kernel-3.12.19, u-boot:2014.07

c) Booting u-boot,kernel and Rootfs are from the SD-CARD.

d) Rootfs uses Systemd

 

Problem Description:

1) With same kernel,rootfs booting from SDCARD, Audio card is not getting detected in case of u-boot compiled and booted from SDCARD, and is working perfectly with u-boot compiled and booted from NOR:

 

Sound Log Snippet when u-boot from NOR, Kernel & Rootfs SDCARD:

 

sgtl5000 1-000a: sgtl5000 revision 0x11

mmc0: new high speed SDHC card at address aaaa

sgtl5000 1-000a: Failed to get supply 'VDDD': -19

mmcblk0: mmc0:aaaa SU08G 7.40 GiB

1-000a: 1200 mV normal

sgtl5000 1-000a: Using internal LDO instead of VDDD

mmcblk0: p1 p2

vf610-sgtl5000 sound.9:  sgtl5000 <-> 2b50000.sai mapping ok

oprofile: using timer interrupt.

TCP: cubic registered

Initializing XFRM netlink socket

NET: Registered protocol family 17

NET: Registered protocol family 15

can: controller area network core (rev 20120528 abi 9)

NET: Registered protocol family 29

can: raw protocol (rev 20120528)

Key type dns_resolver registered

regulator-dummy: disabling

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

ALSA device list:

  #0: FSL-VF610-TWR-BOARD

 

Sound Log Snippet when u-boot From SD, kernel & ROOTFS SDCARD:

 

sgtl5000: probe of 1-000a failed with error -110

vf610-sgtl5000 sound.9: ASoC: CODEC (null) not registered

vf610-sgtl5000 sound.9: TWR-AUDIO-SGTL board required :-517

platform sound.9: Driver vf610-sgtl5000 requests probe deferral

oprofile: using timer interrupt.

TCP: cubic registered

Initializing XFRM netlink socket

NET: Registered protocol family 17

NET: Registered protocol family 15

can: controller area network core (rev 20120528 abi 9)

NET: Registered protocol family 29

can: raw protocol (rev 20120528)

Key type dns_resolver registered

regulator-dummy: disabling

vf610-sgtl5000 sound.9: ASoC: CODEC (null) not registered

vf610-sgtl5000 sound.9: TWR-AUDIO-SGTL board required :-517

platform sound.9: Driver vf610-sgtl5000 requests probe deferral

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

ALSA device list:

  No soundcards found.

 

 

2) Compared the rcw_1000.rcw and rcw_1000_sdboot.rcw important difference seemed to be in LVDD_SEL modified it accordingly but there wasn’t any change.

 

3) Understood that U-boot-spl-pbl.bin which is used for  SDBOOT is a combination of rcw+u-boot, can you let me know the process to independently flashing the rcw_1000_sdboot.bin with u-boot compiled for SDcard.

 

4) Also observed recursive crashes w.r.t CPU idle, when I left the board booted from SDCARD idle for 15-20mins when CPU trying to enter idle mode it was crashing,Please find below the crash log:

 

root@ls1021atwr:~# dmesg | grep -i sgtl

sgtl5000: probe of 1-000a failed with error -110

vf610-sgtl5000 sound.9: ASoC: CODEC (null) not registered

vf610-sgtl5000 sound.9: TWR-AUDIO-SGTL board required :-517

platform sound.9: Driver vf610-sgtl5000 requests probe deferral

vf610-sgtl5000 sound.9: ASoC: CODEC (null) not registered

vf610-sgtl5000 sound.9: TWR-AUDIO-SGTL board required :-517

platform sound.9: Driver vf610-sgtl5000 requests probe deferral

vf610-sgtl5000 sound.9: ASoC: CODEC (null) not registered

vf610-sgtl5000 sound.9: TWR-AUDIO-SGTL board required :-517

platform sound.9: Driver vf610-sgtl5000 requests probe deferral

root@ls1021atwr:~# INFO: rcu_sched self-detected stall on CPU { 0}  (t=2100 jiffies g=0 c=4294967295 q=11)

CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.12.19-rt30+ #2

[<80010699>] (unwind_backtrace+0x1/0x8c) from [<8000e3ff>] (show_stack+0xb/0xc)

[<8000e3ff>] (show_stack+0xb/0xc) from [<80301fdf>] (dump_stack+0x4b/0x60)

[<80301fdf>] (dump_stack+0x4b/0x60) from [<80052217>] (rcu_check_callbacks+0x121/0x3f2)

[<80052217>] (rcu_check_callbacks+0x121/0x3f2) from [<8001fa1b>] (update_process_times+0x2b/0x44)

[<8001fa1b>] (update_process_times+0x2b/0x44) from [<8004438b>] (tick_periodic+0x6b/0x88)

[<8004438b>] (tick_periodic+0x6b/0x88) from [<800444a9>] (tick_handle_periodic+0x19/0x64)

[<800444a9>] (tick_handle_periodic+0x19/0x64) from [<80258a17>] (arch_timer_handler_phys+0x1f/0x26)

[<80258a17>] (arch_timer_handler_phys+0x1f/0x26) from [<8003d48f>] (handle_percpu_devid_irq+0x3f/0x54)

[<8003d48f>] (handle_percpu_devid_irq+0x3f/0x54) from [<8003b1e3>] (generic_handle_irq+0x13/0x1c)

[<8003b1e3>] (generic_handle_irq+0x13/0x1c) from [<8000c8fd>] (handle_IRQ+0x3d/0x60)

[<8000c8fd>] (handle_IRQ+0x3d/0x60) from [<800083d3>] (gic_handle_irq+0x2b/0x44)

[<800083d3>] (gic_handle_irq+0x2b/0x44) from [<80304d5b>] (__irq_svc+0x3b/0x5c)

Exception stack(0x804d1eb0 to 0x804d1ef8)

1ea0:                                     00000001 00200000 00000100 00000000

1ec0: 804d0018 00000000 00000082 80511100 80003010 410fc075 0000000a 00000000

1ee0: 00000000 804d1ef8 8001b29f 8001b2de 400d0133 ffffffff

[<80304d5b>] (__irq_svc+0x3b/0x5c) from [<8001b2de>] (__do_softirq+0x52/0x120)

[<8001b2de>] (__do_softirq+0x52/0x120) from [<8001b411>] (do_softirq+0x2d/0x38)

[<8001b411>] (do_softirq+0x2d/0x38) from [<8001b93d>] (irq_exit+0x4f/0x8e)

[<8001b93d>] (irq_exit+0x4f/0x8e) from [<8000c901>] (handle_IRQ+0x41/0x60)

[<8000c901>] (handle_IRQ+0x41/0x60) from [<800083d3>] (gic_handle_irq+0x2b/0x44)

[<800083d3>] (gic_handle_irq+0x2b/0x44) from [<80304d5b>] (__irq_svc+0x3b/0x5c)

Exception stack(0x804d1f70 to 0x804d1fb8)

1f60:                                     ffffffed 00000000 00884000 00000000

1f80: 804d0000 804d0000 804c1510 80d4dcc0 80003010 410fc075 00000000 00000000

1fa0: 00000008 804d1fb8 8000cae5 8000cae6 600d0033 ffffffff

[<80304d5b>] (__irq_svc+0x3b/0x5c) from [<8000cae6>] (arch_cpu_idle+0x1a/0x20)

[<8000cae6>] (arch_cpu_idle+0x1a/0x20) from [<8003b17d>] (cpu_startup_entry+0x7d/0xc4)

[<8003b17d>] (cpu_startup_entry+0x7d/0xc4) from [<804a1811>] (start_kernel+0x219/0x26c)

INFO: rcu_sched self-detected stall on CPU { 0}  (t=8403 jiffies g=0 c=4294967295 q=19)

CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.12.19-rt30+ #2

[<80010699>] (unwind_backtrace+0x1/0x8c) from [<8000e3ff>] (show_stack+0xb/0xc)

[<8000e3ff>] (show_stack+0xb/0xc) from [<80301fdf>] (dump_stack+0x4b/0x60)

[<80301fdf>] (dump_stack+0x4b/0x60) from [<80052217>] (rcu_check_callbacks+0x121/0x3f2)

[<80052217>] (rcu_check_callbacks+0x121/0x3f2) from [<8001fa1b>] (update_process_times+0x2b/0x44)

[<8001fa1b>] (update_process_times+0x2b/0x44) from [<8004438b>] (tick_periodic+0x6b/0x88)

[<8004438b>] (tick_periodic+0x6b/0x88) from [<800444a9>] (tick_handle_periodic+0x19/0x64)

[<800444a9>] (tick_handle_periodic+0x19/0x64) from [<80258a17>] (arch_timer_handler_phys+0x1f/0x26)

[<80258a17>] (arch_timer_handler_phys+0x1f/0x26) from [<8003d48f>] (handle_percpu_devid_irq+0x3f/0x54)

[<8003d48f>] (handle_percpu_devid_irq+0x3f/0x54) from [<8003b1e3>] (generic_handle_irq+0x13/0x1c)

[<8003b1e3>] (generic_handle_irq+0x13/0x1c) from [<8000c8fd>] (handle_IRQ+0x3d/0x60)

[<8000c8fd>] (handle_IRQ+0x3d/0x60) from [<800083d3>] (gic_handle_irq+0x2b/0x44)

[<800083d3>] (gic_handle_irq+0x2b/0x44) from [<80304d5b>] (__irq_svc+0x3b/0x5c)

Exception stack(0x804d1eb0 to 0x804d1ef8)

1ea0:                                     00000001 00200000 00000100 00000000

1ec0: 804d0018 00000000 00000082 80511100 80003010 410fc075 0000000a 00000000

1ee0: 00000000 804d1ef8 8001b29f 8001b2de 400d0133 ffffffff

[<80304d5b>] (__irq_svc+0x3b/0x5c) from [<8001b2de>] (__do_softirq+0x52/0x120)

[<8001b2de>] (__do_softirq+0x52/0x120) from [<8001b411>] (do_softirq+0x2d/0x38)

[<8001b411>] (do_softirq+0x2d/0x38) from [<8001b93d>] (irq_exit+0x4f/0x8e)

[<8001b93d>] (irq_exit+0x4f/0x8e) from [<8000c901>] (handle_IRQ+0x41/0x60)

[<8000c901>] (handle_IRQ+0x41/0x60) from [<800083d3>] (gic_handle_irq+0x2b/0x44)

[<800083d3>] (gic_handle_irq+0x2b/0x44) from [<80304d5b>] (__irq_svc+0x3b/0x5c)

Exception stack(0x804d1f70 to 0x804d1fb8)

1f60:                                     ffffffed 00000000 00884000 00000000

1f80: 804d0000 804d0000 804c1510 80d4dcc0 80003010 410fc075 00000000 00000000

1fa0: 00000008 804d1fb8 8000cae5 8000cae6 600d0033 ffffffff

[<80304d5b>] (__irq_svc+0x3b/0x5c) from [<8000cae6>] (arch_cpu_idle+0x1a/0x20)

[<8000cae6>] (arch_cpu_idle+0x1a/0x20) from [<8003b17d>] (cpu_startup_entry+0x7d/0xc4)

[<8003b17d>] (cpu_startup_entry+0x7d/0xc4) from [<804a1811>] (start_kernel+0x219/0x26c)

INFO: rcu_sched self-detected stall on CPU { 0}  (t=14706 jiffies g=0 c=4294967295 q=31)

CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.12.19-rt30+ #2

[<80010699>] (unwind_backtrace+0x1/0x8c) from [<8000e3ff>] (show_stack+0xb/0xc)

[<8000e3ff>] (show_stack+0xb/0xc) from [<80301fdf>] (dump_stack+0x4b/0x60)

[<80301fdf>] (dump_stack+0x4b/0x60) from [<80052217>] (rcu_check_callbacks+0x121/0x3f2)

[<80052217>] (rcu_check_callbacks+0x121/0x3f2) from [<8001fa1b>] (update_process_times+0x2b/0x44)

[<8001fa1b>] (update_process_times+0x2b/0x44) from [<8004438b>] (tick_periodic+0x6b/0x88)

[<8004438b>] (tick_periodic+0x6b/0x88) from [<800444a9>] (tick_handle_periodic+0x19/0x64)

[<800444a9>] (tick_handle_periodic+0x19/0x64) from [<80258a17>] (arch_timer_handler_phys+0x1f/0x26)

[<80258a17>] (arch_timer_handler_phys+0x1f/0x26) from [<8003d48f>] (handle_percpu_devid_irq+0x3f/0x54)

[<8003d48f>] (handle_percpu_devid_irq+0x3f/0x54) from [<8003b1e3>] (generic_handle_irq+0x13/0x1c)

[<8003b1e3>] (generic_handle_irq+0x13/0x1c) from [<8000c8fd>] (handle_IRQ+0x3d/0x60)

[<8000c8fd>] (handle_IRQ+0x3d/0x60) from [<800083d3>] (gic_handle_irq+0x2b/0x44)

[<800083d3>] (gic_handle_irq+0x2b/0x44) from [<80304d5b>] (__irq_svc+0x3b/0x5c)

Exception stack(0x804d1eb0 to 0x804d1ef8)

1ea0:                                     00000001 00200000 00000100 00000000

1ec0: 804d0018 00000000 00000082 80511100 80003010 410fc075 0000000a 00000000

1ee0: 00000000 804d1ef8 8001b29f 8001b2de 400d0133 ffffffff

[<80304d5b>] (__irq_svc+0x3b/0x5c) from [<8001b2de>] (__do_softirq+0x52/0x120)

[<8001b2de>] (__do_softirq+0x52/0x120) from [<8001b411>] (do_softirq+0x2d/0x38)

[<8001b411>] (do_softirq+0x2d/0x38) from [<8001b93d>] (irq_exit+0x4f/0x8e)

[<8001b93d>] (irq_exit+0x4f/0x8e) from [<8000c901>] (handle_IRQ+0x41/0x60)

[<8000c901>] (handle_IRQ+0x41/0x60) from [<800083d3>] (gic_handle_irq+0x2b/0x44)

[<800083d3>] (gic_handle_irq+0x2b/0x44) from [<80304d5b>] (__irq_svc+0x3b/0x5c)

Exception stack(0x804d1f70 to 0x804d1fb8)

1f60:                                     ffffffed 00000000 00884000 00000000

1f80: 804d0000 804d0000 804c1510 80d4dcc0 80003010 410fc075 00000000 00000000

1fa0: 00000008 804d1fb8 8000cae5 8000cae6 600d0033 ffffffff

[<80304d5b>] (__irq_svc+0x3b/0x5c) from [<8000cae6>] (arch_cpu_idle+0x1a/0x20)

[<8000cae6>] (arch_cpu_idle+0x1a/0x20) from [<8003b17d>] (cpu_startup_entry+0x7d/0xc4)

[<8003b17d>] (cpu_startup_entry+0x7d/0xc4) from [<804a1811>] (start_kernel+0x219/0x26c)

Outcomes