f44d95630c
The hwemul tool is a small binary blob running on the device that can received commands over USB. It is mainly intended to be loaded using the recory mode and allows to read/write registers, memory, use the OTP device, ... The tool is split into three parts: dev/ contains the actual blob (which handles both imx233 and stmp3700), lib/ contains the communication library and can also use the register description produced by the regtools/ to ease register by name, tools/ contains an interactive tool to send commands to the device when running the blob. Change-Id: Ie8cb32e987f825d8ed750d48071e43415b4dacb3
49 lines
663 B
Text
49 lines
663 B
Text
|
|
ENTRY(start)
|
|
OUTPUT_FORMAT(elf32-littlearm)
|
|
OUTPUT_ARCH(arm)
|
|
STARTUP(crt0.o)
|
|
|
|
|
|
|
|
MEMORY
|
|
{
|
|
OCRAM : ORIGIN = 0, LENGTH = 0x8000
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.octext :
|
|
{
|
|
oc_codestart = .;
|
|
*(.text*)
|
|
*(.data*)
|
|
*(.rodata*)
|
|
} > OCRAM
|
|
|
|
.bss (NOLOAD) :
|
|
{
|
|
bss_start = .;
|
|
*(.bss)
|
|
bss_end = .;
|
|
} > OCRAM
|
|
|
|
.stack (NOLOAD) :
|
|
{
|
|
oc_codeend = .;
|
|
oc_stackstart = .;
|
|
. += 0x1000;
|
|
oc_stackend = .;
|
|
oc_bufferstart = .;
|
|
} > OCRAM
|
|
|
|
.ocend (0 + 0x8000) (NOLOAD) :
|
|
{
|
|
oc_bufferend = .;
|
|
} > OCRAM
|
|
|
|
/DISCARD/ :
|
|
{
|
|
*(.eh_frame)
|
|
}
|
|
}
|