zhu shi song,
> I am using cvs freeebios , linux kernel 2.4.18 and 
> winfast6300 mainborad. All is Ok, but linux kernel 
> can't find keyboard. it said keyboad timeout.
> what's the problem?  I hope I can get your help.
You need this patch.  Looks like you are getting progress.  :)

-Andrew

-- 
Andrew Ip
Email:  [EMAIL PROTECTED]
Tel:    (852) 2542 2046
Fax:    (852) 2542 2036
Mobile: (852) 9201 9866

Cwlinux Limited
Unit 202B 2/F Lai Cheong Factory Building,
479-479A Castle Peak Road,
Lai Chi Kok, Kowloon,
Hong Kong.

Tel: (852)2542 2046
Fax: (852)2542 2036

For public pgp key, please obtain it from http://www.keyserver.net/en.
diff -Nur freebios/src/arch/i386/lib/hardwaremain.c 
freebios.kbd/src/arch/i386/lib/hardwaremain.c
--- freebios/src/arch/i386/lib/hardwaremain.c   2002-08-22 05:01:37.000000000 +0800
+++ freebios.kbd/src/arch/i386/lib/hardwaremain.c       2002-09-02 14:52:37.000000000 
++0800
@@ -23,13 +23,13 @@
 
 /*
  * C Bootstrap code for the INTEL 
- * $Id: hardwaremain.c,v 1.29 2002/08/21 21:01:37 rminnich Exp $
+ * $Id: hardwaremain.c,v 1.28 2002/07/18 20:30:20 ebiederm Exp $
  *
  */
 
 #define LINUXBIOS
 #ifndef lint
-static char rcsid[] = "$Id: hardwaremain.c,v 1.29 2002/08/21 21:01:37 rminnich Exp $";
+static char rcsid[] = "$Id: hardwaremain.c,v 1.28 2002/07/18 20:30:20 ebiederm Exp $";
 #endif
 
 #ifndef MAX_PHYSICAL_CPUS
@@ -342,7 +342,7 @@
 
        nvram_on();
 
-       //keyboard_on();
+       keyboard_on();
 
 #ifndef USE_NEW_SUPERIO_INTERFACE
        enable_floppy();
diff -Nur freebios/src/lib/elfboot.c freebios.kbd/src/lib/elfboot.c
--- freebios/src/lib/elfboot.c  2002-08-22 05:02:38.000000000 +0800
+++ freebios.kbd/src/lib/elfboot.c      2002-09-02 14:52:56.000000000 +0800
@@ -623,7 +623,6 @@
        for(i = 0; i < ELF_HEAD_SIZE - (sizeof(Elf_ehdr) + sizeof(Elf_phdr)); i+=16) {
                ehdr = (Elf_ehdr *)(&header[i]);
                if (memcmp(ehdr->e_ident, ELFMAG, 4) != 0) {
-                       printk_debug("NO header at %d\n", i);
                        continue;
                }
                printk_debug("Found ELF candiate at offset %d\n", i);
@@ -642,12 +641,10 @@
                }
                ehdr = 0;
        }
-       printk_debug("header_offset is %d\n", header_offset);
        if (header_offset == -1) {
                goto out;
        }
 
-       printk_debug("Try to load at offset 0x%x\n", header_offset);
        result = elfload(stream, mem, 
                header + header_offset , ELF_HEAD_SIZE - header_offset);
  out:

Attachment: msg00444/pgp00000.pgp
Description: PGP signature

Reply via email to