public inbox for gentoo-sparc@lists.gentoo.org
 help / color / mirror / Atom feed
From: BRM <bm_witness@yahoo.com>
To: gentoo-sparc@lists.gentoo.org
Subject: Re: [gentoo-sparc] Booting the system...
Date: Thu, 27 Mar 2008 18:52:53 -0700 (PDT)	[thread overview]
Message-ID: <946863.491.qm@web65409.mail.ac4.yahoo.com> (raw)

I already have the firmware on initrd - pulled from /lib/firmware on the main disk, which was built using the mentioned qlogic firmware package.
So, I'm guessing I'm just missing the udev stuff then...hmm....

Quick question - how does mdev and udev differ? It seems to be running mdev, which something I came across mentioned that it is a udev replacement seemingly for initrd images. Any how...

how do they differ?

And could I just pull the udev files from the main disk to do the work?

I really hope I can get this working sometime on Friday - that's my last day for being able to get this system working.

TIA,

Ben

P.S. Sorry, I would have replied in-line, but the new Yahoo! interface is a real pain for replies.

----- Original Message ----
From: Ivan Kabaivanov <chepati@yahoo.com>
To: gentoo-sparc@lists.gentoo.org
Sent: Thursday, March 27, 2008 5:06:47 PM
Subject: Re: [gentoo-sparc] Booting the system...

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.

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.

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.



-- 
gentoo-sparc@lists.gentoo.org mailing list



             reply	other threads:[~2008-03-28  1:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28  1:52 BRM [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-03-27 20:41 [gentoo-sparc] Booting the system BRM
2008-03-27 21:06 ` Ivan Kabaivanov
2008-03-27 23:05   ` Ferris McCormick
2008-03-28 19:23     ` Ivan Kabaivanov
2008-03-28 22:57       ` Ferris McCormick
2008-03-26 21:39 BRM
2008-03-27 19:32 ` brant williams
2008-03-24 19:57 Benjamen R. Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=946863.491.qm@web65409.mail.ac4.yahoo.com \
    --to=bm_witness@yahoo.com \
    --cc=gentoo-sparc@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox