tring tring – research log

research log

Posts Tagged ‘wifi-driver project

building a specific module

without comments

To build say the rt73usb.ko module without building the whole linux kernel you just need to do the following:
My build is in “build/” folder.
$ make O=build/ drivers/net/wireless/rt2x00/
This will build the modules
After this then first remove the module by doing
$ sudo rmmod rt73usb.ko
and then
$ sudo insmod rt73usb.ko
Then use
$ dmesg
to check if your module gave any messages.

Written by tringer

February 9, 2009 at 1:58 pm

Posted in Uncategorized

Tagged with

Kernel Panic…VFS:Unable to mount root fs on unknown block…

without comments

Recently I was trying to install a linux kernel on a Compaq N800W. After I built the kernel I would always get the error kernel panic error. I found my answer on page 59 in here.

The full book is here.

I feel the main problem was that “ata_piix” was built as a plugin module instead of being built into the kernel. When I explicitly required “ata_piix” in the config file, then the kernel panic went away.

From the book but I want this as quick reference.

How to find out the Disk Controller:

$ tree -d /sys/block | egrep “hd|sd”

$ ls -l /sys/block/sda

device -> /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0

$ ls -l /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0

device -> ../../../../../../bus/scsi/drivers/sd

Notice here that the SCSI disk controller is responsible for making this device work.

Continuing up …

Written by tringer

February 7, 2009 at 8:30 am

Start of a project.

without comments

Just wanted to put up a note that I am starting on a project in an area that I have always wanted to explore. Device Drivers in Linux systems. I just started work on a project that works with wifi cards to find the distance between two wifi cards. Currently I am trying to setup an environment so I can hack with ease. I am setting up Gentoo!! Previously I have setup FreeBSD on a few machines, and the process for setting up Gentoo seems very similar. The help for both systems is great!!!!  Okay, I will come back and write more once I am done setting up Gentoo.

Written by tringer

December 21, 2007 at 12:33 pm

Posted in Uncategorized

Tagged with