Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-sparc
Navigation:
Lists: gentoo-sparc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-sparc@g.o
From: Ferris McCormick <fmccor@g.o>
Subject: Re: Booting the system...
Date: Thu, 27 Mar 2008 23:05:53 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 27 Mar 2008 17:06:47 -0400
Ivan Kabaivanov <chepati@...> wrote:

> On Thursday 27 March 2008 16:41, BRM wrote:
> > 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:
> > /lib/firmware
> > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/base
> > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/scsi
> > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/sbus
> 
> 
> Ben,
> 
> you're almost there.  Get the binary firmware from 
> ftp://ftp.qlogic.com/outgoing/linux/firmware (just get the .bin files, not 
> the .bin-version files).  There are five or six files altogether.  You don't 
> need all, but they are relatively small so it's no big deal putting all of 
> them in /lib/firmware.
> 

Actually, you can get the firmware by
emerge qla-fc-firmware
(We have a package for it).

Also, if you want to try it, you can now use genkernel for building
this (although it sounds like you are close enough that you would
likely lose time that way).  The trick with genkernel is that the
stable version probably will not work, but the ~sparc version will
(that is, sys-kernel/genkernel-3.4.10_pre7).
> Make sure on the initramfs you have /etc/udev/rules.d/ with appropriate rules, 
> including one to handle firmware loading.  Also make sure you have on the 
> initramfs /lib/udev/firmware.sh.  This script is part of udev.  Just copy it.
> 

Interesting.  Does that approach work? (I guess it must because you
seem to be using it.)  Normally, the qla2xxxx driver loads the firmware
(and when you use genkernel, you also build the driver as a module and
put the firmware into the initrd).  I'm interested to see how this
works.

> Then recreate the cpio.gz and try again.  My guess is you forgot to include 
> the actual firmware.  But you're getting very close to a working system :-)
> 
> Oh and last but far from least, you need a working /init script on the 
> initramfs.  All it needs to do is mount /proc, /sys, /dev as a tmpfs, start 
> udev, mount the actual rootfs device (as per your silo.conf) and switch_root.
> 
> IvanK.
> 
> 
> 
> 
> >
> > 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.)
> >
> > Thanks!
> >
> > Ben
> >
> > ----- Original Message ----
> > From: brant williams <brant@...>
> > To: gentoo-sparc@g.o
> > Sent: Thursday, March 27, 2008 3:32:09 PM
> > Subject: Re: [gentoo-sparc] Booting the system...
> >
> >
> > 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_PROM_CONSOLE is not set
> > CONFIG_DUMMY_CONSOLE=y
> > CONFIG_FRAMEBUFFER_CONSOLE=y
> > # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
> > CONFIG_FONTS=y
> > # 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_SUN8x16=y
> > # CONFIG_FONT_SUN12x22 is not set
> > # CONFIG_FONT_10x18 is not set
> > CONFIG_LOGO=y
> > # CONFIG_LOGO_LINUX_MONO is not set
> > # CONFIG_LOGO_LINUX_VGA16 is not set
> > # CONFIG_LOGO_LINUX_CLUT224 is not set
> > CONFIG_LOGO_SUN_CLUT224=y
> > # 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@...>
> > > Reply-To: gentoo-sparc@g.o
> > > To: gentoo-sparc@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@...>
> > > To: gentoo-sparc@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@g.o mailing list
> > >
> > >
> > >
> > >
> > > --
> > > gentoo-sparc@g.o mailing list
> >
> > --
> > gentoo-sparc@g.o mailing list
> 
> -- 
> gentoo-sparc@g.o mailing list
> 

Regards,
- -- 
Ferris McCormick (P44646, MI) <fmccor@g.o>
Developer, Gentoo Linux (Sparc, Devrel, Userrel, Trustees)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFH7ChYQa6M3+I///cRAnXXAJ9rzc3BfqYSFjKtp95sXLUOwiGiZgCg0FU+
xlJMWWxJSFZRfOFiMYX/xgg=
=iW0i
-----END PGP SIGNATURE-----
Replies:
Re: Booting the system...
-- Ivan Kabaivanov
References:
Re: Booting the system...
-- BRM
Re: Booting the system...
-- Ivan Kabaivanov
Navigation:
Lists: gentoo-sparc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Booting the system...
Next by thread:
Re: Booting the system...
Previous by date:
Re: Booting the system...
Next by date:
Re: Booting the system...


Updated Jun 17, 2009

Summary: Archive of the gentoo-sparc mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.