Greetings to all !
<Warning long post>
I am having troubles getting efika to mount the root filesystem in anything else but the ata hardsisk.
First i tried using a 128MB usb2 flash stick (maxwell)
I tried both with the bplan kernel and also a kernel made with OpenEmbedded, also tried singe partion (kernel/filesystem) and 2 partitions the results are the same.
It looks like for some reason the usb storage takes too long to initialize the device and as a result kernel does not find the device.
Quote:
Setup Memory Config... cpu0: PowerPC,G2 CPUClock 396 Mhz BUSClock 132 Mhz (Version 0x8082,0x2014)
Welcome to SmartFirmware(tm) for bplan EFIKA5K2
Version 1.3 (20061107101950)
SmartFirmware(tm) Copyright 1996-2001 by CodeGen, Inc.
All Rights Reserved.
Pegasos BIOS Extensions Copyright 2001-2006 by bplan GmbH.
All Rights Reserved.
ok boot scsi:0 /kernel_efika console=ttyPS0 root=/dev/sda2
zImage starting: loaded at 0x00400000 (sp: 0x017ffe90)
Allocating 0x4ec38c bytes for kernel ...
OF version = 'EFIKA5K2,1.3'
gunzipping (0x1800000 <- 0x409000:0x631516)...done 0x4ce98c bytes
OF stdout device is: /failsafe
command line: console=ttyPSC0 root=/dev/sda2
memory layout at init:
alloc_bottom : 01cf1000
alloc_top : 30000000
alloc_top_hi : f000c000
rmo_top : 30000000
ram_top : f000c000
Looking for displays
instantiating rtas at 0x07ffb000 ... done
copying OF device tree ...
Building dt strings...
Building dt structure...
Device tree strings 0x01cf2000 -> 0x01cf26ba
Device tree struct 0x01cf3000 -> 0x01cf5000
Calling quiesce ...
returning from prom_init
Using Efika machine description
Only using first contiguous memory region<5>Linux version 2.6.19-rc6-g9468d500-dirty (root@Caladan) (gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)) #35 PREEMPT Mon Nov 27 20:48:16 CET 2006
Efika: PCI bus 0 controlled by /pci@80000000
Zone PFN ranges:
DMA 0 -> 32768
Normal 32768 -> 32768
early_node_map[1] active PFN ranges
0: 0 -> 32768
Built 1 zonelists. Total pages: 32512
Kernel command line: console=ttyPSC0 root=/dev/sda2
MPC52xx PIC: MPC52xx PIC Remapped at 0xf0000500
MPC52xx PIC: MPC52xx SDMA Remapped at 0xf0001200
MPC52xx PIC is up and running!
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 124756k/131072k available (4404k kernel code, 6168k reserved, 348k data, 164k bss, 176k init)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Efika : Added pic@f0000500 (type 'interrupt-controller' at '/builtin@F0000000/pic@F0000500') to the known devices
Efika : Added bestcomm@f0001200 (type 'dma-controller' at '/builtin@F0000000/bestcomm@F0001200') to the known devices
Efika : Added sram@f0008000 (type 'memory' at '/builtin@F0000000/sram@F0008000') to the known devices
Efika : Added ata@f0003a00 (type 'ata' at '/builtin@F0000000/ata@F0003A00') to the known devices
Efika : Added usb@f0001000 (type 'usb' at '/builtin@F0000000/usb@F0001000') to the known devices
Efika : Added ethernet@f0003000 (type 'network' at '/builtin@F0000000/ethernet@F0003000') to the known devices
Efika : Added sound@f0002200 (type 'sound' at '/builtin@F0000000/sound@F0002200') to the known devices
Efika : Added serial@f0002000 (type 'serial' at '/builtin@F0000000/serial@F0002000') to the known devices
Efika : Added pcidma@f0003800 (type 'dma-controller' at '/builtin@F0000000/pcidma@F0003800') to the known devices
PCI: Probing PCI hardware
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1170937779.317:1): initialized
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
Serial: MPC52xx PSC UART driver
serial@f0002000: ttyPSC0 at MMIO 0xf0002000 (irq = 129) is a MPC52xx PSC
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
MPC52xx/OpenFirmware: 13696 kB of free SRAM
eth0: Phy @ 0x10, type GENERIC (0x00008201)
ata: MPC52xx IDE/ATA libata driver
ata1: PATA max PIO4 cmd 0x0 ctl 0xC901EA5C bmdma 0x0 irq 135
scsi0 : mpc52xx_ata
ppc-of-ohci usb@f0001000: USB Host Controller
ppc-of-ohci usb@f0001000: new USB bus registered, assigned bus number 1
ppc-of-ohci usb@f0001000: irq 134, io mem 0xf0001000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usb 1-2: new full speed USB device using ppc-of-ohci and address 2
usb 1-2: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "sda2" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
<0>Rebooting in 180 seconds..
I have been able to notice (when trying to nfs mount with the usb stick attached) the rootfs i saw after a couple of seconds that /dev/sda was initialized..
Quote:
GRE over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Looking up port of RPC 100003/2 on 192.168.1.101
scsi 1:0:0:0: Direct-Access Ut161 USB2FlashStorage 0.00 PQ: 0 ANSI: 2
SCSI device sda: 247296 512-byte hdwr sectors (127 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 247296 512-byte hdwr sectors (127 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
sda: sda1 sda2
sd 1:0:0:0: Attached scsi removable disk sda
sd 1:0:0:0: Attached scsi generic sg0 type 0
portmap: server 192.168.1.101 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.101
portmap: server 192.168.1.101 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.1.101 not responding, timed out
Root-NFS: Server returned error -5 while mounting /storage/tftpboot/rootfs
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
<0>Rebooting in 180 seconds..
Then i tried to use tftp and nfs mount the kernel and rootfs
In this case i get the kernel from the tftp server, but the kernel is unable to locate the portmaper.
Quote:
RTAS systemEFIKA 5K2 Boot Strap [RELEASE BUILD] (c) 2002-2006 bplan GmbH (BUILD 20061101134833)
Running on CPU PVR: 0x80822014
Running on system SVR: 0x80110022
BIOS Code position: 0xFFF040D0
Setup System Config... Done.
Setup Memory Config... Done.
Setup PCI... Done.
Setup ATA... Done.
Setup USB... Done.
Setup ETH... Done.
Memory Test skipped (Warmboot detected)
cpu0: PowerPC,G2 CPUClock 396 Mhz BUSClock 132 Mhz (Version 0x8082,0x2014)
Welcome to SmartFirmware(tm) for bplan EFIKA5K2
Version 1.3 (20061107101950)
SmartFirmware(tm) Copyright 1996-2001 by CodeGen, Inc.
All Rights Reserved.
Pegasos BIOS Extensions Copyright 2001-2006 by bplan GmbH.
All Rights Reserved.
ok s nfsroot=192.168.1.101:/storage/tftpboot/rootfs console=ttyPSC0
zImage starting: loaded at 0x00400000 (sp: 0x017ffe90)
Allocating 0x4ec38c bytes for kernel ...
OF version = 'EFIKA5K2,1.3'
gunzipping (0x1800000 <- 0x409000:0x631516)...done 0x4ce98c bytes
OF stdout device is: /failsafe
command line: root=/dev/nfs nfsroot=192.168.1.101:/storage/tftpboot/rootfs console=ttyPSC0
memory layout at init:
alloc_bottom : 01cf1000
alloc_top : 30000000
alloc_top_hi : f000c000
rmo_top : 30000000
ram_top : f000c000
Looking for displays
instantiating rtas at 0x07ffb000 ... done
copying OF device tree ...
Building dt strings...
Building dt structure...
Device tree strings 0x01cf2000 -> 0x01cf269e
Device tree struct 0x01cf3000 -> 0x01cf5000
Calling quiesce ...
returning from prom_init
Using Efika machine description
Only using first contiguous memory region<5>Linux version 2.6.19-rc6-g9468d500-dirty (root@Caladan) (gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)) #35 PREEMPT Mon Nov 27 20:48:16 CET 2006
Efika: PCI bus 0 controlled by /pci@80000000
Zone PFN ranges:
DMA 0 -> 32768
Normal 32768 -> 32768
early_node_map[1] active PFN ranges
0: 0 -> 32768
Built 1 zonelists. Total pages: 32512
Kernel command line: root=/dev/nfs nfsroot=192.168.1.101:/storage/tftpboot/rootfs console=ttyPSC0
MPC52xx PIC: MPC52xx PIC Remapped at 0xf0000500
MPC52xx PIC: MPC52xx SDMA Remapped at 0xf0001200
MPC52xx PIC is up and running!
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 124756k/131072k available (4404k kernel code, 6164k reserved, 348k data, 164k bss, 176k init)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Efika : Added pic@f0000500 (type 'interrupt-controller' at '/builtin@F0000000/pic@F0000500') to the known devices
Efika : Added bestcomm@f0001200 (type 'dma-controller' at '/builtin@F0000000/bestcomm@F0001200') to the known devices
Efika : Added sram@f0008000 (type 'memory' at '/builtin@F0000000/sram@F0008000') to the known devices
Efika : Added ata@f0003a00 (type 'ata' at '/builtin@F0000000/ata@F0003A00') to the known devices
Efika : Added usb@f0001000 (type 'usb' at '/builtin@F0000000/usb@F0001000') to the known devices
Efika : Added ethernet@f0003000 (type 'network' at '/builtin@F0000000/ethernet@F0003000') to the known devices
Efika : Added sound@f0002200 (type 'sound' at '/builtin@F0000000/sound@F0002200') to the known devices
Efika : Added serial@f0002000 (type 'serial' at '/builtin@F0000000/serial@F0002000') to the known devices
Efika : Added pcidma@f0003800 (type 'dma-controller' at '/builtin@F0000000/pcidma@F0003800') to the known devices
PCI: Probing PCI hardware
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1170933876.321:1): initialized
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
Serial: MPC52xx PSC UART driver
serial@f0002000: ttyPSC0 at MMIO 0xf0002000 (irq = 129) is a MPC52xx PSC
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
MPC52xx/OpenFirmware: 13696 kB of free SRAM
eth0: Phy @ 0x10, type GENERIC (0x00008201)
ata: MPC52xx IDE/ATA libata driver
ata1: PATA max PIO4 cmd 0x0 ctl 0xC901EA5C bmdma 0x0 irq 135
scsi0 : mpc52xx_ata
ppc-of-ohci usb@f0001000: USB Host Controller
ppc-of-ohci usb@f0001000: new USB bus registered, assigned bus number 1
ppc-of-ohci usb@f0001000: irq 134, io mem 0xf0001000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Looking up port of RPC 100003/2 on 192.168.1.101
portmap: server 192.168.1.101 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.101
portmap: server 192.168.1.101 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.1.101 not responding, timed out
Root-NFS: Server returned error -5 while mounting /storage/tftpboot/rootfs
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
<0>Rebooting in 180 seconds..FEC_IEVENT_RFIFO_ERROR (00020000)
The tftp/nfs/portmaper are running in Debian etch and work as i am able to net mount other devices and even mount the efika specific dir from another computer.
I am missing/doing something wrong ?