linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.23 compile error in edd
@ 2003-12-04 14:20 Meelis Roos
  2003-12-04 14:58 ` Meelis Roos
  2003-12-04 22:31 ` 2.4.23-bk bogus edd changeset - " Anton Altaparmakov
  0 siblings, 2 replies; 16+ messages in thread
From: Meelis Roos @ 2003-12-04 14:20 UTC (permalink / raw)
  To: linux-kernel

gcc -D__KERNEL__ -I/home/mroos/compile/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=setup  -DEXPORT_SYMTAB -c setup.c
setup.c: In function `copy_edd':
setup.c:734: error: `DISKSIG_BUFFER' undeclared (first use in this function)
setup.c:734: error: (Each undeclared identifier is reported only once
setup.c:734: error: for each function it appears in.)
make[1]: *** [setup.o] Error 1

DISKSIG_BUFFER is nowhere to be seen.

-- 
Meelis Roos (mroos@linux.ee)


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23 compile error in edd
  2003-12-04 14:20 2.4.23 compile error in edd Meelis Roos
@ 2003-12-04 14:58 ` Meelis Roos
  2003-12-04 22:31 ` 2.4.23-bk bogus edd changeset - " Anton Altaparmakov
  1 sibling, 0 replies; 16+ messages in thread
From: Meelis Roos @ 2003-12-04 14:58 UTC (permalink / raw)
  To: linux-kernel

MR> DISKSIG_BUFFER is nowhere to be seen.

Error correction: this is todays BK, not pristine 2.4.23 (if that
matters).

-- 
Meelis Roos (mroos@linux.ee)

^ permalink raw reply	[flat|nested] 16+ messages in thread

* 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-04 14:20 2.4.23 compile error in edd Meelis Roos
  2003-12-04 14:58 ` Meelis Roos
@ 2003-12-04 22:31 ` Anton Altaparmakov
  2003-12-05 15:52   ` Marcelo Tosatti
  1 sibling, 1 reply; 16+ messages in thread
From: Anton Altaparmakov @ 2003-12-04 22:31 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Meelis Roos, linux-kernel

Marcelo,

2.4.23-bk has a changeset (post 2.4.23 release TAG) that makes edd not
compile as Meelis Roos already reported:

On Thu, 4 Dec 2003, Meelis Roos wrote:
> gcc -D__KERNEL__ -I/home/mroos/compile/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=setup  -DEXPORT_SYMTAB -c setup.c
> setup.c: In function `copy_edd':
> setup.c:734: error: `DISKSIG_BUFFER' undeclared (first use in this function)
> setup.c:734: error: (Each undeclared identifier is reported only once
> setup.c:734: error: for each function it appears in.)
> make[1]: *** [setup.o] Error 1
>
> DISKSIG_BUFFER is nowhere to be seen.

Further, looking at the header files the closest constant that does exist
is #define DISK80_SIG_BUFFER 0x228 from include/asm-i386/edd.h.

However, changing DISKSIG_BUFFER to DISK80_SIG_BUFFER causes the kernel to
reboot the computer as soon as it starts booting.  Basically I select it
in grub and the screen changes graphics mode and by the time it has
finished the switch the computer reboots.

2.4.23-bk at the 2.4.23 release TAG works fine and compiles fine with the
same .config.

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-04 22:31 ` 2.4.23-bk bogus edd changeset - " Anton Altaparmakov
@ 2003-12-05 15:52   ` Marcelo Tosatti
  2003-12-05 17:36     ` Matt Domsch
  0 siblings, 1 reply; 16+ messages in thread
From: Marcelo Tosatti @ 2003-12-05 15:52 UTC (permalink / raw)
  To: Anton Altaparmakov
  Cc: Marcelo Tosatti, Meelis Roos, linux-kernel, Matt Domsch


Matt?

On Thu, 4 Dec 2003, Anton Altaparmakov wrote:

> Marcelo,
> 
> 2.4.23-bk has a changeset (post 2.4.23 release TAG) that makes edd not
> compile as Meelis Roos already reported:
> 
> On Thu, 4 Dec 2003, Meelis Roos wrote:
> > gcc -D__KERNEL__ -I/home/mroos/compile/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=setup  -DEXPORT_SYMTAB -c setup.c
> > setup.c: In function `copy_edd':
> > setup.c:734: error: `DISKSIG_BUFFER' undeclared (first use in this function)
> > setup.c:734: error: (Each undeclared identifier is reported only once
> > setup.c:734: error: for each function it appears in.)
> > make[1]: *** [setup.o] Error 1
> >
> > DISKSIG_BUFFER is nowhere to be seen.
> 
> Further, looking at the header files the closest constant that does exist
> is #define DISK80_SIG_BUFFER 0x228 from include/asm-i386/edd.h.
> 
> However, changing DISKSIG_BUFFER to DISK80_SIG_BUFFER causes the kernel to
> reboot the computer as soon as it starts booting.  Basically I select it
> in grub and the screen changes graphics mode and by the time it has
> finished the switch the computer reboots.
> 
> 2.4.23-bk at the 2.4.23 release TAG works fine and compiles fine with the
> same .config.
> 
> Best regards,
> 
> 	Anton
> 



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-05 15:52   ` Marcelo Tosatti
@ 2003-12-05 17:36     ` Matt Domsch
  2003-12-05 18:53       ` Matt Domsch
                         ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Matt Domsch @ 2003-12-05 17:36 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Anton Altaparmakov, Meelis Roos, linux-kernel

> On Thu, 4 Dec 2003, Anton Altaparmakov wrote:
> > 2.4.23-bk has a changeset (post 2.4.23 release TAG) that makes edd not
> > compile as Meelis Roos already reported:
> > > DISKSIG_BUFFER is nowhere to be seen.

Yeah, that's my bad, setup.c should say DISK80_SIG_BUFFER not
DISKSIG_BUFFER.

===== arch/i386/kernel/setup.c 1.77 vs edited =====
--- 1.77/arch/i386/kernel/setup.c       Mon Dec  1 09:23:55 2003
+++ edited/arch/i386/kernel/setup.c     Fri Dec  5 10:58:11 2003
@@ -211,7 +211,7 @@
 #define KERNEL_START (*(unsigned long *) (PARAM+0x214))
 #define INITRD_START (*(unsigned long *) (PARAM+0x218))
 #define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c))
-#define DISK80_SIGNATURE_BUFFER (*(unsigned int*)(PARAM+DISKSIG_BUFFER))
+#define DISK80_SIGNATURE_BUFFER (*(unsigned int*)(PARAM+DISK80_SIG_BUFFER))
 #define EDD_NR     (*(unsigned char *) (PARAM+EDDNR))
 #define EDD_BUF     ((struct edd_info *) (PARAM+EDDBUF))
 #define COMMAND_LINE ((char *) (PARAM+2048))



With this, it works for me on my PowerEdge 4600 with disks on the
aic7xxx, and the same int13 code works on all other PowerEdge servers
we've ever tried it on.  What kind of system and disks (IDE/SCSI) and
BIOS do you have for those please?

> > However, changing DISKSIG_BUFFER to DISK80_SIG_BUFFER causes the kernel to
> > reboot the computer as soon as it starts booting.  Basically I select it
> > in grub and the screen changes graphics mode and by the time it has
> > finished the switch the computer reboots.

Can you send me your .config and I'll try to reproduce? 

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-05 17:36     ` Matt Domsch
@ 2003-12-05 18:53       ` Matt Domsch
  2003-12-05 19:07         ` Matt Domsch
  2003-12-08 16:34       ` Anton Altaparmakov
  2003-12-18 11:32       ` Meelis Roos
  2 siblings, 1 reply; 16+ messages in thread
From: Matt Domsch @ 2003-12-05 18:53 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Anton Altaparmakov, Meelis Roos, linux-kernel

> Yeah, that's my bad, setup.c should say DISK80_SIG_BUFFER not
> DISKSIG_BUFFER.

BK patch to fix that:
Marcelo, please do a

	bk pull http://mdomsch.bkbits.net/linux-2.4-edd

This will update the following files:

 arch/i386/kernel/edd.c   |    2 +-
 arch/i386/kernel/setup.c |    2 +-
 2 files changed, 2 insertions, 2 deletions

through these ChangeSets:

<Matt_Domsch@dell.com> (03/12/05 1.1199)
   EDD: s/DISKSIG_BUFFER/DISK80_SIG_BUFFER so it compiles
   
   bump EDD version number.


Tested on my PowerEdge 4600.

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-05 18:53       ` Matt Domsch
@ 2003-12-05 19:07         ` Matt Domsch
  0 siblings, 0 replies; 16+ messages in thread
From: Matt Domsch @ 2003-12-05 19:07 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Anton Altaparmakov, Meelis Roos, linux-kernel

You can import this changeset into BK by piping this whole message to
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


ChangeSet@1.1199, 2003-12-05 12:46:52-06:00, Matt_Domsch@dell.com
  EDD: s/DISKSIG_BUFFER/DISK80_SIG_BUFFER so it compiles
  
  bump EDD version number.


 edd.c   |    2 +-
 setup.c |    2 +-
 2 files changed, 2 insertions, 2 deletions


diff -Nru a/arch/i386/kernel/edd.c b/arch/i386/kernel/edd.c
--- a/arch/i386/kernel/edd.c	Fri Dec  5 12:51:43 2003
+++ b/arch/i386/kernel/edd.c	Fri Dec  5 12:51:43 2003
@@ -46,7 +46,7 @@
 MODULE_DESCRIPTION("proc interface to BIOS EDD information");
 MODULE_LICENSE("GPL");
 
-#define EDD_VERSION "0.09 2003-Jan-21"
+#define EDD_VERSION "0.10 2003-Dec-05"
 #define EDD_DEVICE_NAME_SIZE 16
 #define REPORT_URL "http://domsch.com/linux/edd30/results.html"
 
diff -Nru a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c
--- a/arch/i386/kernel/setup.c	Fri Dec  5 12:51:43 2003
+++ b/arch/i386/kernel/setup.c	Fri Dec  5 12:51:43 2003
@@ -211,7 +211,7 @@
 #define KERNEL_START (*(unsigned long *) (PARAM+0x214))
 #define INITRD_START (*(unsigned long *) (PARAM+0x218))
 #define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c))
-#define DISK80_SIGNATURE_BUFFER (*(unsigned int*) (PARAM+DISKSIG_BUFFER))
+#define DISK80_SIGNATURE_BUFFER (*(unsigned int*) (PARAM+DISK80_SIG_BUFFER))
 #define EDD_NR     (*(unsigned char *) (PARAM+EDDNR))
 #define EDD_BUF     ((struct edd_info *) (PARAM+EDDBUF))
 #define COMMAND_LINE ((char *) (PARAM+2048))

===================================================================


This BitKeeper patch contains the following changesets:
1.1199
## Wrapped with gzip_uu ##


M'XL( +_3T#\  \U5:V^;,!3]'/\*J_W2AP!?OWA(F?I(VD5=VRA9]F6:(F+<
M!C5 !*3;)'[\#$N;/K)FZU9I&(%LF>-S[SWGLHU'A<Z#UGE8EN-.EA1JBK;Q
M^ZPH@U:D9S-;98E9&&2967"F6:*=)&JV.9,;1T>1,XO3Q3>+VMPR,V3V]L-2
M3?&MSHN@!3:[7RF_SW70&G1/1Q\.!PBUV_AX&J;7>JA+W&ZC,LMOPUE4'(3E
M=):E=IF':9'H,JPI5/=;*TH(-4. RXB0%4C"W4I!!!!RT!&AW),</8CGX"Z.
MQR ,# SXX(&LF  0J(/!!O!]3)@#U"$" PVX# 2UB P(P>M \3[%%D%'^-_R
M/T8*=SN= !=.IS<\&_9.QT>CDY/NH)EZ9+Q:P46&XQ*;4^;Q3!?F0W-/%LF\
M!FCJ$&<I3A?)1.<V.L.,F]-1?Y5]9/WAA1 )"7JW(>0P-R*)F2>=&YVG>N84
MNES,;?4@ ]Q4H.(N U*%0$SX+H<K4(JZ8FVR7\2L"RK XY**BKB<4\-P'<CG
MI8"_/$<S"EYB$9\R\ 7E4%&/"L.2,-^-))6A.]%2R=_DMT)\Q,YC;N. ]?MK
M.[P=\]=# S&#"4+].@0A&\>PIW:AXD6[ +;@[>S2Z/ZQYHWDFWQ?8BO_VMQ&
MP?U?I/X57NAP'P/J-<_M2%_%J:ZYC#]U!\/>Y07>(C807.?/ZFAE$;&UOO1+
M*6_NA7]GK/6M<9.Q3'^D3-32I9PU=7>]_ZKPF_ND\[11&EW476*3+I:9>(TR
M*/!:&C]?=]I8$;LX_#@:=._:^,[>SB(MXNM41SA.R[U=O-,_'!R>[S^+9'=W
9]9]54ZUNBD72=I565$J%?@!_!;MWTP<     
 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-05 17:36     ` Matt Domsch
  2003-12-05 18:53       ` Matt Domsch
@ 2003-12-08 16:34       ` Anton Altaparmakov
  2003-12-09  4:23         ` Matt Domsch
  2003-12-18 11:32       ` Meelis Roos
  2 siblings, 1 reply; 16+ messages in thread
From: Anton Altaparmakov @ 2003-12-08 16:34 UTC (permalink / raw)
  To: Matt Domsch; +Cc: Marcelo Tosatti, LKML

[-- Attachment #1: Type: text/plain, Size: 2832 bytes --]

Hi Matt,

On Fri, 2003-12-05 at 17:36, Matt Domsch wrote: 
> > On Thu, 4 Dec 2003, Anton Altaparmakov wrote:
> With this, it works for me on my PowerEdge 4600 with disks on the
> aic7xxx, and the same int13 code works on all other PowerEdge servers
> we've ever tried it on.  What kind of system and disks (IDE/SCSI) and
> BIOS do you have for those please?
> 
> > > However, changing DISKSIG_BUFFER to DISK80_SIG_BUFFER causes the kernel to
> > > reboot the computer as soon as it starts booting.  Basically I select it
> > > in grub and the screen changes graphics mode and by the time it has
> > > finished the switch the computer reboots.
> 
> Can you send me your .config and I'll try to reproduce? 

.config is attached (I called it edd_config).  

With latest 2.4-BK which includes your compile fix, compiling the kernel
with the attached .config, installing and attempting to boot the kernel
causes immediate reboot on my workstation.

Disabling EDD in the .config, recompiling and installing the kernel
makes it boot just fine.

My workstation is a P4 2.6GHz hyperthreading (with SMP in kernel
enabled), 1GB DDR400 RAM, the motherboard is an Intel D865GLC Desktop
Board, latest BIOS version BF86510A.86A.0049.P11 (I just updated the
BIOS to this and tried again just in case that made a difference).

lspci says:

00:00.0 Host bridge: Intel Corp. 82865G [Springdale-G] Chipset Host
Bridge (rev 02)
00:01.0 PCI bridge: Intel Corp.: Unknown device 2571 (rev 02)
00:1d.0 USB Controller: Intel Corp. 82801EB USB (Hub #1) (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801EB USB (Hub #2) (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801EB USB (Hub #3) (rev 02)
00:1d.3 USB Controller: Intel Corp. 82801EB USB EHCI Controller #2 (rev
02)
00:1d.7 USB Controller: Intel Corp. 82801EB USB EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corp. 82801EB ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801EB ICH5 IDE (rev 02)
00:1f.2 IDE interface: Intel Corp.: Unknown device 24d1 (rev 02)
00:1f.3 SMBus: Intel Corp. 82801EB SMBus (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB AC'97 Audio
(rev 02)
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP
(rev 01)
02:01.0 Ethernet controller: Intel Corp. 82540EM Gigabit Ethernet
Controller (rev 02)
02:08.0 Ethernet controller: Intel Corp. 82801EB (ICH5) PRO/100 VE
Ethernet Controller (rev 01)

Let me know if you want me to test any patches, need any more
information, etc...

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ &
http://www-stu.christs.cam.ac.uk/~aia21/

[-- Attachment #2: edd_config --]
[-- Type: text/plain, Size: 27658 bytes --]

#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMIII is not set
CONFIG_MPENTIUM4=y
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_X86_HAS_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_F00F_WORKS_OK=y
CONFIG_X86_MCE=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
CONFIG_MICROCODE=y
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_EDD=y
# CONFIG_NOHIGHMEM is not set
CONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not set
CONFIG_HIGHMEM=y
CONFIG_HIGHIO=y
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_SMP=y
CONFIG_NR_CPUS=2
# CONFIG_X86_NUMA is not set
# CONFIG_X86_TSC_DISABLE is not set
CONFIG_X86_TSC=y
CONFIG_HAVE_DEC_LOCK=y

#
# General setup
#
CONFIG_NET=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_ISA=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
# CONFIG_PCMCIA is not set

#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_PM=y
# CONFIG_APM is not set

#
# ACPI Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_AC=y
# CONFIG_ACPI_BATTERY is not set
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_RELAXED_AML is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m
# CONFIG_PARPORT_SERIAL is not set
CONFIG_PARPORT_PC_FIFO=y
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_AMIGA is not set
# CONFIG_PARPORT_MFC3 is not set
# CONFIG_PARPORT_ATARI is not set
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_SUNBPP is not set
# CONFIG_PARPORT_IP22 is not set
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y

#
# Plug and Play configuration
#
CONFIG_PNP=y
CONFIG_ISAPNP=y

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_CISS_SCSI_TAPE is not set
# CONFIG_CISS_MONITOR_THREAD is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
CONFIG_BLK_STATS=y

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_BLK_DEV_LVM is not set

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_NETLINK_DEV=y
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_FILTER=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=y
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y

#
#   IP: Netfilter Configuration
#
CONFIG_IP_NF_CONNTRACK=y
CONFIG_IP_NF_FTP=y
CONFIG_IP_NF_AMANDA=y
CONFIG_IP_NF_TFTP=y
CONFIG_IP_NF_IRC=y
CONFIG_IP_NF_QUEUE=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_MATCH_LIMIT=y
CONFIG_IP_NF_MATCH_MAC=y
CONFIG_IP_NF_MATCH_PKTTYPE=y
CONFIG_IP_NF_MATCH_MARK=y
CONFIG_IP_NF_MATCH_MULTIPORT=y
CONFIG_IP_NF_MATCH_TOS=y
CONFIG_IP_NF_MATCH_RECENT=y
CONFIG_IP_NF_MATCH_ECN=y
CONFIG_IP_NF_MATCH_DSCP=y
CONFIG_IP_NF_MATCH_AH_ESP=y
CONFIG_IP_NF_MATCH_LENGTH=y
CONFIG_IP_NF_MATCH_TTL=y
CONFIG_IP_NF_MATCH_TCPMSS=y
CONFIG_IP_NF_MATCH_HELPER=y
CONFIG_IP_NF_MATCH_STATE=y
CONFIG_IP_NF_MATCH_CONNTRACK=y
CONFIG_IP_NF_MATCH_UNCLEAN=y
CONFIG_IP_NF_MATCH_OWNER=y
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_IP_NF_TARGET_MIRROR=y
CONFIG_IP_NF_NAT=y
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=y
CONFIG_IP_NF_TARGET_REDIRECT=y
CONFIG_IP_NF_NAT_AMANDA=y
CONFIG_IP_NF_NAT_LOCAL=y
CONFIG_IP_NF_NAT_SNMP_BASIC=y
CONFIG_IP_NF_NAT_IRC=y
CONFIG_IP_NF_NAT_FTP=y
CONFIG_IP_NF_NAT_TFTP=y
CONFIG_IP_NF_MANGLE=y
CONFIG_IP_NF_TARGET_TOS=y
CONFIG_IP_NF_TARGET_ECN=y
CONFIG_IP_NF_TARGET_DSCP=y
CONFIG_IP_NF_TARGET_MARK=y
CONFIG_IP_NF_TARGET_LOG=y
CONFIG_IP_NF_TARGET_ULOG=y
CONFIG_IP_NF_TARGET_TCPMSS=y
CONFIG_IP_NF_ARPTABLES=y
CONFIG_IP_NF_ARPFILTER=y
CONFIG_IP_NF_ARP_MANGLE=y

#
#   IP: Virtual Server Configuration
#
# CONFIG_IP_VS is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set

#
#    SCTP Configuration (EXPERIMENTAL)
#
CONFIG_IPV6_SCTP__=y
CONFIG_IP_SCTP=y
CONFIG_SCTP_ADLER32=y
CONFIG_SCTP_DBG_MSG=y
CONFIG_SCTP_DBG_OBJCNT=y
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set

#
#  
#
CONFIG_IPX=m
# CONFIG_IPX_INTERN is not set
CONFIG_ATALK=y

#
# Appletalk devices
#
# CONFIG_DEV_APPLETALK is not set
# CONFIG_DECNET is not set
CONFIG_BRIDGE=y
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_LLC is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set
# CONFIG_PHONE_IXJ is not set
# CONFIG_PHONE_IXJ_PCMCIA is not set

#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_IDE_TASK_IOCTL=y

#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_ISAPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_PCI_WIP=y
# CONFIG_BLK_DEV_ADMA100 is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_AMD74XX_OVERRIDE is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_HPT34X_AUTODMA is not set
# CONFIG_BLK_DEV_HPT366 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_RZ1000 is not set
# CONFIG_BLK_DEV_SC1200 is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
CONFIG_BLK_DEV_IDE_MODES=y
# CONFIG_BLK_DEV_ATARAID is not set
# CONFIG_BLK_DEV_ATARAID_PDC is not set
# CONFIG_BLK_DEV_ATARAID_HPT is not set
# CONFIG_BLK_DEV_ATARAID_SII is not set

#
# SCSI support
#
CONFIG_SCSI=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=2
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_SR_EXTRA_DEVS=2
CONFIG_CHR_DEV_SG=y

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
CONFIG_SCSI_DEBUG_QUEUES=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set

#
# SCSI low-level drivers
#
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_MEGARAID is not set
# CONFIG_SCSI_MEGARAID2 is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_CPQFCTS is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_EATA_DMA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_NCR53C7xx is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_NCR53C8XX is not set
# CONFIG_SCSI_SYM53C8XX is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PCI2000 is not set
# CONFIG_SCSI_PCI2220I is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_SEAGATE is not set
# CONFIG_SCSI_SIM710 is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set

#
# Fusion MPT device support
#
# CONFIG_FUSION is not set
# CONFIG_FUSION_BOOT is not set
# CONFIG_FUSION_ISENSE is not set
# CONFIG_FUSION_CTL is not set
# CONFIG_FUSION_LAN is not set

#
# IEEE 1394 (FireWire) support (EXPERIMENTAL)
#
# CONFIG_IEEE1394 is not set

#
# I2O device support
#
# CONFIG_I2O is not set
# CONFIG_I2O_PCI is not set
# CONFIG_I2O_BLOCK is not set
# CONFIG_I2O_LAN is not set
# CONFIG_I2O_SCSI is not set
# CONFIG_I2O_PROC is not set

#
# Network device support
#
CONFIG_NETDEVICES=y

#
# ARCnet devices
#
# CONFIG_ARCNET is not set
CONFIG_DUMMY=y
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
CONFIG_TUN=y
# CONFIG_ETHERTAP is not set
# CONFIG_NET_SB1000 is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_SUNLANCE is not set
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNBMAC is not set
# CONFIG_SUNQE is not set
# CONFIG_SUNGEM is not set
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set
CONFIG_NET_PCI=y
# CONFIG_PCNET32 is not set
# CONFIG_AMD8111_ETH is not set
# CONFIG_ADAPTEC_STARFIRE is not set
# CONFIG_AC3200 is not set
# CONFIG_APRICOT is not set
# CONFIG_B44 is not set
# CONFIG_CS89x0 is not set
# CONFIG_TULIP is not set
# CONFIG_DE4X5 is not set
# CONFIG_DGRS is not set
# CONFIG_DM9102 is not set
# CONFIG_EEPRO100 is not set
# CONFIG_EEPRO100_PIO is not set
CONFIG_E100=y
# CONFIG_LNE390 is not set
# CONFIG_FEALNX is not set
# CONFIG_NATSEMI is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_NE3210 is not set
# CONFIG_ES3210 is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_8139TOO_PIO is not set
# CONFIG_8139TOO_TUNE_TWISTER is not set
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_SUNDANCE_MMIO is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_RHINE_MMIO is not set
# CONFIG_WINBOND_840 is not set
# CONFIG_NET_POCKET is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
CONFIG_E1000=y
CONFIG_E1000_NAPI=y
# CONFIG_MYRI_SBUS is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_R8169 is not set
# CONFIG_SK98LIN is not set
# CONFIG_TIGON3 is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PLIP is not set
CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPPOE=y
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
# CONFIG_SLIP_MODE_SLIP6 is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set

#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set

#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Input core support
#
CONFIG_INPUT=y
CONFIG_INPUT_KEYBDEV=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1600
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1200
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_CONSOLE=y
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_PRINTER=m
# CONFIG_LP_CONSOLE is not set
CONFIG_PPDEV=m
# CONFIG_TIPAR is not set

#
# I2C support
#
CONFIG_I2C=y
CONFIG_I2C_ALGOBIT=y
# CONFIG_I2C_PHILIPSPAR is not set
# CONFIG_I2C_ELV is not set
# CONFIG_I2C_VELLEMAN is not set
# CONFIG_SCx200_I2C is not set
# CONFIG_SCx200_ACB is not set
# CONFIG_I2C_ALGOPCF is not set
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_PROC=y

#
# Mice
#
# CONFIG_BUSMOUSE is not set
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
# CONFIG_82C710_MOUSE is not set
# CONFIG_PC110_PAD is not set
# CONFIG_MK712_MOUSE is not set

#
# Joysticks
#
# CONFIG_INPUT_GAMEPORT is not set
# CONFIG_INPUT_NS558 is not set
# CONFIG_INPUT_LIGHTNING is not set
# CONFIG_INPUT_PCIGAME is not set
# CONFIG_INPUT_CS461X is not set
# CONFIG_INPUT_EMU10K1 is not set
# CONFIG_INPUT_SERIO is not set
# CONFIG_INPUT_SERPORT is not set

#
# Joysticks
#
# CONFIG_INPUT_ANALOG is not set
# CONFIG_INPUT_A3D is not set
# CONFIG_INPUT_ADI is not set
# CONFIG_INPUT_COBRA is not set
# CONFIG_INPUT_GF2K is not set
# CONFIG_INPUT_GRIP is not set
# CONFIG_INPUT_INTERACT is not set
# CONFIG_INPUT_TMDC is not set
# CONFIG_INPUT_SIDEWINDER is not set
# CONFIG_INPUT_IFORCE_USB is not set
# CONFIG_INPUT_IFORCE_232 is not set
# CONFIG_INPUT_WARRIOR is not set
# CONFIG_INPUT_MAGELLAN is not set
# CONFIG_INPUT_SPACEORB is not set
# CONFIG_INPUT_SPACEBALL is not set
# CONFIG_INPUT_STINGER is not set
# CONFIG_INPUT_DB9 is not set
# CONFIG_INPUT_GAMECON is not set
# CONFIG_INPUT_TURBOGRAFX is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_IPMI_PANIC_EVENT is not set
# CONFIG_IPMI_DEVICE_INTERFACE is not set
# CONFIG_IPMI_KCS is not set
# CONFIG_IPMI_WATCHDOG is not set

#
# Watchdog Cards
#
CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not set
# CONFIG_ALIM1535_WDT is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_SC520_WDT is not set
# CONFIG_PCWATCHDOG is not set
# CONFIG_EUROTECH_WDT is not set
# CONFIG_IB700_WDT is not set
# CONFIG_WAFER_WDT is not set
# CONFIG_I810_TCO is not set
# CONFIG_MIXCOMWD is not set
# CONFIG_60XX_WDT is not set
# CONFIG_SC1200_WDT is not set
# CONFIG_SCx200_WDT is not set
CONFIG_SOFT_WATCHDOG=y
# CONFIG_W83877F_WDT is not set
# CONFIG_WDT is not set
# CONFIG_WDTPCI is not set
# CONFIG_MACHZ_WDT is not set
# CONFIG_INDYDOG is not set
# CONFIG_AMD7XX_TCO is not set
# CONFIG_SCx200_GPIO is not set
# CONFIG_AMD_RNG is not set
CONFIG_INTEL_RNG=y
CONFIG_HW_RANDOM=y
# CONFIG_AMD_PM768 is not set
CONFIG_NVRAM=y
CONFIG_RTC=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_I810=y
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD_K8 is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_ATI is not set

#
# Direct Rendering Manager (XFree86 DRI support)
#
CONFIG_DRM=y
# CONFIG_DRM_OLD is not set

#
# DRM 4.1 drivers
#
CONFIG_DRM_NEW=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_GAMMA is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I810_XFREE_41 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_MGA=y
# CONFIG_DRM_SIS is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set

#
# File systems
#
# CONFIG_QUOTA is not set
# CONFIG_QFMT_V2 is not set
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
# CONFIG_REISERFS_FS is not set
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW is not set
# CONFIG_AFFS_FS is not set
CONFIG_HFS_FS=y
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BEFS_DEBUG is not set
# CONFIG_BFS_FS is not set
CONFIG_EXT3_FS=y
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
# CONFIG_UMSDOS_FS is not set
CONFIG_VFAT_FS=y
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_JFFS2_FS is not set
# CONFIG_CRAMFS is not set
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
# CONFIG_JFS_FS is not set
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set
CONFIG_MINIX_FS=y
# CONFIG_VXFS_FS is not set
CONFIG_NTFS_FS=m
CONFIG_NTFS_RW=y
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_EXT2_FS is not set
# CONFIG_SYSV_FS is not set
CONFIG_UDF_FS=y
# CONFIG_UDF_RW is not set
# CONFIG_UFS_FS is not set
# CONFIG_UFS_FS_WRITE is not set
# CONFIG_XFS_FS is not set
# CONFIG_XFS_QUOTA is not set
# CONFIG_XFS_RT is not set
# CONFIG_XFS_TRACE is not set
# CONFIG_XFS_DEBUG is not set

#
# Network File Systems
#
# CONFIG_CODA_FS is not set
# CONFIG_INTERMEZZO_FS is not set
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_DIRECTIO=y
# CONFIG_ROOT_NFS is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_TCP=y
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_SMB_FS=y
CONFIG_SMB_NLS_DEFAULT=y
CONFIG_SMB_NLS_REMOTE="iso8859-15"
CONFIG_NCP_FS=m
CONFIG_NCPFS_PACKET_SIGNING=y
CONFIG_NCPFS_IOCTL_LOCKING=y
CONFIG_NCPFS_STRONG=y
CONFIG_NCPFS_NFS_NS=y
CONFIG_NCPFS_OS2_NS=y
# CONFIG_NCPFS_SMALLDOS is not set
CONFIG_NCPFS_NLS=y
# CONFIG_NCPFS_EXTRAS is not set
CONFIG_ZISOFS_FS=y

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_SMB_NLS=y
CONFIG_NLS=y

#
# Native Language Support
#
CONFIG_NLS_DEFAULT="iso8859-15"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_737=y
CONFIG_NLS_CODEPAGE_775=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=y
CONFIG_NLS_CODEPAGE_855=y
CONFIG_NLS_CODEPAGE_857=y
CONFIG_NLS_CODEPAGE_860=y
CONFIG_NLS_CODEPAGE_861=y
CONFIG_NLS_CODEPAGE_862=y
CONFIG_NLS_CODEPAGE_863=y
CONFIG_NLS_CODEPAGE_864=y
CONFIG_NLS_CODEPAGE_865=y
CONFIG_NLS_CODEPAGE_866=y
CONFIG_NLS_CODEPAGE_869=y
CONFIG_NLS_CODEPAGE_936=y
CONFIG_NLS_CODEPAGE_950=y
CONFIG_NLS_CODEPAGE_932=y
CONFIG_NLS_CODEPAGE_949=y
CONFIG_NLS_CODEPAGE_874=y
CONFIG_NLS_ISO8859_8=y
CONFIG_NLS_CODEPAGE_1250=y
CONFIG_NLS_CODEPAGE_1251=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_2=y
CONFIG_NLS_ISO8859_3=y
CONFIG_NLS_ISO8859_4=y
CONFIG_NLS_ISO8859_5=y
CONFIG_NLS_ISO8859_6=y
CONFIG_NLS_ISO8859_7=y
CONFIG_NLS_ISO8859_9=y
CONFIG_NLS_ISO8859_13=y
CONFIG_NLS_ISO8859_14=y
CONFIG_NLS_ISO8859_15=y
CONFIG_NLS_KOI8_R=y
CONFIG_NLS_KOI8_U=y
CONFIG_NLS_UTF8=y

#
# Console drivers
#
CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
# CONFIG_MDA_CONSOLE is not set

#
# Frame-buffer support
#
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
# CONFIG_FB_RIVA is not set
# CONFIG_FB_CLGEN is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_HGA is not set
CONFIG_VIDEO_SELECT=y
CONFIG_FB_MATROX=y
# CONFIG_FB_MATROX_MILLENIUM is not set
# CONFIG_FB_MATROX_MYSTIQUE is not set
CONFIG_FB_MATROX_G450=y
CONFIG_FB_MATROX_G100=y
CONFIG_FB_MATROX_I2C=y
CONFIG_FB_MATROX_MAVEN=y
CONFIG_FB_MATROX_PROC=y
# CONFIG_FB_MATROX_MULTIHEAD is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_VIRTUAL is not set
CONFIG_FBCON_ADVANCED=y
# CONFIG_FBCON_MFB is not set
# CONFIG_FBCON_CFB2 is not set
# CONFIG_FBCON_CFB4 is not set
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB24=y
CONFIG_FBCON_CFB32=y
# CONFIG_FBCON_AFB is not set
# CONFIG_FBCON_ILBM is not set
# CONFIG_FBCON_IPLAN2P2 is not set
# CONFIG_FBCON_IPLAN2P4 is not set
# CONFIG_FBCON_IPLAN2P8 is not set
# CONFIG_FBCON_MAC is not set
CONFIG_FBCON_VGA_PLANES=y
CONFIG_FBCON_VGA=y
# CONFIG_FBCON_HGA is not set
# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
CONFIG_FBCON_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_SUN8x16 is not set
CONFIG_FONT_SUN12x22=y
CONFIG_FONT_6x11=y
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set

#
# Sound
#
CONFIG_SOUND=y
# CONFIG_SOUND_ALI5455 is not set
# CONFIG_SOUND_BT878 is not set
# CONFIG_SOUND_CMPCI is not set
# CONFIG_SOUND_EMU10K1 is not set
# CONFIG_MIDI_EMU10K1 is not set
# CONFIG_SOUND_FUSION is not set
# CONFIG_SOUND_CS4281 is not set
# CONFIG_SOUND_ES1370 is not set
# CONFIG_SOUND_ES1371 is not set
# CONFIG_SOUND_ESSSOLO1 is not set
# CONFIG_SOUND_MAESTRO is not set
# CONFIG_SOUND_MAESTRO3 is not set
# CONFIG_SOUND_FORTE is not set
CONFIG_SOUND_ICH=y
# CONFIG_SOUND_RME96XX is not set
# CONFIG_SOUND_SONICVIBES is not set
# CONFIG_SOUND_TRIDENT is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
# CONFIG_SOUND_VIA82CXXX is not set
# CONFIG_MIDI_VIA82CXXX is not set
# CONFIG_SOUND_OSS is not set
# CONFIG_SOUND_TVMIXER is not set
# CONFIG_SOUND_AD1980 is not set
# CONFIG_SOUND_WM97XX is not set

#
# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
CONFIG_USB_BANDWIDTH=y

#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_UHCI_ALT=y
# CONFIG_USB_OHCI is not set
# CONFIG_USB_SL811HS_ALT is not set
# CONFIG_USB_SL811HS is not set

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_BLUETOOTH is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_ACM=y
CONFIG_USB_PRINTER=y

#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set

#
# USB Imaging devices
#
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
CONFIG_USB_SCANNER=y
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set

#
# USB Multimedia devices
#

#
#   Video4Linux support is needed for USB Multimedia device support
#

#
# USB Network adaptors
#
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_CATC is not set
# CONFIG_USB_AX8817X is not set
# CONFIG_USB_CDCETHER is not set
CONFIG_USB_USBNET=m

#
# USB port drivers
#
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
CONFIG_USB_SERIAL=m
# CONFIG_USB_SERIAL_DEBUG is not set
CONFIG_USB_SERIAL_GENERIC=y
# CONFIG_USB_SERIAL_BELKIN is not set
# CONFIG_USB_SERIAL_WHITEHEAT is not set
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
# CONFIG_USB_SERIAL_EMPEG is not set
# CONFIG_USB_SERIAL_FTDI_SIO is not set
# CONFIG_USB_SERIAL_VISOR is not set
CONFIG_USB_SERIAL_IPAQ=m
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
# CONFIG_USB_SERIAL_KEYSPAN is not set
# CONFIG_USB_SERIAL_MCT_U232 is not set
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not set
# CONFIG_USB_SERIAL_PL2303 is not set
# CONFIG_USB_SERIAL_CYBERJACK is not set
# CONFIG_USB_SERIAL_XIRCOM is not set
# CONFIG_USB_SERIAL_OMNINET is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_TIGL is not set
# CONFIG_USB_BRLVGER is not set
# CONFIG_USB_LCD is not set

#
# Support for USB gadgets
#
# CONFIG_USB_GADGET is not set

#
# Bluetooth support
#
# CONFIG_BLUEZ is not set

#
# Kernel hacking
#
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_HIGHMEM=y
CONFIG_DEBUG_SLAB=y
CONFIG_DEBUG_IOVIRT=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_FRAME_POINTER=y
CONFIG_LOG_BUF_SHIFT=16

#
# Cryptographic options
#
CONFIG_CRYPTO=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_MD4=y
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
CONFIG_CRYPTO_DES=y
CONFIG_CRYPTO_BLOWFISH=y
CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_SERPENT=y
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_CAST5=y
CONFIG_CRYPTO_DEFLATE=y
# CONFIG_CRYPTO_TEST is not set

#
# Library routines
#
# CONFIG_CRC32 is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
# CONFIG_FW_LOADER is not set

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-08 16:34       ` Anton Altaparmakov
@ 2003-12-09  4:23         ` Matt Domsch
  2003-12-09 16:29           ` Anton Altaparmakov
  0 siblings, 1 reply; 16+ messages in thread
From: Matt Domsch @ 2003-12-09  4:23 UTC (permalink / raw)
  To: Anton Altaparmakov; +Cc: Marcelo Tosatti, LKML

> With latest 2.4-BK which includes your compile fix, compiling the kernel
> with the attached .config, installing and attempting to boot the kernel
> causes immediate reboot on my workstation.
> 
> Disabling EDD in the .config, recompiling and installing the kernel
> makes it boot just fine.
> 
> Let me know if you want me to test any patches, need any more
> information, etc...

Ok, I'm betting that your BIOS doesn't like the int13 call in setup.S for some
reason.

#if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
# Read the first sector of device 80h and store the 4-byte signature
        movl    $0xFFFFFFFF, %eax
        movl    %eax, (DISK80_SIG_BUFFER)       # assume failure
        movb    $READ_SECTORS, %ah
        movb    $1, %al                         # read 1 sector
        movb    $0x80, %dl                      # from device 80
        movb    $0, %dh                         # at head 0
        movw    $1, %cx                         # cylinder 0, sector 0
        pushw   %es
        pushw   %ds
        popw    %es
        movw    $EDDBUF, %bx
        int     $0x13
        jc      disk_sig_done
        movl    (EDDBUF+MBR_SIG_OFFSET), %eax
        movl    %eax, (DISK80_SIG_BUFFER)       # store success
disk_sig_done:
        popw    %es


To test this, would you mind #if 0'ing everything starting with
movb $READ_SECTORS, %ah   through the popw %es at the end?  That
should leave you with a file in /proc/bios/int13_dev80/mbr_signature
that says 0xFFFFFFFF, but a booting system.

I'm wondering if %eax shouldn't be zeroed before the int13.  The
bottom word gets set properly, but the top word is 0xFFFF which your
BIOS may not like?  That would be another test, add an

 xor %eax, %eax

before the movb $READ_SECTORS, %ah.


My BIOSs I've seen this on work, so it could be BIOS-dependent;
clearing eax before setting the lower bytes would be OK if that fixes
it.

I'm travelling Monday and Tuesday, but will respond ASAP.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-09  4:23         ` Matt Domsch
@ 2003-12-09 16:29           ` Anton Altaparmakov
  2003-12-10 20:48             ` Matt Domsch
  0 siblings, 1 reply; 16+ messages in thread
From: Anton Altaparmakov @ 2003-12-09 16:29 UTC (permalink / raw)
  To: Matt Domsch; +Cc: Marcelo Tosatti, LKML

On Tue, 2003-12-09 at 04:23, Matt Domsch wrote:
> > With latest 2.4-BK which includes your compile fix, compiling the kernel
> > with the attached .config, installing and attempting to boot the kernel
> > causes immediate reboot on my workstation.
> > 
> > Disabling EDD in the .config, recompiling and installing the kernel
> > makes it boot just fine.
> > 
> > Let me know if you want me to test any patches, need any more
> > information, etc...
> 
> Ok, I'm betting that your BIOS doesn't like the int13 call in setup.S for some
> reason.
> 
> #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
> # Read the first sector of device 80h and store the 4-byte signature
>         movl    $0xFFFFFFFF, %eax
>         movl    %eax, (DISK80_SIG_BUFFER)       # assume failure
>         movb    $READ_SECTORS, %ah
>         movb    $1, %al                         # read 1 sector
>         movb    $0x80, %dl                      # from device 80
>         movb    $0, %dh                         # at head 0
>         movw    $1, %cx                         # cylinder 0, sector 0
>         pushw   %es
>         pushw   %ds
>         popw    %es
>         movw    $EDDBUF, %bx
>         int     $0x13
>         jc      disk_sig_done
>         movl    (EDDBUF+MBR_SIG_OFFSET), %eax
>         movl    %eax, (DISK80_SIG_BUFFER)       # store success
> disk_sig_done:
>         popw    %es
> 
> 
> To test this, would you mind #if 0'ing everything starting with
> movb $READ_SECTORS, %ah   through the popw %es at the end?  That
> should leave you with a file in /proc/bios/int13_dev80/mbr_signature
> that says 0xFFFFFFFF, but a booting system.

No, still reboots.

> I'm wondering if %eax shouldn't be zeroed before the int13.  The
> bottom word gets set properly, but the top word is 0xFFFF which your
> BIOS may not like?  That would be another test, add an
> 
>  xor %eax, %eax
> 
> before the movb $READ_SECTORS, %ah.

No, still reboots.

> My BIOSs I've seen this on work, so it could be BIOS-dependent;
> clearing eax before setting the lower bytes would be OK if that fixes
> it.

No.  The higher 16 bits are irrelevant.  I played with this today by
inserting debugging into the EDD archi/i386/boot/setup.S code as well as
into the EDD arch/i386/kernel/setup.c code.  I will give you details
below but here is what I believe is the conclusion:

The ds segment is not pointing to the correct segment AND/OR the offsets
into the segment used for the writes are bogus.  You write straight into
ds and ds:si referenced memory but you never setup ds in the first
place.  So the writes done by the EDD code corrupt the loaded compressed
kernel and the decompression fails.

I may be wrong of course.  (-:

Now the experiments I did:

1) 

Disable the entirety of the memory writes done by EDD code in setup.S
with destination ds:si as well as the initial ds:DISK80_SIG_BUFFER.
Basically I just did #if 0 #endif arround the whole EDD code!

To match this, edit setup.c::copy_edd() and add these lines at the end:

	eddnr = 0;
	edd_disk80_sig = -1;

This makes my kernel boot just fine and EDD tells me that no devices are
present.

Thus it is likely that the setup.S EDD code is what kills us.

2)

Leaving the setup as in experiment 1) with only one modification; in
setup.S move the top two EDD lines above the #if 0, i.e.:

	movl    $0xFFFFFFFF, %eax
	movl    %eax, (DISK80_SIG_BUFFER)       # assume failure

Booting this kernel now causes an immediate reboot!

3)

I added a readkey (ah = 0, int 0x16) at the end of the EDD code in
setup.S so that I need to press a key to continue.  This allowed me to
tell when the computer is rebooting.  This also allows the graphics card
to have changed graphics mode and I can see messages on screen before
the reboot happens.

Repeating experiment 2 with my readkey code added, the kernel waits for
my key press (after having done the write to (DISK80_SIG_BUFFER), then
displays "Decompressing kernel..." and then reboots, i.e. it never
completes kernel decompression.

This is what leads me to believe that the kernel image has been
corrupted by the above memory write.

-- end of experiments --

I haven't really spent time thinking about ds and offsets and what they
should be set to but I hope I have given you enough information to fix
this yourself.  (-:

Please also note that you may want to consider adding this around your
first int 0x13 call (the one to read the MBR):

movb	$READ_SECTORS, %ah
[snip]
pushw	%dx		# work around buggy BIOSes
stc			# work around buggy BIOSes
int	$0x13
sti			# work around buggy BIOSes
popw	%dx

This is what Microsoft uses apparently to work around various buggy BIOS
implementations - ref: Ralf Brown's Interrupt list 61, which I consider
the ultimate and definite guide to interrupts. (-:

Further, at the Getdeviceparameters int 0x13 call, you may want to zero
the two bytes following the EDDPARMSIZE in %ds:(%si) before doing the
interrupt as your own company's PhoneixBIOS 4.0 Release 6.0 machines
didn't work unless this was the case (ref: Ralf Brown's Interrupt list
61).

Finally, would it not be prudent to check the result of
checkextensionspresent int 0x13 call before doing the
getdeviceparameters int 0x13 call?  For example this would do just that:

[snip]
movw	%cx, %ds:-2(%si)		# store extensions
[snip]                                                                                        testw	$7, %cx				# Is Function 48 supported?
jz	edd_skip_getdevparms		# If not, skip the call...

movb	$GETDEVICEPARAMETERS, %ah	# Function 48
int	$0x13				# make the call
					# Don't check for fail return
					# it doesn't matter.
edd_skip_getdevparms:

Just a few thoughts.

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ &
http://www-stu.christs.cam.ac.uk/~aia21/


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-09 16:29           ` Anton Altaparmakov
@ 2003-12-10 20:48             ` Matt Domsch
  2003-12-15 19:52               ` Anton Altaparmakov
  0 siblings, 1 reply; 16+ messages in thread
From: Matt Domsch @ 2003-12-10 20:48 UTC (permalink / raw)
  To: Anton Altaparmakov; +Cc: Marcelo Tosatti, LKML

> The ds segment is not pointing to the correct segment AND/OR the offsets
> into the segment used for the writes are bogus.  You write straight into
> ds and ds:si referenced memory but you never setup ds in the first
> place.  So the writes done by the EDD code corrupt the loaded compressed
> kernel and the decompression fails.

ds is set up already to point at the empty_zero_page, else none of
what I'm doing is correct.  But, it is very likely that something else
is using 0x228 in empty_zero_page but isn't marked as using it in
Documentation/i386/zero-page.txt.

You've been patient, and thorough.  As another test, could you change
include/asm-i386/edd.h: DISK80_SIG_BUFFER from 0x228 to 0x2cc (the
four bytes immediately before the e820 memory buffer), and see if that
helps?  If so, I'll submit a patch to use that instead, and another
that markes 0x228 as in use by something else.

> I haven't really spent time thinking about ds and offsets and what they
> should be set to but I hope I have given you enough information to fix
> this yourself.  (-:

I'm quite certain that ds is correct, but that 0x228 may be in use by
something else.
 
> Please also note that you may want to consider adding this around your
> first int 0x13 call (the one to read the MBR):
> 
> movb	$READ_SECTORS, %ah
> [snip]
> pushw	%dx		# work around buggy BIOSes
> stc			# work around buggy BIOSes
> int	$0x13
> sti			# work around buggy BIOSes
> popw	%dx
> 
> This is what Microsoft uses apparently to work around various buggy BIOS
> implementations - ref: Ralf Brown's Interrupt list 61, which I consider
> the ultimate and definite guide to interrupts. (-:

OK, I'll look into that too.
 
> Further, at the Getdeviceparameters int 0x13 call, you may want to zero
> the two bytes following the EDDPARMSIZE in %ds:(%si) before doing the
> interrupt as your own company's PhoneixBIOS 4.0 Release 6.0 machines
> didn't work unless this was the case (ref: Ralf Brown's Interrupt list
> 61).

Ahh, yes.  I read that now.  OK, no harm in doing so, I'll add that.
 
> Finally, would it not be prudent to check the result of
> checkextensionspresent int 0x13 call before doing the
> getdeviceparameters int 0x13 call?  For example this would do just that:
> 
> [snip]
> movw	%cx, %ds:-2(%si)		# store extensions
> [snip]                                                                                        testw	$7, %cx				# Is Function 48 supported?
> jz	edd_skip_getdevparms		# If not, skip the call...
> 
> movb	$GETDEVICEPARAMETERS, %ah	# Function 48
> int	$0x13				# make the call
> 					# Don't check for fail return
> 					# it doesn't matter.
> edd_skip_getdevparms:

So, I thought about this for a while when I first wrote the code.  I
haven't run across *any* BIOSses yet which didn't implement function
48 for at least some version of EDD; it may not be version 0x30, but we've got
space reserved for it up to the size 0x30 could return, so it doesn't
matter.  If it returns anything in function 41, then it will return
something in function 48 too.  I could be wrong I suppose, but none of
the BIOS reports I've seen suggest otherwise.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-10 20:48             ` Matt Domsch
@ 2003-12-15 19:52               ` Anton Altaparmakov
  0 siblings, 0 replies; 16+ messages in thread
From: Anton Altaparmakov @ 2003-12-15 19:52 UTC (permalink / raw)
  To: Matt Domsch; +Cc: Marcelo Tosatti, LKML

On Wed, 10 Dec 2003, Matt Domsch wrote:

> > The ds segment is not pointing to the correct segment AND/OR the offsets
> > into the segment used for the writes are bogus.  You write straight into
> > ds and ds:si referenced memory but you never setup ds in the first
> > place.  So the writes done by the EDD code corrupt the loaded compressed
> > kernel and the decompression fails.
>
> ds is set up already to point at the empty_zero_page, else none of
> what I'm doing is correct.  But, it is very likely that something else
> is using 0x228 in empty_zero_page but isn't marked as using it in
> Documentation/i386/zero-page.txt.
>
> You've been patient, and thorough.  As another test, could you change
> include/asm-i386/edd.h: DISK80_SIG_BUFFER from 0x228 to 0x2cc (the
> four bytes immediately before the e820 memory buffer), and see if that
> helps?  If so, I'll submit a patch to use that instead, and another
> that markes 0x228 as in use by something else.

Hi Matt,

sorry for the delay but I am now on holidays until January because of my
impending wedding and I won't be back at work, where the affected PC lives
until 5th or 6th January (whichever is the Monday).  I will try it then,
sorry to have to keep you waiting so long.

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-05 17:36     ` Matt Domsch
  2003-12-05 18:53       ` Matt Domsch
  2003-12-08 16:34       ` Anton Altaparmakov
@ 2003-12-18 11:32       ` Meelis Roos
  2003-12-18 14:02         ` Matt Domsch
  2 siblings, 1 reply; 16+ messages in thread
From: Meelis Roos @ 2003-12-18 11:32 UTC (permalink / raw)
  To: Matt Domsch; +Cc: Marcelo Tosatti, Anton Altaparmakov, linux-kernel

> > > However, changing DISKSIG_BUFFER to DISK80_SIG_BUFFER causes the kernel to
> > > reboot the computer as soon as it starts booting.  Basically I select it
> > > in grub and the screen changes graphics mode and by the time it has
> > > finished the switch the computer reboots.

Same here - instant reboot when EDD is enabled. Do you need my config
also? The mainboard is Intel D815EEA2 with latest BIOS
(EA81520A.86A.0039.P21.0211061753).

-- 
Meelis Roos (mroos@linux.ee)


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-18 11:32       ` Meelis Roos
@ 2003-12-18 14:02         ` Matt Domsch
  2003-12-19 11:05           ` Meelis Roos
  0 siblings, 1 reply; 16+ messages in thread
From: Matt Domsch @ 2003-12-18 14:02 UTC (permalink / raw)
  To: Meelis Roos; +Cc: Marcelo Tosatti, Anton Altaparmakov, linux-kernel

> Same here - instant reboot when EDD is enabled. Do you need my config
> also? The mainboard is Intel D815EEA2 with latest BIOS
> (EA81520A.86A.0039.P21.0211061753).

Ok, 2 reports now.  With Anton off getting married, can you assist
with debugging this (I've tried, and can't reproduce it on any systems
available to me) ?

In include/asm-i386/edd.h, change:
#define DISK80_SIG_BUFFER 0x228

to

#define DISK80_SIG_BUFFER 0x2cc

and see if that helps.  What I'm thinking right now is that 0x228 is
being used by a boot loader somehow (what's your boot loader?) though I can't
yet prove it, and it isn't listed in
Documentation/i386/zero-page.txt.  But Anton showed that the int13
calls the EDD code makes (or even if you remove those) succeeds, but
by writing something into 0x228 the kernel uncompress fails.  I'm
hoping that by moving the buffer to 0x2cc (immediately before the e820
memory map reserved space) that it will succeed.

Thanks,
Matt


-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-18 14:02         ` Matt Domsch
@ 2003-12-19 11:05           ` Meelis Roos
  2003-12-19 14:49             ` Matt Domsch
  0 siblings, 1 reply; 16+ messages in thread
From: Meelis Roos @ 2003-12-19 11:05 UTC (permalink / raw)
  To: Matt Domsch; +Cc: Marcelo Tosatti, Anton Altaparmakov, linux-kernel

> In include/asm-i386/edd.h, change:
> #define DISK80_SIG_BUFFER 0x228
>
> to
>
> #define DISK80_SIG_BUFFER 0x2cc

Yes, this works fine for me with current 2.4.

-- 
Meelis Roos (mroos@linux.ee)


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 2.4.23-bk bogus edd changeset - Re: 2.4.23 compile error in edd
  2003-12-19 11:05           ` Meelis Roos
@ 2003-12-19 14:49             ` Matt Domsch
  0 siblings, 0 replies; 16+ messages in thread
From: Matt Domsch @ 2003-12-19 14:49 UTC (permalink / raw)
  To: Marcelo Tosatti, Meelis Roos; +Cc: Anton Altaparmakov, linux-kernel

> Yes, this works fine for me with current 2.4.

Thanks much.

Marcelo, please do a

	bk pull http://mdomsch.bkbits.net/linux-2.4-edd

This will update the following files:

 Documentation/i386/zero-page.txt |    8 +++++---
 include/asm-i386/edd.h           |    2 +-
 2 files changed, 6 insertions, 4 deletions

through these ChangeSets:

<Matt_Domsch@dell.com> (03/12/19 1.1207)
   zero-page.txt: note 0x228 as in use by unknown

<Matt_Domsch@dell.com> (03/12/10 1.1206)
   EDD: move DISK80_SIG_BUFFER to 0x2cc in empty_zero_page
   
   Apparently 0x228 is used by something else; leastwise that
   address causes some systems to fail to decompress the kernel.

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

You can import this changeset into BK by piping this whole message to
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


ChangeSet@1.1206, 2003-12-10 11:44:50-06:00, Matt_Domsch@dell.com
  EDD: move DISK80_SIG_BUFFER to 0x2cc in empty_zero_page
  
  Apparently 0x228 is used by something else; leastwise that
  address causes some systems to fail to decompress the kernel.


 Documentation/i386/zero-page.txt |    2 +-
 include/asm-i386/edd.h           |    2 +-
 2 files changed, 2 insertions, 2 deletions


diff -Nru a/Documentation/i386/zero-page.txt b/Documentation/i386/zero-page.txt
--- a/Documentation/i386/zero-page.txt	Fri Dec 19 08:46:46 2003
+++ b/Documentation/i386/zero-page.txt	Fri Dec 19 08:46:46 2003
@@ -66,7 +66,7 @@
 0x21c	unsigned long	INITRD_SIZE, size in bytes of ramdisk image
 0x220	4 bytes		(setup.S)
 0x224	unsigned short	setup.S heap end pointer
-0x228	4 bytes		DISK80_SIG_BUFFER (setup.S)
+0x2cc	4 bytes		DISK80_SIG_BUFFER (setup.S)
 0x2d0 - 0x600		E820MAP
 0x600 - 0x800		EDDBUF (setup.S) for disk signature read sector
 0x600 - 0x7d4		EDDBUF (setup.S)
diff -Nru a/include/asm-i386/edd.h b/include/asm-i386/edd.h
--- a/include/asm-i386/edd.h	Fri Dec 19 08:46:46 2003
+++ b/include/asm-i386/edd.h	Fri Dec 19 08:46:46 2003
@@ -43,7 +43,7 @@
 
 #define READ_SECTORS 0x02
 #define MBR_SIG_OFFSET 0x1B8
-#define DISK80_SIG_BUFFER 0x228
+#define DISK80_SIG_BUFFER 0x2cc
 
 #ifndef __ASSEMBLY__
 

===================================================================


This BitKeeper patch contains the following changesets:
1.1206
## Wrapped with gzip_uu ##


M'XL( %8/XS\  ]V5VVZ;0!"&K[U/,5)N6E7 GL#@RE4.3M,HK1HYRE5566L8
M!QH.%KLD<<7#=Z%MDB9NG$:I5!70(E:SP[_S?P-;<*JQ'@T^*&-FDZK0<4JV
MX%VES6B08)Z[<578B6E5V0DOK0KTBJ0/\^;G'B:)EV=E<^5P5SKVB=C88V7B
M%"ZPUJ,!<\7UC%DM<328[A^<OM^9$C(>PUZJRC,\00/C,3%5?:'R1&\KD^95
MZ9I:E;I HSH)[75HRRGE]O394% _:%E Y;"-6<*8D@P3RF482/*E2DMMFGR[
MT6XV+^[G$(S3@(7"E[R5D1223("YW210X3'N,0J,C:0<^=2AP8A2N%6C[9^U
M@5<<'$IVX7GE[Y$8]B>3$135!<+D\.0HI+.3PX/9[NG;M_M3^S:@5SR.(2L!
MBZ59S;YB7<V6Z@SM2GOM+)>JQM+DJRZ0AY!I:#0F,%^!MBZ:-"O/ '.-KR%'
MI<UEIA%,JHQ=K)*D1JTA5G:)[N-!K[3!0G=O7J@L[^X)VJTM^TB3(IQC76+N
MDB.00S_DY/C&7^+\X4$(592\65OR3S\ _-QF99PW"7I*%TXFPJ#CT4U[=VG$
M!8M\;MUE-**L'08R0,X6*E%,LF2Q-O5#&1EGE VE%):74(K JGO8\TD5-X6U
M0)FL*KT^6V>2TYGDFJO;*$@JAJTOA6!M.*<1AO-(\"1FEH7U.A^3^Q?%$9>R
M[[GU.^P:\._5^NFI[08H$S[ED2VZD-^;5-SM4,$?[% &#ONG.M1V2$_01W#J
MR_ZRQ!__QIHG],Y$!L#(83]N);C(RG4*>WD]$YMHVOQY?A[6-W#R..AO$1,Q
MG_?$R/^ F+Z#[Q"SJ2)/82>(.G;ZL9<SD/:?85 /!O<EO]!HFJ5[\O+FOQ^G
6&)_KIAB'B_DBD)$@WP#1-7?38P@     
 
You can import this changeset into BK by piping this whole message to
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


ChangeSet@1.1207, 2003-12-19 08:44:45-06:00, Matt_Domsch@dell.com
  zero-page.txt: note 0x228 as in use by unknown


 zero-page.txt |    6 ++++--
 1 files changed, 4 insertions, 2 deletions


diff -Nru a/Documentation/i386/zero-page.txt b/Documentation/i386/zero-page.txt
--- a/Documentation/i386/zero-page.txt	Fri Dec 19 08:47:02 2003
+++ b/Documentation/i386/zero-page.txt	Fri Dec 19 08:47:02 2003
@@ -66,10 +66,12 @@
 0x21c	unsigned long	INITRD_SIZE, size in bytes of ramdisk image
 0x220	4 bytes		(setup.S)
 0x224	unsigned short	setup.S heap end pointer
+0x228	4 bytes		unknown, but writing this in setup.S makes
+			kernel fail to decompress on some systems
 0x2cc	4 bytes		DISK80_SIG_BUFFER (setup.S)
 0x2d0 - 0x600		E820MAP
-0x600 - 0x800		EDDBUF (setup.S) for disk signature read sector
-0x600 - 0x7d4		EDDBUF (setup.S)
+0x600 - 0x7ff		EDDBUF (setup.S) for disk signature read sector
+0x600 - 0x7de		EDDBUF (setup.S)
 
 0x800	string, 2K max	COMMAND_LINE, the kernel commandline as
 			copied using CL_OFFSET.

===================================================================


This BitKeeper patch contains the following changesets:
1.1207
## Wrapped with gzip_uu ##


M'XL( &8/XS\  \U4RV[4,!1=QU]QI6Y D,1VG*<TJ+132@6(JE77R)/<F423
MV*/8Z0/EXW%#:3NB8@KJ L>;7-W'.><>>0\N#/:%]T5:^VVN.U/69 \^:F,+
MK\*V#4K=N<"9UBX0UKK#L*NFM'"Q#K&JPK91P[7/ ^&[/^)R3Z4M:[C$WA0>
M"Z+[B+W98.&='1U??'Y_1LAL!H>U5"L\1PNS&;&ZOY1M9?:EK5NM MM+93JT
M\A;">)\Z<DJY^V*61C1.1I90D8XEJQB3@F%%N<@201[QV?_%8[M)Q#BC+!4B
MIJ-(XXR3.;" <9H"C4+&0Y8#S0HA"A'[-"DHA:>:PAL&/B4'\++X#TD)W['7
M_D:N,+#7M@"E+0*]YCP#::!1,!B$Q0T,:JWTE2*?P-'(*3E]T)7X?WD(H9*2
M=SO(S'4Y=*BLM(U681-E2;B%]1%'0:-TC$44L3%;T!RS11[QJF2.Y)-R/JOW
M[>IR)@3GT1AG@F>3FW95[C;9R_!ZVGO/Y359,N*CR+D0DR7C;3_R@D=_]*, 
MG_\??ORYFZ_@]U?3=?XZW;FF?_#L29(!)Q,43S@(%HWGW<%X"XO!PE7?V$:M
MP-;-!-6@'3;!.71RC89XGK?&7F$+2]FT3CFHT(FTZ=$8T"[;/7M@;HS%SI!Y
MRMRPDY1/(Q.W!M^ID"Z7GG<TGQ]<?(!7=]U?PU+W4#5F#:99*6F''J%'6;GQ
BI5O/X_(*?R]_>$S+&LNU&;I9E49IGB5(?@"U)U#ZN 4     
 


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-12-19 14:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04 14:20 2.4.23 compile error in edd Meelis Roos
2003-12-04 14:58 ` Meelis Roos
2003-12-04 22:31 ` 2.4.23-bk bogus edd changeset - " Anton Altaparmakov
2003-12-05 15:52   ` Marcelo Tosatti
2003-12-05 17:36     ` Matt Domsch
2003-12-05 18:53       ` Matt Domsch
2003-12-05 19:07         ` Matt Domsch
2003-12-08 16:34       ` Anton Altaparmakov
2003-12-09  4:23         ` Matt Domsch
2003-12-09 16:29           ` Anton Altaparmakov
2003-12-10 20:48             ` Matt Domsch
2003-12-15 19:52               ` Anton Altaparmakov
2003-12-18 11:32       ` Meelis Roos
2003-12-18 14:02         ` Matt Domsch
2003-12-19 11:05           ` Meelis Roos
2003-12-19 14:49             ` Matt Domsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).