[Voyage-linux] How to build kernel module

Kim-man 'Punky' TSE (spam-protected)
Fri Jan 9 09:58:22 HKT 2009


Hi,

/lib/modules/2.6.26-486-voyage/build is usually a symlink to kernel 
source, so you may need to point /lib/modules/2.6.26-486-voyage/build to 
/usr/src/linux-source-2.6.26-voyage.

BTW, it is disappointed such kernel module were not included in stock 
kernel.

Regards,
Punky



Russell Lang wrote:
> I've got an ATEN UC2324 USB to 4 port serial adapter.  It comes with source for 
> the Linux driver.  On Fedora Core, you simply do
>   make
>   make load
> and it works.  I get /dev/ttyUSB0 to /dev/ttyUSB3.  I tried copying the module ko 
> file to voyage-lenny, but it's too different.
>
> I've got two copies of voyage-lenny running. One on VMware as the first stage 
> development and testing, and then the other on Alix 3 hardware as the target.  
> I'm trying to build stuff for voyage linux under the VMware.
>
> I've tried building the driver on voyage-lenny after first installing the compiler:
>   apt-get install build-essentials
> Instead I get:
>   voyage:/tmp/ATEN2011_V1.1# make
> make -C /lib/modules/2.6.26-486-voyage/build -I/lib/modules/2.6.26-486-
> voyage/build/drivers/usb/serial SUBDIRS=/tmp/ATEN2011_V1.1 modules
> make[1]: Entering directory `/lib/modules/2.6.26-486-voyage/build'
> make[1]: *** No rule to make target `modules'.  Stop.
> make[1]: Leaving directory `/lib/modules/2.6.26-486-voyage/build'
> make: *** [default] Error 2
>
> The makefile is attached.
>
> What else do I need to install to build this driver?
>
>
>
> Russell Lang                   gsview at ghostgum.com.au
> Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/
>
>   
> ------------------------------------------------------------------------
>
> The following section of this message contains a file attachment
> prepared for transmission using the Internet MIME message format.
> If you are using Pegasus Mail, or any other MIME-compliant system,
> you should be able to save it or view it from within your mailer.
> If you cannot, please ask your system administrator for assistance.
>
>    ---- File information -----------
>      File:  Makefile
>      Date:  25 Aug 2007, 5:12
>      Size:  657 bytes.
>      Type:  Text
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>   


-- 
Regards,
Punky

Voyage Solutions (http://solution.voyage.hk)
* Embedded Solutions and Systems
  - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
  - Network Engineering, Development Platform and Consultation
  
	





More information about the Voyage-linux mailing list