Hi Martin,
Attached are bootlogs of the same system booting the same kernel with
only one difference: the inclusion of the "sleep 5" patch in the initrd.
I generated the initrd's using :
mkinitramfs -o sleep.img 2.6.21-2-sparc64-smp
mkinitramfs -o nosleep.img 2.6.21-2-sparc64-smp
If you diff the logs, you can clearly see that the scsi bus scan for
esp0 is still ongoing as local-top/mdadm tries to assemble all MD arrays
which cause it to fail and the system to hang. All the sleep does really
is give esp0 enough time to finish scanning it's bus and bring all
devices up before having mdadm do it's thing.
I can't help but think that there must be a cleaner way to wait for the
bus scan to finish before handing control over to mdadm.
Cheers,
Eric
Allocated 8 Megs of memory at 0x40000000 for kernel
Uncompressing image...
Loading initial ramdisk (5718153 bytes at 0x40800000 phys, 0x40C00000 virt)...
Remapping the kernel... done.
Booting Linux...
PROMLIB: Sun IEEE Boot Prom 'OBP 3.25.0 1999/12/03 11:35'
PROMLIB: Root node compatible:
Linux version 2.6.21-2-sparc64-smp (Debian 2.6.21-6) ([EMAIL PROTECTED]) (gcc
version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Thu Jul 12
14:14:05 UTC 2007
ARCH: SUN4U
Ethernet address: 08:00:20:9a:df:2e
PROM: Built device tree with 38027 bytes of memory.
Built 1 zonelists. Total pages: 63126
Kernel command line: root=/dev/md1 ro md=0,/dev/sda1,/dev/sdb1
PID hash table entries: 2048 (order: 11, 16384 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 5, 262144 bytes)
Memory: 507872k available (2464k kernel code, 856k data, 168k init)
[fffff80000000000,000000004ff30000]
Calibrating delay using timer specific routine.. 592.42 BogoMIPS (lpj=1184844)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU[0]: Caches D[sz(16384):line_sz(32)] I[sz(16384):line_sz(32)]
E[sz(2097152):line_sz(64)]
Using max_cache_size of 2MB
Calibrating delay using timer specific routine.. 592.04 BogoMIPS (lpj=1184090)
CPU[1]: Caches D[sz(16384):line_sz(32)] I[sz(16384):line_sz(32)]
E[sz(2097152):line_sz(64)]
CPU 1: synchronized TICK with master CPU (last diff -5 cycles,maxerr 526 cycles)
Brought up 2 CPUs
Total of 2 processors activated (1184.46 BogoMIPS).
migration_cost=48284
NET: Registered protocol family 16
PCI: Probing for controllers.
SYSIO: UPA portID 1f, at 000001fe00000000
sbus0: Clock 25.0 MHz
dma0: HME DVMA gate array
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
AUXIO: Found device at /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1900000
/[EMAIL PROTECTED],0/[EMAIL PROTECTED],1200000: Clock regs at 000001fff1200000
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 32768 bytes)
TCP established hash table entries: 16384 (order: 5, 393216 bytes)
TCP bind hash table entries: 16384 (order: 5, 262144 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 5584k freed
audit: initializing netlink socket (disabled)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 8192 bytes)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 144x56
/SUNW,[EMAIL PROTECTED],0: FFB at 000001fc00000000, type 8, DAC pnum[236c]
rev[10] manuf_rev[4]
rtc_init: no PC rtc found
[drm] Initialized drm 1.1.0 20060810
f005b518: ttyS0 at MMIO 0x1fff1100000 (irq = 9) is a zs
Console: ttyS0 (SunZilog zs0)
f005b518: ttyS1 at MMIO 0x1fff1100004 (irq = 9) is a zs
f005c9b8: Keyboard at MMIO 1fff1000000 (irq = 9) is a zs
f005c9b8: Mouse at MMIO 1fff1000004 (irq = 9) is a zs
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
rtc_sun_init: Registered Mostek RTC driver.
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
TCP bic registered
input: Sun Mouse as /class/input/input0
NET: Registered protocol family 1
NET: Registered protocol family 17
Loading, please wait...
Begin: Loading essential drivers... ...
SCSI subsystem initialized
esp0: IRQ 10 SCSI ID 7 Clk 40MHz CCYC=25000 CCF=8 TOut 167 NCR53C9XF(espfast)
scsi0 : Sparc ESP366-HME
sunhme.c:v3.00 June 23, 2006 David S. Miller ([EMAIL PROTECTED])
eth0: HAPPY MEAL (SBUS) 10/100baseT Ethernet 08:00:20:9a:df:2e
eth1: Quattro HME slot 0 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d0
eth2: Quattro HME slot 1 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d1
eth3: Quattro HME slot 2 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d2
eth4: Quattro HME slot 3 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d3
md: raid1 personality registered for level 1
Done.
Begin: Running /scripts/init-premount ...
scsi 0:0:0:0: Direct-Access COMPAQ BD0186349B 3B06 PQ: 0 ANSI: 2
scsi 0:0:1:0: Direct-Access COMPAQ BD0186349B 3B06 PQ: 0 ANSI: 2
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
scsi 0:0:6:0: CD-ROM TOSHIBA XM-5401TASUN4XCD 3485 PQ: 0 ANSI: 2
Begin: Loading MD modules ...
Success: loaded module raid1.
Done.
Begin: Assembling all MD arrays ...
mdadm: No devices listed in conf file were found.
Failure: failed to assemble all arrays.
Done.
Begin: Executing udevtrigger again ...
Done.
Done.
Begin: Waiting for root file system... ...
esp0: target 0 [period 100ns offset 15 20.00MHz FAST-WIDE SCSI-II]
SCSI device sda: 35565080 512-byte hdwr sectors (18209 MB)
sda: Write Protect is off
SCSI device sda: write cache: disabled, read cache: enabled, supports DPO and
FUA
SCSI device sda: 35565080 512-byte hdwr sectors (18209 MB)
sda: Write Protect is off
SCSI device sda: write cache: disabled, read cache: enabled, supports DPO and
FUA
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
esp0: target 1 [period 100ns offset 15 20.00MHz FAST-WIDE SCSI-II]
SCSI device sdb: 35565080 512-byte hdwr sectors (18209 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: disabled, read cache: enabled, supports DPO and
FUA
SCSI device sdb: 35565080 512-byte hdwr sectors (18209 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: disabled, read cache: enabled, supports DPO and
FUA
sdb: sdb1 sdb2 sdb3 sdb4
sd 0:0:1:0: Attached scsi disk sdb
esp0: target 6 asynchronous
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:1:0: Attached scsi generic sg1 type 0
sr 0:0:6:0: Attached scsi generic sg2 type 5
Allocated 8 Megs of memory at 0x40000000 for kernel
Uncompressing image...
Loading initial ramdisk (5718129 bytes at 0x40800000 phys, 0x40C00000 virt)...
Remapping the kernel... done.
Booting Linux...
PROMLIB: Sun IEEE Boot Prom 'OBP 3.25.0 1999/12/03 11:35'
PROMLIB: Root node compatible:
Linux version 2.6.21-2-sparc64-smp (Debian 2.6.21-6) ([EMAIL PROTECTED]) (gcc
version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)) #1 SMP Thu Jul 12
14:14:05 UTC 2007
ARCH: SUN4U
Ethernet address: 08:00:20:9a:df:2e
PROM: Built device tree with 38027 bytes of memory.
Built 1 zonelists. Total pages: 63126
Kernel command line: root=/dev/md1 ro md=0,/dev/sda1,/dev/sdb1
PID hash table entries: 2048 (order: 11, 16384 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 5, 262144 bytes)
Memory: 507872k available (2464k kernel code, 856k data, 168k init)
[fffff80000000000,000000004ff30000]
Calibrating delay using timer specific routine.. 592.42 BogoMIPS (lpj=1184844)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU[0]: Caches D[sz(16384):line_sz(32)] I[sz(16384):line_sz(32)]
E[sz(2097152):line_sz(64)]
Using max_cache_size of 2MB
Calibrating delay using timer specific routine.. 592.04 BogoMIPS (lpj=1184090)
CPU[1]: Caches D[sz(16384):line_sz(32)] I[sz(16384):line_sz(32)]
E[sz(2097152):line_sz(64)]
CPU 1: synchronized TICK with master CPU (last diff -5 cycles,maxerr 526 cycles)
Brought up 2 CPUs
Total of 2 processors activated (1184.46 BogoMIPS).
migration_cost=48284
NET: Registered protocol family 16
PCI: Probing for controllers.
SYSIO: UPA portID 1f, at 000001fe00000000
sbus0: Clock 25.0 MHz
dma0: HME DVMA gate array
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
AUXIO: Found device at /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1900000
/[EMAIL PROTECTED],0/[EMAIL PROTECTED],1200000: Clock regs at 000001fff1200000
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 32768 bytes)
TCP established hash table entries: 16384 (order: 5, 393216 bytes)
TCP bind hash table entries: 16384 (order: 5, 262144 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 5584k freed
audit: initializing netlink socket (disabled)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 8192 bytes)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 144x56
/SUNW,[EMAIL PROTECTED],0: FFB at 000001fc00000000, type 8, DAC pnum[236c]
rev[10] manuf_rev[4]
rtc_init: no PC rtc found
[drm] Initialized drm 1.1.0 20060810
f005b518: ttyS0 at MMIO 0x1fff1100000 (irq = 9) is a zs
Console: ttyS0 (SunZilog zs0)
f005b518: ttyS1 at MMIO 0x1fff1100004 (irq = 9) is a zs
f005c9b8: Keyboard at MMIO 1fff1000000 (irq = 9) is a zs
f005c9b8: Mouse at MMIO 1fff1000004 (irq = 9) is a zs
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
rtc_sun_init: Registered Mostek RTC driver.
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
TCP bic registered
input: Sun Mouse as /class/input/input0
NET: Registered protocol family 1
NET: Registered protocol family 17
Loading, please wait...
Begin: Loading essential drivers... ...
SCSI subsystem initialized
esp0: IRQ 10 SCSI ID 7 Clk 40MHz CCYC=25000 CCF=8 TOut 167 NCR53C9XF(espfast)
scsi0 : Sparc ESP366-HME
sunhme.c:v3.00 June 23, 2006 David S. Miller ([EMAIL PROTECTED])
eth0: HAPPY MEAL (SBUS) 10/100baseT Ethernet 08:00:20:9a:df:2e
eth1: Quattro HME slot 0 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d0
eth2: Quattro HME slot 1 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d1
eth3: Quattro HME slot 2 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d2
eth4: Quattro HME slot 3 (SBUS) 10/100baseT Ethernet 08:00:20:8f:33:d3
md: raid1 personality registered for level 1
Done.
Begin: Running /scripts/init-premount ...
scsi 0:0:0:0: Direct-Access COMPAQ BD0186349B 3B06 PQ: 0 ANSI: 2
scsi 0:0:1:0: Direct-Access COMPAQ BD0186349B 3B06 PQ: 0 ANSI: 2
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
scsi 0:0:6:0: CD-ROM TOSHIBA XM-5401TASUN4XCD 3485 PQ: 0 ANSI: 2
Begin: Loading MD modules ...
Success: loaded module raid1.
Done.
esp0: target 0 [period 100ns offset 15 20.00MHz FAST-WIDE SCSI-II]
SCSI device sda: 35565080 512-byte hdwr sectors (18209 MB)
sda: Write Protect is off
SCSI device sda: write cache: disabled, read cache: enabled, supports DPO and
FUA
SCSI device sda: 35565080 512-byte hdwr sectors (18209 MB)
sda: Write Protect is off
SCSI device sda: write cache: disabled, read cache: enabled, supports DPO and
FUA
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
esp0: target 1 [period 100ns offset 15 20.00MHz FAST-WIDE SCSI-II]
SCSI device sdb: 35565080 512-byte hdwr sectors (18209 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: disabled, read cache: enabled, supports DPO and
FUA
SCSI device sdb: 35565080 512-byte hdwr sectors (18209 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: disabled, read cache: enabled, supports DPO and
FUA
sdb: sdb1 sdb2 sdb3 sdb4
sd 0:0:1:0: Attached scsi disk sdb
esp0: target 6 asynchronous
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:1:0: Attached scsi generic sg1 type 0
sr 0:0:6:0: Attached scsi generic sg2 type 5
Begin: Assembling all md: md0 stopped.
MD arrays ...
md: bind<sda1>
md: bind<sdb1>
raid1: raid set md0 active with 2 out of 2 mirrors
md: md1 stopped.
mdadm: /dev/md0 has been started with 2 drives.
md: bind<sda2>
md: bind<sdb2>
raid1: raid set md1 active with 2 out of 2 mirrors
mdadm: /dev/md1 has been started with 2 drives.
Success: assembled all arrays.
Done.
Begin: Executing udevtrigger again ...
Done.
Done.
Begin: Running /scripts/local-premount ...
Done.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
Mount failed for selinuxfs on /selinux: No such device
INIT: version 2.86 booting
Setting hostname to 'elvira'...done.