debug board setup / turning aux led on very late in the suspend path
Timo Juhani Lindfors
timo.lindfors at iki.fi
Fri Nov 5 11:53:33 CET 2010
Hi,
Timo Juhani Lindfors <timo.lindfors at iki.fi> writes:
> 8) (PC) run arm-linux-gnueabi-gdb
That should be
8) (PC) run arm-linux-gnueabi-gdb vmlinux
> 0xc0032864 in s3c2410_cpu_suspend ()
> 0xc0032864 <s3c2410_cpu_suspend+4>: ldr r5, [r4, #20]
> 0xc0032868 <s3c2410_cpu_suspend+8>: orr r5, r5, #4 ; 0x4
> 0xc003286c <s3c2410_cpu_suspend+12>: str r5, [r4, #20]
> (gdb) p $r4
> $3 = 1442840576
> (gdb) p/x $r4
> $4 = 0x56000000
> (gdb) xsi
> C-c C-cHalt timed out, wake up GDB.
And I guess this fails since leds are not mapped to that address under
linux.
0xc003311c in gta02_gpb_set ()
0xc003311c <gta02_gpb_set+100>: str r2, [r3, #20]
0xc0033120 <gta02_gpb_set+104>: msr CPSR_c, lr
0xc0033124 <gta02_gpb_set+108>: ldm sp, {r4, r5, r6, r11, sp, pc}
(gdb) p/x $r3
$11 = 0xfb000000
shows that the normal LED driver accesses them at a different address.
More information about the openmoko-kernel
mailing list