This creates a standalone ELF that executes just the Blackfin initcode. This is useful for people who want to program the low level aspects of the CPU (memory/clocks/etc...) and can easily be used with JTAG for quick booting while developing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>master
parent
08a82a447b
commit
fb5166ce35
@ -1 +1,4 @@ |
||||
bootrom-asm-offsets.[chs] |
||||
|
||||
init.lds |
||||
init.elf |
||||
|
@ -0,0 +1,9 @@ |
||||
#include <asm/blackfin.h> |
||||
ENTRY(_start) |
||||
sp.l = LO(L1_SRAM_SCRATCH_END - 20);
|
||||
sp.h = HI(L1_SRAM_SCRATCH_END - 20);
|
||||
call _initcode;
|
||||
1: |
||||
emuexcpt;
|
||||
jump 1b;
|
||||
END(_start) |
@ -0,0 +1,25 @@ |
||||
/* |
||||
* linker script for simple init.elf |
||||
* |
||||
* Copyright (c) 2005-2011 Analog Device Inc. |
||||
* |
||||
* Licensed under the GPL-2 or later. |
||||
*/ |
||||
|
||||
#include <config.h> |
||||
#include <asm/blackfin.h> |
||||
#undef ALIGN |
||||
#undef ENTRY |
||||
|
||||
OUTPUT_ARCH(bfin) |
||||
|
||||
MEMORY |
||||
{ |
||||
l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE |
||||
} |
||||
|
||||
ENTRY(_start) |
||||
SECTIONS |
||||
{ |
||||
.text.l1 : { *(.text .text.*) } >l1_code |
||||
} |
Loading…
Reference in new issue