> Rajesh Sharma wrote:
> mot's only

Deeply offended.

> i need some help form u ( if possible)

Good piece of sarcasm :-D

> well i will describe what the problem is..

Yes. Good idea.

> see i have a os which doesnot support usb so i have to write a device
> driver for that...

Good. To salon ne tere ko bhi coding pakda di? Good. I am doing the same
here.. waise abhi to C/Linux par hi kaam hain poori tarah se.
HP-UX se peechha chhoot gaya. PEACE. Sala ahut pain marta tha.

> the basically mein kernl ko yeh kaisey batoon ki ek aur hardware
> uussey connect hai.........

Abbe depends on the kernel na be? Which O/S have you got?
MS/DOS? Pc-DOS? DRDOS? Unix? Solaris? Linux? WinNT4? Win2000? 
Solaris? Kaka-VSAM? O lal dupatte wali tera naam to bata?

> like what should be my approach for it. and how to go about
> it....

Simple. Take the kernel and plug the device in. Ho gaya.

> right now i have kernel source code for  linux and i m unable to
> tell my kernel ki yeh hardware bhi  connect hai....

Please tell the kernel number. Is it a 2.odd-number.N kernel 
[experimental kernels which are meant for Gods to be 
tweaking around with]. These kernel are not to be used
on a production system. If you are using something like source 
for 2.2.13 or so, then you are in good hands. [this particular
kernel is with me and running fine, so you know that you are
with a stable kernel.]

Step-1 Downloading the kernel source and modules

Do this, run a search on http://www.google.com/ for the following
words in the search field.

latest kernel source stable download

If you do not get what you want, you might want to strip the words
from the search to make it broader. Start deleting words from the 
right side of the search keywords. You will have more returns.

Step-2

After you have done the download for kernel [choose the following 
format - tar.gz for Linux while downloading], also look on 
the same site for downloada or modules. It all combined may be one
big single download, which you will have to bear with, buddy. total
download size may be anything upto 40 MB and a kernel thus built will
support EVERY industry standard device and filesystem in the world.
After you have downloaded the source for kernel and the modules,
take a deep breath. Copy everything on your running Linux machine's
hard disk. Say in 

/usr/src/linux

and keep it there.

Step-3 Locating online help on your machine.

Login on your linux machine. 
Become root.
[Assuming that you have Red-Hat or SuSE Linux version 6.0+]
At the login prompt, type this and press enter.

updatedb; logout

Now login as a general user and type
locate Kernel-HOWTO. [case sensitive]

It will tell you the location of documentation where you have some
straight help for Installing and compiling Linux kernels. Anyway,
I am trying my best.

Step-4 Compying kernel files to the right path

Now, after reading your help, you will surely know that you
are supposed to copy everything, the tar etc in 

/usr/src/linux

Step-5 Unpacking the tar archieve.

Do a 

tar -xvf kernel-file-name.tar.gz

Step-5 Making the kernel configuration utility.

Execute the following commands as root, one by one.

make clean
make mrproper
make menuconfig

Step-6 Choosing the support

Make menuconfig will launch a menu before you and you can go
on making your choices for every nook and corner of features
available in the kernel source. There are some 800 options in
all, most of which you will never have to bother with. when
it comes to device support. Choose 'yes' to install this
as built-in-kernel-support, rather than a module. Modules 
may not detect the hardware at the startup. Better to build 
support in kernel.

[You have three options 'NO' meaning no support in kernel
'YES' meaning inherent support and 'M" meaning to build a
module which is loadable on demand. You choose 'Y']

Step-6. Compiling kernel.

type on the prompt.

make zImage     [If you get a warning at the end, saying that the 
                kernel is too big, then do a 'make bzImage' instead]

Step-7  Installing modules.

make modules
make modules_install

Step-8  Copy the kernel file [bzImage or zImage whatever it is] to
        boot directory

cp zImage/bzImage /boot

Step Editing the o/s loader configuration file to boot the new kernel.
One part of your /etc/lilo.conf file currently looks like this...
-------
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.5-15
        label=linux
        root=/dev/hda5
        read-only
--------------------
Add the following two lines to it by editing the file in 
vi/pico/emacs..
----------------------
image=/boot/bzImage
        label=usb
        root=/dev/hda5
        read-only
-------------------------

Step-9 Installing  the new boot loading process data

As root, do this..

/sbin/lilo -v

------------------------

Reboot the machine. To run the machine with USB support,
enter usb at LILO boot:

All the best,

Rohit

PS - I have given you all the help that could be given. Any
     other problems you should be able to handle yourself.
PPS - If you can get your hands on complete set of SuSE Linux
      6.3, then they definitely have a kernel already with
        USB support. You could install that verson of Linux.

-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to