Hi,
My existing kernel is very 2.2 something and wish to upgrade it. I've got a kernel linux-2.4.1.tar.bz2 from pcq Mar 01. Is it a reliable version. How do i untar it.
Noel
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
On Tue, 26 Jun 2001, noel seq wrote:
I've got a kernel linux-2.4.1.tar.bz2 from pcq Mar 01. Is it a reliable version. How do i untar it.
It is reliable in most cases, except with some hard drives, dma settings may cause data corruption and loss. You should get the patch to atleat 2.4.2:
% cd /usr/src % [ -L linux ] && rm -f linux % tar Ixvf linux-2.4.1.tar.bz2 (or if you have a newer version of tar, that would be jxvf)
That will untar and uncompress it for you. If you want to know how to patch and compile as well, keep reading.
% mv linux linux-2.4.2 (name it 2.4.2 since we are going to patch it anyway) % ln -s linux-2.4.2 linux
Next, download patch for 2.4.2:
% wget http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.2.bz2 % cd linux % bzcat ../patch-2.4.2.bz2 | patch -p1
This will patch the kernel sources
now you're ready to configure and make:
% make menuconfig % make dep % make bzImage % make modules % make modules_install % depmod -ae 2.4.2 % cp arch/i386/boot/bzImage /boot/bzImage-2.4.2 % cp System.map /boot/System.map-2.4.2 % vi /etc/lilo.conf add new kernel entry % /sbin/lilo % reboot
That should do it for you.
noel seq wrote:
Hi,
My existing kernel is very 2.2 something and wish to upgrade it. I've got a kernel linux-2.4.1.tar.bz2 from pcq Mar 01. Is it a reliable version. How do i untar it.
bunzip2 linux-2.4.1.tar.bz2 | tar -xzvf or bzip2 -d linux-2.4.1.tar.bz2 | tar -xzvf
Regards neo
Hi,
I am using fifo / pipes as a means to communicate between 2 processes under linux.
One is a C program and the other is Java.
The probelm I face is that pipes under linux (and I suppose unix in general ) have a limit like 4k of buffer size.
Is there any other alternative like special device drivers etc that would allow me to create fifos but allow for a larger buffer size ?
I had a look at linux devfs and it seemed to me that something like that may exits that would solve my problem, but I am not sure. (http://www.atnf.csiro.au/~rgooch/linux/docs/devfs.html)
I DONT want to use sockets. They work fine and solve my problem, but I would prefer fifos instead.
Thanks Shahed.
On Wed, 27 Jun 2001, Shahed Ali wrote:
The probelm I face is that pipes under linux (and I suppose unix in general ) have a limit like 4k of buffer size.
Is there any other alternative like special device drivers etc that would allow me to create fifos but allow for a larger buffer size ?
Well, I was going to suggest unix domain sockets, but you specified that you don't want to use sockets. Also, am not sure if java supports PF_UNIX or PF_LOCAL.
I had a look at linux devfs and it seemed to me that something like that may exits that would solve my problem, but I am not sure.
devfs still has several problems that I haven't been able to get around, and haven't found any docs that help (like not loading devices that don't have drivers at boot time).
How about using shared memory? linux 2.4 uses the tmpfs mounted on /dev/shm for shared memory. I've never used it myself, but I think you could give it a try and tell us what you've found.
Philip
--- Philip S Tellis philip.tellis@iname.com wrote:
On Wed, 27 Jun 2001, Shahed Ali wrote:
How about using shared memory? linux 2.4 uses the tmpfs mounted on /dev/shm for shared memory. I've never used it myself, but I think you could give it a try and tell us what you've found.
mmap()?
Krishnan
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Thanks for the suggestions, but I dont think I can use shared memory either as I would be unable to read it from java without using JNI :-( which again I dont want to use.
Thanks Shahed
bunzip2 linux-2.4.1.tar.bz2 | tar -xzvf or bzip2 -d linux-2.4.1.tar.bz2 | tar -xzvf
or tar -Ixvf linux-2.4.1.tar.bz2
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA pablo@math.tifr.res.in http://www.math.tifr.res.in/~pablo/ Key fingerprint = 1A 7C 0A 22 5A 75 A4 78 62 6F 64 09 C1 A0 F7 E6 ----------------------------------------------------------------------