Re: 2.6.5-rc2-mm1 does not boot. 2.6.5-rc1-mm2 + small fix from axboe was fine

Eric Valette
2004-03-22T10:16:35Z

Zwane Mwaikambo wrote:
> On Sun, 21 Mar 2004, Eric Valette wrote:
>
>> System starts but hang just before giving hand to init, sometimes I see
>>
>> Mounted devfs on /dev <=== Hangs here
>> Freeing unused kernel memory: 216k freed
>>
>> Sometimes it goes a little bit further but hangs nearly at calling
>> init...
>>
>> Is there something tagged __init that should not be? Or does some of the
>> new SCSI stuff breaks (swap on sda1, ...).
>>
>> Keyboard still gets interrupt (CAPS lock led), but nothing happens. Like
>> if there was a deadlock. No kdbg...
>
>
> initramfs-search-for-init.patch
>
> That patch may be freeing initmem before you get to prepare_namespace()

After a sleep, I build up a clean 2.6.5-rc2-mm1, removed the two
initramfs-* from the broken-out patches, and problem looks *quite* the same.

I managed to start init, but it fails somewhere in running scripts in
rcS.d. I have :

README S30checkfs.sh S40networking
S01devfsd S30etc-setserial S41portmap
S02mountvirtfs S30procps.sh S45mountnfs.sh
S05bootlogd S35devpts.sh S46setserial
S05keymap.sh S35mountall.sh S48console-screen.sh
S09scsitools-pre.sh S35mountkernfs S50hwclock.sh
S10checkroot.sh S38pppd-dns S51ntpdate
S18hwclockfirst.sh S39dns-clean S55bootmisc.sh
S20dns-clean S39ifupdown S55urandom
S20module-init-tools S39pppstatus-clean S70nviboot
S20modutils S40hostname.sh S70xfree86-common
S22scsitools.sh S40hotplug S75sudo

I see *sometimes* the first devfsd message but almost nothing else. I
think I also manage to partially initialize usbdevfs on /proc/bus/usb.
It looks like due to an asynchronuous (irq) event, something deadlocks
the machine.