Gentoo Archives: gentoo-sparc

From: BRM <bm_witness@×××××.com>
To: gentoo-sparc@l.g.o
Subject: Re: [gentoo-sparc] Booting the system...
Date: Fri, 28 Mar 2008 01:52:56
Message-Id: 946863.491.qm@web65409.mail.ac4.yahoo.com
1 I already have the firmware on initrd - pulled from /lib/firmware on the main disk, which was built using the mentioned qlogic firmware package.
2 So, I'm guessing I'm just missing the udev stuff then...hmm....
3
4 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...
5
6 how do they differ?
7
8 And could I just pull the udev files from the main disk to do the work?
9
10 I really hope I can get this working sometime on Friday - that's my last day for being able to get this system working.
11
12 TIA,
13
14 Ben
15
16 P.S. Sorry, I would have replied in-line, but the new Yahoo! interface is a real pain for replies.
17
18 ----- Original Message ----
19 From: Ivan Kabaivanov <chepati@×××××.com>
20 To: gentoo-sparc@l.g.o
21 Sent: Thursday, March 27, 2008 5:06:47 PM
22 Subject: Re: [gentoo-sparc] Booting the system...
23
24 On Thursday 27 March 2008 16:41, BRM wrote:
25 > Here's my silo.conf:
26 >
27 > # Example of how can be silo.conf set up
28 > partition = 1
29 > root = /dev/sda1
30 > timeout = 300
31 >
32 > default = Linux
33 >
34 > image = /boot/kernel-genkernel-sparc64-2.6.24-gentoo-r3
35 > initrd = /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer
36 > label = Linux2624gr3
37 > alias = Linux
38 > append = "video=atyfb:off real_root=/dev/sda1"
39 >
40 >
41 > The 'initrd' image is one I modified. The original genkernel generated
42 > image is /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3 and did not
43 > seem to have a /lib/firmware directory, nor did it seem to have any
44 > modules, such as the one I very much need - qla2xxx. I generated the new
45 > one via the following method:
46 >
47 > zcat -d ../initramfs-genkernel-sparc64-2.6.24-gentoo-r3 >
48 > initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file cpio -i -d -H newc
49 > --no-absolute-filenames <
50 > ./initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file
51 >
52 > I then added the following directories:
53 > /lib/firmware
54 > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/base
55 > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/scsi
56 > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/sbus
57
58
59 Ben,
60
61 you're almost there. Get the binary firmware from
62 ftp://ftp.qlogic.com/outgoing/linux/firmware (just get the .bin files, not
63 the .bin-version files). There are five or six files altogether. You don't
64 need all, but they are relatively small so it's no big deal putting all of
65 them in /lib/firmware.
66
67 Make sure on the initramfs you have /etc/udev/rules.d/ with appropriate rules,
68 including one to handle firmware loading. Also make sure you have on the
69 initramfs /lib/udev/firmware.sh. This script is part of udev. Just copy it.
70
71 Then recreate the cpio.gz and try again. My guess is you forgot to include
72 the actual firmware. But you're getting very close to a working system :-)
73
74 Oh and last but far from least, you need a working /init script on the
75 initramfs. All it needs to do is mount /proc, /sys, /dev as a tmpfs, start
76 udev, mount the actual rootfs device (as per your silo.conf) and switch_root.
77
78 IvanK.
79
80
81
82 --
83 gentoo-sparc@l.g.o mailing list