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.

am335x starter kit. status check.

So I'm trying to get a starterkit evaluation board up and running with the SDK 7.0.

I attached a picture on the board just to make sure I in fact is running on a starterkit. I can't see that name anywhere on the board. but the label has it at revision 1.2b.

I have downloaded ti-sdk-am335x-evm-07.00.00.00-Linux-x86-Install.bin and installed it. created a sdcard from that and booted it up. it starts.

But here is the thing. when I do 

echo mem >/sys/power/state. it just hangs ? should this not work ? where have I gone wrong ??

I tried the original prebuilt images and the kernel and device tree built when doing make by loading them from tftp server. I'm using the device tree named am335x-evmsk.dtb. and the kernel image from ./board-support/linux-3.12.10-ti2013.12.01/arch/arm/boot/zImage.

So how do I get suspend to work on this board with sdk 7.0. 

  • Hi Kenneth,

    I just tried using the default SDK v7 binaries with StarterKit rev 1.1A and I can verify that it's working absolutely normal:

    root@am335x-evm:~# echo mem > /sys/power/state
    [   60.227513] PM: Syncing filesystems ... done.
    [   65.978314] Freezing user space processes ... (elapsed 0.001 seconds) done.
    [   65.986886] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
    [   65.995947] Suspending console(s) (use no_console_suspend to debug)

    After pressing a button in the terminal, the system wakes up.

    Did you try using the pre-built images from inside <sdk_dir>/board-support/prebuilt-images/ ?

    Best regards,
    Miroslav

  • yes I was using the prebuilt. I have 

    373f8ba9aa5ff6485b571dbf8c2cfe77 zImage-am335x-evm.bin
    d4a7f1b5265260025e09dff9c3b0e654 am335x-evmsk.dtb

    so I could not wake up. using the switch labeled sw2. or anything else I tried. I did some more testing and if I add no_console_suspend I now see what is happening. It do wake up but fail on the resume path.

    what wakeup sources should work ? right now the only thing that gets a reaction is the sw3 switch. 

    here is is the output I get.

    echo mem >/sys/power/state 
    [ 38.067160] PM: Syncing filesystems ... done.
    [ 38.171330] PM: Preparing system for mem sleep
    [ 38.177123] Freezing user space processes ... (elapsed 0.001 seconds) done.
    [ 38.185675] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
    [ 38.194696] PM: Entering mem sleep
    [ 38.199492] g_mass_storage gadget: reset config
    [ 38.215912] PM: suspend of devices complete after 16.876 msecs
    [ 38.222792] PM: late suspend of devices complete after 0.691 msecs
    [ 38.230166] PM: noirq suspend of devices complete after 0.784 msecs
    [ 38.236904] PM: Successfully put all powerdomains to target state
    [ 38.236904] PM: Wakeup source GPIO0
    [ 38.236937] Unhandled fault: external abort on non-linefetch (0x1028) at 0xf9e07030
    [ 38.245034] Internal error: : 1028 [#1] ARM
    [ 38.249452] Modules linked in: g_mass_storage usb_f_mass_storage libcomposite configfs bufferclass_ti(O) omaplfb(O) cryptodev(O) musb_dsps musb_hdrc pvrsrvkm(O) snd_soc_omap snd_pcm_dmaengine snd_soc_tlv320aic3x snd_soc_davinci_mcasp lis3lv02d_i2c snd_soc_evm lis3lv02d snd_soc_davinci input_polldev snd_soc_core snd_compress regmap_spi snd_pcm snd_page_alloc snd_timer snd soundcore musb_am335x
    [ 38.286329] CPU: 0 PID: 1483 Comm: sh Tainted: G O 3.12.10-ti2013.12.01 #1
    [ 38.294512] task: cd398b80 ti: cd6a6000 task.ti: cd6a6000
    [ 38.300238] PC is at gpio_irq_handler+0x10c/0x214
    [ 38.305208] LR is at gpio_irq_handler+0xdc/0x214
    [ 38.310086] pc : [<c028ee08>] lr : [<c028edd8>] psr: 20000193
    [ 38.310086] sp : cd6a7d90 ip : 0000003c fp : cd6a7dc4
    [ 38.322211] r10: 40000000 r9 : cd0b9210 r8 : 00000001
    [ 38.327728] r7 : 00000000 r6 : 00000001 r5 : f9e0702c r4 : 40000000
    [ 38.334621] r3 : f9e0703c r2 : f9e07030 r1 : 00000030 r0 : cd0b9210
    [ 38.341517] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
    [ 38.349145] Control: 10c5387d Table: 8d7ec019 DAC: 00000015
    [ 38.355212] Process sh (pid: 1483, stack limit = 0xcd6a6240)
    [ 38.361188] Stack: (0xcd6a7d90 to 0xcd6a8000)
    [ 38.365791] 7d80: cd007bc0 cd00a3bc cd6a7db4 00000070
    [ 38.374432] 7da0: 00000070 00000000 00000070 c00604e0 00000000 c07aabf8 cd6a7ddc cd6a7dc8
    [ 38.383074] 7dc0: c0070f34 c028ed08 00000110 c07ff37c cd6a7dfc cd6a7de0 c0015560 c0070f18
    [ 38.391715] 7de0: 00000080 fa200000 cd6a7e20 c082e914 cd6a7e1c cd6a7e00 c000879c c0015534
    [ 38.400357] 7e00: c006d3d0 60000113 ffffffff cd6a7e54 cd6a7e74 cd6a7e20 c056f1c0 c0008740
    [ 38.408998] 7e20: cd2991c0 000000ff 00000000 60000193 c0831b24 00000003 00000000 c0831b24
    [ 38.417639] 7e40: c00604e0 00000000 c07aabf8 cd6a7e74 cd6a7e78 cd6a7e68 c006d670 c006d3d0
    [ 38.426280] 7e60: 60000113 ffffffff cd6a7ebc cd6a7e78 c006d670 c006d3cc cd0a38c0 00000004
    [ 38.434922] 7e80: cd6a7eac cd6a7e90 c05697f4 c006f878 c06a87e0 00000000 00000003 c06a6ed0
    [ 38.443563] 7ea0: 00000003 cd758000 cd0a38c0 00000004 cd6a7edc cd6a7ec0 c006d928 c006d3e0
    [ 38.452204] 7ec0: 0000006d 00000003 c06a6ed0 c05796cc cd6a7f04 cd6a7ee0 c006c594 c006d71c
    [ 38.460851] 7ee0: 00000004 cc18f7d8 cd6a7f78 cc18f7c0 cd0a8d08 c0596a64 cd6a7f14 cd6a7f08
    [ 38.469499] 7f00: c0264cc0 c006c530 cd6a7f44 cd6a7f18 c012ccb8 c0264cb0 cd6a7f78 cc2563c0
    [ 38.478146] 7f20: 00000004 000bc408 cd6a7f78 00000000 cd6a6000 00000004 cd6a7f74 cd6a7f48
    [ 38.486792] 7f40: c00d17e4 c012cb54 cd6a7f74 cd6a7f58 00000000 00000000 cc2563c0 000bc408
    [ 38.495439] 7f60: 00000000 00000004 cd6a7fa4 cd6a7f78 c00d1bf8 c00d1738 00000000 00000000
    [ 38.504085] 7f80: 485f7e68 00000004 000bc408 00000004 c0014808 00000000 00000000 cd6a7fa8
    [ 38.512732] 7fa0: c0014660 c00d1bc0 485f7e68 00000004 00000001 000bc408 00000004 00000000
    [ 38.521379] 7fc0: 485f7e68 00000004 000bc408 00000004 00000000 00000001 bee4faf4 00000000
    [ 38.530025] 7fe0: 00000000 bee4fa7c 48567f67 4859e64c 400f0010 00000001 00000000 00000000
    [ 38.538665] Backtrace:
    [ 38.541269] [<c028ecfc>] (gpio_irq_handler+0x0/0x214) from [<c0070f34>] (generic_handle_irq+0x28/0x38)
    [ 38.551125] [<c0070f0c>] (generic_handle_irq+0x0/0x38) from [<c0015560>] (handle_IRQ+0x38/0x8c)
    [ 38.560317] r4:c07ff37c r3:00000110
    [ 38.564110] [<c0015528>] (handle_IRQ+0x0/0x8c) from [<c000879c>] (omap3_intc_handle_irq+0x68/0x7c)
    [ 38.573577] r6:c082e914 r5:cd6a7e20 r4:fa200000 r3:00000080
    [ 38.579594] [<c0008734>] (omap3_intc_handle_irq+0x0/0x7c) from [<c056f1c0>] (__irq_svc+0x40/0x54)
    [ 38.588971] Exception stack(0xcd6a7e20 to 0xcd6a7e68)
    [ 38.594312] 7e20: cd2991c0 000000ff 00000000 60000193 c0831b24 00000003 00000000 c0831b24
    [ 38.602959] 7e40: c00604e0 00000000 c07aabf8 cd6a7e74 cd6a7e78 cd6a7e68 c006d670 c006d3d0
    [ 38.611601] 7e60: 60000113 ffffffff
    [ 38.615283] r7:cd6a7e54 r6:ffffffff r5:60000113 r4:c006d3d0
    [ 38.621288] [<c006d3c0>] (arch_suspend_enable_irqs+0x0/0x14) from [<c006d670>] (suspend_devices_and_enter+0x29c/0x33c)
    [ 38.632601] [<c006d3d4>] (suspend_devices_and_enter+0x0/0x33c) from [<c006d928>] (pm_suspend+0x218/0x254)
    [ 38.642719] [<c006d710>] (pm_suspend+0x0/0x254) from [<c006c594>] (state_store+0x70/0xc0)
    [ 38.651359] r6:c05796cc r5:c06a6ed0 r4:00000003 r3:0000006d
    [ 38.657373] [<c006c524>] (state_store+0x0/0xc0) from [<c0264cc0>] (kobj_attr_store+0x1c/0x28)
    [ 38.666395] [<c0264ca4>] (kobj_attr_store+0x0/0x28) from [<c012ccb8>] (sysfs_write_file+0x170/0x1a4)
    [ 38.676065] [<c012cb48>] (sysfs_write_file+0x0/0x1a4) from [<c00d17e4>] (vfs_write+0xb8/0x190)
    [ 38.685171] [<c00d172c>] (vfs_write+0x0/0x190) from [<c00d1bf8>] (SyS_write+0x44/0x78)
    [ 38.693541] [<c00d1bb4>] (SyS_write+0x0/0x78) from [<c0014660>] (ret_fast_syscall+0x0/0x30)
    [ 38.702366] Code: 0a000002 e5992008 e0822001 e582a000 (e5921000)
    [ 38.708810] ---[ end trace 9b0c5fb337ecfd2d ]---
    [ 38.713686] Kernel panic - not syncing: Fatal exception in interrupt
     
  • Kenneth, I'll try to involve someone from the factory team regarding your issue.

    Best regards,
    Miroslav

  • After attaching the screen I can wakeup on touch event. still gpio halts the system.

  • Miroslav, any news on this?