Skip to contentSkip to conversation

linux hang on i.mx35 board, a sdma problem?

DISCUSSION Alexander Stein 2 participants 2 messages Oct 7, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I'm currently developing on an i.mx35 board (http://www.ic-
board.de/product_info.php?info=p159_ICnova-i-MX353-OEM.html) (I use the mx35_pdk config for linux kernel)
and noticed a strange behavior. If I run it while openocd is attached to JTAG linux stops/seem to stop during boot after initializing FEC. But if I stop the execution and attach gdb I can see it loops inside default_idle. After removing the fec driver the same goes until the first few chars printed from busybox init (run from initramfs).
If I don't attach openocd to JTAG, the system boots fine, but I cannot attach openocd to the running linux system.
I have to admit I removed the DMA device drivers, because otherwise linux doesn't seem to start at all.
Is this problem related to the sdma unit? I read something from the manual sdma can be blocked from jtag access, maybe this breaks the chain. If not, what could be the cause, that the system is not starting properly, but the idle loop is executed?

Best regards,
Alexander

PS: I tested eariler on the BSP (2.6.34) from in-circuit, but the test above is using linux-2.6.36-rc7.

#1 lore raw

Hi Alexander,

Quoted 12 lines · Alexander Stein

Hello,

I'm currently developing on an i.mx35 board (http://www.ic-
board.de/product_info.php?info=p159_ICnova-i-MX353-OEM.html) (I use the mx35_pdk config for linux kernel)
and noticed a strange behavior. If I run it while openocd is attached to JTAG linux stops/seem to stop during boot after initializing FEC. But if I stop the execution and attach gdb I can see it loops inside default_idle. After removing the fec driver the same goes until the first few chars printed from busybox init (run from initramfs).
If I don't attach openocd to JTAG, the system boots fine, but I cannot attach openocd to the running linux system.

Pass 'nohlt' in your kernel command line when you boot Linix with the JTAG cable connected.

Regards,

Fabio Estevam