Hi,
I heard about linuxbios a couple of days back.I checked out sources and here I am building it. I follow documentation given in linuxbios/documentation.As a starting point I am trying demo example.[Mine is not amd though]
[ cd targets ] [sh buildtarget amd/solo] [cd amd/solo/solo] [ make]
The build isnot successfull.I get the error as : ------------------------------------------------------------------------------------------- ././auto.inc:84655: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87289: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87293: Error: junk at end of line, first unrecognized character is `"' crt0.S:217: Error: junk at end of line, first unrecognized character is `"' crt0.S:220: Error: unknown pseudo-op: `.previous' make[1]: *** [crt0.o] Error 1 make[1]: Leaving directory `/cygdrive/e/bios/LinuxBIOSv2/targets/amd/solo/solo/n ormal' make: *** [normal/linuxbios.rom] Error 1 ----------------------------------------------------------------------------------------------
Can somebody help me out? I work with cygwin -NT 5.1.gcc version is 3.4.4. Thnks in advance.
anitha boyapati wrote:
Can somebody help me out? I work with cygwin -NT 5.1.gcc version is 3.4.4. Thnks in advance.
There isn't any support for building under cygwin so you are sort of on your own. I suspect that buildtarget didn't generate a proper config file or makefile. Do you have access to a linux machine where you can do a build and then compare the 2 directories?
Also look at the output from buildtarget. Did it give any errors?
Hi,
I started compiling on ubuntu this time.(GCC-4.0.3). I seemed to be having problems with payloads
Here is the err list when i tried to 'make' the demo example from docs.:
----------------------------------------------------------------------------------------------------
cp linuxbios_ram.nrv2b linuxbios_ram.rom gcc -m32 -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld crt0.o nm -n linuxbios | sort > linuxbios.map objcopy --gap-fill 0xff -O binary linuxbios linuxbios.strip make[1]: *** No rule to make target `../../../payloads/tg3--ide_disk.zelf', needed by `payload'. Stop. make[1]: Leaving directory `/media/hda6/bios/LinuxBIOSv2/targets/amd/solo/solo/normal' make: *** [normal/linuxbios.rom] Error 1
--------------------------------------------------------------------------------------------------------------------------- So whats this? I have checked out twice just incase I missed some files.Anyhelp is appreciated.
On 1/28/07, Richard Smith smithbone@gmail.com wrote:
anitha boyapati wrote:
Can somebody help me out? I work with cygwin -NT 5.1.gcc version is
3.4.4.
Thnks in advance.
There isn't any support for building under cygwin so you are sort of on your own. I suspect that buildtarget didn't generate a proper config file or makefile. Do you have access to a linux machine where you can do a build and then compare the 2 directories?
Also look at the output from buildtarget. Did it give any errors?
Richard A. Smith smithbone@gmail.com
Hi,
On Sun, Jan 28, 2007 at 10:47:24AM +0530, anitha boyapati wrote:
cp linuxbios_ram.nrv2b linuxbios_ram.rom gcc -m32 -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld crt0.o nm -n linuxbios | sort > linuxbios.map objcopy --gap-fill 0xff -O binary linuxbios linuxbios.strip make[1]: *** No rule to make target `../../../payloads/tg3--ide_disk.zelf', needed by `payload'. Stop. make[1]: Leaving directory `/media/hda6/bios/LinuxBIOSv2/targets/amd/solo/solo/normal' make: *** [normal/linuxbios.rom] Error 1
You need to change the 'payload' lines in targets/amd/solo/Config.lb to point to the payload file you want to use. The file "../../../payloads/tg3--ide_disk.zelf" doesn't exist on your system, right?
Change that to /home/foo/whatever.elf, where that file is a payload image (e.g. FILO), see http://linuxbios.org/Payloads.
Uwe.
././auto.inc:84655: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87289: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87293: Error: junk at end of line, first unrecognized character is `"' crt0.S:217: Error: junk at end of line, first unrecognized character is `"' crt0.S:220: Error: unknown pseudo-op: `.previous'
Your assembler doesn't understand ELF-style asm dialect.
Try using as cross-compiler to Linux (or, just use Linux itself).
Segher
Segher Boessenkool wrote:
././auto.inc:84655: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87289: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87293: Error: junk at end of line, first unrecognized character is `"' crt0.S:217: Error: junk at end of line, first unrecognized character is `"' crt0.S:220: Error: unknown pseudo-op: `.previous'
Your assembler doesn't understand ELF-style asm dialect.
It looks like some \n vs \r\n problem. There's invisible junk at the end of every single line.
Probably requires a patch to romcc or an extra "dos2unix" run.
Stefan
././auto.inc:84655: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87289: Error: junk at end of line, first unrecognized character is `"' ././auto.inc:87293: Error: junk at end of line, first unrecognized character is `"' crt0.S:217: Error: junk at end of line, first unrecognized character is `"' crt0.S:220: Error: unknown pseudo-op: `.previous'
Your assembler doesn't understand ELF-style asm dialect.
It looks like some \n vs \r\n problem. There's invisible junk at the end of every single line.
It complains about a double quote, not about the empty string. It also doesn't know ".previous", at which point it is time to give up ;-)
Probably requires a patch to romcc or an extra "dos2unix" run.
Nah, LinuxBIOS' assembler code assumes GAS+ELF so you better use that and not some other assembler ;-)
You could add code to LB so that it explains what's wrong if no suitable assembler is selected.
Segher