Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 1 Mar 2002 14:22:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 1 Mar 2002 14:22:29 -0500 Received: from chaos.analogic.com ([204.178.40.224]:23936 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id ; Fri, 1 Mar 2002 14:22:19 -0500 Date: Fri, 1 Mar 2002 14:22:46 -0500 (EST) From: "Richard B. Johnson" Reply-To: root@chaos.analogic.com To: Torrey Hoffman cc: Zwane Mwaikambo , Matthew Allum , linux-kernel@vger.kernel.org Subject: RE: Multiple kernels OOPS at boot on Fujitsu pt510 ( AMD DX100 CPU ) - ksymoops output attached In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1678434306-425895735-1015010566=:5981" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --1678434306-425895735-1015010566=:5981 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 1 Mar 2002, Torrey Hoffman wrote: > Richard B. Johnson [mailto:root@chaos.analogic.com] wrote: > > [... snipped: using 2.4.1 because... ] > > > Later versions, including the current 2.4.18 fail, to mount an initrd. > > I have successfully used ext2-formatted initrd's with a variety of recent > kernels between 2.4.16 and 2.4.18. The only problem I've ever had is that > when _building_ an initrd, kernels between 2.4.10 and 2.4.18-pre-something > had a bug in the ramdisk driver. This has been fixed in later kernels, > and there is also a workaround for it. > > > Once somebody makes a kernel they has both a working loop device and > > a working initial RAM Disk, I will use that kernel. In the meantime, > > My workstation is running a 2.4.18-pre? which successfully mounts CDROM > ISO images on loopback and successfully creates and boots initrd's. > > Are you sure this is not something specific to your setup or config? > > Torrey Hoffman I have gone this far; I can include SCSI in the initial build so I can boot and mount a root file-system. This is on 2.4.17. Once I am up, I can build an ext2 file-system ramdisk- image. I can mount it though the loop device and I can read/write to it the ram disk and the loop device together work. However, I should be able to do: mke2fs -Fq /dev/ram0 1440 # This works ... mount /dev/ram0 /mnt # This fails to mount the loop-back device. If I do: mount -o loop -t ext2 /dev/ram0 /mnt. That works. Given that, when the kernel uncompresses initrd, and attempts to mount the root file-system, it doesn't mount it through the loop device. Instead, in tries to mount it directly. This is probably what fails. Something has been broken for quite some time and nobody else seems concerned. If I boot 2.4.1, I can do: mke2fs -Fq /dev/ram0 1440 mount /dev/ram0 /mnt This all works fine. Attached is my 'ram-disk' tester. If it works on your version of kernel, please let me know what version it is. This makes a bootable floppy which loads a tiny program that pretends that it's init. It doesn't touch your hard disks or anything like that. It is useful to make such a bootable floppy to verify that some CPU that you might want to purchase, will boot Linux. This is what the script was originally used for. Cheers, Dick Johnson Penguin : Linux version 2.4.1 on an i686 machine (797.90 BogoMips). 111,111,111 * 111,111,111 = 12,345,678,987,654,321 --1678434306-425895735-1015010566=:5981 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="test_ramdisk.sh" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: IyEvYmluL3NoDQojDQojDQpleHBvcnQgVkVSPSQxDQpSQU1ESVNLX0lNQUdF PS90bXAvUmFtSW1hZ2UtJHtWRVJ9DQpSQU1ESVNLPS90bXAvUmFtZGlzaw0K VE1QQz0vdG1wL1RlbXAuYw0KVE1QRj0vdG1wL1RtcEV4ZQ0KRElTS1NJWkU9 MjA0OA0KU1lTPS91c3Ivc3JjL2xpbnV4LSR7VkVSfS9hcmNoL2kzODYvYm9v dC9iekltYWdlDQppZiBbICIkMSIgPSAiIiBdIDsNCiAgIHRoZW4NCiAgICAg ICBlY2hvICJVc2FnZToiDQogICAgICAgZWNobyAidGVzdF9yYW1kaXNrIDx2 ZXJzaW9uPiINCiAgICAgICBleGl0IDENCmZpDQppZiBbICEgLWYgJHtTWVN9 IF0gOw0KICAgdGhlbg0KICAgIGVjaG8gIkZpbGUgbm90IGZvdW5k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 cmQtJHtWRVJ9DQogcm9vdCAgICA9IC9kZXYvcmFtMCANCiBsYWJlbCAgID0g VGVzdC1SQU1ESVNLIA0KRU9GDQojDQojICBTaG93IHRoZSByZXN1bHRzIGFu ZCB1bm1vdW50IHRoZSBmaWxlLXN5c3RlbS4NCiMNCmRmIC9kZXYvZmQwDQp1 bW91bnQgL2Rldi9mZDANCiMNCg== --1678434306-425895735-1015010566=:5981-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/