Re: Still having a problem building elks kernel

Harley Laue <[email protected]>
Newsgroups gmane.linux.ports.x8086
Message-ID <[email protected]>
On Fri, Mar 5, 2010 at 3:47 PM, Harley Laue <[email protected]> wrote:
> On Sat, Mar 6, 2010 at 11:29 AM, Dieter R Kedrowitsch
> <[email protected]> wrote:
>> With the help of a few folks on here I've gotten pretty far with building
>> the elks kernel, but it looks like I have one more problem before the image
>> will build.  It seems there is a syntax error in the makefile ld86.
>> Has anyone else run into this?
>>
>> make[2]: Leaving directory `/usr/src/elks/arch/i86/drivers/block'
>> (cd ../.. ; ld86 -0 -i   \
>>       arch/i86/boot/crt0.o arch/i86/boot/crt1.o \
>>       init/main.o kernel/kernel.a fs/fs.a lib/lib.a net/net.a
>> fs/minix/minixfs.a arch/i86/kernel/akernel.a arch/i86/lib/lib86.a
>> arch/i86/mm/mm.a  arch/i86/drivers/char/chr_drv.a
>> arch/i86/drivers/block/blk_drv.a \
>>       -t -M -o arch/i86/boot/system > System.tmp ; \
>>       sort -k4 System.tmp > System.map ; rm -f System.tmp )
>> usage: ld86 [-03NMdimrstz[-]] [-llib_extension] [-o outfile] [-Ccrtfile]
>>      [-Llibdir] [-Olibfile] [-Ttextaddr] [-Ddataaddr] [-Hheapsize] infile...
>> tools/build boot/bootsect boot/setup boot/system > boot/Image
>> Root device is (3, -128)
>> Non-Minix header of 'boot'
>> make[1]: *** [Image] Error 1
>
> Sorry, I meant to get back to you sooner. I run into the exact same
> thing with Debian, but not Arch Linux.
> Here's the last little bit from Make on Arch which seems to work (I
> don't have the means to actually test it though)
>
> as86 -0  -o boot/crt0.o boot/crt0.s
> (cd ../.. ; ld86 -0 -i   \
>                -t -M -o arch/i86/boot/system \
>                arch/i86/boot/crt0.o arch/i86/boot/crt1.o \
>                init/main.o kernel/kernel.a fs/fs.a lib/lib.a
> net/net.a fs/minix/minixfs.a arch/i86/kernel/akernel.a
> arch/i86/lib/lib86.a arch/i86/mm/mm.a  arch/i86/drivers/char/chr_drv.a
> arch/i86/drivers/block/blk_drv.a \
>                > System.tmp ; \
>                sort -k4 System.tmp > System.map ; rm -f System.tmp )
> tools/build boot/bootsect boot/setup boot/system > boot/Image
> Root device is (3, -128)
> Boot sector 512 bytes.
> Setup is 1596 bytes.
> System is 117788 B (58784 B code, 7728 B data and 51276 B bss)
> System is 66544
> make[2]: Leaving directory `/home/harley/Source/elks-project/elks/arch/i86'
>
>
> Obviously the ld86 is failing in Debian/Ubuntu, but like I said, I
> haven't looked into why yet other then the fact that it looks like "-t
> -M -o arch/i86/boot/system \" isn't in the Debian/Ubuntu's ld86's
> command for some reason...

Well, I was partially wrong. It looks like it does have the same ld86
command, but the Debian/Ubuntu one is returning an empty boot/Image
file whereas on Arch it's returning a 68K file. But that's without
looking too far into it....
--
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.