trouble building USB driver - iplc

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|

trouble building USB driver - iplc

Tom-75
I have the USB Insteon as well as the CM15A.
I'm trying to get either of them working (the Insteon would be
preferred), but I'm having trouble with the first step which is building
the driver.
(iplc driver for USB.)

I'm running CentOS release 4.2 (Final) with Kernel 2.6.9-22.0.2.EL

I'm pretty sure I've compiled packages on this machine since I've
rebuilt it so everything should be in order.

When I run    ---   make
I get the following:
make -C /lib/modules/2.6.9-22.0.2.EL/build  
SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
make: *** /lib/modules/2.6.9-22.0.2.EL/build: No such file or
directory.  Stop.
make: *** [default] Error 2

The build directory didn't exist so I created a build directory and
changed the Makefile KDIR line to KDIR :=
/install/insteon/iplc/driver/linux-2.6/build

Now I get the following:
make -C /install/insteon/iplc/driver/linux-2.6/build
SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
make[1]: Entering directory `/install/insteon/iplc/driver/linux-2.6/build'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/install/insteon/iplc/driver/linux-2.6/build'
make: *** [default] Error 2

Am I missing a package for this to happen? or is it something else?

thanks,
tom




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

Neil Cherry
Tom wrote:
> I have the USB Insteon as well as the CM15A.
> I'm trying to get either of them working (the Insteon would be
> preferred), but I'm having trouble with the first step which is building
> the driver.
> (iplc driver for USB.)

Once you get the compile going the CM15A will be the easier to send
X10 commands as I haven't written a iplcu interface yet. I have
written the iplcs (Serial) interface.

> I'm running CentOS release 4.2 (Final) with Kernel 2.6.9-22.0.2.EL
>
> I'm pretty sure I've compiled packages on this machine since I've
> rebuilt it so everything should be in order.
>
> When I run    ---   make
> I get the following:
> make -C /lib/modules/2.6.9-22.0.2.EL/build  
> SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
> make: *** /lib/modules/2.6.9-22.0.2.EL/build: No such file or
> directory.  Stop.
> make: *** [default] Error 2
>
> The build directory didn't exist so I created a build directory and
> changed the Makefile KDIR line to KDIR :=
> /install/insteon/iplc/driver/linux-2.6/build
>
> Now I get the following:
> make -C /install/insteon/iplc/driver/linux-2.6/build
> SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
> make[1]: Entering directory `/install/insteon/iplc/driver/linux-2.6/build'
> make[1]: *** No rule to make target `modules'.  Stop.
> make[1]: Leaving directory `/install/insteon/iplc/driver/linux-2.6/build'
> make: *** [default] Error 2
>
> Am I missing a package for this to happen? or is it something else?

Well you're going to run into several problems. The first is that
it looks like you may need to have the kernel sources installed
(kernel-devel). I just did a check on my setup and it looks like
this:

$ ls -l /lib/modules/2.6.11-1.1369_FC4/
total 1064
drwxr-xr-x   3 root root   4096 Nov 18 11:22 ./
drwxr-xr-x   7 root root   4096 Jan  8 18:35 ../
lrwxrwxrwx   1 root root     47 Nov 18 07:06 build ->
../../../usr/src/kernels/2.6.11-1.1369_FC4-i686/
drwxr-xr-x  10 root root   4096 Nov 18 11:19 kernel/
-rw-r--r--   1 root root 194071 Nov 18 11:22 modules.alias
-rw-r--r--   1 root root     69 Nov 18 11:22 modules.ccwmap
-rw-r--r--   1 root root 234786 Nov 18 11:22 modules.dep
-rw-r--r--   1 root root    813 Nov 18 11:22 modules.ieee1394map
-rw-r--r--   1 root root    357 Nov 18 11:22 modules.inputmap
-rw-r--r--   1 root root  16284 Nov 18 11:22 modules.isapnpmap
-rw-r--r--   1 root root 168631 Nov 18 11:22 modules.pcimap
-rw-r--r--   1 root root  90958 Nov 18 11:22 modules.symbols
-rw-r--r--   1 root root 267888 Nov 18 11:22 modules.usbmap
lrwxrwxrwx   1 root root      5 Nov 18 07:06 source -> build/

Under /usr/src/kernels/2.6.11-1.1369_FC4-i686/

$ ls -l /usr/src/kernels/2.6.11-1.1369_FC4-i686/
total 464
drwxr-xr-x  17 root root   4096 Nov 18 10:58 ./
drwxr-xr-x   9 root root   4096 Jan 15 19:34 ../
-rw-r--r--   1 root root  56991 Jun  2  2005 .config
-rw-r--r--   1 root root  44217 Jun  2  2005 Makefile
-rw-r--r--   1 root root 211444 Jun  2  2005 Module.symvers
drwxr-xr-x  26 root root   4096 Nov 18 10:57 arch/
drwxr-xr-x   4 root root   4096 Nov 18 10:57 crypto/
drwxr-xr-x  50 root root   4096 Nov 18 10:57 drivers/
drwxr-xr-x  54 root root   4096 Nov 18 10:57 fs/
drwxr-xr-x  16 root root   4096 Nov 18 10:58 include/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 init/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 ipc/
drwxr-xr-x   4 root root   4096 Nov 18 10:58 kernel/
drwxr-xr-x   5 root root   4096 Nov 18 10:58 lib/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 mm/
drwxr-xr-x  33 root root   4096 Nov 18 10:58 net/
drwxr-xr-x  10 root root   4096 Nov 18 10:58 scripts/
drwxr-xr-x   4 root root   4096 Nov 18 10:58 security/
drwxr-xr-x  16 root root   4096 Nov 18 10:58 sound/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 usr/

Kernel builds are one area where I've been running into a whole
lot of trouble. To build and install a kernel under Fedora
requires 1.5G of disk space, several hours of compile and
a boat load of commands. I thought I had the last part correct
but I've run into problems.

First thing to do is to find out how to build the kernel for
CentOS. I'd be interested in hearing about your en devour.

The instructions I have are:

rpmbuild --recompile -bp --target i686 kernel-2.6.14-1.1656_FC4.src.rpm

or

$ wget
ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.12-1.1390_FC4.src.rpm
$ emacs ~/.rpmmacros
$ rpm -ihv ~/kernel-2.6.12-1.1390_FC4.src.rpm
$ cd redhat/SPECS/
$ rpmbuild -bp --target=i686 kernel-2.6.spec
$ cd ../BUILD/kernel-2.6.12/linux-2.6.12/
$ make xconfig # make oldconfig ???
$ make rpm
$ cd /usr/src/redhat/RPMS/i386/
$ rpm -ivh kernel-2.6.12njc-1.i386.rpm
$ cd /boot
$ mkinitrd initrd-2.6.12-njc.img 2.6.12-njc
$ cd grub/

The reason I cd to grub is to make sure that the grub.conf file is
still in tact.

Good luck!
--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

Tom-75
How do I know (besides running the sample perl code) if everything went
well? The driver build, kernel rebuild etc?
Would output from dmesg show something?

This is my current output:
[root@localhost ~]# dmesg | grep USB    
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:14.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
usb 1-1: new low speed USB device using address 2
usb 1-2: new low speed USB device using address 3
hiddev96: USB HID v1.00 Device [SmartHome SmartHome PowerLinc USB E] on
usb-0000:00:14.2-2

I have both a CM15a and the Insteon connected but I attempted to build
the USB driver for the CM15a.

Once I've know if I was successful, I'll post the steps I used to get it
working with CentOS.

thanks,
tom

> Tom wrote:
>
>> I have the USB Insteon as well as the CM15A.
>> I'm trying to get either of them working (the Insteon would be
>> preferred), but I'm having trouble with the first step which is
>> building the driver.
>> (iplc driver for USB.)
>
>
> Once you get the compile going the CM15A will be the easier to send
> X10 commands as I haven't written a iplcu interface yet. I have
> written the iplcs (Serial) interface.
>
>> I'm running CentOS release 4.2 (Final) with Kernel 2.6.9-22.0.2.EL
>>
>> I'm pretty sure I've compiled packages on this machine since I've
>> rebuilt it so everything should be in order.
>>
>> When I run    ---   make
>> I get the following:
>> make -C /lib/modules/2.6.9-22.0.2.EL/build  
>> SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
>> make: *** /lib/modules/2.6.9-22.0.2.EL/build: No such file or
>> directory.  Stop.
>> make: *** [default] Error 2
>>
>> The build directory didn't exist so I created a build directory and
>> changed the Makefile KDIR line to KDIR :=
>> /install/insteon/iplc/driver/linux-2.6/build
>>
>> Now I get the following:
>> make -C /install/insteon/iplc/driver/linux-2.6/build
>> SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
>> make[1]: Entering directory
>> `/install/insteon/iplc/driver/linux-2.6/build'
>> make[1]: *** No rule to make target `modules'.  Stop.
>> make[1]: Leaving directory
>> `/install/insteon/iplc/driver/linux-2.6/build'
>> make: *** [default] Error 2
>>
>> Am I missing a package for this to happen? or is it something else?
>
>
> Well you're going to run into several problems. The first is that
> it looks like you may need to have the kernel sources installed
> (kernel-devel). I just did a check on my setup and it looks like
> this:
>
> $ ls -l /lib/modules/2.6.11-1.1369_FC4/
> total 1064
> drwxr-xr-x   3 root root   4096 Nov 18 11:22 ./
> drwxr-xr-x   7 root root   4096 Jan  8 18:35 ../
> lrwxrwxrwx   1 root root     47 Nov 18 07:06 build ->
> ../../../usr/src/kernels/2.6.11-1.1369_FC4-i686/
> drwxr-xr-x  10 root root   4096 Nov 18 11:19 kernel/
> -rw-r--r--   1 root root 194071 Nov 18 11:22 modules.alias
> -rw-r--r--   1 root root     69 Nov 18 11:22 modules.ccwmap
> -rw-r--r--   1 root root 234786 Nov 18 11:22 modules.dep
> -rw-r--r--   1 root root    813 Nov 18 11:22 modules.ieee1394map
> -rw-r--r--   1 root root    357 Nov 18 11:22 modules.inputmap
> -rw-r--r--   1 root root  16284 Nov 18 11:22 modules.isapnpmap
> -rw-r--r--   1 root root 168631 Nov 18 11:22 modules.pcimap
> -rw-r--r--   1 root root  90958 Nov 18 11:22 modules.symbols
> -rw-r--r--   1 root root 267888 Nov 18 11:22 modules.usbmap
> lrwxrwxrwx   1 root root      5 Nov 18 07:06 source -> build/
>
> Under /usr/src/kernels/2.6.11-1.1369_FC4-i686/
>
> $ ls -l /usr/src/kernels/2.6.11-1.1369_FC4-i686/
> total 464
> drwxr-xr-x  17 root root   4096 Nov 18 10:58 ./
> drwxr-xr-x   9 root root   4096 Jan 15 19:34 ../
> -rw-r--r--   1 root root  56991 Jun  2  2005 .config
> -rw-r--r--   1 root root  44217 Jun  2  2005 Makefile
> -rw-r--r--   1 root root 211444 Jun  2  2005 Module.symvers
> drwxr-xr-x  26 root root   4096 Nov 18 10:57 arch/
> drwxr-xr-x   4 root root   4096 Nov 18 10:57 crypto/
> drwxr-xr-x  50 root root   4096 Nov 18 10:57 drivers/
> drwxr-xr-x  54 root root   4096 Nov 18 10:57 fs/
> drwxr-xr-x  16 root root   4096 Nov 18 10:58 include/
> drwxr-xr-x   2 root root   4096 Nov 18 10:58 init/
> drwxr-xr-x   2 root root   4096 Nov 18 10:58 ipc/
> drwxr-xr-x   4 root root   4096 Nov 18 10:58 kernel/
> drwxr-xr-x   5 root root   4096 Nov 18 10:58 lib/
> drwxr-xr-x   2 root root   4096 Nov 18 10:58 mm/
> drwxr-xr-x  33 root root   4096 Nov 18 10:58 net/
> drwxr-xr-x  10 root root   4096 Nov 18 10:58 scripts/
> drwxr-xr-x   4 root root   4096 Nov 18 10:58 security/
> drwxr-xr-x  16 root root   4096 Nov 18 10:58 sound/
> drwxr-xr-x   2 root root   4096 Nov 18 10:58 usr/
>
> Kernel builds are one area where I've been running into a whole
> lot of trouble. To build and install a kernel under Fedora
> requires 1.5G of disk space, several hours of compile and
> a boat load of commands. I thought I had the last part correct
> but I've run into problems.
>
> First thing to do is to find out how to build the kernel for
> CentOS. I'd be interested in hearing about your en devour.
>
> The instructions I have are:
>
> rpmbuild --recompile -bp --target i686 kernel-2.6.14-1.1656_FC4.src.rpm
>
> or
>
> $ wget
> ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.12-1.1390_FC4.src.rpm
>
> $ emacs ~/.rpmmacros
> $ rpm -ihv ~/kernel-2.6.12-1.1390_FC4.src.rpm
> $ cd redhat/SPECS/
> $ rpmbuild -bp --target=i686 kernel-2.6.spec
> $ cd ../BUILD/kernel-2.6.12/linux-2.6.12/
> $ make xconfig # make oldconfig ???
> $ make rpm
> $ cd /usr/src/redhat/RPMS/i386/
> $ rpm -ivh kernel-2.6.12njc-1.i386.rpm
> $ cd /boot
> $ mkinitrd initrd-2.6.12-njc.img 2.6.12-njc
> $ cd grub/
>
> The reason I cd to grub is to make sure that the grub.conf file is
> still in tact.
>
> Good luck!





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

Neil Cherry
Tom wrote:

> How do I know (besides running the sample perl code) if everything went
> well? The driver build, kernel rebuild etc?
> Would output from dmesg show something?
>
> This is my current output:
> [root@localhost ~]# dmesg | grep USB     drivers/usb/input/hid-core.c:
> v2.0:USB HID core driver
> USB Universal Host Controller Interface driver v2.2
> uhci_hcd 0000:00:14.2: new USB bus registered, assigned bus number 1
> hub 1-0:1.0: USB hub found
> usb 1-1: new low speed USB device using address 2
> usb 1-2: new low speed USB device using address 3
> hiddev96: USB HID v1.00 Device [SmartHome SmartHome PowerLinc USB E] on
> usb-0000:00:14.2-2

Ouch! You need to blacklist the above HID device from the kernel. Read
the readme I included with the cm15d kernel driver. That will explain
how to take care of that. ARGH! All these changes are really annoying,
aren't they?

There has to be a better way, can't we just open up the HID device and
read and write to it?

> I have both a CM15a and the Insteon connected but I attempted to build
> the USB driver for the CM15a.
>
> Once I've know if I was successful, I'll post the steps I used to get it
> working with CentOS.

Thanks

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

RE: trouble building USB driver - iplc (Long!)

Ron-24
In reply to this post by Neil Cherry
Build Kernel from source on CentOS 4.2 with latest updates:

Get depedencies:

# yum install rpm-build kernel-devel.i686
# yum install redhat-rpm-config.noarch ncurses-devel

Check kernel version:

# uname -r
2.6.9-22.0.2.EL

Get source package:

# cd /house/install
# wget
http://ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/4.2/updates/SRPMS/kernel-2
.6.9-22.0.2.EL.src.rpm
# rpm -Uvh kernel-2.6.9-22.0.2.EL.src.rpm

Build source-code with all the RedHat patches:

# cd /usr/src/redhat/SPECS
# rpmbuild -bp --target i686 kernel-2.6.spec

Configure kernel:

# cd ../BUILD/kernel-2.6.9/linux-2.6.9
# ln -s /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 /usr/src/linux
# make mrproper
# cp /boot/config-2.6.9-22.0.2.EL .config

Optional change kernel name:
# vi Makefile
EXTRAVERSION = -22.0.2.EL-CUSTOM

# make menuconfig

Build kernel and modules:

# make bzImage
# make modules && make modules_install
# make install

# vi /boot/grub/grub.conf
default=1 -> default=0

Regards,
Ron

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Neil
Cherry
Sent: Wednesday, January 25, 2006 9:23 PM
To: [hidden email]
Subject: Re: [mh] trouble building USB driver - iplc (Long!)

Tom wrote:
> I have the USB Insteon as well as the CM15A.
> I'm trying to get either of them working (the Insteon would be
> preferred), but I'm having trouble with the first step which is
> building the driver.
> (iplc driver for USB.)

Once you get the compile going the CM15A will be the easier to send X10
commands as I haven't written a iplcu interface yet. I have written the
iplcs (Serial) interface.

> I'm running CentOS release 4.2 (Final) with Kernel 2.6.9-22.0.2.EL
>
> I'm pretty sure I've compiled packages on this machine since I've
> rebuilt it so everything should be in order.
>
> When I run    ---   make
> I get the following:
> make -C /lib/modules/2.6.9-22.0.2.EL/build
> SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
> make: *** /lib/modules/2.6.9-22.0.2.EL/build: No such file or
> directory.  Stop.
> make: *** [default] Error 2
>
> The build directory didn't exist so I created a build directory and
> changed the Makefile KDIR line to KDIR :=
> /install/insteon/iplc/driver/linux-2.6/build
>
> Now I get the following:
> make -C /install/insteon/iplc/driver/linux-2.6/build
> SUBDIRS=/install/insteon/iplc/driver/linux-2.6 modules
> make[1]: Entering directory `/install/insteon/iplc/driver/linux-2.6/build'
> make[1]: *** No rule to make target `modules'.  Stop.
> make[1]: Leaving directory `/install/insteon/iplc/driver/linux-2.6/build'
> make: *** [default] Error 2
>
> Am I missing a package for this to happen? or is it something else?

Well you're going to run into several problems. The first is that it looks
like you may need to have the kernel sources installed (kernel-devel). I
just did a check on my setup and it looks like
this:

$ ls -l /lib/modules/2.6.11-1.1369_FC4/
total 1064
drwxr-xr-x   3 root root   4096 Nov 18 11:22 ./
drwxr-xr-x   7 root root   4096 Jan  8 18:35 ../
lrwxrwxrwx   1 root root     47 Nov 18 07:06 build ->
../../../usr/src/kernels/2.6.11-1.1369_FC4-i686/
drwxr-xr-x  10 root root   4096 Nov 18 11:19 kernel/
-rw-r--r--   1 root root 194071 Nov 18 11:22 modules.alias
-rw-r--r--   1 root root     69 Nov 18 11:22 modules.ccwmap
-rw-r--r--   1 root root 234786 Nov 18 11:22 modules.dep
-rw-r--r--   1 root root    813 Nov 18 11:22 modules.ieee1394map
-rw-r--r--   1 root root    357 Nov 18 11:22 modules.inputmap
-rw-r--r--   1 root root  16284 Nov 18 11:22 modules.isapnpmap
-rw-r--r--   1 root root 168631 Nov 18 11:22 modules.pcimap
-rw-r--r--   1 root root  90958 Nov 18 11:22 modules.symbols
-rw-r--r--   1 root root 267888 Nov 18 11:22 modules.usbmap
lrwxrwxrwx   1 root root      5 Nov 18 07:06 source -> build/

Under /usr/src/kernels/2.6.11-1.1369_FC4-i686/

$ ls -l /usr/src/kernels/2.6.11-1.1369_FC4-i686/
total 464
drwxr-xr-x  17 root root   4096 Nov 18 10:58 ./
drwxr-xr-x   9 root root   4096 Jan 15 19:34 ../
-rw-r--r--   1 root root  56991 Jun  2  2005 .config
-rw-r--r--   1 root root  44217 Jun  2  2005 Makefile
-rw-r--r--   1 root root 211444 Jun  2  2005 Module.symvers
drwxr-xr-x  26 root root   4096 Nov 18 10:57 arch/
drwxr-xr-x   4 root root   4096 Nov 18 10:57 crypto/
drwxr-xr-x  50 root root   4096 Nov 18 10:57 drivers/
drwxr-xr-x  54 root root   4096 Nov 18 10:57 fs/
drwxr-xr-x  16 root root   4096 Nov 18 10:58 include/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 init/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 ipc/
drwxr-xr-x   4 root root   4096 Nov 18 10:58 kernel/
drwxr-xr-x   5 root root   4096 Nov 18 10:58 lib/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 mm/
drwxr-xr-x  33 root root   4096 Nov 18 10:58 net/
drwxr-xr-x  10 root root   4096 Nov 18 10:58 scripts/
drwxr-xr-x   4 root root   4096 Nov 18 10:58 security/
drwxr-xr-x  16 root root   4096 Nov 18 10:58 sound/
drwxr-xr-x   2 root root   4096 Nov 18 10:58 usr/

Kernel builds are one area where I've been running into a whole lot of
trouble. To build and install a kernel under Fedora requires 1.5G of disk
space, several hours of compile and a boat load of commands. I thought I had
the last part correct but I've run into problems.

First thing to do is to find out how to build the kernel for CentOS. I'd be
interested in hearing about your en devour.

The instructions I have are:

rpmbuild --recompile -bp --target i686 kernel-2.6.14-1.1656_FC4.src.rpm

or

$ wget
ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.12
-1.1390_FC4.src.rpm
$ emacs ~/.rpmmacros
$ rpm -ihv ~/kernel-2.6.12-1.1390_FC4.src.rpm
$ cd redhat/SPECS/
$ rpmbuild -bp --target=i686 kernel-2.6.spec $ cd
../BUILD/kernel-2.6.12/linux-2.6.12/
$ make xconfig # make oldconfig ???
$ make rpm
$ cd /usr/src/redhat/RPMS/i386/
$ rpm -ivh kernel-2.6.12njc-1.i386.rpm
$ cd /boot
$ mkinitrd initrd-2.6.12-njc.img 2.6.12-njc $ cd grub/

The reason I cd to grub is to make sure that the grub.conf file is still in
tact.

Good luck!
--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Kernel Rebuild - CentOS

Tom-75
Ron,

I hope you don't mind, I copied you instructions for kernel rebuild to
the wiki

I did notice one thing, after the following line,

># make menuconfig
>  
>
You don't mention what to do so I did the following:

This brings up a menu.
Select Exit and Yes to "save your new kernel configuration"

Is this correct?

After rebooting, I confirmed that I'm now using the Rebuilt kernel.

How do I confirm that the updated CM15a drivers are now installed?
an "lsmod" didn't show anything.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

Tom-75
In reply to this post by Neil Cherry
Sorry if I'm being a pain with all these questions, but I'm trying to
understand what is going on.  Once I do, I'll put a write up on the Wiki
so others will not have as much trouble as I am.

Following Ron's email I was able to rebuild the kernel.
So here is all I've done to this point.

I've followed your steps on installing the driver.
I ran # modprobe -r hid
and Linux returned
FATAL: Module hid not found. ---- So it appears the hid module is not
loaded.

I then rebuilt the kernel.
during the rebuild, there is a menu asking what modules, drivers, etc
are to be included in the kernel.  I didn't see the CM15a module so I
simply chose Exit without applying and changes and continued the kernel
rebuild.

The kernel was successfully rebuilt and I rebooted and confirmed that
I'm using the new kernel.

Now the part that I'm stuck at is. How do I know whether or not the new
CM15a driver is installed.  Do I need to manually run something?  Should
dmesg show something?

thanks.


> Tom wrote:
>
>> How do I know (besides running the sample perl code) if everything
>> went well? The driver build, kernel rebuild etc?
>> Would output from dmesg show something?
>>
>> This is my current output:
>> [root@localhost ~]# dmesg | grep USB    
>> drivers/usb/input/hid-core.c: v2.0:USB HID core driver
>> USB Universal Host Controller Interface driver v2.2
>> uhci_hcd 0000:00:14.2: new USB bus registered, assigned bus number 1
>> hub 1-0:1.0: USB hub found
>> usb 1-1: new low speed USB device using address 2
>> usb 1-2: new low speed USB device using address 3
>> hiddev96: USB HID v1.00 Device [SmartHome SmartHome PowerLinc USB E]
>> on usb-0000:00:14.2-2
>
>
> Ouch! You need to blacklist the above HID device from the kernel. Read
> the readme I included with the cm15d kernel driver. That will explain
> how to take care of that. ARGH! All these changes are really annoying,
> aren't they?
>
> There has to be a better way, can't we just open up the HID device and
> read and write to it?
>
>> I have both a CM15a and the Insteon connected but I attempted to
>> build the USB driver for the CM15a.
>>
>> Once I've know if I was successful, I'll post the steps I used to get
>> it working with CentOS.
>
>
> Thanks
>




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

Neil Cherry
Tom wrote:

> Sorry if I'm being a pain with all these questions, but I'm trying to
> understand what is going on.  Once I do, I'll put a write up on the Wiki
> so others will not have as much trouble as I am.
>
> Following Ron's email I was able to rebuild the kernel.
> So here is all I've done to this point.
>
> I've followed your steps on installing the driver.
> I ran # modprobe -r hid
> and Linux returned
> FATAL: Module hid not found. ---- So it appears the hid module is not
> loaded.

Not a problem (kind of), sometimes it's loaded sometimes it's built in.
If it's built in then you need to get the CM15A blacklisted. I'll be
honest I've got to figure out how to access the HID and this will no
longer be a problem but it is for now.

 From the Readme: it is possible to
add the Labjack to the HID blacklist.  Add the Labjack USB
vendor (0x0cd5) and product (0x0001) IDs to the hid_blacklist
structure in hid-core.c in the drivers/usb/input directory.
An example of the line to insert in the hid_blacklist
structure would be:

For the CM15A:
(0x0bc7, 0x0001, HID_QUIRK_IGNORE}

For the CM19A:
(0x0bc7, 0x0002, HID_QUIRK_IGNORE}

For the changes to take effect, a kernel rebuild is necessary.


> I then rebuilt the kernel.
> during the rebuild, there is a menu asking what modules, drivers, etc
> are to be included in the kernel.  I didn't see the CM15a module so I
> simply chose Exit without applying and changes and continued the kernel
> rebuild.

The CM15A isn't in the kernel. It get built outside the kernel. You'll
need to make sure the USB HID is built as a module.

cd cm15a-driver/driver/linux-2.6/
make
insmod cm15a.ko

If you want to copy the driver into the correct directory, first look
at the first line of the compile (as it's running). Mine looked like
this:

make -C /lib/modules/2.6.14-prep/build
SUBDIRS=/home/njc/stuff/cm15a-driver/driver/linux-2.6 modules

It's one line and we only need the first part:

/lib/modules/2.6.14-prep/build

Copy the cm15d.ko to /lib/modules/2.6.14-prep/kernel/drivers/char/
Then do a depmod -a. You should be able to do a modprobe cm15d
with no trouble.

I've used this with Fedora and Gentoo.

> The kernel was successfully rebuilt and I rebooted and confirmed that
> I'm using the new kernel.
>
> Now the part that I'm stuck at is. How do I know whether or not the new
> CM15a driver is installed.  Do I need to manually run something?  Should
> dmesg show something?

If you have the cm15d correctly black listed or the hid was a
module you should see the cm15d with no driver attached to it.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

J D-2
Hey Neil,

Are you putting these instructions for how to use the CM15A into the
Wiki as well?

--- Neil Cherry <[hidden email]> wrote:

> Tom wrote:
> > Sorry if I'm being a pain with all these questions, but I'm trying
> to
> > understand what is going on.  Once I do, I'll put a write up on the
> Wiki
> > so others will not have as much trouble as I am.
> >
> > Following Ron's email I was able to rebuild the kernel.
> > So here is all I've done to this point.
> >
> > I've followed your steps on installing the driver.
> > I ran # modprobe -r hid
> > and Linux returned
> > FATAL: Module hid not found. ---- So it appears the hid module is
> not
> > loaded.
>
> Not a problem (kind of), sometimes it's loaded sometimes it's built
> in.
> If it's built in then you need to get the CM15A blacklisted. I'll be
> honest I've got to figure out how to access the HID and this will no
> longer be a problem but it is for now.
>
>  From the Readme: it is possible to
> add the Labjack to the HID blacklist.  Add the Labjack USB
> vendor (0x0cd5) and product (0x0001) IDs to the hid_blacklist
> structure in hid-core.c in the drivers/usb/input directory.
> An example of the line to insert in the hid_blacklist
> structure would be:
>
> For the CM15A:
> (0x0bc7, 0x0001, HID_QUIRK_IGNORE}
>
> For the CM19A:
> (0x0bc7, 0x0002, HID_QUIRK_IGNORE}
>
> For the changes to take effect, a kernel rebuild is necessary.
>
>
> > I then rebuilt the kernel.
> > during the rebuild, there is a menu asking what modules, drivers,
> etc
> > are to be included in the kernel.  I didn't see the CM15a module so
> I
> > simply chose Exit without applying and changes and continued the
> kernel
> > rebuild.
>
> The CM15A isn't in the kernel. It get built outside the kernel.
> You'll
> need to make sure the USB HID is built as a module.
>
> cd cm15a-driver/driver/linux-2.6/
> make
> insmod cm15a.ko
>
> If you want to copy the driver into the correct directory, first look
> at the first line of the compile (as it's running). Mine looked like
> this:
>
> make -C /lib/modules/2.6.14-prep/build
> SUBDIRS=/home/njc/stuff/cm15a-driver/driver/linux-2.6 modules
>
> It's one line and we only need the first part:
>
> /lib/modules/2.6.14-prep/build
>
> Copy the cm15d.ko to /lib/modules/2.6.14-prep/kernel/drivers/char/
> Then do a depmod -a. You should be able to do a modprobe cm15d
> with no trouble.
>
> I've used this with Fedora and Gentoo.
>
> > The kernel was successfully rebuilt and I rebooted and confirmed
> that
> > I'm using the new kernel.
> >
> > Now the part that I'm stuck at is. How do I know whether or not the
> new
> > CM15a driver is installed.  Do I need to manually run something?
> Should
> > dmesg show something?
>
> If you have the cm15d correctly black listed or the hid was a
> module you should see the cm15d with no driver attached to it.
>
> --
> Linux Home Automation         Neil Cherry       [hidden email]
> http://www.linuxha.com/                         Main site
> http://linuxha.blogspot.com/                    My HA Blog
> http://home.comcast.net/~ncherry/               Backup site
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD
> SPLUNK!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> ________________________________________________________
> To unsubscribe from this list, go to:
> http://sourceforge.net/mail/?group_id=1365
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

Neil Cherry
J D wrote:
> Hey Neil,
>
> Are you putting these instructions for how to use the CM15A into the
> Wiki as well?

Nah! Everyone should be able to figure them out with no trouble!
(Slaps forehead hard)

I won't be able to as I'm trying to write the book. I know I
shouldn't be posting but I can't work on one thing at a time.
Yes I'm nuts, but I'll feel much better when I can put on a
half a metric every other day!


BTW, don't fully trust what I wrote with respect to the kernel
as I am having trouble with that in one chapter and I can't give
it my full attention yet.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Long!)

Tom-75
In reply to this post by J D-2
If I can figure this out, I'll put the steps I follow in the Wiki.

At this point though, the if is a big if :-)

J D wrote:

>Hey Neil,
>
>Are you putting these instructions for how to use the CM15A into the
>Wiki as well?
>  
>




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: trouble building USB driver - iplc (Rant)

Neil Cherry
Tom wrote:

> If I can figure this out, I'll put the steps I follow in the Wiki.
>
> At this point though, the if is a big if :-)
>
> J D wrote:
>
>> Hey Neil,
>>
>> Are you putting these instructions for how to use the CM15A into the
>> Wiki as well?

It's one heck of a hurdle. I have no idea how one compiles under
Debian, or SuSe or Slackware. This is getting nuts!. When I first
started with Linux in 1994 it would take my 386SX/16Mhz 24 hours
to compile the kernel. I now have a 1.6 Mhz Athlon with 768M of
RAM and it takes 5 hours to compile and install. Somewhere we've
got backwards.

Sorry for the rant, just I can't figure out how some one new to
all this is going to figure this out. I like to think I'm pretty
good at this stuff but this has me over a barrel.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

RE: Kernel Rebuild - CentOS

Ron-24
In reply to this post by Tom-75
Tom,

I don't mind if you put them on the wiki.

Those instructions are from my wiki, in the Asterisk section for building
mISDN drivers.

If you want to install the default kernel without the need for
enabling/disabling options/modules (which I think is the case with cm15) you
can leave out the menuconfig thing, and go directly to make bzImage etc...
But someone correct me if I'm wrong.

Regards,
Ron.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Tom
Sent: Thursday, January 26, 2006 8:56 PM
To: [hidden email]
Subject: [mh] Kernel Rebuild - CentOS

Ron,

I hope you don't mind, I copied you instructions for kernel rebuild to the
wiki

I did notice one thing, after the following line,

># make menuconfig
>  
>
You don't mention what to do so I did the following:

This brings up a menu.
Select Exit and Yes to "save your new kernel configuration"

Is this correct?

After rebooting, I confirmed that I'm now using the Rebuilt kernel.

How do I confirm that the updated CM15a drivers are now installed?
an "lsmod" didn't show anything.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

RE: Kernel Rebuild - CentOS

Ron-24

If you build and installed the cm15 module after installing and booting the
kernel.

And you want a module to load in CentOS on bootup, putting it in
/etc/modprobe.conf doesn't always work.

You can however insert an insmod 'module' or modprobe 'module' line in :
/etc/rc.d/rc3.d/S99local

Regards,
Ron.
-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Ron
Sent: Friday, January 27, 2006 9:10 AM
To: [hidden email]
Subject: RE: [mh] Kernel Rebuild - CentOS

Tom,

I don't mind if you put them on the wiki.

Those instructions are from my wiki, in the Asterisk section for building
mISDN drivers.

If you want to install the default kernel without the need for
enabling/disabling options/modules (which I think is the case with cm15) you
can leave out the menuconfig thing, and go directly to make bzImage etc...
But someone correct me if I'm wrong.

Regards,
Ron.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Tom
Sent: Thursday, January 26, 2006 8:56 PM
To: [hidden email]
Subject: [mh] Kernel Rebuild - CentOS

Ron,

I hope you don't mind, I copied you instructions for kernel rebuild to the
wiki

I did notice one thing, after the following line,

># make menuconfig
>  
>
You don't mention what to do so I did the following:

This brings up a menu.
Select Exit and Yes to "save your new kernel configuration"

Is this correct?

After rebooting, I confirmed that I'm now using the Rebuilt kernel.

How do I confirm that the updated CM15a drivers are now installed?
an "lsmod" didn't show anything.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Kernel Rebuild - CentOS

Neil Cherry
In reply to this post by Ron-24
Ron wrote:

> Tom,
>
> I don't mind if you put them on the wiki.
>
> Those instructions are from my wiki, in the Asterisk section for building
> mISDN drivers.
>
> If you want to install the default kernel without the need for
> enabling/disabling options/modules (which I think is the case with cm15) you
> can leave out the menuconfig thing, and go directly to make bzImage etc...
> But someone correct me if I'm wrong.

The make bzimage maybe for the 2.4 kernel. There is no bzimage in
2.6.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

RE: Kernel Rebuild - CentOS

Ron-24

Neil,

There is on CentOS, and it's working fine, but note the capital I !

[root@zappa linux]# uname -a
Linux zappa.demon.nl 2.6.9-22.0.2.EL-CUSTOM #1 Fri Jan 20 21:40:54 CET 2006
i686 athlon i386 GNU/Linux

[root@zappa linux]# make bzImage
  CHK     include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
...blabla

[root@zappa linux]# make bzimage

make: *** No rule to make target `bzimage'.  Stop.


Regards,
Ron.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Neil
Cherry
Sent: Friday, January 27, 2006 2:01 PM
To: [hidden email]
Subject: Re: [mh] Kernel Rebuild - CentOS

Ron wrote:

> Tom,
>
> I don't mind if you put them on the wiki.
>
> Those instructions are from my wiki, in the Asterisk section for
> building mISDN drivers.
>
> If you want to install the default kernel without the need for
> enabling/disabling options/modules (which I think is the case with
> cm15) you can leave out the menuconfig thing, and go directly to make
bzImage etc...
> But someone correct me if I'm wrong.

The make bzimage maybe for the 2.4 kernel. There is no bzimage in 2.6.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Kernel Rebuild - CentOS

Neil Cherry
Ron wrote:

> Neil,
>
> There is on CentOS, and it's working fine, but note the capital I !
>
> [root@zappa linux]# uname -a
> Linux zappa.demon.nl 2.6.9-22.0.2.EL-CUSTOM #1 Fri Jan 20 21:40:54 CET 2006
> i686 athlon i386 GNU/Linux
>
> [root@zappa linux]# make bzImage
>   CHK     include/linux/version.h
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>   CHK     include/linux/compile.h
> ...blabla
>
> [root@zappa linux]# make bzimage
>
> make: *** No rule to make target `bzimage'.  Stop.

Well I'll be ... It's under Fedora as well but there is some
problem

# make bzImage
   CHK     include/linux/version.h
make[1]: *** No rule to make target `init/main.o', needed by
`init/built-in.o'.  Stop.
make: *** [init] Error 2

Still frazzled but at least that's somewhat of an improvement.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

RE: Kernel Rebuild - CentOS

Ron-24

I guess a dependecy is missing. Tools like autoconf etc etc.

I didn't follow the complete cm15 thread, since I don't own one, but
installing kernel-devel and headers is not enough to compile a kernel, those
are just enough for compiling a module.

You need to build and install the complete kernel-sources to be able to
build a kernel.
Those are, (as far as I know) not readily available as a rpm package.

See my previous message for instructions.

Sorry, if I completely missed the point if you have them build already.


Regards,
Ron.
-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Neil
Cherry
Sent: Friday, January 27, 2006 2:45 PM
To: [hidden email]
Subject: Re: [mh] Kernel Rebuild - CentOS

Ron wrote:

> Neil,
>
> There is on CentOS, and it's working fine, but note the capital I !
>
> [root@zappa linux]# uname -a
> Linux zappa.demon.nl 2.6.9-22.0.2.EL-CUSTOM #1 Fri Jan 20 21:40:54 CET
> 2006
> i686 athlon i386 GNU/Linux
>
> [root@zappa linux]# make bzImage
>   CHK     include/linux/version.h
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>   CHK     include/linux/compile.h
> ...blabla
>
> [root@zappa linux]# make bzimage
>
> make: *** No rule to make target `bzimage'.  Stop.

Well I'll be ... It's under Fedora as well but there is some problem

# make bzImage
   CHK     include/linux/version.h
make[1]: *** No rule to make target `init/main.o', needed by
`init/built-in.o'.  Stop.
make: *** [init] Error 2

Still frazzled but at least that's somewhat of an improvement.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

RE: Kernel Rebuild - CentOS

Ron-24
In reply to this post by Neil Cherry
I also needed these packages for my kernel build:

curl-devel
openssl-devel.i586
rpm-build
kernel-devel.i686
redhat-rpm-config.noarch
ncurses-devel

Regards,
Ron.
-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Neil
Cherry
Sent: Friday, January 27, 2006 2:45 PM
To: [hidden email]
Subject: Re: [mh] Kernel Rebuild - CentOS

Ron wrote:

> Neil,
>
> There is on CentOS, and it's working fine, but note the capital I !
>
> [root@zappa linux]# uname -a
> Linux zappa.demon.nl 2.6.9-22.0.2.EL-CUSTOM #1 Fri Jan 20 21:40:54 CET
> 2006
> i686 athlon i386 GNU/Linux
>
> [root@zappa linux]# make bzImage
>   CHK     include/linux/version.h
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>   CHK     include/linux/compile.h
> ...blabla
>
> [root@zappa linux]# make bzimage
>
> make: *** No rule to make target `bzimage'.  Stop.

Well I'll be ... It's under Fedora as well but there is some problem

# make bzImage
   CHK     include/linux/version.h
make[1]: *** No rule to make target `init/main.o', needed by
`init/built-in.o'.  Stop.
make: *** [init] Error 2

Still frazzled but at least that's somewhat of an improvement.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Kernel Rebuild - CentOS

Neil Cherry
In reply to this post by Ron-24
Ron wrote:
> I guess a dependecy is missing. Tools like autoconf etc etc.
>
> I didn't follow the complete cm15 thread, since I don't own one, but
> installing kernel-devel and headers is not enough to compile a kernel, those
> are just enough for compiling a module.

Actually they almost are enough, the problem comes in that there are
new rules for compiling. A make help return this:

# make help
Cleaning targets:
   clean           - remove most generated files but keep the config
   mrproper        - remove all generated files + config + various
backup files

Configuration targets:
   config          - Update current config utilising a line-oriented program
   menuconfig      - Update current config utilising a menu based program
   xconfig         - Update current config utilising a QT based front-end
   gconfig         - Update current config utilising a GTK based front-end
   oldconfig       - Update current config utilising a provided .config
as base
   randconfig      - New config with random answer to all options
   defconfig       - New config with default answer to all options
   allmodconfig    - New config selecting modules when possible
   allyesconfig    - New config where all options are accepted with yes
   allnoconfig     - New minimal config

Other generic targets:
   all             - Build all targets marked with [*]
* vmlinux         - Build the bare kernel
* modules         - Build all modules
   modules_install - Install all modules
   dir/            - Build all files in dir and below
   dir/file.[ois]  - Build specified target only
   dir/file.ko     - Build module including final link
   rpm             - Build a kernel as an RPM package
   tags/TAGS       - Generate tags file for editors
   cscope          - Generate cscope index
   kernelrelease   - Output the release version string

Static analysers
   buildcheck      - List dangling references to vmlinux discarded sections
                     and init sections from non-init sections
   checkstack      - Generate a list of stack hogs
   namespacecheck  - Name space analysis on compiled kernel

Kernel packaging:
   rpm-pkg         - Build the kernel as an RPM package
   binrpm-pkg      - Build an rpm package containing the compiled kernel
                     and modules
   deb-pkg         - Build the kernel as an deb package
   tar-pkg         - Build the kernel as an uncompressed tarball
   targz-pkg       - Build the kernel as a gzip compressed tarball
   tarbz2-pkg      - Build the kernel as a bzip2 compressed tarball

Documentation targets:
make[1]:
/usr/src/kernels/2.6.14-1.1656_FC4-i686/Documentation/DocBook/Makefile:
No such file or directory
make[1]: *** No rule to make target
`/usr/src/kernels/2.6.14-1.1656_FC4-i686/Documentation/DocBook/Makefile'.
  Stop.
make: *** [help] Error 2


> You need to build and install the complete kernel-sources to be able to
> build a kernel.

> Those are, (as far as I know) not readily available as a rpm package.

That I won't argue with! This is getting nuts.

> See my previous message for instructions.

I'll look again.

> Sorry, if I completely missed the point if you have them build already.

No, this is great, I'm learning the little bits and pieces that I'm
missing.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

12