[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Building kernel on one machine, using on another.




>  Hey again,
> 
>  I've just been looking at Freshmeat at all these mini-distros, and I
> see that they come with zImages/bzImages already built, but suggestions
> that you could always build a new one on another machine.
> 

What sort of mini-distro's? Are we talking single floppy dists, or more like 
5/10MB dists? Here's how I build & install kernels for other machines (eg, my 
laptop running a totally stripped down SuSE 6.2 in 10MB disk space):

>  Question is how?
> 

Configure and build the kernel in the normal way, using 'make bzImage' or 
'make zImage' rather than the make zlilo rules - this will keep the kernel in 
the source tree rather than throwing it and overwriting the kernel you have 
in /boot (or wherever).

Once built,
	cd arch/i386/boot
	tar cvf /dev/fd0 bzImage	(or zImage)
This will copy bzImage onto floppy.

Take floppy out, and stick into laptop/other machine:
	cd /tmp
	tar xvf /dev/fd0
	cd /boot
	mv bzImage bzImage.old
	mv /tmp/bzImage .
	lilo

Job done :) Though /usr/src/linux/System.map on the build machine should also 
be copied and placed into /boot on the laptop/other machine.

>  When I do eventually get noodles (a P75) back up and running, I'll be
> wanting to build a new kernel on flux (a dual PII) rather than wait ages
> for it to finish on noodles.
> 
>  Also, if I was to set noodles up as a router/firewall where do I put
> DNS, and how do I ensure qmail, running on flux, behind the firewall
> still functions, along with outgoing ftp, ssh and any other connection I
> need to make?
> 

Doesn't matter :) I'd probably have the firewall running the name server, but 
its not essential. How do you ensure everything still works afterwards? Get 
the firewall rules right :-) I have a firewall script hiding on 
http://www.nccnet.co.uk/~sixie/linux/ if that is (or isn't) of any help. :)

Chris...


-- 
@}-,'--------------------------------------------------  Chris Johnson --'-{ [at] 
    / "(it is) crucial that we learn the difference / sixie [at] nccnet.co.uk  \
   / between Sex and Gender. Therein lies the key  /                       \ 
  / to our freedom" -- LB                         / www.nccnet.co.uk/~sixie \ 


---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.