Thursday, March 18, 2010

Booting Linux over JTAG

Note to self. A working gdb script to boot Linux kernel on an atmel board over JTAG.

Unfortunately this is not completely automatic. u-boot needs to be interrupted for loading the uImage through gdb. U-boot can then be resumed and kernel booted with bootm 0x22000000.

Also, either the emulator needs to be configured to ignore data aborts or kernel futex support to be disabled.

target remote emulator:2001

monitor reset halt

define bootstrap
file /path/to/at91sam9260ek/at91sam9260ek-nandflashboot-2.11-r1.elf
load
j *0x200000 #bootstrap entry point in sram
end

define u-boot
file /path/to/u-boot/u-boot
load
j *0x23f00000 # u-boot entry point in sdram
end

define linux
restore /path/to/arch/arm/boot/uImage binary 0x22000000
file /path/to/vmlinux
end

No comments:

Post a Comment