RE: How to build vgabios
Yes, although I put -m32 and some other magic flags to make the whole thing think it is a 32 bit environment. You guys all ROCK! Thank you!!! On Wed, 2004-07-14 at 19:23, YhLu wrote: You compile the LinuxBIOS, filo, in Suse 9 for AMD 64 ? -Original Message- From: ron minnich [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 3:55 PM To: David Aubin Cc: LinuxBIOS Subject: Re: How to build vgabios On Wed, 14 Jul 2004, David Aubin wrote: gcc -Wall -Ix86emu/include -O2 -g -m32 -march=i386 -c -o pci-userspace.o pci-userspace.c pci-userspace.c:2:21: pci/pci.h: No such file or directory your problems start here. do you have the pciutils installed? You need: pciutils-devel-2.1.9-2 or later. ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Can someone please explain this VGABIOS Error
Hello, I got the testbios built and tried it and got the following error doing: ./testbios -d 0x200 -t vgabios.bin I made my vgabios.bin by doing: dd if=/dev/mem of=vgabios.bin skip=1536 count=128 The error is: c000:00dc 6e OUTSB AX=1cff BX= CX=ff00 DX=60ac SP=fff4 BP= SI=0002 DI=0002 DS=0040 ES= SS=0030 CS=c000 IP=00de NV UP DI PL NZ NA PE NC c000:00dd f4 HALT halt_sys: file ops.c, line 9804 halted AX=1cff BX= CX=ff00 DX=60ac SP=fff4 BP= SI=0002 DI=0002 DS=0040 ES= SS=0030 CS=c000 IP=00de NV UP DI PL NZ NA PE NC c000:00de 6e HALT Can someone please explain this error to me and how to possibly fix it? I have a Tyan mb with a 2885 chipset. AMD64 chip. And an Nvidia FX 5950 video card. Any help would be appreciated:) Thank you, Dave
Re: Can someone please explain this VGABIOS Error
david hendricks or ollie, can you send david the command line we use for our vga cards on tyan mb? thanks ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: how to read spd(serial presence detect) in linux
On Thu, 15 Jul 2004, zhu shi song wrote: I need to know the value of spd byte from linux. Is there any linux utility to read spd bytes? what chipset? ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
sis630 IPL read wrong number of SPD RAM type
(1) RAM type sis630 IPL.S read is not 04 I debug sis630 IPL.S, I find the RAM type value that IPL read is 01 or 00 for different RAM but not 04. But my RAM is definitely SDRAM. The code is: ... movb $0x02, %al# Read the RAM Type (SPD byte 2) CALL_SP(read_spd)# of the dram on current DIMM.movb%bl, %al # %bl is 01 or 00 for different RAM,not 04 outb %al, $0x80cmpb $0x04, %bl# If the RAM Type = SDRAM ?? jne no_sdram # no, exit ... Is there any bug in the codes reading spd bytes? (2) for some Sis630 mainboard, docipl will hang. Linuxbios can't be executed. I think the RAM initialization procedure is as compatible as BIOS. Thanks zhu Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!
vt5426 can't detect doc millenium
Dear sir, I've got one mainboard named A6T. A6T uses the same VIA northbridge and southbridge as vt5426. I boot linux from the mainboard and insert doc2001 in the BIOS slot. Then run the following commands: insmod docecc insmod doc2001 insmod docprobe these commands can detect doc2001 successfully in SIS630 mainboard. But in A6T they can't detect doc2001. ( I check /proc/mtd file, it is null ). SIS630 need flash_on utility, does VT5426 need some utility? Who knows the cause? thanks zhu Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages!
Re: sis630 IPL read wrong number of SPD RAM type
some mobos (ASUS) have special requirements for enabling SPD for dram. I think you have a motherboard that works that way. ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
SiS 530
Dear All, I am new to this list and have been emailing Ron a few times about the SiS530. Ron sugested that I use FILO for my project and I have had a trawl around to find filo, and have downloaded a BZ from a fairly unreputable looking web site. Does anyone have the official website address at all? Also Ron said to configure LinuxBIOS for the 530, but I thought that it was not supported by the LinuxBIOS project. I understand (basically) the idea of having payload code (which is filo from your advice), but I think I may need some more explicit instructions: do I assume correctly that I need to flash my current 530 board bios with LinuxBIOS with a payload of filo and have filo point to boot off HDA1? Then this leads me onto another question: can I pull a bios chip from another PC and use that to flash LB onto to use with the 530, or are some regions of the BIOS chip un-writable and/or mobo specific? If the latter then would it not be safer to get a small DoC and flash that, as I only have one 530 Mobo. Thanks andy ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: Serenade BIOS
On Wed, 2004-07-14 at 19:15, Tony Cheng wrote: After I comment out the init_pc_keyboard from superio.c, Serenade LinuxBIOS boots muck better. For the keyboard support, the AMI BIOS which come with the Serenade board works OK, do you have any comment on this? No. I thought the porting was an easy one but I was wrong. There is something I don't know about the board. Unfortunately, I have no interest in digging any further at the moment. Ollie ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: SiS 530
On Thu, 2004-07-15 at 09:40, Andrew Richardson wrote: Dear All, I am new to this list and have been emailing Ron a few times about the SiS530. Ron sugested that I use FILO for my project and I have had a trawl around to find filo, and have downloaded a BZ from a fairly unreputable looking web site. Does anyone have the official website address at all? Also Ron said to configure LinuxBIOS for the 530, but I thought that it was not supported by the LinuxBIOS project. I understand (basically) the idea of having payload code (which is filo from your advice), but I think I may need some more explicit instructions: do I assume correctly that I need to flash my current 530 board bios with LinuxBIOS with a payload of filo and have filo point to boot off HDA1? Then this leads me onto another question: can I pull a bios chip from another PC and use that to flash LB onto to use with the 530, or are some regions of the BIOS chip un-writable and/or mobo specific? If the latter then would it not be safer to get a small DoC and flash that, as I only have one 530 Mobo. Can you still get SiS 530 board this day ? I thought it is obsoleted long time ago. Ollie ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: Can someone please explain this VGABIOS Error
On Thu, 2004-07-15 at 08:01, David Aubin wrote: Hello, I got the testbios built and tried it and got the following error doing: ./testbios -d 0x200 -t vgabios.bin I made my vgabios.bin by doing: dd if=/dev/mem of=vgabios.bin skip=1536 count=128 The error is: c000:00dc 6e OUTSB AX=1cff BX= CX=ff00 DX=60ac SP=fff4 BP= SI=0002 DI=0002 DS=0040 ES= SS=0030 CS=c000 IP=00de NV UP DI PL NZ NA PE NC c000:00dd f4 HALT halt_sys: file ops.c, line 9804 halted AX=1cff BX= CX=ff00 DX=60ac SP=fff4 BP= SI=0002 DI=0002 DS=0040 ES= SS=0030 CS=c000 IP=00de NV UP DI PL NZ NA PE NC c000:00de 6e HALT Can someone please explain this error to me and how to possibly fix it? It means there was NO ERROR. It ran perfectly. If it is the case, you should see acrambled screen at this point. I have a Tyan mb with a 2885 chipset. AMD64 chip. And an Nvidia FX 5950 video card. Any help would be appreciated:) The correct command line would be: ./testbios -s 65536 -d 0x200 -t --abseg /dev/mem ../nvbios.bin BTW, you need recent CVS tree to make it work on s2885. Ollie Thank you, Dave ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: Can someone please explain this VGABIOS Error
Yeah, its works:) Just to recap for anyone reading this thread after me:dd if=/dev/mem of=vgabios.bin skip=1536 count=128 1. Get http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml 2. Get the freebios2 source 3. Build the freebios2/util/vgabios A. You may need to modify makefiles to suit your needs I did in order to get it to build under a 64 bit machine. You want 32 bit apps. 4. Do dd if=/dev/mem of=vgabios.bin skip=1536 count=128 on the card when it up and running normally 5. On the target machine, preferably in your initrd Put the following line: ./testbios -s 65536 -d 0x200 -t --abseg /dev/mem ./vgabios Thank you for all your help:):):):) Thanks, Dave On Thu, 2004-07-15 at 11:58, Li-Ta Lo wrote: On Thu, 2004-07-15 at 08:01, David Aubin wrote: Hello, I got the testbios built and tried it and got the following error doing: ./testbios -d 0x200 -t vgabios.bin I made my vgabios.bin by doing: dd if=/dev/mem of=vgabios.bin skip=1536 count=128 The error is: c000:00dc 6e OUTSB AX=1cff BX= CX=ff00 DX=60ac SP=fff4 BP= SI=0002 DI=0002 DS=0040 ES= SS=0030 CS=c000 IP=00de NV UP DI PL NZ NA PE NC c000:00dd f4 HALT halt_sys: file ops.c, line 9804 halted AX=1cff BX= CX=ff00 DX=60ac SP=fff4 BP= SI=0002 DI=0002 DS=0040 ES= SS=0030 CS=c000 IP=00de NV UP DI PL NZ NA PE NC c000:00de 6e HALT Can someone please explain this error to me and how to possibly fix it? It means there was NO ERROR. It ran perfectly. If it is the case, you should see acrambled screen at this point. I have a Tyan mb with a 2885 chipset. AMD64 chip. And an Nvidia FX 5950 video card. Any help would be appreciated:) The correct command line would be: ./testbios -s 65536 -d 0x200 -t --abseg /dev/mem ../nvbios.bin BTW, you need recent CVS tree to make it work on s2885. Ollie Thank you, Dave
Re: SiS 530
Ron sugested that I use FILO for my project and I have had a trawl around to find filo, and have downloaded a BZ from a fairly unreputable looking web site. Does anyone have the official website address at all? http://te.to/~ts1/filo/ No fancy graphics, but effective none the less. Also Ron said to configure LinuxBIOS for the 530, but I thought that it was not supported by the LinuxBIOS project. Hmm, might've been thinking of the SiS630. may need some more explicit instructions: do I assume correctly that I need to flash my current 530 board bios with LinuxBIOS with a payload of filo and have filo point to boot off HDA1? Correct. Then this leads me onto another question: can I pull a bios chip from another PC and use that to flash LB onto to use with the 530, or are some regions of the BIOS chip un-writable and/or mobo specific? If the latter then would it not be safer to get a small DoC and flash that, as I only have one 530 Mobo. Yes, you may use another PC for flashing. I do that all the time here at LANL since I usually render my target machine unbootable and have to use another machine to flash a part to fix it :) Be careful, you might run into compatibility issues going between machines having to do with the type of programmer the southbridge uses (parallel programming mode or LPC). And you might have to use MTD to flash on an old southbridge like the 530. ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: Can someone please explain this VGABIOS Error
On Thu, 15 Jul 2004, David Aubin wrote: Yeah, its works:) GREAT! Wanna write a howto and FAQ? ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: Can someone please explain this VGABIOS Error
Hi Ron, It is good to give. I think I will, just please don't hold your breath on this. Thanks, Dave On Thu, 2004-07-15 at 15:15, ron minnich wrote: On Thu, 15 Jul 2004, David Aubin wrote: Yeah, its works:) GREAT! Wanna write a howto and FAQ? ron
Re: Can someone please explain this VGABIOS Error
So what's your current status, anyway? You boot with LinuxBIOS and FILO/Etherboot, then log in remotely (Serial or ethernet?) and run the testbios, then start X? Are you using framebuffering or anything for console support? On Thu, 15 Jul 2004, David Aubin wrote: Hi Ron, It is good to give. I think I will, just please don't hold your breath on this. Thanks, Dave On Thu, 2004-07-15 at 15:15, ron minnich wrote: On Thu, 15 Jul 2004, David Aubin wrote: Yeah, its works:) GREAT! Wanna write a howto and FAQ? ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: Can someone please explain this VGABIOS Error
Sounds good, any HOWTOs you can produce should be an interesting read. If you have any difficulty with AGP, let us know. We've tested the S2885 with a GeForce FX 5600 card with nVidia's driver and Linux AGPGART and have been rather pleased with the results. On Thu, 15 Jul 2004, David Aubin wrote: Current status is this: 1. Boot with linux bios on Tyan MB with 2885 chipset 2. Linux bios payload is my custom (static ip support) etherboot with filo 3. etherboot then remotely retrieves elf image of a 2.6 kernel and initrd A. filo with usb does not work for some reason with my setup, it is something I want/need 4. Then USB stick is mounted with custom initrd to USB support 5. Home made 2.6 linux boots up 6. inside boot.local I have the call to enable Nvidia bios ./testbios -s 65536 -d 0x200 -t --abseg /dev/mem ./vgabios 7. Then I have currently xf86config configured to use old nv driver(#18?) for x windows. A. I'm in the process now of integrating the new Nvidia driver and that is my goal. Appendix: A. I can log in via serial console or remotely with (tftp, rlogin, ssh for debugging) On Thu, 2004-07-15 at 15:50, Hendricks David W. wrote: So what's your current status, anyway? You boot with LinuxBIOS and FILO/Etherboot, then log in remotely (Serial or ethernet?) and run the testbios, then start X? Are you using framebuffering or anything for console support? On Thu, 15 Jul 2004, David Aubin wrote: Hi Ron, It is good to give. I think I will, just please don't hold your breath on this. Thanks, Dave On Thu, 2004-07-15 at 15:15, ron minnich wrote: On Thu, 15 Jul 2004, David Aubin wrote: Yeah, its works:) GREAT! Wanna write a howto and FAQ? ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: Can someone please explain this VGABIOS Error
I only have a partial hand in it. Another guy here named Jay Miller got me going. Along with everyone else here who helped me:) Thanks everybody:) On Thu, 2004-07-15 at 16:18, Hendricks David W. wrote: Sounds good, any HOWTOs you can produce should be an interesting read. If you have any difficulty with AGP, let us know. We've tested the S2885 with a GeForce FX 5600 card with nVidia's driver and Linux AGPGART and have been rather pleased with the results. On Thu, 15 Jul 2004, David Aubin wrote: Current status is this: 1. Boot with linux bios on Tyan MB with 2885 chipset 2. Linux bios payload is my custom (static ip support) etherboot with filo 3. etherboot then remotely retrieves elf image of a 2.6 kernel and initrd A. filo with usb does not work for some reason with my setup, it is something I want/need 4. Then USB stick is mounted with custom initrd to USB support 5. Home made 2.6 linux boots up 6. inside boot.local I have the call to enable Nvidia bios ./testbios -s 65536 -d 0x200 -t --abseg /dev/mem ./vgabios 7. Then I have currently xf86config configured to use old nv driver(#18?) for x windows. A. I'm in the process now of integrating the new Nvidia driver and that is my goal. Appendix: A. I can log in via serial console or remotely with (tftp, rlogin, ssh for debugging) On Thu, 2004-07-15 at 15:50, Hendricks David W. wrote: So what's your current status, anyway? You boot with LinuxBIOS and FILO/Etherboot, then log in remotely (Serial or ethernet?) and run the testbios, then start X? Are you using framebuffering or anything for console support? On Thu, 15 Jul 2004, David Aubin wrote: Hi Ron, It is good to give. I think I will, just please don't hold your breath on this. Thanks, Dave On Thu, 2004-07-15 at 15:15, ron minnich wrote: On Thu, 15 Jul 2004, David Aubin wrote: Yeah, its works:) GREAT! Wanna write a howto and FAQ? ron
Re: V1 PIRQ table
ron minnich wrote: things like Copying tables... and then Verifying... and the function called write_tables(). So I just assumed it was stuck in ROM at any old location and moved to the correct position. yes, that code is very annoying. I Look at the PIRQ code. The code that I looked at was the stuff included with HAVE_PIRQ_TABLE=1 and it most definintly _copies_ the table to 0xf. So for this code to work shadowing must be setup. Unless there is some linker magic going on that actually locates the structure at that location in the ROM as well then PIRQ stuff will not work w/o shadowing. On my build the table is located in the ROM image and will show up at 0xf2e29. Linux searches for the table from 0xf to 0x10 but only at mutiples of 0x0f. So linux will not find this table. There must be some sort of ELF section alignment thats missing in the linking of irq_tables.o ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: V1 PIRQ table
ron minnich wrote: no, it's worse than that. If the copy fails, and you're uncompressed, and you don't map ram over flash, the table is still there. Yeah, it sucks all right. There must be some sort of ELF section alignment thats missing in the linking of irq_tables.o We have to fix this. I just never had time. Can't ELF do alignments? If so then we can just create this table into a seperate section and tell the linker to align it properly or perhaps locate it absolutly. ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: V1 PIRQ table
On Thu, 15 Jul 2004, Richard Smith wrote: Can't ELF do alignments? If so then we can just create this table into a seperate section and tell the linker to align it properly or perhaps locate it absolutly. If somebody can take a look at the .lds I think it is easy. I can't do it today. ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: V1 PIRQ table
On Thu, 2004-07-15 at 15:02, ron minnich wrote: On Thu, 15 Jul 2004, Richard Smith wrote: Can't ELF do alignments? If so then we can just create this table into a seperate section and tell the linker to align it properly or perhaps locate it absolutly. If somebody can take a look at the .lds I think it is easy. I can't do it today. The problem Richard has is the PRIQ table is not aligned correct. It is placed corrected in the F segment. It has nothing to do with .lds. The way to solve it is to use a gcc __attribute__. (which Ron hates a lot) Ollie ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: V1 PIRQ table
Li-Ta Lo wrote: The problem Richard has is the PRIQ table is not aligned correct. It is placed corrected in the F segment. It has nothing to do with .lds. The way to solve it is to use a gcc __attribute__. (which Ron hates a lot) I don't have much experience with the internals of ELF stuff but the way I normally solve things like this in most of our microcontroller setups is to define the .c file to be in in own linker section and then place that section such that it will align correctly. irq_tables.c has nothing else in it but the PIR table so can we set that up as its own section and then specify some parameter so that it can be explicitly placed? ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: V1 PIRQ table
On Thu, 15 Jul 2004, Richard Smith wrote: I don't have much experience with the internals of ELF stuff but the way I normally solve things like this in most of our microcontroller setups is to define the .c file to be in in own linker section and then place that section such that it will align correctly. irq_tables.c has nothing else in it but the PIR table so can we set that up as its own section and then specify some parameter so that it can be explicitly placed? no, do what ollie says and add the __align__ attribute to the table. That's simple and will work without changing much else. thanks ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: V1 PIRQ table
ron minnich wrote: On Thu, 15 Jul 2004, Richard Smith wrote: no, do what ollie says and add the __align__ attribute to the table. That's simple and will work without changing much else. Oops... Looks like I was WAY off. My problem was that ADLO contains it's own PIR table and it was messed up. So linux never reached the linux bios PIR table. The 0xf2e29 was actually the PIR in the verify _code_ and not the actual table. My rom image has 3 PIR strings rather than 2. The table is showing up at 0xf8310 which is aligned correctly. The write_tables() code still fails though due to no shadowing at that stage in the boot. ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
(no subject)
I find winfast 6300 Max pro using Sis630e chipset. The problem of reading spd RAM type byte is also return 01 or 00 for different SDRAM but no 04. Is it a problem? thanks zhu Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!