Skip to content

Instantly share code, notes, and snippets.

@kylemanna
Created November 15, 2011 17:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemanna/1367672 to your computer and use it in GitHub Desktop.
Save kylemanna/1367672 to your computer and use it in GitHub Desktop.
Relocate ELF binary file for use with JTAG debugging
#!/bin/sh
# Following command will relocate the linux kernel elf file from
# 0xc000_0000 to 0x8000_0000 which coincides with the actual load
# address on TI OMAP3 platforms.
# This should also work for debugging the second stage of u-boot
# after it has been relocated
arm-none-linux-gnueabi-objcopy --change-addresses -0x40000000 vmlinux vmlinux.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment