The easiest way to build Etherboot 5.2.6 is to use gcc 3.2.2. I found another machine and built an old gcc and etherboot compiled.
I got errors with the new gcc, tried to fix them, but could never get it to compile. It would be good, if someone knowledgeable could make etherboot work on the current gcc.
Steve
-----Original Message----- From: Steve Magnani [mailto:steve@digidescorp.com] Sent: Thursday, July 14, 2005 6:39 AM To: Kimball, Stephen; linuxbios@openbios.org Subject: RE: [LinuxBIOS] etherboot with LinuxBIOS
On Wed May 25 14:13:05 2005, Stephen.Kimball at bench.com wrote:
Does anyone know how to build etherboot with a current version of gcc? I am using gcc version 3.4.3 and binutils 2.15. I've tried several etherboot versions up to 5.4.0. I know etherboot 5.2.6 with gcc 3.2.2 works, but that's an old version
of > gcc. Thanks.
Steve - Did you ever find a resolution to this? I didn't see any followups on the mailing list. I have the same toolchain as you, so if there's a way to avoid building another one just for Etherboot I'd like to know!
Thanks, Steve Magnani
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something over the network yet.
Steve www.digidescorp.com
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
I think this patch fixes the bug.
--- etherboot-5.4.0/src/core/osloader.c.orig 2005-02-15 19:46:56.000000000 -0600 +++ etherboot-5.4.0/src/core/osloader.c 2005-07-15 14:13:39.234375000 -0500 @@ -350,10 +350,11 @@ else { len -= (skip_sectors << 9) + skip_bytes; data += (skip_sectors << 9) + skip_bytes; + skip_sectors = os_download(data, len, eof); + skip_bytes = 0; + } - skip_sectors = os_download(data, len, eof); - skip_bytes = 0; - + return 1; }
Steve Magnani www.digidescorp.com
-----Original Message----- From: yhlu [mailto:yinghailu@gmail.com] Sent: Thursday, July 14, 2005 9:10 AM To: Steven J. Magnani Cc: Stephen.Kimball@bench.com; linuxbios@openbios.org Subject: Re: [LinuxBIOS] etherboot with LinuxBIOS
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the
config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something
over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
Great,
Tim, Can you verify that?
YH
On 7/15/05, Steven J. Magnani steve@digidescorp.com wrote:
I think this patch fixes the bug.
--- etherboot-5.4.0/src/core/osloader.c.orig 2005-02-15 19:46:56.000000000 -0600 +++ etherboot-5.4.0/src/core/osloader.c 2005-07-15 14:13:39.234375000 -0500 @@ -350,10 +350,11 @@ else { len -= (skip_sectors << 9) + skip_bytes; data += (skip_sectors << 9) + skip_bytes;
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
}
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
return 1;
}
Steve Magnani www.digidescorp.com
-----Original Message----- From: yhlu [mailto:yinghailu@gmail.com] Sent: Thursday, July 14, 2005 9:10 AM To: Steven J. Magnani Cc: Stephen.Kimball@bench.com; linuxbios@openbios.org Subject: Re: [LinuxBIOS] etherboot with LinuxBIOS
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the
config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something
over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
I made the original change that caused this:
http://cvs.sourceforge.net/viewcvs.py/etherboot/etherboot/etherboot-5.3/src/...
At the time the change was made to fix an issue that was reported to cause Etherboot to fail to boot some kernels. IIRC, EB failed to recognize that the kernel download was complete. However, the fix seems to have broken memtest and FreeBSD.
From my point of view the this patch should be accepted to revert to the original functionality. I think this may cause the original problem that I tried to correct to reappear but that may help someone fix the real problem correctly this time.
Regards
Tim
yhlu wrote:
Great,
Tim, Can you verify that?
YH
On 7/15/05, Steven J. Magnani steve@digidescorp.com wrote:
I think this patch fixes the bug.
--- etherboot-5.4.0/src/core/osloader.c.orig 2005-02-15 19:46:56.000000000 -0600 +++ etherboot-5.4.0/src/core/osloader.c 2005-07-15 14:13:39.234375000 -0500 @@ -350,10 +350,11 @@ else { len -= (skip_sectors << 9) + skip_bytes; data += (skip_sectors << 9) + skip_bytes;
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
}
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
return 1;
}
Steve Magnani www.digidescorp.com
-----Original Message----- From: yhlu [mailto:yinghailu@gmail.com] Sent: Thursday, July 14, 2005 9:10 AM To: Steven J. Magnani Cc: Stephen.Kimball@bench.com; linuxbios@openbios.org Subject: Re: [LinuxBIOS] etherboot with LinuxBIOS
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the
config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something
over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ Etherboot-users mailing list Etherboot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/etherboot-users
Good.
I may switch to 5.4 from now on...
YH
On 7/17/05, Timothy Legge tlegge@rogers.com wrote:
I made the original change that caused this:
http://cvs.sourceforge.net/viewcvs.py/etherboot/etherboot/etherboot-5.3/src/...
At the time the change was made to fix an issue that was reported to cause Etherboot to fail to boot some kernels. IIRC, EB failed to recognize that the kernel download was complete. However, the fix seems to have broken memtest and FreeBSD.
From my point of view the this patch should be accepted to revert to the original functionality. I think this may cause the original problem that I tried to correct to reappear but that may help someone fix the real problem correctly this time.
Regards
Tim
yhlu wrote:
Great,
Tim, Can you verify that?
YH
On 7/15/05, Steven J. Magnani steve@digidescorp.com wrote:
I think this patch fixes the bug.
--- etherboot-5.4.0/src/core/osloader.c.orig 2005-02-15 19:46:56.000000000 -0600 +++ etherboot-5.4.0/src/core/osloader.c 2005-07-15 14:13:39.234375000 -0500 @@ -350,10 +350,11 @@ else { len -= (skip_sectors << 9) + skip_bytes; data += (skip_sectors << 9) + skip_bytes;
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
}
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
return 1;
}
Steve Magnani www.digidescorp.com
-----Original Message----- From: yhlu [mailto:yinghailu@gmail.com] Sent: Thursday, July 14, 2005 9:10 AM To: Steven J. Magnani Cc: Stephen.Kimball@bench.com; linuxbios@openbios.org Subject: Re: [LinuxBIOS] etherboot with LinuxBIOS
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the
config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something
over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ Etherboot-users mailing list Etherboot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/etherboot-users
Good.
I may switch to 5.4 from now on...
YH
On 7/17/05, Timothy Legge tlegge@rogers.com wrote:
I made the original change that caused this:
http://cvs.sourceforge.net/viewcvs.py/etherboot/etherboot/etherboot-5.3/src/...
At the time the change was made to fix an issue that was reported to cause Etherboot to fail to boot some kernels. IIRC, EB failed to recognize that the kernel download was complete. However, the fix seems to have broken memtest and FreeBSD.
From my point of view the this patch should be accepted to revert to the original functionality. I think this may cause the original problem that I tried to correct to reappear but that may help someone fix the real problem correctly this time.
Regards
Tim
yhlu wrote:
Great,
Tim, Can you verify that?
YH
On 7/15/05, Steven J. Magnani steve@digidescorp.com wrote:
I think this patch fixes the bug.
--- etherboot-5.4.0/src/core/osloader.c.orig 2005-02-15 19:46:56.000000000 -0600 +++ etherboot-5.4.0/src/core/osloader.c 2005-07-15 14:13:39.234375000 -0500 @@ -350,10 +350,11 @@ else { len -= (skip_sectors << 9) + skip_bytes; data += (skip_sectors << 9) + skip_bytes;
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
}
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
return 1;
}
Steve Magnani www.digidescorp.com
-----Original Message----- From: yhlu [mailto:yinghailu@gmail.com] Sent: Thursday, July 14, 2005 9:10 AM To: Steven J. Magnani Cc: Stephen.Kimball@bench.com; linuxbios@openbios.org Subject: Re: [LinuxBIOS] etherboot with LinuxBIOS
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the
config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something
over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ Etherboot-users mailing list Etherboot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/etherboot-users
------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ Etherboot-users mailing list Etherboot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/etherboot-users
I made the original change that caused this:
http://cvs.sourceforge.net/viewcvs.py/etherboot/etherboot/etherboot-5.3/src/...
At the time the change was made to fix an issue that was reported to cause Etherboot to fail to boot some kernels. IIRC, EB failed to recognize that the kernel download was complete. However, the fix seems to have broken memtest and FreeBSD.
From my point of view the this patch should be accepted to revert to the original functionality. I think this may cause the original problem that I tried to correct to reappear but that may help someone fix the real problem correctly this time.
Regards
Tim
yhlu wrote:
Great,
Tim, Can you verify that?
YH
On 7/15/05, Steven J. Magnani steve@digidescorp.com wrote:
I think this patch fixes the bug.
--- etherboot-5.4.0/src/core/osloader.c.orig 2005-02-15 19:46:56.000000000 -0600 +++ etherboot-5.4.0/src/core/osloader.c 2005-07-15 14:13:39.234375000 -0500 @@ -350,10 +350,11 @@ else { len -= (skip_sectors << 9) + skip_bytes; data += (skip_sectors << 9) + skip_bytes;
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
}
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
return 1;
}
Steve Magnani www.digidescorp.com
-----Original Message----- From: yhlu [mailto:yinghailu@gmail.com] Sent: Thursday, July 14, 2005 9:10 AM To: Steven J. Magnani Cc: Stephen.Kimball@bench.com; linuxbios@openbios.org Subject: Re: [LinuxBIOS] etherboot with LinuxBIOS
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the
config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something
over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ Etherboot-users mailing list Etherboot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/etherboot-users
------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Etherboot-users mailing list Etherboot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/etherboot-users
Great,
Tim, Can you verify that?
YH
On 7/15/05, Steven J. Magnani steve@digidescorp.com wrote:
I think this patch fixes the bug.
--- etherboot-5.4.0/src/core/osloader.c.orig 2005-02-15 19:46:56.000000000 -0600 +++ etherboot-5.4.0/src/core/osloader.c 2005-07-15 14:13:39.234375000 -0500 @@ -350,10 +350,11 @@ else { len -= (skip_sectors << 9) + skip_bytes; data += (skip_sectors << 9) + skip_bytes;
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
}
skip_sectors = os_download(data, len, eof);
skip_bytes = 0;
return 1;
}
Steve Magnani www.digidescorp.com
-----Original Message----- From: yhlu [mailto:yinghailu@gmail.com] Sent: Thursday, July 14, 2005 9:10 AM To: Steven J. Magnani Cc: Stephen.Kimball@bench.com; linuxbios@openbios.org Subject: Re: [LinuxBIOS] etherboot with LinuxBIOS
do not use 5.4 at this time, because the memtest can not be loaded by Etherboot 5.4 correctly.
YH
On 7/14/05, Steven J. Magnani steve@digidescorp.com wrote:
Etherboot 5.4.0 seems to compile with gcc-3.4.3 if, in addition to the
config changes spelled out on the Wiki, you also comment out PXE support in src/Config:
# Etherboot as a PXE network protocol ROM #CFLAGS+= -DPXE_IMAGE -DPXE_EXPORT
Seems to run, but I haven't reached a point where I can boot something
over the network yet.
Steve www.digidescorp.com
LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id%16492&op=click _______________________________________________ Etherboot-users mailing list Etherboot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/etherboot-users