Thread: [Etherboot-developers] Porting report
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Yannis M. <gm...@te...> - 2003-02-26 14:16:06
|
Hi all,
The "porting" of the etherboot is proceeding smoothly, I have managed
to overcome some problems. I have also studied the COFF file format and
based on the aout_loader I am able to download the minimum needed
sections, namely, the .text and .data.
One question that I have is the following (always refering to version
5.0.8):
Inside the tftp function I had to add in two different places some small
delays. namely:
Quoted from the main.c:
----------------------------
udelay(10000); <------------1st
664: for (;;)
{
long timeout;
#ifdef CONGESTED
timeout = rfc2131_sleep_interval(block?TFTP_REXMT: TIMEOUT, retry);
#else
timeout = rfc2131_sleep_interval(TIMEOUT, retry);
#endif
udelay(2000); <------------2st
if (!await_reply(AWAIT_TFTP, iport, NULL, timeout))
{
----------------------------
If I omit the udelays, from the tcpdump I can see that the processor
sends a lot of tftp requests before it gets an aknowledge from the server.
Any ideas on this ?
Regards
Yannis
--
Research Associate
National Technical University of Athens
Electrical & Computers Engineering Department
Computer Science Division, Telecommunications Laboratory
Heroon Polytechneiou 9, Zographou Campus, 157 73, Athens, Greece
E-mail:gm...@te...
Tel.: (+30)-210- 772 3939
Fax: (+30)-210- 772 2534
|
|
From: <Gee...@xs...> - 2003-02-26 14:30:22
|
On Wed, Feb 26, 2003 at 04:14:47PM +0200, Yannis Mitsos wrote: > Hi all, > > The "porting" of the etherboot is proceeding smoothly, I have managed > to overcome some problems. I have also studied the COFF file format and > based on the aout_loader I am able to download the minimum needed > sections, namely, the .text and .data. > > One question that I have is the following > (always refering to version 5.0.8): [ snip ] > > Any ideas on this ? Why not developing on development version? ( 5.1.16 ) |
|
From: Yannis M. <gm...@te...> - 2003-02-26 14:33:43
|
Geert Stappers wrote: >Why not developing on development version? > >( 5.1.16 ) > > Because I have started working on the 5.0.8. When I will finish with the coff loader, I will move-on with the 5.1.16 version. Yannis -- Research Associate National Technical University of Athens Electrical & Computers Engineering Department Computer Science Division, Telecommunications Laboratory Heroon Polytechneiou 9, Zographou Campus, 157 73, Athens, Greece E-mail:gm...@te... Tel.: (+30)-210- 772 3939 Fax: (+30)-210- 772 2534 |
|
From: Boris R. <bo...@bo...> - 2003-02-26 17:22:32
|
I just downloaded the latest etherboot 5.1.xx cvs and I compiled all the drivers into one file and write it to a disk [make bin/etherboot.fd0]. That works fine but each time etherboot tries to boot it automatically reboots the PC before showing the etherboot screen. I have tested this on 3 machines and they all do the same thing! Anyone else having this problem? |
|
From: Gustavo J. A. <al...@co...> - 2003-02-26 18:09:37
|
Here I got a blue screen (this remember another software ;-) ) and everything freezes, with nothing on the screen. I tryied with 2 machines with etherboot.zfd0 and etherboot-pci.zfd0. Boris Reisig wrote: >I just downloaded the latest etherboot 5.1.xx cvs and I compiled all the >drivers into one file and write it to a disk [make bin/etherboot.fd0]. That >works fine but each time etherboot tries to boot it automatically reboots >the PC before showing the etherboot screen. I have tested this on 3 machines >and they all do the same thing! Anyone else having this problem? > > > >------------------------------------------------------- >This SF.net email is sponsored by: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >Etherboot-developers mailing list >Eth...@li... >https://lists.sourceforge.net/lists/listinfo/etherboot-developers > > |
|
From: <ebi...@ln...> - 2003-02-26 19:49:48
|
Boris Reisig <bo...@bo...> writes: > I just downloaded the latest etherboot 5.1.xx cvs and I compiled all the > drivers into one file and write it to a disk [make bin/etherboot.fd0]. That > works fine but each time etherboot tries to boot it automatically reboots > the PC before showing the etherboot screen. I have tested this on 3 machines > and they all do the same thing! Anyone else having this problem? Hmm. I have not gotten that far with it. I think there is a bug somewhere in the floppy loader with regard to loading large > 36K binaries. Eric |
|
From: <ebi...@ln...> - 2003-02-26 19:51:48
|
Yannis Mitsos <gm...@te...> writes:
> Hi all,
>
> The "porting" of the etherboot is proceeding smoothly, I have managed to
> overcome some problems. I have also studied the COFF file format and based on
> the aout_loader I am able to download the minimum needed sections, namely, the
> .text and .data.
>
> One question that I have is the following (always refering to version 5.0.8):
> Inside the tftp function I had to add in two different places some small
> delays. namely:
> Quoted from the main.c:
> ----------------------------
>
> udelay(10000); <------------1st
> 664: for (;;)
> {
> long timeout;
> #ifdef CONGESTED
> timeout = rfc2131_sleep_interval(block?TFTP_REXMT: TIMEOUT, retry);
> #else
> timeout = rfc2131_sleep_interval(TIMEOUT, retry);
> #endif
> udelay(2000); <------------2st
> if (!await_reply(AWAIT_TFTP, iport, NULL, timeout))
> {
> ----------------------------
>
> If I omit the udelays, from the tcpdump I can see that the processor sends a lot
>
> of tftp requests before it gets an aknowledge from the server.
>
> Any ideas on this ?
currticks() appears not to be working.
Eric
|
|
From: Yannis M. <gm...@te...> - 2003-02-27 14:55:35
|
Hi Eric, >currticks() appears not to be working. > > Ok I found the problem, I have commented out in the await_reply function a check that is performed to see if the ESC is pressed and I have substituted with something else ...:-( Now it is ok ... Before finishing the porting in the 5.0.8 version I have left 2 more open issues. 1) I did not manage to implement the dosum in assembly. But I have seen from the 5.1.x that is implemented in C so there is no need to move-on with this. 2) Currently the COFF loader loads only the .text and .data sections. I should make this a little bit more generic since the COFF file may include up to 2^16 different sections. Currently, the COFF loader is similar to the a.out but is should be like the ELF loader. The help I need from you know is to clarify the usage of the "meminfo" structure and how it is initialized. Is this related to the PC architecture ? Do we need this in an embedded system ? My first feeling is that I can load the structure with some static values without the need to execute functions such as basememsize(), meme820() which I do not know what they are supposed to return :-( Finally, I would like to give my congratulations to all people that have contributed to this project. Now that I can run the etherboot in my development board I can save up to 5 minutes each time I load a new kernel. And you can imagine how important is this when you are developing a new kernel ..:-) Regards Yannis |
|
From: <ebi...@ln...> - 2003-02-27 16:11:14
|
Yannis Mitsos <gm...@te...> writes: > Hi Eric, > > >currticks() appears not to be working. > > > Ok I found the problem, I have commented out in the await_reply function a check > > that is performed to see if the ESC is pressed and I have substituted with > something else ...:-( > Now it is ok ... > > Before finishing the porting in the 5.0.8 version I have left 2 more open > issues. > > 1) I did not manage to implement the dosum in assembly. But I have seen from > the 5.1.x that is implemented in C so there is no need to move-on with this. Right. We don't need extreme speed an obvious version in C is fine. > 2) Currently the COFF loader loads only the .text and .data sections. I should > make this a little bit more generic since the COFF file may include up to 2^16 > different sections. Currently, the COFF loader is similar to the a.out but is > should be like the ELF loader. > > The help I need from you know is to clarify the usage of the "meminfo" structure > > and how it is initialized. Is this related to the PC architecture ? Do we need > this in an embedded system ? Yes and no. It comes out of the PC architecture but the concept is a sound one. The portable concept is a set of ranges where you have memory. On PC there are typically only two ranges and occasionally more. On an embedded system if you only have one range of memory that is fine. Etherboot uses those ranges of memory to verify you actually can load the executable you are trying to load. > My first feeling is that I can load the structure with some static values > without the need to execute functions such as basememsize(), meme820() which I > do not know what they are supposed to return :-( Correct. Though actually detecting how much memory you have would be polite. Eric |
|
From: <ebi...@ln...> - 2003-03-18 13:37:54
|
Yannis Mitsos <gm...@te...> writes: > Hi all, > > The "porting" of the etherboot is proceeding smoothly, I have managed to > overcome some problems. I have also studied the COFF file format and based on > the aout_loader I am able to download the minimum needed sections, namely, the > .text and .data. How comes the port? Eric |
|
From: Yannis M. <gm...@te...> - 2003-03-18 14:39:36
|
Hi Eric, I was a little bit occupied with the porting of the Linux kernel so I didn't have much time to spend to the porting of the etherboot. Currently, having modified the a.out loader the COFF file format works fine. I have started studying the ELF format to write a "correct" COFF loader (the COFF format has many similarities to the ELF). All this work is performed in the 5.0.8 version. When, I finished with the COFF loader, I will move on to the 5.1.x to synchronize with the current distribution. Of course some other minor open points should be also closed prior to the release. Yannis Eric W. Biederman wrote: >Yannis Mitsos <gm...@te...> writes: > > > >>Hi all, >> >>The "porting" of the etherboot is proceeding smoothly, I have managed to >>overcome some problems. I have also studied the COFF file format and based on >>the aout_loader I am able to download the minimum needed sections, namely, the >>.text and .data. >> >> > >How comes the port? > >Eric > > > >------------------------------------------------------- >This SF.net email is sponsored by: Does your code think in ink? >You could win a Tablet PC. Get a free Tablet PC hat just for playing. >What are you waiting for? >http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en >_______________________________________________ >Etherboot-developers mailing list >Eth...@li... >https://lists.sourceforge.net/lists/listinfo/etherboot-developers > > > -- Research Associate National Technical University of Athens Electrical & Computers Engineering Department Computer Science Division, Telecommunications Laboratory Heroon Polytechneiou 9, Zographou Campus, 157 73, Athens, Greece E-mail:gm...@te... Tel.: (+30)-210- 772 3939 Fax: (+30)-210- 772 2534 |