[LinuxBIOS] [PATCH] [ADLO] Booting Windows XP and Windows 2000

Augusto Pedroza augusto.pedroza at gmail.com
Tue Jul 24 04:04:01 CEST 2007


I pasted the patch commentary as weel as the patch.

These changes were necessary in order to allow LinuxBIOS to
install windows from an installation CD. Windows seems
to require that the BIOS used during installation be the
same used to run it after installed.

 - In the file loader.s I  commented out the CMOS settings
   that force booting from Hard Disk.

 - In the rombios.c the functions responsible for booting
   from CD-ROM are turned on.

These changes are only necessary to install windows, after
installed they are no longer needed.

Signed-off-by: Augusto Pedroza <augusto.pedroza at gmail.com>

Index: util/ADLO/loader.s
===================================================================
--- util/ADLO/loader.s  (revision 2739)
+++ util/ADLO/loader.s  (working copy)
@@ -177,10 +177,10 @@
 ; 0x02 - hdd
 ; In future there will be 'fd failover'option in bochs.

-mov  al, #0x3d ;; cmos_reg
-out  0x70, al
-mov  al, #0x02 ;; val (hdd)
-out  0x71, al
+;mov  al, #0x3d ;; cmos_reg
+;out  0x70, al
+;mov  al, #0x02 ;; val (hdd)
+;out  0x71, al

 ;-----------------------------------------------------
 ; IV) tell BOCHS' BIOS length of our mem block @ 1mb.
Index: util/ADLO/bochs/bios/rombios.c
===================================================================
--- util/ADLO/bochs/bios/rombios.c      (revision 2739)
+++ util/ADLO/bochs/bios/rombios.c      (working copy)
@@ -147,7 +147,7 @@
 #define LINUXBIOS      1

 #define BX_USE_ATADRV    1
-//#define BX_ELTORITO_BOOT 1
+#define BX_ELTORITO_BOOT 1


On 7/23/07, Peter Stuge <peter at stuge.se> wrote:
>
> On Mon, Jul 23, 2007 at 10:46:34PM -0300, Augusto Pedroza wrote:
> > We finally got windows XP to work with LinuxBIOS.
>
> That is really great news!
>
>
> > Just few modifications to ADLO were necessary.
> > see wiki for details:
> > http://www.linuxbios.org/Booting_Windows_using_LinuxBIOS
>
> I'd love to read a quick description of the ADLO modifications needed
> until you the code is available.
>
> Thanks!
>
>
> //Peter
>
> --
> linuxbios mailing list
> linuxbios at linuxbios.org
> http://www.linuxbios.org/mailman/listinfo/linuxbios
>



-- 
Augusto Pedroza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070723/d3bbf161/attachment.html>


More information about the coreboot mailing list