"Joey Nelson" <jo...@jo...> writes:
> Eric,
>
> I'm using version 2.0 of mkelfImage.
You might want to try version 2.3...
ftp://ftp.lnxi.com/pub/src/mkelfImage/
> I used syslinux under the standard BIOS to test the kernel.
>
> I applied the patch you supplied and it appear the problem is that
> The kernel command line is not getting set.
>
> In the initialize_linux_params function in linux-i386/convert-params, I
> put debug code to print the command line
> (info->real_mode->command_line). After it should be initialized, but it
> appear to be empty.
I bet you have the RH7 broken binutils/gas bug, that puts junk at
the end of assembly files. Definitely try the latest mkelfImage. If
it errors out with an internal error than your binutils are broken.
That is the only thing I can think of that would eat the command line.
A double check would be to run strings on kernel.elf to make certain
the command line is in there.
Eric
> Thanks,
>
> Joey Nelson
> Design Engineer
> JoeScan
> www.joescan.com
> 509-332-3644
>
>
> -----Original Message-----
> From: eth...@li...
> [mailto:eth...@li...] On Behalf Of
> Eric W. Biederman
> Sent: Tuesday, April 08, 2003 4:22 PM
> To: Joey Nelson
> Cc: 'Etherboot developers list'
> Subject: Re: [Etherboot-developers] Problem with LinuxBios (latest cvs),
> Etherboot 5.1.7 - ide_disk, mkelfimg 2.0
>
> "Joey Nelson" <jo...@jo...> writes:
>
> > Hello,
> >
> > I've very nearly got this all going on my Geode GX1 based system.
>
> Interesting you have shortened mkelfImage to mkelfimg. Which
> version are you running anyway?
>
> > It get all the way to loading the linux kernel elf image from a
> compact
> > flash and the last thing printed is:
> > Firmware type: LinuxBIOS
>
> The Fimware type: LinuxBIOS is printed by the code prepend to the kernel
> by mkelfImage. So you image loaded.
>
> Which means the image loaded. And I don't expect this disk support
> LBA48
> mode so the recent fix to get that working should not be your issue.
>
> > I've tested this same kernel under the syslinux boot loader on the
> same
> > system with the same command line and it works fine with a serial
> > console.
>
> syslinux works under LinuxBIOS?
> Even if you did not test under LinuxBIOS if it works under another
> BIOS the kernel still should be quite close.
>
>
> > I use the following line to make my kernel.elf image.
> > mkelfimg --kernel=/usr/src/linux/i386/boot/bzImage \
> > --output=kernel.elf \
> > --command-line="console=ttyS0,38400n8 root=/dev/hda2"
> >
> > Any suggestions on what I should be checking.
>
> Last time I saw something like this I traced it down to the kernel
> dying early in bootup before it could initialize the serial console.
>
>
> Attached is a patch against 2.4.17 but with a little tweaking the code
> should work on any kernel. It gives very serial console output so
> you can see what the kernel is actually doing.
>
> Eric
|