Gentoo Archives: gentoo-sparc

From: BRM <bm_witness@×××××.com>
To: gentoo-sparc@l.g.o
Subject: Re: [gentoo-sparc] Booting the system...
Date: Thu, 27 Mar 2008 20:41:37
Here's my silo.conf:

# Example of how can be silo.conf set up
partition = 1
root = /dev/sda1
timeout = 300

default = Linux

image = /boot/kernel-genkernel-sparc64-2.6.24-gentoo-r3
        initrd = /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer
        label = Linux2624gr3
        alias = Linux
        append = "video=atyfb:off real_root=/dev/sda1"

The 'initrd' image is one I modified. The original genkernel generated image is /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3 and did not seem to have a /lib/firmware directory, nor did it seem to have any modules, such as the one I very much need - qla2xxx. I generated the new one via the following method:

zcat -d ../initramfs-genkernel-sparc64-2.6.24-gentoo-r3 > initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file
cpio -i -d -H newc --no-absolute-filenames < ./initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file

I then added the following directories:

I also did a 'touch' of all the module names in /etc/modules to try to add them. But I don't see them getting loaded right.

And created a new initrd via:

find ./ | cpio -Hnewc -o > /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio
gzip initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio
mv initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio.gz initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer

The system boots, and I think it now finds the initrd image - my first error was I had 'initrd' instead of 'initramfs' in silo.conf; however, it is still not working.
It theoretically loads the modules (though I see no evidence of the qla2xxx controller being found), starts mdev, and tries to mount /dev/sda1 - at which point it can't find /dev/sda1 since the qla2xxx controller has not yet been found and initialized, and crashes. Despite the message about starting a shell, pressing 'q' or anything else - I can't use STOP+A to get back to the PROM, nor can I use CTRL+ALT+DEL to restart the system. I have to power-cycle to reboot.

Per #3 - I do seem to have CONFIG_PROM_CONSOLE enabled. I will try that the next time I build the kernel. Thanks for the tip. Right now I just need to get the system fully booting. (Then I can rebuild the kernel appropriately.)



----- Original Message ----
From: brant williams <brant@×××××.net>
To: gentoo-sparc@l.g.o
Sent: Thursday, March 27, 2008 3:32:09 PM
Subject: Re: [gentoo-sparc] Booting the system...

Hash: SHA256

Hi Ben,

Good about #1.  There's actually a lot of good information on the www 
about OpenBoot.

As for #2, what does your silo.conf look like?  In my experience <which 
doesn't involve genkernel>, an initrd isn't required.  Can you boot the 
box from the install disc and check out the current kernel config?  I'd 
say disable initrd and any references to it (and make sure that you're not 
loading disk controllers as modules), and then make sure silo.conf isn't 
trying to boot from one.

For #3, are you using the PROM framebuffer as well as the ATI (aty) one? 
Maybe toggling the PROM framebuffer console is the solution...

Here's the relevant snippet from my Ultra 10's kernel config; hope that 
helps a little:

# Console display driver support
# CONFIG_FONT_8x8 is not set
# CONFIG_FONT_8x16 is not set
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_10x18 is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
# CONFIG_LOGO_LINUX_CLUT224 is not set
# CONFIG_FB_SPLASH is not set

brant williams
FCAA CDCA 20BC 3925 D634  F5C4 7420 6784 4DEB 6002

On Wed, 26 Mar 2008, BRM wrote:

> Date: Wed, 26 Mar 2008 14:39:09 -0700 (PDT) > From: BRM <bm_witness@×××××.com> > Reply-To: gentoo-sparc@l.g.o > To: gentoo-sparc@l.g.o > Subject: Re: [gentoo-sparc] Booting the system... > > Figured it out. I could have either adjusted the NVRAM setting for the 'disk' or move the Hard drive to the other slot (which is what I did). > > Still running into problems with the boot process though - this solves #1. However, #2 is still a big issue. It doesn't seem to be finding a valid initrd image. Shouldn't genkernel have built a valid one to install? > > TIA, > > Ben > > ----- Original Message ---- > From: Benjamen R. Meyer <bm_witness@×××××.com> > To: gentoo-sparc@l.g.o > Sent: Monday, March 24, 2008 3:57:19 PM > Subject: [gentoo-sparc] Booting the system... > > I got the system installed, and everything seems to be okay with three > exceptions: > > 1) I have to run "boot disk1:1" at the PROM prompt to get the system to > boot. I assume I can set that into the PROM, just like I set the cdrom > to be what is boot, no? If not, how do I resolve that? FYI - In case it > matters, I did accidentally delete the #3 partition during the > partitioning, but recreated it using the 's' command in fdisk. > > 2) Just before #3 happens, I notice a message from the kernel stating it > can't find the initrd image located in /boot - generated by genkernel. I > didn't setup a _separate_ boot partition, but that shouldn't be an issue > for SILO should it? > > 3) The system loads the kernel, which runs a little, then switches vid > modes and blanks - it doesn't return to the screen like the 2007.0 2617 > does when the atyfb is not disabled, it just blanks, and dies per #2. > Using 'video=atyfb:off' resolves this and reveals the messages. I'd > really like to be able to not have to use 'atyfb:off' as it really hurts > the eyes the way it reprints the screen all the time for the littlest > line movement. Any recommendations? (I could live with it if I > absolutely had to.) > > FYI - after #3 the system completely hangs, and despite the message > about STOP+A, it doesn't work until I completely cycle the power the > system - no return to the PROM; the soft-power button _does_ work for this. > > TIA, > > Ben > > -- > gentoo-sparc@l.g.o mailing list > > > > > -- > gentoo-sparc@l.g.o mailing list > >
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFH6/Y9dCBnhE3rYAIRCHb4AJ0R59FLMqqMNCgr9jHnUXpdj6jyjACglKgx kG1hd6G1qG94l0M+Oynru4c= =sL1p -----END PGP SIGNATURE----- -- gentoo-sparc@l.g.o mailing list -- gentoo-sparc@l.g.o mailing list


Subject Author
Re: [gentoo-sparc] Booting the system... Ivan Kabaivanov <chepati@×××××.com>