View previous topic :: View next topic |
Author |
Message |
Hexorg Tux's lil' helper
Joined: 29 Oct 2009 Posts: 116
|
Posted: Wed Nov 20, 2013 7:08 pm Post subject: [Solved] Gentoo on Apple G5 Cluster nodes. |
|
|
Hello everyone. I have one standard apple g5 server, and 7 g5 cluster nodes. The server has video card and cd-rom. but nodes do not.
I've installed Gentoo on the main server. I'm also launching the kernel with console=ttyPZ0 to output everything over the serial port, and I've put serial console into /etc/inittab to be able to log into the machine from serial terminal. Everything works on the main g5 server. I can log in over serial console, or over SSH.
Since g5 cluster nodes don't have cd-rom and have the same hardware as main g5 server (aside video-card), I decided to just copy the harddrive from the main server to the harddrive of the cluster node. Since It doesn't have a video card, I was hoping to get the serial console working. However the serial console never come up. So I thought maybe my harddrive copy was bad. I tried putting the harddrive from main server into cluster node, and the node would still not output the serial console. I have no idea if the kernel actually boots or not, but since I don't see anything on the console, I assume it doesn't.
I tried resetting nv-ram everywhere. Main server outputs to serial console, nodes don't. I also can't ping the nodes. (they never request DHCP address, but main server does).
Then I took main server and one node out and put a video card from main server into node, and it booted! I had serial console, and SSH on the node. Then I've put video card back into main server, and the node doesn't boot. Seems like that's the key difference. I tried to recompile the kernel and remove all graphics support. Node still won't boot. Master still does.
I'm really lost what next to do and it seems I'm running out of options. Can anyone advise me what to do next?
I've never dealt with PPC before, but I have a good gentoo experience.
Edit: Well, this is odd. If I start cluster node into Open Firmware interface and type "boot hd:2,yaboot" it all boots flawlessly! in /etc/yaboot.conf I have ofboot=hd:2 though...
Edit2: Here's my /etc/yaboot.conf:
Code: |
boot=/dev/sda2
ofboot=hd:2
device=/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0:
partition=4
delay=2
timeout=40
install=/usr/lib/yaboot/yaboot
image=/boot/kernel-3.10.7-gentoo-r1
label=Linux
root=/dev/sda4
append="root=/dev/sda4 console=ttyPZ0,57600n8"
partition=4
read-only
enablecdboot
enableofboot
|
Open Firmware's devalias lists:
Code: | first-boot /ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata
second-boot /ht@0,f2000000/pci@5/ata-6@d/disk
last-boot /ht@0,f2000000/pci@2/bcom5704
no-boot /ht@0,f2000000/pci@2/bcom5704@4,1
hd /ht/pci@7/k2-sata-root/k2-sata@0/disk@0 |
/etc/fstab:
Code: |
#/dev/sda1 - Partition Table
#/dev/sda2 - 800K bootloader partition
/dev/sda3 none swap sw 0 0
/dev/sda4 / ext3 noatime 0 1
/dev/sda5 /var ext3 noatime 0 0 |
Last edited by Hexorg on Fri Dec 06, 2013 2:47 pm; edited 1 time in total |
|
Back to top |
|
|
Hexorg Tux's lil' helper
Joined: 29 Oct 2009 Posts: 116
|
Posted: Thu Nov 21, 2013 5:29 pm Post subject: |
|
|
So HDD boots automatically with video card present, and it has to be booted through open firmware, when video card is absent. I've been looking over devalias output. I have a suspicion that when the video card is present, it causes sata controller to sit on pci@6 or @8 slot, and when it's absent - on pci@7, which messes up the whole hd:2 device pointing to the right disk.
I think the command to find the path to /dev/sda was ofpath, and it gave me "/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@03/" i tried writting that string into "first-boot" by using
Code: | nvalias first-boot /ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0 | but that didn't seem to have worked either. I feel like I'm walking around a solution, just can't get to it. |
|
Back to top |
|
|
Hexorg Tux's lil' helper
Joined: 29 Oct 2009 Posts: 116
|
Posted: Fri Dec 06, 2013 2:47 pm Post subject: |
|
|
Fixed it by going into OF and typing "setenv boot-device hd:2,yaboot". |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|