Hi Kohsuke Ohtani,
The prexos image is created with a rule:
cat boot/bootldr tmp.a > prexos
How does this work when image prexos is loaded
into memory: How does tmp.a get allocated at ARCHIVE_START.
This is, if I understand it correctly, the location boot/bootldr
will search for it.
As noted I'm trying to port prexc to Sparc-Leon. A Sparc-Leon
board is somehow simple. It has FlashRom at addr 0x0, ram at addr
0x40000000. The flash at 0x0 should be programmed with prexos.
The way flash is programmed on a Leon system is to use a utility
called Grmon that reads a elf-files and programs the flash
according to the LMA addresses of the sections. To get boot/bootldr
working with Leon I'd do the following steps:
o convert tmp.a to elf binary:
sparc-elf-objcopy -O binary -R .note -R .comment -S tmp.a piggy
o then do the boot/bootldr build at the END using a script boot.ld (see
below) and changing ARCHIVE_START to __start_archive.
The Problem here is that I'd mix up the standard build that seems to
be used for pc and arm here. Can you explain how the gameboy boot
works?
-- Greetings Konrad
-------------- boot.ld -------------------
/*
* Linker script for boot loader
*/
SECTIONS {
. = 0x00000000;
.text . : {
*(.text)
}
.rodata . : {
*(.data.nosave)
}
.archive : {
__start_archive = .;
piggy
__end_archive = .;
}
. = 0x40000000;
.data . : {
/* should not match anything */
*(.data)
}
.bss . : {
__bss_start = ALIGN(0x8);
*(.bss)
*(COMMON)
__bss_end = ALIGN(0x8);
}
__end = . ;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Prex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/prex-devel