From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Carlo Agostini Cc: eCos Discussion Subject: Re: [ECOS] Problem with hello ... entry point Date: Wed, 05 Sep 2001 01:14:00 -0000 Message-id: <999677523.1772.23.camel@station91> References: <3B939F4F.D15734D4@yacme.com> <999574659.2048.9.camel@station91> <3B95DC90.F0202A01@yacme.com> X-SW-Source: 2001-09/msg00089.html Note: our policy is to ignore messages sent directly to engineers which are not also copied to the ecos-discuss mailing list. Further email sent directly to me will be [quitely] ignored. On Wed, 2001-09-05 at 17:04, Carlo Agostini wrote: > Gary Thomas wrote: > > > 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 > > Hi > > If I try with load - v - m XMODEM > > I do not succeed to transmit and I receive the following errors > > > > Retry 0: Got 52 for sector ACK > Retry 0: NAK on sector > Retry 0: Got 20 for sector ACK > RedBoot(t Retry 0: NAK on sector > Retry 0: Got 41 for sector ACK > Retry 0: Got 01 for sector ACK > > I succeed to only load with the option > > load -r -v -x modem -b 0x00088680 > > Thanking you in advance > Carlo You obviously are not sending the correct type of data. You *MUST* convert the file to S-records - ELF won't do.