Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: PWC (Logitech WebCam) Support, Write up and publish a myDSL Extension< Next Oldest | Next Newest >
latta46 Offline





Group: Members
Posts: 8
Joined: Nov. 2006
Posted: Nov. 22 2006,19:09 QUOTE

I am new to DSL and am planning to use DSL3.0 as the basis of a LAMP stack. I have everything working except the drivers portion. I am planning to use the parallel port for some hardware control, and a Logitech 4000 USB webcam for monitoring through "motion." The camera will be stationary mounted.

Once I have this completed, I intend to upload the drivers for use by the DSL Users Group, as well as write a book covering the procedures and process' involved.

I am reading the Kernel Modules HowTo documentation, but need to know the specifics of setting up DSL for development activities and recommndations for file locations, etc. How do I set up the DSL system so that I can compile drivers (kernel and userspace) from local sources (*.tar.gz).

Mitch :-)
Back to top
Profile PM 
Winter Knight Offline





Group: Members
Posts: 146
Joined: April 2006
Posted: Nov. 28 2006,15:33 QUOTE

You will almost definintely need gcc1.dsl from the repositories. Or gcc1-with-libs.dsl. Most sources you download on the internet will have instructions on how to compile, and these instructions will assume that you have gcc installed.

The following may also help:
gnu-utils.unc or gnu-utils.dsl (recommended)
kernelsource.dsl (most drivers will require this to compile)
linux-kernel-headers.dsl (also a good idea for drivers)
libc6.dsl
libc6-dev.dsl

These extensions can be found in system repository. Some of them may have newer versions in testing. I've included them here in order of likeliness that you will need them. Good luck.

Also, if you need help installing extensions, there are instructions in the wiki.
Back to top
Profile PM 
latta46 Offline





Group: Members
Posts: 8
Joined: Nov. 2006
Posted: Nov. 29 2006,18:38 QUOTE

Hi Winter Knight;

I did have the recommended files downloaded, and tested them previous to the original posting.  I do appreciate the insite given as to the use of the header and the lib6 files, as I was not sure whether these would interfere with the files in the kernel source tree install.

I guess I should have been more specific in my questions. I had done some C coding, but it's been about 25 years ago. I now have a IO port driver *.c file, but when I do compile it as a kernel module, I need to find an acceptable location for my persistent object file(s) and scripts to reside, as DSL "Frugal" has modified the file structure enough that I am having trouble deciding where object file(s) and scripts should reside on the final system.

I am toying with /mount/myfiles/ or /home/dsl. I would have to modify the path statement for the first, and the later will become cluttered with application scripts and driver files.

Are there better locations for these file types?

Mitch
:)
Back to top
Profile PM 
Winter Knight Offline





Group: Members
Posts: 146
Joined: April 2006
Posted: Nov. 30 2006,15:55 QUOTE

Quote (latta46 @ Nov. 29 2006,10:38)
I do appreciate the insite given as to the use of the header and the lib6 files, as I was not sure whether these would interfere with the files in the kernel source tree install.

To be honest, I'm not positive they won't. I suspected beforehand that kernel-headers and kernel-sources might overlap. I'm not sure whether they do or not, but I don't think it would cause any problems. I think libc6 is somewhat unrelated, but it's helped me compile some sources.

As for a persistent place to put your files, I think you might not understand the idea behind frugal or myDSL. Frugal resets itself every boot. Only home and opt can be saved. If you want to save kernel modules, we usually put them in .unc files. You can also put them in .dsl, but I think .dsl is becoming obsoleted. It also requires more RAM.

Basically, you would be putting your kernel modules in the regular place, but instead of the regular place, you would put it in a file which is designed to place it in it's regular place.

The wiki has information on using and creating myDSL extensions. I would look there if you need to learn how to create them. That way, you can share your work with the rest of us, too.

I might be a little confused. Did I misunderstand something?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 30 2006,17:31 QUOTE

You should be able to just use kernel-sources.dsl - which isn't the kernel sources at all, but the correct kernel headers for 2.4.26.  kernel-headers.dsl is the wrong version for DSL, though it's probably not much different.

I've haven't yet needed to load libc6* - dsl contains some version of glibc, and I believe one of the gcc* packages provide the dev stuff.
Back to top
Profile PM 
12 replies since Nov. 22 2006,19:09 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: PWC (Logitech WebCam) Support

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code