Gentoo Archives: gentoo-sparc

From: Ferris McCormick <fmccor@g.o>
To: gentoo-sparc@l.g.o
Cc: Ivan Kabaivanov <chepati@×××××.com>
Subject: Re: [gentoo-sparc] Booting the system...
Date: Thu, 27 Mar 2008 23:06:07
Message-Id: 20080327230553.7b09910b@anaconda.krait.us
In Reply to: Re: [gentoo-sparc] Booting the system... by Ivan Kabaivanov
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Thu, 27 Mar 2008 17:06:47 -0400
5 Ivan Kabaivanov <chepati@×××××.com> wrote:
6
7 > On Thursday 27 March 2008 16:41, BRM wrote:
8 > > Here's my silo.conf:
9 > >
10 > > # Example of how can be silo.conf set up
11 > > partition = 1
12 > > root = /dev/sda1
13 > > timeout = 300
14 > >
15 > > default = Linux
16 > >
17 > > image = /boot/kernel-genkernel-sparc64-2.6.24-gentoo-r3
18 > > initrd = /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer
19 > > label = Linux2624gr3
20 > > alias = Linux
21 > > append = "video=atyfb:off real_root=/dev/sda1"
22 > >
23 > >
24 > > The 'initrd' image is one I modified. The original genkernel generated
25 > > image is /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3 and did not
26 > > seem to have a /lib/firmware directory, nor did it seem to have any
27 > > modules, such as the one I very much need - qla2xxx. I generated the new
28 > > one via the following method:
29 > >
30 > > zcat -d ../initramfs-genkernel-sparc64-2.6.24-gentoo-r3 >
31 > > initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file cpio -i -d -H newc
32 > > --no-absolute-filenames <
33 > > ./initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file
34 > >
35 > > I then added the following directories:
36 > > /lib/firmware
37 > > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/base
38 > > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/scsi
39 > > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/sbus
40 >
41 >
42 > Ben,
43 >
44 > you're almost there. Get the binary firmware from
45 > ftp://ftp.qlogic.com/outgoing/linux/firmware (just get the .bin files, not
46 > the .bin-version files). There are five or six files altogether. You don't
47 > need all, but they are relatively small so it's no big deal putting all of
48 > them in /lib/firmware.
49 >
50
51 Actually, you can get the firmware by
52 emerge qla-fc-firmware
53 (We have a package for it).
54
55 Also, if you want to try it, you can now use genkernel for building
56 this (although it sounds like you are close enough that you would
57 likely lose time that way). The trick with genkernel is that the
58 stable version probably will not work, but the ~sparc version will
59 (that is, sys-kernel/genkernel-3.4.10_pre7).
60 > Make sure on the initramfs you have /etc/udev/rules.d/ with appropriate rules,
61 > including one to handle firmware loading. Also make sure you have on the
62 > initramfs /lib/udev/firmware.sh. This script is part of udev. Just copy it.
63 >
64
65 Interesting. Does that approach work? (I guess it must because you
66 seem to be using it.) Normally, the qla2xxxx driver loads the firmware
67 (and when you use genkernel, you also build the driver as a module and
68 put the firmware into the initrd). I'm interested to see how this
69 works.
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 > >
84 > > I also did a 'touch' of all the module names in /etc/modules to try to add
85 > > them. But I don't see them getting loaded right.
86 > >
87 > > And created a new initrd via:
88 > >
89 > > find ./ | cpio -Hnewc -o >
90 > > /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio gzip
91 > > initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio
92 > > mv initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio.gz
93 > > initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer
94 > >
95 > > The system boots, and I think it now finds the initrd image - my first
96 > > error was I had 'initrd' instead of 'initramfs' in silo.conf; however, it
97 > > is still not working. It theoretically loads the modules (though I see no
98 > > evidence of the qla2xxx controller being found), starts mdev, and tries to
99 > > mount /dev/sda1 - at which point it can't find /dev/sda1 since the qla2xxx
100 > > controller has not yet been found and initialized, and crashes. Despite the
101 > > message about starting a shell, pressing 'q' or anything else - I can't use
102 > > STOP+A to get back to the PROM, nor can I use CTRL+ALT+DEL to restart the
103 > > system. I have to power-cycle to reboot.
104 > >
105 > > Per #3 - I do seem to have CONFIG_PROM_CONSOLE enabled. I will try that the
106 > > next time I build the kernel. Thanks for the tip. Right now I just need to
107 > > get the system fully booting. (Then I can rebuild the kernel
108 > > appropriately.)
109 > >
110 > > Thanks!
111 > >
112 > > Ben
113 > >
114 > > ----- Original Message ----
115 > > From: brant williams <brant@×××××.net>
116 > > To: gentoo-sparc@l.g.o
117 > > Sent: Thursday, March 27, 2008 3:32:09 PM
118 > > Subject: Re: [gentoo-sparc] Booting the system...
119 > >
120 > >
121 > > Hi Ben,
122 > >
123 > > Good about #1. There's actually a lot of good information on the www
124 > > about OpenBoot.
125 > >
126 > > As for #2, what does your silo.conf look like? In my experience <which
127 > > doesn't involve genkernel>, an initrd isn't required. Can you boot the
128 > > box from the install disc and check out the current kernel config? I'd
129 > > say disable initrd and any references to it (and make sure that you're not
130 > > loading disk controllers as modules), and then make sure silo.conf isn't
131 > > trying to boot from one.
132 > >
133 > > For #3, are you using the PROM framebuffer as well as the ATI (aty) one?
134 > > Maybe toggling the PROM framebuffer console is the solution...
135 > >
136 > > Here's the relevant snippet from my Ultra 10's kernel config; hope that
137 > > helps a little:
138 > >
139 > > #
140 > > # Console display driver support
141 > > #
142 > > # CONFIG_PROM_CONSOLE is not set
143 > > CONFIG_DUMMY_CONSOLE=y
144 > > CONFIG_FRAMEBUFFER_CONSOLE=y
145 > > # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
146 > > CONFIG_FONTS=y
147 > > # CONFIG_FONT_8x8 is not set
148 > > # CONFIG_FONT_8x16 is not set
149 > > # CONFIG_FONT_6x11 is not set
150 > > # CONFIG_FONT_7x14 is not set
151 > > # CONFIG_FONT_PEARL_8x8 is not set
152 > > # CONFIG_FONT_ACORN_8x8 is not set
153 > > CONFIG_FONT_SUN8x16=y
154 > > # CONFIG_FONT_SUN12x22 is not set
155 > > # CONFIG_FONT_10x18 is not set
156 > > CONFIG_LOGO=y
157 > > # CONFIG_LOGO_LINUX_MONO is not set
158 > > # CONFIG_LOGO_LINUX_VGA16 is not set
159 > > # CONFIG_LOGO_LINUX_CLUT224 is not set
160 > > CONFIG_LOGO_SUN_CLUT224=y
161 > > # CONFIG_FB_SPLASH is not set
162 > >
163 > >
164 > > brant williams
165 > > FCAA CDCA 20BC 3925 D634 F5C4 7420 6784 4DEB 6002
166 > >
167 > > On Wed, 26 Mar 2008, BRM wrote:
168 > > > Date: Wed, 26 Mar 2008 14:39:09 -0700 (PDT)
169 > > > From: BRM <bm_witness@×××××.com>
170 > > > Reply-To: gentoo-sparc@l.g.o
171 > > > To: gentoo-sparc@l.g.o
172 > > > Subject: Re: [gentoo-sparc] Booting the system...
173 > > >
174 > > > Figured it out. I could have either adjusted the NVRAM setting for the
175 > > > 'disk' or move the Hard drive to the other slot (which is what I did).
176 > > >
177 > > > Still running into problems with the boot process though - this solves
178 > > > #1. However, #2 is still a big issue. It doesn't seem to be finding a
179 > > > valid initrd image. Shouldn't genkernel have built a valid one to
180 > > > install?
181 > > >
182 > > > TIA,
183 > > >
184 > > > Ben
185 > > >
186 > > > ----- Original Message ----
187 > > > From: Benjamen R. Meyer <bm_witness@×××××.com>
188 > > > To: gentoo-sparc@l.g.o
189 > > > Sent: Monday, March 24, 2008 3:57:19 PM
190 > > > Subject: [gentoo-sparc] Booting the system...
191 > > >
192 > > > I got the system installed, and everything seems to be okay with three
193 > > > exceptions:
194 > > >
195 > > > 1) I have to run "boot disk1:1" at the PROM prompt to get the system to
196 > > > boot. I assume I can set that into the PROM, just like I set the cdrom
197 > > > to be what is boot, no? If not, how do I resolve that? FYI - In case it
198 > > > matters, I did accidentally delete the #3 partition during the
199 > > > partitioning, but recreated it using the 's' command in fdisk.
200 > > >
201 > > > 2) Just before #3 happens, I notice a message from the kernel stating it
202 > > > can't find the initrd image located in /boot - generated by genkernel. I
203 > > > didn't setup a _separate_ boot partition, but that shouldn't be an issue
204 > > > for SILO should it?
205 > > >
206 > > > 3) The system loads the kernel, which runs a little, then switches vid
207 > > > modes and blanks - it doesn't return to the screen like the 2007.0 2617
208 > > > does when the atyfb is not disabled, it just blanks, and dies per #2.
209 > > > Using 'video=atyfb:off' resolves this and reveals the messages. I'd
210 > > > really like to be able to not have to use 'atyfb:off' as it really hurts
211 > > > the eyes the way it reprints the screen all the time for the littlest
212 > > > line movement. Any recommendations? (I could live with it if I
213 > > > absolutely had to.)
214 > > >
215 > > > FYI - after #3 the system completely hangs, and despite the message
216 > > > about STOP+A, it doesn't work until I completely cycle the power the
217 > > > system - no return to the PROM; the soft-power button _does_ work for
218 > > > this.
219 > > >
220 > > > TIA,
221 > > >
222 > > > Ben
223 > > >
224 > > > --
225 > > > gentoo-sparc@l.g.o mailing list
226 > > >
227 > > >
228 > > >
229 > > >
230 > > > --
231 > > > gentoo-sparc@l.g.o mailing list
232 > >
233 > > --
234 > > gentoo-sparc@l.g.o mailing list
235 >
236 > --
237 > gentoo-sparc@l.g.o mailing list
238 >
239
240 Regards,
241 - --
242 Ferris McCormick (P44646, MI) <fmccor@g.o>
243 Developer, Gentoo Linux (Sparc, Devrel, Userrel, Trustees)
244 -----BEGIN PGP SIGNATURE-----
245 Version: GnuPG v2.0.7 (GNU/Linux)
246
247 iD8DBQFH7ChYQa6M3+I///cRAnXXAJ9rzc3BfqYSFjKtp95sXLUOwiGiZgCg0FU+
248 xlJMWWxJSFZRfOFiMYX/xgg=
249 =iW0i
250 -----END PGP SIGNATURE-----

Replies

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