Another way of using ADLO

bendany bendany@mistdl.com
Tue Apr 29 03:41:01 2003


This is a multi-part message in MIME format.

------=_NextPart_000_031D_01C30FFD.4CB2E1C0
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hm, It seems that my way is buggy, But it works. ;-)

I am trying to use the VGA with LinuxBIOS. since I am trying to use the =
Xwindows.
if you want to start the Xserver, you must have the vgabios. I think =
when the Xserver startup, it will probe the videocard. but=20
since the LinuxBIOS does not have the videobios. so the Xserver crash.=20
you can using the Xserver with the kernel framebuffer driver. such as =
fbdev. but it lack the ability of hardware accel. such=20
as play the movie fullscreen. so use the ADLO & bochs bios & vgabios =
will give you a second way to run the Xserver.
since the LinuxBIOS switch the CPU into protected mode early, and the =
commercial vgabios runs in realmode. so the commercial=20
vgabios cann't run after the LinuxBIOS. so the ADLO will do some =
preparation works. Load the bochs bios & vgabios. switch the=20
CPU to the realmode. execute the bochs bios.
the bochs will try to init the vgabios first.it scan the address 0xC0000 =
to 0xC7FFF in 2k increments. and then scan the General=20
ROM from 0xC8000 to 0xDFFFF in 2k increments, so if we put the =
etherboot+AA patch after the address of vgabios. the etherboot
will be excuted after bochs init the vgabios.
the way why I do this is that the bochs bios is lack the ability of =
dealing with the real hardware. such as ide harddisk. In my experiment,
when I use the IBM 30G harddisk. the speed of lilo & grub load the =
kernel normally, but when I use the flash IDE. the speed of lilo &
grub , or syslinux, is too slow.

if you want to run the etherboot with the bochs bios. you must do some =
work yourself.
first, using ADLO to get your own vgabios. my mainboard chipset is =
sis630. the vgabios is 48kb. plus the etherboot+AA rom.
and the bochs bios .altogether 144kb. and the ADLO only provide 3 types =
of elf loader. so you must create the 145kb loader yourself.
and also modify the loader.s.
and you will need to modify the etherboot5.0.6+AA patch too.

hope help.
Best regards.

------=_NextPart_000_031D_01C30FFD.4CB2E1C0
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hm, It seems that my way is&nbsp;buggy, =
But it=20
works. ;-)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to use the VGA with =
LinuxBIOS. since I=20
am trying to use the Xwindows.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>if you want to start the </FONT><FONT =
face=3DArial=20
size=3D2>Xserver, you must have the vgabios. I think&nbsp;when the =
Xserver=20
startup, it will probe the videocard. but </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>since the LinuxBIOS does not have the =
videobios. so=20
the Xserver crash. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>you can using the Xserver with the =
kernel=20
framebuffer driver. such as fbdev. but it lack the ability of hardware =
accel.=20
such </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>as play the movie fullscreen. so use =
the ADLO &amp;=20
bochs bios &amp; vgabios will give you a second way to run the=20
Xserver.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>since the LinuxBIOS switch the CPU into =
protected=20
mode early, and the commercial vgabios runs&nbsp;in realmode. so the =
commercial=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>vgabios&nbsp;cann't run&nbsp;after the=20
LinuxBIOS.&nbsp;so the ADLO will do some preparation works. Load the =
bochs bios=20
&amp; vgabios. switch the </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>CPU to the realmode. execute the bochs=20
bios.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the bochs will try to init the vgabios =
first.it=20
scan the address 0xC0000 to 0xC7FFF in 2k increments. and then scan the =
General=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ROM from 0xC8000 to 0xDFFFF in 2k =
increments, so if=20
we put the etherboot+AA patch after the address of vgabios. the=20
etherboot</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>will be excuted after bochs init the=20
vgabios.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the way why I do this is that the bochs =
bios is=20
lack&nbsp;the&nbsp;ability&nbsp;of dealing with the real hardware. such =
as ide=20
harddisk. In my experiment,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>when I use the IBM 30G harddisk. the =
speed of lilo=20
&amp; grub load the kernel normally, but when I use the flash =
IDE.&nbsp;the=20
speed of lilo &amp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>grub , or syslinux, is too =
slow.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if you want to run the etherboot with =
the bochs=20
bios. you must do some work yourself.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>first, using ADLO to get your own =
vgabios. my=20
mainboard chipset is sis630. the vgabios is 48kb. plus the etherboot+AA=20
rom.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and the bochs bios .altogether 144kb. =
and the ADLO=20
only provide 3 types of elf loader. so you must create the 145kb loader=20
yourself.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and also modify the =
loader.s.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and you will need to modify the =
etherboot5.0.6+AA=20
patch too.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>hope help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Best =
regards.</FONT></DIV></BODY></HTML>

------=_NextPart_000_031D_01C30FFD.4CB2E1C0--