From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Carlo Agostini Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] Problem with hello ... entry point Date: Mon, 03 Sep 2001 20:40:00 -0000 Message-id: <999574659.2048.9.camel@station91> References: <3B939F4F.D15734D4@yacme.com> X-SW-Source: 2001-09/msg00026.html On 03 Sep 2001 17:18:39 +0200, Carlo Agostini wrote: > Hi > > I have as soon as begun to use Redboot-eCos > and wanted of the suggestions. > > > I have get the current version of eCos packages via CVS > I type the following in RedHat 7.1 > > ecosconfig new pc redboot > ecosconfig import ../i386/pc/...../redboot_FLOPPY.ecm > I do not use the memory flash > > make > > > I 've successfully compiled both redboot.bin & redboot.elf > > Redboot runs from a floppy disk on 486 pc > > I have two PC (486 and Pentium)that communicates through serial port(I > use the program minicom(on Pentium)) > > I load with the serial port the compiled program hello with the tools > of i386-. > > I have loaded in memory RAM hello with the command load. > > > > Platform: PC (I386) > Copyright (C) 2000, 2001, Red Hat, Inc. > > RAM: 0x00000000-0x000a0000, 0x00088680-0x000a0000 available > > > load -v -r -m xmodem 0x00088680 > Don't use "raw" loads here. Convert your ELF file to S-records using 'objcopy -O srec' and then use the RedBoot load command without '-r'. > > file loaded 0x00088680-0x00163f80 > > Subsequently in memory I find > > > du -b 0x00088680 -l 0xff > > 0x00088680: 7F45 4C46 0101 0100 0000 0000 0000 0000 > |.ELF............| > 0x00088690: 0200 0300 0100 0000 0020 0000 3400 0000 |......... > ..4...| > 0x000886A0: 8C0B 0D00 0000 0000 3400 2000 0100 2800 |........4. > ...(.| > 0x000886B0: 1000 0D00 0100 0000 0010 0000 0020 0000 |............. > ..| > 0x000886C0: 0020 0000 4077 0100 E026 0200 0700 0000 |. > ..@w...&......| > 0x000886D0: 0010 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x000886E0: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x000886F0: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x00088700: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x00088710: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x00088720: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x00088730: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x00088740: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > 0x00088750: 0000 0000 0000 0000 0000 0000 0000 0000 > |................| > > > How I make to understand where is the entry point of the program hello ? > > > Thanking you in advance. > > Carlo