* [ECOS] Problem with hello ... entry point
@ 2001-09-03 8:17 Carlo Agostini
2001-09-03 20:40 ` Gary Thomas
2001-09-06 23:47 ` Jonathan Larmour
0 siblings, 2 replies; 4+ messages in thread
From: Carlo Agostini @ 2001-09-03 8:17 UTC (permalink / raw)
To: ecos-discuss
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
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Problem with hello ... entry point
2001-09-03 8:17 [ECOS] Problem with hello ... entry point Carlo Agostini
@ 2001-09-03 20:40 ` Gary Thomas
[not found] ` <3B95DC90.F0202A01@yacme.com>
2001-09-06 23:47 ` Jonathan Larmour
1 sibling, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2001-09-03 20:40 UTC (permalink / raw)
To: Carlo Agostini; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Problem with hello ... entry point
[not found] ` <3B95DC90.F0202A01@yacme.com>
@ 2001-09-05 1:14 ` Gary Thomas
0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2001-09-05 1:14 UTC (permalink / raw)
To: Carlo Agostini; +Cc: eCos Discussion
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Problem with hello ... entry point
2001-09-03 8:17 [ECOS] Problem with hello ... entry point Carlo Agostini
2001-09-03 20:40 ` Gary Thomas
@ 2001-09-06 23:47 ` Jonathan Larmour
1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Larmour @ 2001-09-06 23:47 UTC (permalink / raw)
To: Carlo Agostini; +Cc: ecos-discuss
Carlo Agostini wrote:
>
> load -v -r -m xmodem 0x00088680
>
> file loaded 0x00088680-0x00163f80
>
> Subsequently in memory I find
>
> du -b 0x00088680 -l 0xff
>
> 0x00088680: 7F45 4C46 0101 0100 0000 0000 0000 0000
> |.ELF............|
[snip]
> How I make to understand where is the entry point of the program hello ?
You should use the binary version of the file, i.e. convert to binary with:
i386-elf-objcopy -O binary hello hello.bin
But perhaps it would be easier to use i386-elf-gdb to download, debug and
run your test executables, unless you deliberately wanted to use redboot
for some particular reason?
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-09-06 23:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-03 8:17 [ECOS] Problem with hello ... entry point Carlo Agostini
2001-09-03 20:40 ` Gary Thomas
[not found] ` <3B95DC90.F0202A01@yacme.com>
2001-09-05 1:14 ` Gary Thomas
2001-09-06 23:47 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).