Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Programming a Linux USB driver for the 68hc908jb8

0 views
Skip to first unread message

Doublehp

unread,
May 21, 2003, 8:28:12 PM5/21/03
to
Hello World.

I would like to build some personal project; it is about a self
tracking webcam;
For that, I would need to put the webcam on some servomotors, and to
control the servos, I would like to use the 68HC908JB8, since I could
not find any other smart programmable chip. Furthermore, it is cheap
!!!

My problem is in writing the USB driver for that chip under Linux. I
could not find any Linux driver, and Motorolla dont seem to provide it
for free; I dont feel like doing reverse engineering, nor start
writing such a driver from scratch.

Did any one ever write such a driver, or can at least tell me where I
can find it?

If answers to both questions are "no", please give some hints about
it, or give the name of an other cheap programmable USB chip.

Many thanks.

Artem Bondarenko

unread,
May 21, 2003, 8:51:02 PM5/21/03
to

>
> My problem is in writing the USB driver for that chip under Linux. I
> could not find any Linux driver, and Motorolla dont seem to provide it
> for free; I dont feel like doing reverse engineering, nor start
> writing such a driver from scratch.

Try to see kernel sources. An example USB mouse. As I remember it was very
simply.

Jean-Michel Friedt

unread,
May 22, 2003, 1:48:59 AM5/22/03
to
> Did any one ever write such a driver, or can at least tell me where I
> can find it?

I have been takling with the issue, and then forgot about it after
failing for a couple of months. I suppose the linux kernel has just
become too complicated for me to understand (too many layers in the
programming interface of the USB linux interface with the kernel for
me).

The HC908 part I got to is documented at
http://mmyotte.free.fr/hc08_eng.pdf
I already solved the microcontroller side issue by converting the
Motorola USB code to be included in the microcontroller to a
syntax that can be used for the hc08 assembly under linux
(http://mmyotte.free.fr/hc08last.tgz), and linux identifies the
microcontroller when I plug it in the USB port of my laptop.
I have failed at writing a module which allows a user level program
to talk to the microcontroller (while I had previously managed to
write quite a few kernel modifications for interrupt handling for
the 1.2.13 and 2.0.x/2.2.x kernel series -- but like I said
2.4.x has just become too complex for me to understand).

Please let me know if you find out anything yourself, I'd be
very interestd.

Jean-Michel (fri...@imec.be)

Jean-Michel Friedt

unread,
May 22, 2003, 1:51:04 AM5/22/03
to
Jean-Michel Friedt wrote:
>
> > Did any one ever write such a driver, or can at least tell me where I
> > can find it?

I forgot to mention that I had been looking at the USB to serial
port interface conversion modules which aim at making linux believe
an additional serial port has been added to your computer when
plugging in one of the little USB-RS232 converters (as I had been
advised to do on the linux-usb mailing list).

Doublehp

unread,
May 22, 2003, 7:19:30 AM5/22/03
to
> Please let me know if you find out anything yourself, I'd be
> very interestd.

I ll give you some feedback when I start the project, and when I
finish it...
But I can not start it before some one response to
http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&group=rec.models.rc.misc&selm=71c62763.0305211700.38bb6f4c%40posting.google.com
so ... no servo -> no need to write the USB driver !

Bye

Leigh W3NLB

unread,
May 26, 2003, 9:12:34 AM5/26/03
to
On 24 May 2003 08:55:11 -0500, Michel Catudal <bb...@netonecom.net>
wrote:

>I am looking into writing an AVR programmer using the USB port and will share code if you wish. From
>what I saw so far it doesn't look that bad. You need a book on the specs. You can get a nice book
>or a PDF file of the same book from Cypress. A few years ago I filled out a form on their web site
>and got the full USB spec.
>
>Reading thru some drivers like the mouse driver could help.

You can download the full USB 2.0 spec in pdf format for free from

www.usb.org

Best,
Leigh Bassett
Software architect and embedded systems guru.
Registered Linux user #307936

Roger Larsson

unread,
Jun 2, 2003, 7:24:44 PM6/2/03
to
Doublehp wrote:

> Hello World.
>
> I would like to build some personal project; it is about a self
> tracking webcam;
> For that, I would need to put the webcam on some servomotors, and to
> control the servos, I would like to use the 68HC908JB8, since I could
> not find any other smart programmable chip. Furthermore, it is cheap
> !!!
>
> My problem is in writing the USB driver for that chip under Linux. I
> could not find any Linux driver, and Motorolla dont seem to provide it
> for free; I dont feel like doing reverse engineering, nor start
> writing such a driver from scratch.
>
> Did any one ever write such a driver, or can at least tell me where I
> can find it?

Will this device function as a USB peripheral? i.e. controlled from a
PC? This is how I understand your questions.
Then there is a new USB Gadget framework! (2.5.x)

http://www.ussg.iu.edu/hypermail/linux/kernel/0303.3/1811.html

My assumption is that the low level stuff is documented by Motorola
somewere...

/RogerL

--
Roger Larsson
Skellefteå
Sweden

0 new messages