2000-11-02 07:03:41

by Hans-Joachim Baader

[permalink] [raw]
Subject: test10 won't boot

Hi,

test10, compiled with gcc 2.95.2, won't boot on one of my machine.
It stops after the "now booting the kernel" message. Yes, I have
configured Virtual Terminal and VGA text console.

The configuration also contains Reiserfs (as a module) but that
shouldn't make a difference.

The system is a AMD K6-2/400 on an ASUS P5A-B board. lspci output:

00:00.0 Host bridge: Acer Laboratories Inc. [ALi] M1541 (rev 04)
00:01.0 PCI bridge: Acer Laboratories Inc. [ALi] M5243 (rev 04)
00:03.0 Bridge: Acer Laboratories Inc. [ALi] M7101 PMU
00:07.0 ISA bridge: Acer Laboratories Inc. [ALi] M1533 PCI to ISA Bridge [Aladdin IV] (rev c3)
00:0a.0 Ethernet controller: VIA Technologies, Inc. VT86C100A [Rhine 10/100] (rev 06)
00:0f.0 IDE interface: Acer Laboratories Inc. [ALi] M5229 IDE (rev c1)
01:00.0 VGA compatible controller: nVidia Corporation Riva TnT 128 [NV04] (rev 04)

configuration:

CONFIG_X86=y
CONFIG_ISA=y
CONFIG_UID16=y
CONFIG_EXPERIMENTAL=y
CONFIG_MODULES=y
CONFIG_KMOD=y
CONFIG_M686=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_MSR=m
CONFIG_X86_CPUID=m
CONFIG_NOHIGHMEM=y
CONFIG_MTRR=y
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
CONFIG_HOTPLUG=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_AOUT=m
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_PM=y
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_FIFO=y
CONFIG_PARPORT_1284=y
CONFIG_BLK_DEV_FD=m
CONFIG_BLK_DEV_LOOP=m
CONFIG_PACKET=m
CONFIG_PACKET_MMAP=y
CONFIG_NETFILTER=y
CONFIG_FILTER=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IPX=m
CONFIG_IPX_INTERN=y
CONFIG_ATALK=m
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=m
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI=m
CONFIG_BLK_DEV_SD=m
CONFIG_SD_EXTRA_DEVS=40
CONFIG_CHR_DEV_ST=m
CONFIG_BLK_DEV_SR=m
CONFIG_SR_EXTRA_DEVS=2
CONFIG_CHR_DEV_SG=m
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_PPA=m
CONFIG_SCSI_NCR53C8XX=m
CONFIG_SCSI_SYM53C8XX=m
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=4
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=20
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_ISA=y
CONFIG_NE2000=m
CONFIG_NET_PCI=y
CONFIG_EEPRO100=y
CONFIG_PPP=m
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPPOE=m
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_PRINTER=m
CONFIG_NVRAM=m
CONFIG_RTC=y
CONFIG_QUOTA=y
CONFIG_AUTOFS4_FS=y
CONFIG_REISERFS_FS=m
CONFIG_HFS_FS=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_MINIX_FS=m
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_MSDOS_PARTITION=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_CODEPAGE_850=m
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_UTF8=m
CONFIG_VGA_CONSOLE=y
CONFIG_MAGIC_SYSRQ=y


Regards,
hjb
--
http://www.pro-linux.de/ - Germany's largest volunteer Linux support site


2000-11-02 07:08:52

by Jeff Garzik

[permalink] [raw]
Subject: Re: test10 won't boot

Index: drivers/ide/ide-pci.c
===================================================================
RCS file: /cvsroot/gkernel/linux_2_4/drivers/ide/ide-pci.c,v
retrieving revision 1.1.1.6
retrieving revision 1.1.1.6.6.1
diff -u -r1.1.1.6 -r1.1.1.6.6.1
--- drivers/ide/ide-pci.c 2000/10/27 07:45:53 1.1.1.6
+++ drivers/ide/ide-pci.c 2000/10/31 22:43:32 1.1.1.6.6.1
@@ -528,10 +528,7 @@
autodma = 1;
#endif

-#if 1 /* what do do with this useful tool ??? */
- if (pci_enable_device(dev))
- return;
-#endif
+ pci_enable_device(dev);

check_if_enabled:
if (pci_read_config_word(dev, PCI_COMMAND, &pcicmd)) {


Attachments:
ide.patch (611.00 B)

2000-11-02 07:55:35

by Hans-Joachim Baader

[permalink] [raw]
Subject: Re: test10 won't boot

Jeff Garzik wrote:

> Hans-Joachim Baader wrote:
> > test10, compiled with gcc 2.95.2, won't boot on one of my machine.
> > It stops after the "now booting the kernel" message. Yes, I have
> > configured Virtual Terminal and VGA text console.
>
> Does it boot with the attached patch?

Nope, it doesn't. Same observation.

BTW this was the first 2.4 kernel that I tried on this machine.
So I cannot say since when it's broken. 2.2.x works fine.

Regards,
hjb
--
http://www.pro-linux.de/ - Germany's largest volunteer Linux support site

2000-11-02 08:17:36

by Craig Schlenter

[permalink] [raw]
Subject: Re: test10 won't boot

On Thu, Nov 02, 2000 at 08:54:00AM +0100, Hans-Joachim Baader wrote:
> Jeff Garzik wrote:
>
> > Hans-Joachim Baader wrote:
> > > test10, compiled with gcc 2.95.2, won't boot on one of my machine.
> > > It stops after the "now booting the kernel" message. Yes, I have
> > > configured Virtual Terminal and VGA text console.
> >
> > Does it boot with the attached patch?
>
> Nope, it doesn't. Same observation.
>
> BTW this was the first 2.4 kernel that I tried on this machine.
> So I cannot say since when it's broken. 2.2.x works fine.

The test10pre series is where my machine (also with ALI chipset) was broken
but Linus fixed it by guessing how some of the pirq stuff worked on the 1533
chip so test10 final works for me. I'm guessing test9 will work for you
or that removing the pci_enable line in Jeff's patch completely might do
the job for you. Yes?

--Craig

2000-11-02 22:24:56

by Hans-Joachim Baader

[permalink] [raw]
Subject: Re: test10 won't boot

Arjan van de Ven wrote:

> [snip]
>
> > CONFIG_M686=y
>
> Ah ha!
>
> You have selected the Pentium II/III CPU type, which does NOT work on a K6.
> The compiler (and the kernel) will use the "new" Pentium II instructions
> (such as "cmov") which are not supported by the K6, leading to "illegal
> instruction" usage very early.

Ouch. This was it. I simply overlooked this option and used the one
that worked with 2.2...

But it would be nice if the kernel could detect the wrong CPU type
and print a message before it stops. Perhaps compile the init
section without CPU specific optimization?

Thanks for your help,
hjb
--
http://www.pro-linux.de/ - Germany's largest volunteer Linux support site