IDE Problem with old Gateway laptop (1998 solo 2300)
Quoted 4 lines · Vlad Codrea
Hi,
Have you tried compiling only libata in the kernel? Libata, being newer, might work on your laptop even if the old
drivers/idedoes not.
One of the kernels has that compiled in, along with drivers. It's a one-size-fits-all kernel, tested on many machines.
I really doubt if libata alone would do much for me, as the disk and bios doesn't really want to know about ata at all. We're 1998 here, remember. ATA has to be disabled for this to read the disk at all.
I did chase for an old 2.4.18 kernel from my last laptop, and that halts at the same place with a complaint about devices, (Can't open an initial console) so I'm tarring the 2.4 /dev directory (7.5MB) bzipping it (86k!!) and sending it over and I'll try that next. I'll probably go down in flames later in the boot, but we'll see...
Nearly identical IDE messages - all the lines about PIIX4 as before, then
hda: 6332256 sectors (3242MB) w/128Kib Cache, CHS=6282/16/63, DMA Partition check:
hda: [PIBL] [785/128/63] hda1 hda2 hda3 hda4 (That's right - there's
more of them now.)
Well, I got rid of the 'initial console' error. I still get to EXT3-fs mounted root (ext3 filesystem) readonly Freeing unused kernel memory: 220k freed__WE HALT HERE__
No initial console error (it evidently was opened) and then ???
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-boot-init-shutdown-process.html
end of section 1.2.3
Evidently some failure to launch init.
Signature · 1 line
Declan Moriarty <[email protected]>
Quoted 3 lines
I really doubt if libata alone would do much for me, as the disk and bios doesn't really want to know about ata at all. We're 1998 here, remember. ATA has to be disabled for this to read the disk at all.
1998 is well into the world of ATA (IDE is just a confusing othername)
Quoted 1 line
From your info there isn't enough to debug this.
Boot the kernel with initcall_debug=1
and it will spew a list of each initializer as it calls it, you can then see which is the last called and look it up in the symbol table
Quoted 5 lines · Alan Cox
Quoted 3 lines
I really doubt if libata alone would do much for me, as the disk and bios doesn't really want to know about ata at all. We're 1998 here, remember. ATA has to be disabled for this to read the disk at all.
1998 is well into the world of ATA (IDE is just a confusing othername)
Yeah I read it as 'faster ide' but the board/disk won't do it. The disk seems up to it, but something else is dodgy.
Quoted 7 lines
From your info there isn't enough to debug this.
Boot the kernel with initcall_debug=1
and it will spew a list of each initializer as it calls it, you can then see which is the last called and look it up in the symbol table
That's the sort of thing a luser like me needs to know! /busies himself compiling a _working_ 2.6.22.6 kernel without gigabytes of network stuff clogging buffers and with symbols in . . . split & load by floppy, Reassemble.
Much later:
These initcalls all came in, ran for a 0-5 milliseconds, and returned zero unless otherwise stated. There are more, but they're at the beginning of the kernel, when it's setting itself up. I can copy the lot if needed.
dma_bus_initpci_legacy_init (ran for 6 msec)
Probing PCI hardware PCI quirk; region 8000-803f claimed by PIIX4 ACPI PCI quirk: region 2180-218f claimed by PIIX4 SMB PIIX4 devres B PIO at 0398-0399 PIIX4 devres C PIO at 0372-0373 PIIX4 devres E PIO at 0370-0371 PIIX4 devres G PIO at 0388-038f pcibios_irq_init PCI: Discovered primary peer bus ff [IRQ] PCI: Using IRQ router PIIX/ICH [8086/7110] at 0000:00:01:0 PCI: Found IRQ 10 for device 0000:00:0a:0
pcibios_init
..procswaps_initinit_tmpfsslab_sysfsfasync_initaio_setupinotify_setupinotify_user_setupinit_mbcachednotify_initinit_devpts_fsinit_ext3_fsjournal_initinit_ext2_fsinit_ramfs_fsinit_minix_fsinit_fat_fsinit_msdos_fsinit_vfat_fsinit_nls_cp437init_nls_utf8ipc_initipc_sysctl_init
crypto+algapi_initcryptomgr_inithmac_module_initinit+0x0/0x10noop_initas_init
io scheduler <blah>deadline_init
io scheduler <blah>deadline_init
io scheduler <blah>cfq_init
io scheduler <blah>bloct_trace_initaudit_classes_initpci_init
Limiting direct PCI/PCI transferspci_proc_initfb_console_initvesafb_initrand_initializetty_init *** ran for 26 msec***pty_initrtc_init
RTC <blah>nvram_initserial8250_initserial9250_pci_initisa_bus_initfloppy_init
Floppy <blah>
***Ran for 15 msec***(asterisks mine)
loop_initnet_olddevs_initloopback_initvideodev_init
Linux video Capture <blah>rz1000_ide_initgeneric_ide_initide_init
Uniform Multi-Platform E-IDE driver Revision 7.00alpha2 ide assuming 33 Mhzide_generic_init
Hitatchi_DK226A-32 ATA disk drive ide0 at 0x1f0-0x1f7 on irq 14
*** ide_generic_init took 1446 msec to run***(asterisks mine)
idedisk_init
hda: max request size:128KiB
hda: 6332256 sectors (3242 MB) w/128 KiB Cache CHS=6282/16/63
hda: hda1 hda2 hda3 hda4
*** Ran for 18 msec*** (asterisks mine)
mon_initi8042_init
PNP: No PS/2 controller found, probing ports directly serio i8042 KBD port at <blah>
serio:i8042 AUX port at <blah>i8042_initserport_initmousedev_init
mouse PS/2 mouse <blah>atkbd_initpsmouse_inithid_init
<USB blurb>hid_initflow_cache_initxfrm_user_init
Initialising XFRM Netlink Socketaf_unix_init
NET: Registered protocol family 1packet_init
NET: Registered protocol family 17
***powernow_init*** Returned -19 (asterisks mine)
check_nmi_watchdogapic_bug_finalizeprint_ipi_mode
Using IPI Shortcut moderandom32_reseedpci_sysfs_initseqgen_initearly_uart_console_switchtcp_congestion_default
input: PS2++ Logitech Touchpad 3 as class/input/input0
input: AT keyboard as class/input/input1 kjournald Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) readonly Freeing unused kernel memory: 176k freed
Looking right back to the beginning, it ran a thing it called the Locking API Testsuite
The summary was "145 out of 218 testcases failed, as expected"
Quoted 15 lines · --- Declan Moriarty
Quoted 1 line · Alan Cox
1998 is well into the world of ATA (IDE is just a confusing
othername)
Yeah I read it as 'faster ide' but the board/disk won't do it. The disk
seems up to it, but something else is dodgy.Quoted 6 lines
From your info there isn't enough to debug this.
Boot the kernel with initcall_debug=1
and it will spew a list of each initializer as it calls it, you
can then
Quoted 1 line
see which is the last called and look it up in the symbol table
ide_init
...
Quoted 5 lines
Uniform Multi-Platform E-IDE driver Revision 7.00alpha2 ide assuming 33 Mhz
ide_generic_initHitatchi_DK226A-32 ATA disk drive ide0 at 0x1f0-0x1f7 on irq 14
Quoted 8 lines
***
ide_generic_inittook 1446 msec to run***(asterisks mine)
idedisk_init
hda: max request size:128KiB
hda: 6332256 sectors (3242 MB) w/128 KiB Cache CHS=6282/16/63
hda: hda1 hda2 hda3 hda4
*** Ran for 18 msec*** (asterisks mine)
The above output seems to indicate that the kernel is still relying on drivers/ide instead of libata. To change this, I'd suggest setting "CONFIG_IDE=n" and "CONFIG_ATA=y" in your .config before compiling the kernel. Also, make sure everything that starts with CONFIG_ATA, CONFIG_PATA, CONFIG_SATA, and CONFIG_SCSI is set to "y".
Vlad
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 6 lines
The above output seems to indicate that the kernel is still relying on
drivers/ideinstead of libata. To change this, I'd suggest setting "CONFIG_IDE=n" and "CONFIG_ATA=y" in your .config before compiling the kernel. Also, make sure everything that starts withCONFIG_ATA,CONFIG_PATA,CONFIG_SATA, andCONFIG_SCSIis set to "y".
OK, managed this at the second attempt.
Checked the .config with grep . I even thought of converting hda to sda in fstab & grub. First time I failed to compile in ext3, so I got 'couldn't mount root' stuff. This time I'm using the system above the 1024 cylinder limit, so I'd expect that 'couldn't mount root' again if it couldn't read it. Apparently the 1024 cylinder thing was a red herring.
We wait at exactly the same place. Typing onscreen works. I'll spare you all the initcalls, and just mention the relevant ones
pci_init returned this
Limiting Direct PCI/PCI transfers
loopback_initscsi_tgt_initinit_sdinit_sgahci_initk2_sata_initpiix_init
scsi0: ata_piix scsi1: ata_piix ata1: PATA max udma/33 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fcd0 irq 14 ata2: PATA max udma/33 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fcd8 irq 15 ATA1.00: ATA-3 HITATCHI_DK226A-32 00T0A0A0 max MWDMA2 ATA1.00: 6332256 sectors multi 16: LBA ATA1.00: configured for MWDMA2 scsi 0:0:0:0 Direct Access ATA Hitatchi_DK226A-3 00T0 PQ: 0 ANSI 5 sd 0:0:0:0 [sda] 6332256 512-byte hardware sectors (3242MB) sd 0:0:0:0 [sda] Write Protect is off sd 0:0:0:0 [sda] Write cache: disabled, read cache: enabled doesn't
support DPO or FUA
sda: sda1 sda2 sda3 ssda4
sd 0:0:0:0 [sda] Attached scsi disk
sd 0:0:0:0 [sda] Attached scsi generic sg0 type 0
(piix_init returned 0 ran for 383 msec. The following ones ran for 0 msec)
pdc_ata_initqs_ata_initsil_initsil24_initsvia_initvsc_sata_initsis_initpdc_sata_initnv_inituli_initmv_initinic_initadma_ata_initali_initamd_initartop_initatiixp_initcmd640_initcs5520_initcs5530_initcs5535_initcy82c693_initefar_inithpt36x_inithpt37x_inithpt3x2n_inithpt3x3_initit821x_initit8213_initjmicron_initnetcell_initns87410_initopti_initoptidma_initmarvell_initmpiix_initpiix_initoldpiix_initpdc2027x_initpdc202xx_initqdi_initradisys_initrz1000_initsc1200_initserverworks_initsil680_initvia_initsl82c105_initwinbond_initsis_inittriflex_initata_generic_initlegacy_initmon_init
..pcspeaker_init (ran for 375 msec) io_apic_bug_finalizepci_sysfs_initscsi_complete_async_scans tcp_congestion_default
kjournald starting Commit interval 5 seconds
VFS: Mounted root (ext3 filesystem) readonly Freeing unused kernel memory: 168k freed
(keyboard still echoed onscreen, disk parked)
Adding init=/bin/bash is no better.
Just to nail the possibility, I also did a chroot into the system I built (here on an Athlon which is on that laptop) and ran the init program. I got one very surprised and confused init, but it ran until I killed it.
I'm hoping just for a diagnosis - "X is wrong" I gather the ide stuff is old, but ok
Please 'reply to all' as I'm not on the list.
Quoted 6 lines
kjournald starting Commit interval 5 seconds
VFS: Mounted root (ext3 filesystem) readonly Freeing unused kernel memory: 168k freed
(keyboard still echoed onscreen, disk parked)Adding init=/bin/bash is no better.
So its the user space which is broken. Make sure the user space has the right /dev etc - and is for the right CPU - a 200MHz pentium means you need i386 or i586 binaries. i686/athlon binaries would produce the effect you report.
Alan
Quoted 16 lines · --- Declan Moriarty
piix_initscsi0: ata_piix scsi1: ata_piix ata1: PATA max udma/33 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fcd0 irq 14 ata2: PATA max udma/33 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fcd8 irq 15 ATA1.00: ATA-3 HITATCHI_DK226A-32 00T0A0A0 max MWDMA2 ATA1.00: 6332256 sectors multi 16: LBA ATA1.00: configured for MWDMA2 scsi 0:0:0:0 Direct Access ATA Hitatchi_DK226A-3 00T0 PQ: 0 ANSI 5 sd 0:0:0:0 [sda] 6332256 512-byte hardware sectors (3242MB) sd 0:0:0:0 [sda] Write Protect is off sd 0:0:0:0 [sda] Write cache: disabled, read cache: enabled doesn't
Quoted 8 lines
support DPO or FUA
sda: sda1 sda2 sda3 ssda4
sd 0:0:0:0 [sda] Attached scsi disk
sd 0:0:0:0 [sda] Attached scsi generic sg0 type 0
(piix_initreturned 0 ran for 383 msec. The following ones ran for 0 msec)I'm hoping just for a diagnosis - "X is wrong"
I agree that the problem is in userspace. I can think of two diagnoses:
1) The userspace components of the distro you’re using are mis-configured. To eliminate this possibility, boot the computer from Debian installation floppies:
http://http.us.debian.org/debian/dists/unstable/main/installer-i386/current/images/floppy/
See installation instructions below:
http://www.debian.org/releases/stable/i386/apas02.html.en#howto-getting-images-floppy
At one point during the Debian installation, you’ll be able to press “Alt-Ctrl-F2” and get a console. From here you can manually mount the various partitions. If you can mount and read the partitions, then everything is fine and you can go ahead and install Debian or another distro. If any step fails, try to capture the output of the ‘dmesg’ command from the console and email it to the list.
2) If mounting fails, your drives might be formatted with a proprietary Disk Drive Overlay (DDO). You would have to either a) remove the DDO using the same proprietary software that installed it; or b) reformat the disk.
Vlad
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: IDE Problem with old Gateway laptop -SOLVED
In reply to Alan CoxQuoted 11 lines · Alan Cox
Quoted 6 lines
kjournald starting Commit interval 5 seconds
VFS: Mounted root (ext3 filesystem) readonly Freeing unused kernel memory: 168k freed
(keyboard still echoed onscreen, disk parked)Adding init=/bin/bash is no better.
So its the user space which is broken. Make sure the user space has the right /dev etc - and is for the right CPU - a 200MHz pentium means you need i386 or i586 binaries. i686/athlon binaries would produce the effect you report.
Remember this? The problem appears to have been uClibc-0.9.29.
Dropping the system to uClibc-0.9.28.3 and building the minimum as a proof of concept, I'm running with init=/bin/bash. This is using the same 2 kernels, one compiled under uClibc-0.9.29, and one under glibc (not installed there) which seems to indicate that the kernel is fairly libc independent. I have both systems on that laptop currently. Hda3(with uClibc-0.9.28.3) boots whereas the same system on hda4 (uClibc-0.9.29)does not.
It's actually quite audible whether it works or not, as you barely hear the hard disk on the dodgy one at all, while the good one gives it a thrashing before coming up with. It's either that libc or some i686 code sneaked through to the old pentium. If I knew a handy way to check that, I'd do for it.
Signature · 3 lines
With Best Regards,
Declan Moriarty