Hello All,
I am trying to build a custom initrd using the busybox. In my initrd I
have modified the /sbin/init to a init script which I am mentioning below,
#!/bin/sh -e
# Set up filesystem as root and pivot into it.
export PATH
insmod /lib/uhci-hcd.ko
insmod /lib/ohci-hcd.ko
insmod /lib/ehci-hcd.ko
insmod /lib/mbcache.ko
insmod /lib/jbd.ko
insmod /lib/ext3.ko
insmod /lib/scsi_mod.ko
insmod /lib/sd_mod.ko
insmod /lib/libata.ko
insmod /lib/ata_generic.ko
insmod /lib/ata_piix.ko
insmod /lib/scsi_wait_scan.ko
insmod /lib/sg.ko
rmmod scsi_wait_scan.ko
insmod /lib/e1000.ko
mount /proc
umount initrd 2>/dev/null || true
mount -t tmpfs -o size=100M tmpfs /
umount /proc
cp -a $(ls -1 / |grep -v '\(lost+found\|mnt\|proc\)') /mnt
cd /mnt
mkdir proc
mount /proc
/bin/bash --login
I burnt an ISO image in a CD with this initrd and Kernel image, when I
tries to boot using the CD I am getting the following logs on the kernel
and in last my Kernel gives the Panic.
ISOLINUX 3.51 2007-06-10 Copyright (C) 1994-2007 H. Peter Anvin
boot:
Loading /install.386/vmlinuz.................................
Loading
/install.386/initrd.gz..................................................
................................................................................
...................................................................
Ready.
Linux version 2.6.21-1.3194.fc7
([EMAIL PROTECTED])
(gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Wed May 23
22:35:01 EDT 2
007
BIOS-provided physical RAM map:
sanitize start
sanitize end
copy_e820_map() start: 0000000000000000 size: 000000000009e000 end:
000000000009
e000 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000000009e000 size: 0000000000002000 end:
00000000000a
0000 type: 2
copy_e820_map() start: 00000000000e4000 size: 000000000001c000 end:
000000000010
0000 type: 2
copy_e820_map() start: 0000000000100000 size: 000000003fde0000 end:
000000003fee
0000 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000003fee0000 size: 0000000000009000 end:
000000003fee
9000 type: 3
copy_e820_map() start: 000000003fee9000 size: 0000000000017000 end:
000000003ff0
0000 type: 4
copy_e820_map() start: 000000003ff00000 size: 0000000000100000 end:
000000004000
0000 type: 2
copy_e820_map() start: 00000000fec00000 size: 0000000000010000 end:
00000000fec1
0000 type: 2
copy_e820_map() start: 00000000fee00000 size: 0000000000001000 end:
00000000fee0
1000 type: 2
copy_e820_map() start: 00000000ff000000 size: 0000000001000000 end:
000000010000
0000 type: 2
BIOS-e820: 0000000000000000 - 000000000009e000 (usable)
BIOS-e820: 000000000009e000 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003fee0000 (usable)
BIOS-e820: 000000003fee0000 - 000000003fee9000 (ACPI data)
BIOS-e820: 000000003fee9000 - 000000003ff00000 (ACPI NVS)
BIOS-e820: 000000003ff00000 - 0000000040000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ff000000 - 0000000100000000 (reserved)
126MB HIGHMEM available.
896MB LOWMEM available.
found SMP MP-table at 000f5ff0
Using x86 segment limits to approximate NX protection
Zone PFN ranges:
DMA 0 -> 4096
Normal 4096 -> 229376
HighMem 229376 -> 261856
early_node_map[1] active PFN ranges
0: 0 -> 261856
DMI present.
Using APIC driver default
ACPI: RSDP 000F5FC0, 0014 (r0 PTLTD )
ACPI: RSDT 3FEE2C62, 0038 (r1 PTLTD RSDT 6040000 LTP 0)
ACPI: FACP 3FEE8EC2, 0074 (r1 INTEL 6040000 PTL 3)
ACPI: DSDT 3FEE4086, 4E3C (r1 INTEL GLENWOOD 6040000 MSFT 100000E)
ACPI: FACS 3FEE9FC0, 0040
ACPI: MCFG 3FEE8F36, 003C (r1 PTLTD MCFG 6040000 LTP 0)
ACPI: APIC 3FEE8F72, 0066 (r1 PTLTD APIC 6040000 LTP 0)
ACPI: BOOT 3FEE8FD8, 0028 (r1 PTLTD $SBFTBL$ 6040000 LTP 1)
ACPI: SSDT 3FEE2C9A, 13EC (r1 PmRef CpuPm 3000 INTL 20050228)
ACPI: PM-Timer IO Port: 0x1008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:4 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x03] address[0xfecc0000] gsi_base[24])
IOAPIC[1]: apic_id 3, version 32, address 0xfecc0000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
Enabling APIC mode: Flat. Using 2 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bec00000)
Built 1 zonelists. Total pages: 259811
Kernel command line: vga=normal initrd=/install.386/initrd.gz
console=ttyS0,9600
BOOT_IMAGE=/install.386/vmlinuz
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c077c000 soft=c075c000
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 3192.217 MHz processor.
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1020936k/1047424k available (2066k kernel code, 25736k reserved,
1092k d
ata, 240k init, 129920k highmem)
virtual kernel memory layout:
fixmap : 0xffc56000 - 0xfffff000 (3748 kB)
pkmap : 0xff800000 - 0xffc00000 (4096 kB)
vmalloc : 0xf8800000 - 0xff7fe000 ( 111 MB)
lowmem : 0xc0000000 - 0xf8000000 ( 896 MB)
.init : 0xc071b000 - 0xc0757000 ( 240 kB)
.data : 0xc0604a4a - 0xc0715cb4 (1092 kB)
.text : 0xc0400000 - 0xc0604a4a (2066 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 6387.45 BogoMIPS
(lpj=3193727)
Security Framework v1.0.0 initialized
SELinux: Initializing.
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
monitor/mwait feature present.
using mwait in idle threads.
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (24) available
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 14k freed
ACPI: Core revision 20070126
CPU0: Intel(R) Pentium(R) 4 CPU 3.20GHz stepping 0a
Total of 1 processors activated (6387.45 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
Brought up 1 CPUs
Time: 6:02:57 Date: 09/12/107
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfd72e, last bus=15
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI quirk: region 1000-107f claimed by ICH6 ACPI/GPIO/TCO
PCI quirk: region 1180-11bf claimed by ICH6 GPIO
PCI: PXH quirk detected, disabling MSI for SHPC device
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 10 11 14 15) *5
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 *10 11 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a
report
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
Time: tsc clocksource has been installed.
pnp: 00:01: iomem range 0xfed14000-0xfed17fff has been reserved
pnp: 00:01: iomem range 0xfed13000-0xfed13fff has been reserved
pnp: 00:01: iomem range 0xfed18000-0xfed1bfff has been reserved
pnp: 00:01: iomem range 0xf0000000-0xf3ffffff has been reserved
PCI: Bridge: 0000:01:00.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:01.0
IO window: disabled.
MEM window: ee100000-ee1fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.0
IO window: 4000-4fff
MEM window: ee200000-ee2fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.1
IO window: 5000-5fff
MEM window: ee300000-ee3fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.2
IO window: 6000-6fff
MEM window: ee400000-ee4fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.3
IO window: 7000-7fff
MEM window: ee500000-ee5fffff
PREFETCH window: disabled.
PCI: Ignore bogus resource 6 [0:0] of 0000:0f:00.0
PCI: Bridge: 0000:00:1e.0
IO window: 8000-8fff
MEM window: ee600000-ee6fffff
PREFETCH window: ef000000-efffffff
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 17 (level, low) -> IRQ 17
ACPI: PCI Interrupt 0000:00:1c.1[B] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 18 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 19
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1572864 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
checking if image is initramfs...<6>Switched to high resolution mode on
CPU 0
it is
Freeing initrd memory: 12436k freed
Simple Boot Flag at 0x38 set to 0x1
apm: BIOS not found.
audit: initializing netlink socket (disabled)
audit(1192168974.269:1): initialized
highmem bounce pool size: 64 pages
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
ksign: Installing public key data
Loading keyring
- Added public key 65F8109C338BBD41
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
assign_interrupt_mode Found MSI capability
assign_interrupt_mode Found MSI capability
assign_interrupt_mode Found MSI capability
assign_interrupt_mode Found MSI capability
assign_interrupt_mode Found MSI capability
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI Exception (processor_core-0783): AE_NOT_FOUND, Processor Device is
not pres
ent [20070126]
ACPI Exception (processor_core-0783): AE_NOT_FOUND, Processor Device is
not pres
ent [20070126]
ACPI Exception (processor_core-0783): AE_NOT_FOUND, Processor Device is
not pres
ent [20070126]
ACPI Exception (processor_core-0783): AE_NOT_FOUND, Processor Device is
not pres
ent [20070126]
ACPI Exception (processor_core-0783): AE_NOT_FOUND, Processor Device is
not pres
ent [20070126]
ACPI Exception (processor_core-0783): AE_NOT_FOUND, Processor Device is
not pres
ent [20070126]
ACPI Exception (processor_core-0783): AE_NOT_FOUND, Processor Device is
not pres
ent [20070126]
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12ac
Non-volatile memory driver v1.2
Linux agpgart interface v0.102 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
ÿserial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
input: Macintosh mouse button emulation as /class/input/input0
usbcore: registered new interface driver libusual
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input1
TCP bic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
Magic number: 11:520:13
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "<NULL>" or unknown-block(202,3)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(202,3)
Please let me know what I am missing in the configuration.
Thanks
Rajeev Bansal.
********************************************************************************
This email message (including any attachments) is for the sole use of the
intended recipient(s)
and may contain confidential, proprietary and privileged information. Any
unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient,
please immediately notify the sender by reply email and destroy all copies of
the original message.
Thank you.
Intoto Inc.
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox