Re: VGA Problem about 440bx chipset
On Thu, 9 Sep 2004, Gerald Chiu wrote: then you may want to play with timings in the IDE driver in bochs.. Could you offer me more clues on modifying timngs stuff dealing with IDE driver? not really it is sort of black magic. i can't really tell what's different between my old setup and your current that causes XP to fail. do make sure that it does boot correctly under old bios before booting it under LB/ADLO. then it is a bit of experimenting, see where it fails and try to slow it down or speed up. add more debugging/prompts to XP and/or remove them. another idea you might want to try. grab latest bochs bios from BOCHS projects, merge the patches I made, as ndeeded, and see if it works although last time I looked at it they did not make there any significant changes.. at least on the first look. ... it is clear that bochs bios could use some improvements, but on upside one they are made it could boot more than just 2K the Win98 did not seem that far off either... That is, if you are ready to spend some work on that. yet another idea, check bochs mailing list to see what kind of problems they had getting 2K to run. they may or may not apply here.. in general bochs bios was written for emulator so most of the issues with geting it to run on real hardware were timing related. dunno if that helps. ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
On Thu, 9 Sep 2004, Adam Sulmicki wrote: grab latest bochs bios from BOCHS projects, merge the patches I made, as ndeeded, and see if it works although last time I looked at it they did not make there any significant changes.. at least on the first look. it seems the development of the bios has speed up as of late this is the change log http://bochs.sourceforge.net/cgi-bin/topper.pl?name=CVS+Access+Informationurl=http://sourceforge.net/cvs/qmrkgroup_ideq12580 so it might be interesting to see how well latest bios owuld work with ADLO. you still would need to appy some patches. they should be in patch subdirectory in the ADLO sources iirc ... it is clear that bochs bios could use some improvements, but on upside one they are made it could boot more than just 2K the Win98 did not seem that far off either... That is, if you are ready to spend some work on that. in general bochs bios was written for emulator so most of the issues with geting it to run on real hardware were timing related. ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
From: Adam Sulmicki [EMAIL PROTECTED] To: Gerald Chiu [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Tue, 7 Sep 2004 09:48:20 -0400 (EDT) umm. that part was unfortunatelly a bit of black magic. make sure you have mouse on your ps2 port. win2k would freak out for some reason if it did not. also you may want to edit the win2k config files not to display that prompt but go straight to win2k and see if it helps. I tried all you mentioned,but still failed.:( then you may want to play with timings in the IDE driver in bochs.. Could you offer me more clues on modifying timngs stuff dealing with IDE driver? On Tue, 7 Sep 2004, Gerald Chiu wrote: Hello,Adam, I have problem on booting win2000,but the ADLO status said win2k is fully supported. The information displayed on screen is below: === Please select the operating system to start: Microsoft Windows 2000 Professional Microsoft Windows 98 Use your arrow keys to move the highlight to your choice. Please touch Enter to choose. Seconds until highlighted choice will be started automatically: 0 For troubleshooting and advanced startup options for Windows 2000, press F8. When I choose win2k and touch Enter,it halts, the screen even not change to show progress bar! When I choose win98 ,after showed the welcome logo,it halts with the cursor flashing on the left_upper corner of screen. I want to boot win2k, then could you give me some idea on debugging? _ MSN Explorer: http://explorer.msn.com/lccn/ ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
Hello,Adam, I have problem on booting win2000,but the ADLO status said win2k is fully supported. The information displayed on screen is below: === Please select the operating system to start: Microsoft Windows 2000 Professional Microsoft Windows 98 Use your arrow keys to move the highlight to your choice. Please touch Enter to choose. Seconds until highlighted choice will be started automatically: 0 For troubleshooting and advanced startup options for Windows 2000, press F8. When I choose win2k and touch Enter,it halts, the screen even not change to show progress bar! When I choose win98 ,after showed the welcome logo,it halts with the cursor flashing on the left_upper corner of screen. I want to boot win2k, then could you give me some idea on debugging? From: Adam Sulmicki [EMAIL PROTECTED] To: Chiu Gerald [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Sun, 5 Sep 2004 13:26:32 -0400 (EDT) perhaps it would make sense to summarize lessons learned and send them to list, so that whoever will play with ADLO next can benefit from the knowledge Just put in all right keywords so that it is easie to find it later on, like ADLO, S3, etc. The shadow patch probably isn't big either. On Sun, 5 Sep 2004, Chiu Gerald wrote: right. linuxbios+ADLO+Bochs From: Adam Sulmicki [EMAIL PROTECTED] To: Chiu Gerald [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Sat, 4 Sep 2004 10:54:45 -0400 (EDT) is this with ADLO? neat! On Sat, 4 Sep 2004, Chiu Gerald wrote: Wow! I got it! I use another S3 video card,and succeeded in bringing up the VGA,and booted RedHat linux. So wonderful linuxbios is! Richard Smith,thanks for your help very very much! From: Richard Smith [EMAIL PROTECTED] To: LinuxBIOS [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Wed, 01 Sep 2004 10:04:52 -0500 Chiu Gerald wrote: you mean that PCI card works? Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Also the DEBUG_SERIAL option in rombios.c is very useful. You can enable it and all the bochs bios messages will be redirected out the serial port. This way you can see if bochs rombios is even getting called. You have to turn it back off to get text on the VGA screen. But your cards VSYNC should happen regardless. (assuming the vbios runs correctly) I leave in a few hours and won't be back till Tuesday the 2nd so you are on your own for a few days. I'll try to check email during that time but I'm not promising anything. Search the mailing list for things like ADLO, vgabios, etc there are several threads on getting this up. _ MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios _ MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios _ MSN Hotmail http://www.hotmail.com ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
umm. that part was unfortunatelly a bit of black magic. make sure you have mouse on your ps2 port. win2k would freak out for some reason if it did not. also you may want to edit the win2k config files not to display that prompt but go straight to win2k and see if it helps. then you may want to play with timings in the IDE driver in bochs.. On Tue, 7 Sep 2004, Gerald Chiu wrote: Hello,Adam, I have problem on booting win2000,but the ADLO status said win2k is fully supported. The information displayed on screen is below: === Please select the operating system to start: Microsoft Windows 2000 Professional Microsoft Windows 98 Use your arrow keys to move the highlight to your choice. Please touch Enter to choose. Seconds until highlighted choice will be started automatically: 0 For troubleshooting and advanced startup options for Windows 2000, press F8. When I choose win2k and touch Enter,it halts, the screen even not change to show progress bar! When I choose win98 ,after showed the welcome logo,it halts with the cursor flashing on the left_upper corner of screen. I want to boot win2k, then could you give me some idea on debugging? From: Adam Sulmicki [EMAIL PROTECTED] To: Chiu Gerald [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Sun, 5 Sep 2004 13:26:32 -0400 (EDT) perhaps it would make sense to summarize lessons learned and send them to list, so that whoever will play with ADLO next can benefit from the knowledge Just put in all right keywords so that it is easie to find it later on, like ADLO, S3, etc. The shadow patch probably isn't big either. On Sun, 5 Sep 2004, Chiu Gerald wrote: right. linuxbios+ADLO+Bochs From: Adam Sulmicki [EMAIL PROTECTED] To: Chiu Gerald [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Sat, 4 Sep 2004 10:54:45 -0400 (EDT) is this with ADLO? neat! On Sat, 4 Sep 2004, Chiu Gerald wrote: Wow! I got it! I use another S3 video card,and succeeded in bringing up the VGA,and booted RedHat linux. So wonderful linuxbios is! Richard Smith,thanks for your help very very much! From: Richard Smith [EMAIL PROTECTED] To: LinuxBIOS [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Wed, 01 Sep 2004 10:04:52 -0500 Chiu Gerald wrote: you mean that PCI card works? Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Also the DEBUG_SERIAL option in rombios.c is very useful. You can enable it and all the bochs bios messages will be redirected out the serial port. This way you can see if bochs rombios is even getting called. You have to turn it back off to get text on the VGA screen. But your cards VSYNC should happen regardless. (assuming the vbios runs correctly) I leave in a few hours and won't be back till Tuesday the 2nd so you are on your own for a few days. I'll try to check email during that time but I'm not promising anything. Search the mailing list for things like ADLO, vgabios, etc there are several threads on getting this up. _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios _ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com
Re: VGA Problem about 440bx chipset
On Sat, 4 Sep 2004, Chiu Gerald wrote: I use another S3 video card,and succeeded in bringing up the VGA,and booted RedHat linux. a little email describing the whole procedure would be welcome. ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
Wow! I got it! I use another S3 video card,and succeeded in bringing up the VGA,and Excellent. Its really touchy about what VBIOS will work and what won't. I haven't been able to narrow it down as to what the missing piece is yet. ATI seems to be the worst though. Probally because of all the bios extensions they use. perhaps it would make sense to summarize lessons learned and send them to list, so that whoever will play with ADLO next can benefit from the knowledge Setting up a known to work table of chipsets vs cards may be a good idea as well. Just put in all right keywords so that it is easie to find it later on, like ADLO, S3, etc. The shadow patch probably isn't big either. After my initial post of the patch (about a 1.5 years ago) I never really tried to push the patch upstream since its chipset specific. What's really needed here is vga expansion rom shadowing support in the pci resource allocation code. So that you could do something like this in the config file. option SHADOW_VGA_BIOS=1 option SHADOW_VGA_BIOS_DEST=0xC Then the mainboard chipset code could handle copying it from the PCI ROM to the shadow location and ADLO would not need to know anything about how to shadow for a specific chipset. I for one could really use this feature. I'd offer to code up an implementation for the 440bx but I don't have much of a clue on how the PCI resource allocation works. ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
On Tue, 7 Sep 2004, Richard Smith wrote: option SHADOW_VGA_BIOS=1 option SHADOW_VGA_BIOS_DEST=0xC we'll put this on the list, though not quite this way (unless you want it in V1) ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
ron minnich wrote: option SHADOW_VGA_BIOS=1 option SHADOW_VGA_BIOS_DEST=0xC we'll put this on the list, though not quite this way (unless you want it in V1) Well until myself or some other industrious soul ports the 440bx stuff to V2 its not much use to me unless its V1. It dosen't really matter to me how its implemented in V1. If you have what you think is the right way then I'm game. And if someone will guide me through what needs to be done in the PCI allocation stuff I'll give it a whirl but at first blush that PCI allocation stuff appears fairly complex. I guess the part I need help on would be the methodology of the ROM expansion address assignment. The actual copy seems pretty trivial. - Scan for the id of the vga device. - Get the rom address and enable the decode. - set the shadowing. - do the copy. - disable writes to the shadow. - disable the ROM decode. Yes? ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
It dosen't really matter to me how its implemented in V1. If you have what you think is the right way then I'm game. And if someone will guide me through what needs to be done in the PCI allocation stuff I'll give it a whirl but at first blush that PCI allocation stuff appears fairly complex. For V1, we're not too worried about pretty. I'll try to work up an example for you. ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
right. linuxbios+ADLO+Bochs From: Adam Sulmicki [EMAIL PROTECTED] To: Chiu Gerald [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Sat, 4 Sep 2004 10:54:45 -0400 (EDT) is this with ADLO? neat! On Sat, 4 Sep 2004, Chiu Gerald wrote: Wow! I got it! I use another S3 video card,and succeeded in bringing up the VGA,and booted RedHat linux. So wonderful linuxbios is! Richard Smith,thanks for your help very very much! From: Richard Smith [EMAIL PROTECTED] To: LinuxBIOS [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Wed, 01 Sep 2004 10:04:52 -0500 Chiu Gerald wrote: you mean that PCI card works? Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Also the DEBUG_SERIAL option in rombios.c is very useful. You can enable it and all the bochs bios messages will be redirected out the serial port. This way you can see if bochs rombios is even getting called. You have to turn it back off to get text on the VGA screen. But your cards VSYNC should happen regardless. (assuming the vbios runs correctly) I leave in a few hours and won't be back till Tuesday the 2nd so you are on your own for a few days. I'll try to check email during that time but I'm not promising anything. Search the mailing list for things like ADLO, vgabios, etc there are several threads on getting this up. _ MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios _ MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
perhaps it would make sense to summarize lessons learned and send them to list, so that whoever will play with ADLO next can benefit from the knowledge Just put in all right keywords so that it is easie to find it later on, like ADLO, S3, etc. The shadow patch probably isn't big either. On Sun, 5 Sep 2004, Chiu Gerald wrote: right. linuxbios+ADLO+Bochs From: Adam Sulmicki [EMAIL PROTECTED] To: Chiu Gerald [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Sat, 4 Sep 2004 10:54:45 -0400 (EDT) is this with ADLO? neat! On Sat, 4 Sep 2004, Chiu Gerald wrote: Wow! I got it! I use another S3 video card,and succeeded in bringing up the VGA,and booted RedHat linux. So wonderful linuxbios is! Richard Smith,thanks for your help very very much! From: Richard Smith [EMAIL PROTECTED] To: LinuxBIOS [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Wed, 01 Sep 2004 10:04:52 -0500 Chiu Gerald wrote: you mean that PCI card works? Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Also the DEBUG_SERIAL option in rombios.c is very useful. You can enable it and all the bochs bios messages will be redirected out the serial port. This way you can see if bochs rombios is even getting called. You have to turn it back off to get text on the VGA screen. But your cards VSYNC should happen regardless. (assuming the vbios runs correctly) I leave in a few hours and won't be back till Tuesday the 2nd so you are on your own for a few days. I'll try to check email during that time but I'm not promising anything. Search the mailing list for things like ADLO, vgabios, etc there are several threads on getting this up. _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
Wow! I got it! I use another S3 video card,and succeeded in bringing up the VGA,and booted RedHat linux. So wonderful linuxbios is! Richard Smith,thanks for your help very very much! From: Richard Smith [EMAIL PROTECTED] To: LinuxBIOS [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Wed, 01 Sep 2004 10:04:52 -0500 Chiu Gerald wrote: you mean that PCI card works? Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Also the DEBUG_SERIAL option in rombios.c is very useful. You can enable it and all the bochs bios messages will be redirected out the serial port. This way you can see if bochs rombios is even getting called. You have to turn it back off to get text on the VGA screen. But your cards VSYNC should happen regardless. (assuming the vbios runs correctly) I leave in a few hours and won't be back till Tuesday the 2nd so you are on your own for a few days. I'll try to check email during that time but I'm not promising anything. Search the mailing list for things like ADLO, vgabios, etc there are several threads on getting this up. _ MSN Messenger: http://messenger.msn.com/cn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
is this with ADLO? neat! On Sat, 4 Sep 2004, Chiu Gerald wrote: Wow! I got it! I use another S3 video card,and succeeded in bringing up the VGA,and booted RedHat linux. So wonderful linuxbios is! Richard Smith,thanks for your help very very much! From: Richard Smith [EMAIL PROTECTED] To: LinuxBIOS [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Wed, 01 Sep 2004 10:04:52 -0500 Chiu Gerald wrote: you mean that PCI card works? Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Also the DEBUG_SERIAL option in rombios.c is very useful. You can enable it and all the bochs bios messages will be redirected out the serial port. This way you can see if bochs rombios is even getting called. You have to turn it back off to get text on the VGA screen. But your cards VSYNC should happen regardless. (assuming the vbios runs correctly) I leave in a few hours and won't be back till Tuesday the 2nd so you are on your own for a few days. I'll try to check email during that time but I'm not promising anything. Search the mailing list for things like ADLO, vgabios, etc there are several threads on getting this up. _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn ___ 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: VGA Problem about 440bx chipset
thanks,Richard! Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. My card is ATI,too.:( Maybe I need to look for another PCI card to try. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Thanks,the shadow setting is correct ,and I debugged into rombios.c ,found that it halts when it run into vga bios and never return back. _ MSN Explorer: http://explorer.msn.com/lccn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
From: Richard Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: VGA Problem about 440bx chipset Date: Tue, 31 Aug 2004 10:33:35 -0500 Chiu Gerald wrote: I found the work done about vga are: (1) allocate_vga_resource() in newpci.c enbale io/mem of the vga adapter then walk up the bridges setting the VGA enable That should all be done already. (2) copy the vga bios to 0xc using adlo,and run bochs bios. I'm not sure if it had initilized the vga controller enough. And I You will get a vga bios boot screen if it works. found there are some registers about AGP from 440bx northbridge datasheet ( 82443bx hostbridge/controller),such as AGP capability identifier register,AGP command register,AGP status register... But this work hadn't been done in linuxbios,maybe I need to set these registers correctly according to the datasheet to enable AGP? This is probally your problem. None of the AGP stuff is setup in the 440bx code. Only PCI cards have been used to date. You will have to write AGP init code. you mean that PCI card works? Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. _ MSN Explorer: http://explorer.msn.com/lccn/ ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
Chiu Gerald wrote: you mean that PCI card works? Yes some PCI cards work. I've made several Assiliant 65550 and 69000 based PCI cards work and some S3 based cards work. There are reports of some ATI cards working but I am still having problems getting my ATI M1 based card to work. Now I changed to a PCI video card,and bochs had run the vga bios,but still nothing happened! I have no idea what should I do next. Are you setting up the shadowing correctly? You have to setup the shadowing in loader.s or bochs and the video bios never make it into ram. The stock ADLO setup won't work on the 440bx. I've attached my loader.s which sets up the shadowing correctly. Also the DEBUG_SERIAL option in rombios.c is very useful. You can enable it and all the bochs bios messages will be redirected out the serial port. This way you can see if bochs rombios is even getting called. You have to turn it back off to get text on the VGA screen. But your cards VSYNC should happen regardless. (assuming the vbios runs correctly) I leave in a few hours and won't be back till Tuesday the 2nd so you are on your own for a few days. I'll try to check email during that time but I'm not promising anything. Search the mailing list for things like ADLO, vgabios, etc there are several threads on getting this up. ;* ; $Id: loader.s,v 1.1 2002/11/25 02:07:53 rminnich Exp $ ;* USE32 ; code it is loaded into memory at 0x7C00 ;* nop nop ;* ; A) setup GDT, so that we do not depend on program ; that loaded us for GDT. ; Ex: LinuxBIOS and EtherBOOT use different GDT's. ;- ; 0) cli ;- ; I) lgdt [0x7C00+protected_gdt] ;- ; II) setup CS jmp 0x08:0x7C00+newpgdt newpgdt: nop ;- ; III) setup all other segments mov ax, #0x10 mov ss, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax ;- ; IV) ; not now ;sti ;* nop nop ; Outputs a value to PCI config space ; put the bus,dev,function,offset in eax ; and the byte value in dl then call this macro MACRO PCI_CONFIG_WRITE_BYTE shl edx, #8 mov dl, al and dl, #3 shl edx, #16 or eax, #0x8000 and eax, #0xfffc mov dx, #0x0cf8 out dx, eax shr edx, #16 mov al, dh mov dh, #0 add edx, #0x0cfc out dx, al MEND ;* ; B) shadow - ON (enable/read/write) ; This is orginal shadowing setup code ; Works on the Matsonic 7308e mainboard ;mov eax, #0x8070 ;mov dx, #0x0cf8 ;out dx, eax ;mov eax, #0x ;mov dx, #0x0cfc ;out dx, eax ; This enables shadowing for the 0x0f - ; 0x0f range and the 0x0C - 0x0c range ; for the 440bx chipset. mov eax, #0x59 mov edx, #0x20 PCI_CONFIG_WRITE_BYTE mov eax, #0x5A mov edx, #0x22 PCI_CONFIG_WRITE_BYTE mov eax, #0x5b mov edx, #0x22 PCI_CONFIG_WRITE_BYTE ;* nop nop ;* ; C) copy -- boch bios ; counter - 64kb. mov ecx, #0x1 ; source - 0x8000 ( 0x7C00+0x400 = 0x8000 ) mov ax, #0x10; src-segment - 2nd entry in GDT mov ds, ax mov eax, #0x8000 ; src-offset - 0x8000 mov esi, eax ; destination - 0xF mov ax, #0x10; dst-segment - 2nd entry in GDT mov es, ax mov eax, #0xF ; dst-offset - 0xF mov edi, eax ; clear direction flag cld ; the copy rep movsb ;* nop nop ;* ; D) copy -- video bios ; on my system video bios is just 48KB (0x0C000) ; but just for paranoida we copy 64kb (0X1) ; counter - 64kb mov ecx, #0x1 ; source - 0x18000 ( 0x8000+0x1 = 0x18000 ) mov ax, #0x10 ; src-segment - 2nd entry in GDT mov ds, ax mov eax, #0x18000 ; src-offset - 0x18000 mov esi, eax ; destination - 0xC mov ax, #0x10 ; dst-segment - 2nd entry in GDT mov es, ax mov eax, #0xC ; dst-offset - 0xC mov edi, eax ; clear direction flag cld ; the copy rep movsb ;* nop nop ;* ; E) copy -- pirq table ; on my system video bios is just 48KB (0x0C000) ; but just for paranoida we copy 64kb (0X1) ; counter - 256kb -- 0x100 mov ecx, #0x100 ; source - 0x7F00 ( 0x7C00+0x300 = 0x7F00 ) mov ax, #0x10; src-segment - 2nd entry in GDT mov ds, ax mov eax, #0x7F00 ; src-offset - 0x7F00 mov esi, eax ; destination -
VGA Problem about 440bx chipset
HI,all I run linuxbios on a 440bx chipset mainboard using adlo+bochs,I can boot linux but still havn't started up the vga. what should I do if I want to bring up the vga card? I found the work done about vga are: (1) allocate_vga_resource() in newpci.c enbale io/mem of the vga adapter then walk up the bridges setting the VGA enable (2) copy the vga bios to 0xc using adlo,and run bochs bios. I'm not sure if it had initilized the vga controller enough. And I found there are some registers about AGP from 440bx northbridge datasheet ( 82443bx hostbridge/controller),such as AGP capability identifier register,AGP command register,AGP status register... But this work hadn't been done in linuxbios,maybe I need to set these registers correctly according to the datasheet to enable AGP? Regards, Gerald _ MSN Explorer: http://explorer.msn.com/lccn ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
ron minnich wrote: V1 or V2? 440bx support is not in V2 (if it is I didn't add it) so it has to be V1 ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
Chiu Gerald wrote: I found the work done about vga are: (1) allocate_vga_resource() in newpci.c enbale io/mem of the vga adapter then walk up the bridges setting the VGA enable That should all be done already. (2) copy the vga bios to 0xc using adlo,and run bochs bios. I'm not sure if it had initilized the vga controller enough. And I You will get a vga bios boot screen if it works. found there are some registers about AGP from 440bx northbridge datasheet ( 82443bx hostbridge/controller),such as AGP capability identifier register,AGP command register,AGP status register... But this work hadn't been done in linuxbios,maybe I need to set these registers correctly according to the datasheet to enable AGP? This is probally your problem. None of the AGP stuff is setup in the 440bx code. Only PCI cards have been used to date. You will have to write AGP init code. Does V2 know anything about agp? If so then its probally time to port the 440bx stuff over to v2 ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios
Re: VGA Problem about 440bx chipset
On Tue, 31 Aug 2004, Richard Smith wrote: Does V2 know anything about agp? If so then its probally time to port the 440bx stuff over to v2 if it does not, it's much easier to put it in. It does know in some ways. ron ___ Linuxbios mailing list [EMAIL PROTECTED] http://www.clustermatic.org/mailman/listinfo/linuxbios