[uClibc]Memory Map Hermit vs ice_boot?
Trilok
trilok_soni at tectonas.com
Sat Jul 27 06:03:42 UTC 2002
Hi,
I have successfully created ARM Linux Toolchain for CDB89712 Rev B, board. I have refered instructions from Roland Seuhs' page for porting. So I have used Hermit and ShoeHorn. Now I want to develop simple ledblink program. But this program gives me memory fault when I had executed it on CDB89712 Target.
/* This program works on WinNT MULTI 2000 - ice_boot */
---------------Ledblink.c ----------------
#include "ioregs.h" /* same files used in Hermit target directory */
#define DELAYTIME 400000
int main(){
int i;
for(;;){
IO_PDDR |= 0x1;
for(i=0; i< DELAYTIME; i++);
IO_PDDR &= ~0x1;
for(i=0; i< DELAYTIME; i++);
}
return 0;
}
-------------------------------------------------
Then I have statically linked this program using uClibc. I have attached Makefile and ledblink.c with this e-mail . But what I am thinking is Do I required entry.S and Init.s which you are using when compilation of hermit?. Well please send me the Memory Map generated by hermit on chip. I am sending you memory map generated by ice_boot for your reference.
Physical Address Space | Description | Decode |
0x0000:0000 - 0x00FF:FFFF | Ice_boot program |
0x0000:0000 - 0x0000:4000 | Ice_boot program |
0x0000:4000 - 0x0000:8000 | Page Table for MMU |
0x0000:8000 - 0x00FF:FFFF | User program space |
0x0100:0000 - 0x017F:FFFF | 8 Mbytes FLASH BANK 1 | nCS0 |
0x0180:0000 - 0x01FF:FFFF | 8 Mbytes FLASH BANK 1 | nCS0 |
0x1000:0000 - 0x1FFF:FFFF | Reserved | | nCS0 |
0x2000:0000 - 0x2FFF:FFFF | On board ethernet port | nCS2 |
0x3000:0000 - 0x3FFF:FFFF | 40 KBytes Expansion Header: Parallel port, keyboard | nCS1 |
0x4000:0000 - 0x4FFF:FFFF | Expansion Header: USB Controller |
0x5000:0000 - 0x5FFF:FFFF | Expansion Header |
0x6000:0000 - 0x6000:BFFF | 48 Kbytes On Chip SRAM |
0x7000:0000 - 0x7000:007F | On chip Boot code, 128 bytes |
0x8000:0000 - 0x8000:02FF | CS89712 Internal Registers |
Well, My statically linked Hello,World program without any direct pointer reference is working perfactly on target. So may be I have not attached some assembly startup code with this ledblink.o . Please guide me how you are compiling hermit target.
Right now we are doing development on MULTI 2000 Evaluation Version with ICE_BOOT. You can visit www.tectonas.com to get more information about us.
Regards,
Trilok Soni.
Sr. Software Engineer.
Tectona SoftSolutions(P) Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20020727/8f537055/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ledblink.c
Type: application/octet-stream
Size: 207 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020727/8f537055/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 1290 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020727/8f537055/attachment-0001.obj
More information about the uClibc
mailing list