Gentoo Archives: gentoo-sparc

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

Replies

Subject Author
Re: [gentoo-sparc] Booting the system... Ferris McCormick <fmccor@g.o>