[ECOS] woes on making redboot RAM to be redboot ROM
liang rainti
rainti_1212@hotmail.com
Mon Sep 19 08:40:00 GMT 2005
hi,all,
i have successfully made redboot RAM mcf5272 template,but i occured hard
knocks on changing redboot RAM to redboot ROM .
Redboot ROM hung up arch\hal_startup.c"hal_init_ram_sections"
codes.would you give me some hits ?
My Redboot ROM procedure as following:
power-on---- __exception_reset{
move.w #2700, %sr
.extern hal_hardware_init
bra hal_hardware_init
move.l hsr_stack, %sp
lea hw_vsr_stack,%sp
lea 0,%fp
link %fp,#0
.extern hal_reset
jbsr hal_reset
}
----hal_reset()
{
hung up --- hal_init_ram_sections();
#ifdef
CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
hal_if_init();
#endif
......
}
hal_init_ram_section()
{
// Initialize the RAM data section from the ROM image of the data
// section.
memcpy(__rom_data_start, __ram_data_start, (size_t)__ram_data_size);
// Initialize the bss and sbss sections to zero.
memset(__bss_start, 0, (size_t)__bss_size);
memset(__sbss_start, 0, (size_t)__sbss_size);
}
attachment is my linker script for ROM,and "m68k.ld" "vector.S"
_________________________________________________________________
Ãëê»úµÃÃ
óÃýøÃý»Ã÷£¬ÃëùÃà MSN Messenger: http://messenger.msn.com/cn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mlt_m68k_mcf52xx_mcf5235_mcf5235evb_rom.ldi
Type: application/octet-stream
Size: 3578 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050919/060f7d50/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mlt_m68k_mcf52xx_mcf5235_mcf5235evb_rom.h
Type: application/octet-stream
Size: 2588 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050919/060f7d50/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vectors.S
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050919/060f7d50/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: m68k.ld
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050919/060f7d50/attachment-0001.ksh>
-------------- next part --------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list