Gentoo Archives: gentoo-sparc

From: jim@××××××××××××.au
To: gentoo-sparc@l.g.o
Subject: Re: [gentoo-sparc] Kernel 2.6.x config for SUN Blade 100
Date: Thu, 27 Oct 2005 21:05:39
Message-Id: 1130446464.43613e80e70a2@webmail.netspeed.com.au
In Reply to: Re: [gentoo-sparc] Kernel 2.6.x config for SUN Blade 100 by freshy98
1 Quoting freshy98 <freshy98@×××.net>:
2 > I already got 2.6.13.4 emerged (vanilla-sources) so I will work on i
3 > tomorrow evening.
4
5 This is about building a kernel for sunblade 100 but remember I am not on
6 gentoo, and am building upstream sources.
7
8 Maybe your build system takes care of all this stuff for you?
9
10 The main thing is that a .config is not needed, as it is generated from the
11 supplied sources and adapts itself to the build platform. It is OK for sunblade
12 100 "out of the box" subject to the following changes. Following updates and
13 corrects previous posts done from memory
14
15 In the end I got 2 errors.
16
17 drivers/sbus/char/envctrl.c:41: error: static declaration of 'errno'
18 follows non-static declaration
19 include/linux/unistd.h:4: error: previous declaration of 'errno' was here
20
21 and the "patch" actually just edit the file to remove that line:
22
23 drivers/sbus/char/envctrl.c
24 -static int errno;
25 +//static int errno;
26
27 Did same for drivers/sbus/char/bbc_envctrl.c
28
29 That is quite useless except to quickly continue the building. The end result is
30 a warning about those two modules during make modules_install.
31
32 WARNING: /lib/modules/2.6.13.4/kernel/drivers/sbus/char/envctrl.ko needs unknow
33 n symbol errno
34 WARNING: /lib/modules/2.6.13.4/kernel/drivers/sbus/char/bbc.ko needs unknown sy
35 mbol errno
36
37 I will look for a bug upstream and file one if needed, meanwhile maybe it is
38 better for you to configure to avoid building those modules. Or maybe gentoo
39 handles this for you already.
40
41 If you have to do this next step make sure you do not overwrite anything!
42 make install did not work. I just renamed them vmlinux-2.6.13.4 and
43 System.map-2.6.13.4 and copied .config to config-2.6.13.4 and then copied those
44 into /boot.
45
46 and ran yaird from /boot
47 yaird --verbose --output=/boot/initrd.img-2.6.13.4 2.6.13.4
48
49 the i edit /boot/silo.conf by adding
50 image=/vmlinux-2.6.13.4
51 label=mylinux
52 initrd=/initrd.img-2.6.13.4
53
54 jim
55
56 --
57 gentoo-sparc@g.o mailing list

Replies