SPARC and own kernel

Denny Schierz linuxmail at 4lin.net
Tue Feb 14 08:41:08 CET 2012


hi,

I want to install several SPARC machines, X86 and LXC Linux container from a Squeeze X86 box. I'm able to install Squeeze via OpenBoot and it works with the netboot (DHCP/TFTP/NFS) Image for SPARC. Under SPARC (Sunfire v245) I installed the FAI-Quickstart, copied /etc/fai to /etc/fai-sparc, changed several pathes inside the config and called "make-fai-nfsroot -v -C /etc/fai-sparc" and copied all files (/etc/fai-sparc + /srv/fai-sparc) to my X86 Squeeze box.
But now I hang, because the kernel doesn't find any "init", after the NFS mount, what's right. I can't use the pxelinux.0 file, because it isn't SPARC executable, so I use my own monolith Kernel (which I use for a NFS based rescue system). So, I don't know, what I have to do now. My sources are:

http://fai-project.org/fai-guide.html#_anchor_id_sparc_xreflabel_sparc_fai_on_sun_sparc_hardware_running_linux

and google (a lot of).

-------------- template -----------------
[...]
[  769.896659] tg3 0000:09:04.0: eth0: dma_rwctrl[76148000] dma_mask[32-bit]
[  769.992267] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[  770.078517] ehci_hcd 0000:05:1c.3: EHCI Host Controller
[  770.147807] ehci_hcd 0000:05:1c.3: new USB bus registered, assigned bus number 1
[  770.245477] ehci_hcd 0000:05:1c.3: debug port 1
[  107.568137] IP-Config: Got DHCP answer from 192.168.1.1, my address is 192.168.1.5
[  107.940694] IP-Config: Complete:
[  107.983143]      device=eth3, addr=192.168.1.5, mask=255.255.255.0, gw=192.168.1.1,
[  108.080626]      host=template.rbg.foobar, domain=rbg.foobar, nis-domain=(none),
[  108.223866]      bootserver=192.168.1.1, rootserver=192.168.1.1, rootpath=/srv/fai-sparc/nfsroot
[  108.343375] md: Waiting for all devices to be available before autodetect
[  108.432825] md: If you don't use raid, use raid=noautodetect
[  108.507781] md: Autodetecting RAID arrays.
[  108.562000] md: invalid raid superblock magic on sda4
[  108.628545] md: sda4 does not have a valid v0.90 superblock, not importing!
[  108.732429] md: invalid raid superblock magic on sdb4
[  108.798953] md: sdb4 does not have a valid v0.90 superblock, not importing!
[  108.890621] md: Scanned 2 and added 0 devices.
[  108.949050] md: autorun ...
[  108.985714] md: ... autorun DONE.
[  109.109987] VFS: Mounted root (nfs filesystem) readonly on device 0:14.
[  109.198293] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[  109.362204] Call Trace:
[  109.394368]  [0000000000426b94] init_post+0xb0/0xbc
[  109.458537]  [0000000000bd63a8] kernel_init+0x16c/0x17c
[  109.527279]  [000000000042ab54] kernel_thread+0x30/0x48
[  109.596034]  [00000000009afa3c] rest_init+0x18/0x74
[  109.660190] Press Stop-A (L1-A) to return to the boot prom

----------------------------------------------------

------------ Fai server ---------------------
[...]
Feb 13 16:13:48 iscsihead-s kernel: [279444.170834] e1000: eth2 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
Feb 13 16:13:49 iscsihead-s dhcpd: DHCPDISCOVER from 00:14:4f:b0:5c:37 via eth2
Feb 13 16:13:49 iscsihead-s dhcpd: DHCPOFFER on 192.168.1.5 to 00:14:4f:b0:5c:37 via eth2
Feb 13 16:13:49 iscsihead-s dhcpd: Dynamic and static leases present for 192.168.1.5.
Feb 13 16:13:49 iscsihead-s dhcpd: Remove host declaration template or remove 192.168.1.5
Feb 13 16:13:49 iscsihead-s dhcpd: from the dynamic address pool for 192.168.1.0/24
Feb 13 16:13:49 iscsihead-s dhcpd: DHCPREQUEST for 192.168.1.5 (192.168.1.1) from 00:14:4f:b0:5c:37 via eth2
Feb 13 16:13:49 iscsihead-s dhcpd: DHCPACK on 192.168.1.5 to 00:14:4f:b0:5c:37 via eth2
Feb 13 16:13:51 iscsihead-s mountd[9475]: authenticated mount request from 192.168.1.5:860 for /srv/fai-sparc/nfsroot (/srv/fai-sparc/nfsroot)
[...]

---------------------------------------------

What next?

cu denny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20120214/f00ef9c4/attachment.bin>


More information about the linux-fai mailing list