1 |
Here's my silo.conf: |
2 |
|
3 |
# Example of how can be silo.conf set up |
4 |
partition = 1 |
5 |
root = /dev/sda1 |
6 |
timeout = 300 |
7 |
|
8 |
default = Linux |
9 |
|
10 |
image = /boot/kernel-genkernel-sparc64-2.6.24-gentoo-r3 |
11 |
initrd = /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer |
12 |
label = Linux2624gr3 |
13 |
alias = Linux |
14 |
append = "video=atyfb:off real_root=/dev/sda1" |
15 |
|
16 |
|
17 |
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: |
18 |
|
19 |
zcat -d ../initramfs-genkernel-sparc64-2.6.24-gentoo-r3 > initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file |
20 |
cpio -i -d -H newc --no-absolute-filenames < ./initramfs-genkernel-sparc64-2.6.24-gentoo-r3.file |
21 |
|
22 |
I then added the following directories: |
23 |
/lib/firmware |
24 |
/lib/modules/2.6.24-gentoo-r3/kernel/drivers/base |
25 |
/lib/modules/2.6.24-gentoo-r3/kernel/drivers/scsi |
26 |
/lib/modules/2.6.24-gentoo-r3/kernel/drivers/sbus |
27 |
|
28 |
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. |
29 |
|
30 |
And created a new initrd via: |
31 |
|
32 |
find ./ | cpio -Hnewc -o > /boot/initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio |
33 |
gzip initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio |
34 |
mv initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer.cpio.gz initramfs-genkernel-sparc64-2.6.24-gentoo-r3.bmeyer |
35 |
|
36 |
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. |
37 |
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. |
38 |
|
39 |
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.) |
40 |
|
41 |
Thanks! |
42 |
|
43 |
Ben |
44 |
|
45 |
----- Original Message ---- |
46 |
From: brant williams <brant@×××××.net> |
47 |
To: gentoo-sparc@l.g.o |
48 |
Sent: Thursday, March 27, 2008 3:32:09 PM |
49 |
Subject: Re: [gentoo-sparc] Booting the system... |
50 |
|
51 |
-----BEGIN PGP SIGNED MESSAGE----- |
52 |
Hash: SHA256 |
53 |
|
54 |
|
55 |
Hi Ben, |
56 |
|
57 |
Good about #1. There's actually a lot of good information on the www |
58 |
about OpenBoot. |
59 |
|
60 |
As for #2, what does your silo.conf look like? In my experience <which |
61 |
doesn't involve genkernel>, an initrd isn't required. Can you boot the |
62 |
box from the install disc and check out the current kernel config? I'd |
63 |
say disable initrd and any references to it (and make sure that you're not |
64 |
loading disk controllers as modules), and then make sure silo.conf isn't |
65 |
trying to boot from one. |
66 |
|
67 |
For #3, are you using the PROM framebuffer as well as the ATI (aty) one? |
68 |
Maybe toggling the PROM framebuffer console is the solution... |
69 |
|
70 |
Here's the relevant snippet from my Ultra 10's kernel config; hope that |
71 |
helps a little: |
72 |
|
73 |
# |
74 |
# Console display driver support |
75 |
# |
76 |
# CONFIG_PROM_CONSOLE is not set |
77 |
CONFIG_DUMMY_CONSOLE=y |
78 |
CONFIG_FRAMEBUFFER_CONSOLE=y |
79 |
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set |
80 |
CONFIG_FONTS=y |
81 |
# CONFIG_FONT_8x8 is not set |
82 |
# CONFIG_FONT_8x16 is not set |
83 |
# CONFIG_FONT_6x11 is not set |
84 |
# CONFIG_FONT_7x14 is not set |
85 |
# CONFIG_FONT_PEARL_8x8 is not set |
86 |
# CONFIG_FONT_ACORN_8x8 is not set |
87 |
CONFIG_FONT_SUN8x16=y |
88 |
# CONFIG_FONT_SUN12x22 is not set |
89 |
# CONFIG_FONT_10x18 is not set |
90 |
CONFIG_LOGO=y |
91 |
# CONFIG_LOGO_LINUX_MONO is not set |
92 |
# CONFIG_LOGO_LINUX_VGA16 is not set |
93 |
# CONFIG_LOGO_LINUX_CLUT224 is not set |
94 |
CONFIG_LOGO_SUN_CLUT224=y |
95 |
# CONFIG_FB_SPLASH is not set |
96 |
|
97 |
|
98 |
brant williams |
99 |
FCAA CDCA 20BC 3925 D634 F5C4 7420 6784 4DEB 6002 |
100 |
|
101 |
|
102 |
|
103 |
On Wed, 26 Mar 2008, BRM wrote: |
104 |
|
105 |
> Date: Wed, 26 Mar 2008 14:39:09 -0700 (PDT) |
106 |
> From: BRM <bm_witness@×××××.com> |
107 |
> Reply-To: gentoo-sparc@l.g.o |
108 |
> To: gentoo-sparc@l.g.o |
109 |
> Subject: Re: [gentoo-sparc] Booting the system... |
110 |
> |
111 |
> 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). |
112 |
> |
113 |
> 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? |
114 |
> |
115 |
> TIA, |
116 |
> |
117 |
> Ben |
118 |
> |
119 |
> ----- Original Message ---- |
120 |
> From: Benjamen R. Meyer <bm_witness@×××××.com> |
121 |
> To: gentoo-sparc@l.g.o |
122 |
> Sent: Monday, March 24, 2008 3:57:19 PM |
123 |
> Subject: [gentoo-sparc] Booting the system... |
124 |
> |
125 |
> I got the system installed, and everything seems to be okay with three |
126 |
> exceptions: |
127 |
> |
128 |
> 1) I have to run "boot disk1:1" at the PROM prompt to get the system to |
129 |
> boot. I assume I can set that into the PROM, just like I set the cdrom |
130 |
> to be what is boot, no? If not, how do I resolve that? FYI - In case it |
131 |
> matters, I did accidentally delete the #3 partition during the |
132 |
> partitioning, but recreated it using the 's' command in fdisk. |
133 |
> |
134 |
> 2) Just before #3 happens, I notice a message from the kernel stating it |
135 |
> can't find the initrd image located in /boot - generated by genkernel. I |
136 |
> didn't setup a _separate_ boot partition, but that shouldn't be an issue |
137 |
> for SILO should it? |
138 |
> |
139 |
> 3) The system loads the kernel, which runs a little, then switches vid |
140 |
> modes and blanks - it doesn't return to the screen like the 2007.0 2617 |
141 |
> does when the atyfb is not disabled, it just blanks, and dies per #2. |
142 |
> Using 'video=atyfb:off' resolves this and reveals the messages. I'd |
143 |
> really like to be able to not have to use 'atyfb:off' as it really hurts |
144 |
> the eyes the way it reprints the screen all the time for the littlest |
145 |
> line movement. Any recommendations? (I could live with it if I |
146 |
> absolutely had to.) |
147 |
> |
148 |
> FYI - after #3 the system completely hangs, and despite the message |
149 |
> about STOP+A, it doesn't work until I completely cycle the power the |
150 |
> system - no return to the PROM; the soft-power button _does_ work for this. |
151 |
> |
152 |
> TIA, |
153 |
> |
154 |
> Ben |
155 |
> |
156 |
> -- |
157 |
> gentoo-sparc@l.g.o mailing list |
158 |
> |
159 |
> |
160 |
> |
161 |
> |
162 |
> -- |
163 |
> gentoo-sparc@l.g.o mailing list |
164 |
> |
165 |
> |
166 |
-----BEGIN PGP SIGNATURE----- |
167 |
Version: GnuPG v2.0.7 (GNU/Linux) |
168 |
|
169 |
iD8DBQFH6/Y9dCBnhE3rYAIRCHb4AJ0R59FLMqqMNCgr9jHnUXpdj6jyjACglKgx |
170 |
kG1hd6G1qG94l0M+Oynru4c= |
171 |
=sL1p |
172 |
-----END PGP SIGNATURE----- |
173 |
-- |
174 |
gentoo-sparc@l.g.o mailing list |
175 |
|
176 |
|
177 |
|
178 |
|
179 |
-- |
180 |
gentoo-sparc@l.g.o mailing list |