Op 20100204 om 18:56 schreef Geert Stappers: > Op 20100204 om 18:33 schreef Geert Stappers: > > Hello, > > > > While trying to boot gPXE from a USB memory stick > > on a computer with VIA C3 CPU I got stuck > > on a "frozen computer", the system hangs for unknown reason. > > <snip/> > > > > To me it seems that the most value thing, > > would be a "Hello World" printed with BIOS routines. > > It would mean that one can see that the gPXE code > > came alive.
In the attachment a patch that prints 'Good' ( printing 'morning' fails ) > > Right now it is not clear if the BIOS is executing > > or that the BIOS allready did handover execution to gPXE. Seems like the VIA C3 system, which has USB 1.1, doesn't like USB 2.0 memory sticks. Groeten Geert Stappers
diff --git a/src/arch/i386/prefix/earlyhello.S b/src/arch/i386/prefix/earlyhello.S new file mode 100644 index 0000000..45424a5 --- /dev/null +++ b/src/arch/i386/prefix/earlyhello.S @@ -0,0 +1,32 @@ +FILE_LICENCE ( GPL2_OR_LATER ) + + .text + .arch i386 + .section ".prefix", "awx", @progbits + .code16 + + /* Print message */ + movb $0x0e, %ah + movb $'G', %al + int $0x10 + movb $'o', %al + int $0x10 + movb $'o', %al + int $0x10 + movb $'d', %al + int $0x10 + + movw $text, %si + jmp early_hello +text: .asciz "morning\r\n" +early_hello: + cld + movw $0x0007, %bx + movb $0x0e, %ah +1: lodsb + testb %al, %al + je 99f + int $0x10 + jmp 1b +99: +/* last line */ diff --git a/src/arch/i386/prefix/mbr.S b/src/arch/i386/prefix/mbr.S index adfe204..c1408f1 100644 --- a/src/arch/i386/prefix/mbr.S +++ b/src/arch/i386/prefix/mbr.S @@ -5,6 +5,7 @@ .org 0 mbr: +#include "earlyhello.S" movw $exec_sector, %bp jmp find_active_partition exec_sector:
_______________________________________________ gPXE mailing list [email protected] http://etherboot.org/mailman/listinfo/gpxe
