Recompile problem (18 steps to compiling the kernel)

Jamie Maynard mol-general@lists.maconlinux.org
Fri, 04 Oct 2002 01:42:26 +0200


Hmm... Good question,  I think you need to make oldconfig rather than making
config.  Also I don't use make bzimage but rather make vmlinux which has
always proved reliable.

So for me to compile a kernel I do the following:

1) Download Kernel Source (downloaded file)

2) move <downloaded file> to /usr/src

3) de-compress it using tar -jxvf <downloaded file>

4) remove /usr/src/linux and point it at the new directory

5) go in to /usr/src/linux

6) make clean

7) make menuconfig

8) set up the kernel, strip un-needed stuff, add non-standard stuff.

9) exit menuconfig

10) make dep

11) make vmlinux

12) make modules

13) make modules_install

14) copy new System.map and vmlinux files to boot

15) add new yaboot.conf entry

16) run ybin to update the bootloader

17) Reboot.

18) Select new Kernel in yaboot menu and start linux and hope the kernel
compiled well (which in this case for me it did).

On 4/10/02 12:26 am, "sanjuanio@mac.com" <sanjuanio@mac.com> wrote:

> Thanks for the updated kernel Jamie.
> 
> 1) I downloaded it.
> 
> 2) Created a new directory called /usr/src/downloaded kernel
> 
> 3) Moved downloaded kernel in bz2 form to /usr/src/downloaded kernel and
> then bunzipped and untarred it.
> 
> 4) Removed the symbolic link in /usr/src/linux that pointed to
> /usr/src/linux-2.4.19 and replaced it with a symbolic link to
> /usr/src/downloaded kernel
> 
> 5) Ran make config. went well.
> 
> 6) Ran make dep. no problems.
> 
> 7) Ran make clean.
> 
> 8) Tried to run make bzimage and received the following error messages:
> _  _ _ _ _ _ _ _ _ _ _ _ _ _  _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _ _ _ _ _ _ _ _ _ _ _ _ _
> Error: Internal Assembler error for instruction [ranging from bdnzlr-
> all the way to bfctrl+]
> 
> Internal error, aborting at ./config/tc-ppc.c line 1217 in md_begin
> 
> Please report this bug.
> 
> init main.c: In function 'debug-kernel':
> init main.c: 207: Internal compiler error
> init main.c: 207: output pipe has been closed
> 
> make: *** [init/main.o] Error 1
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _ _ _ _ _ _ _ _ _ _ _ _ _ _
> 
> Where do I go from here?
> 
> Thanks
>