All messages from thread
Message 1 in thread
From: Doublehp (dhp@doublehp.org)
Subject: Programming a Linux USB driver for the 68hc908jb8
 
View this article only
Newsgroups: comp.arch.embedded, alt.microcontrollers.8bit
Date: 2003-05-21 17:28:13 PST
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.
Message 2 in thread
From: Artem Bondarenko (Artem_bond@mail.ru)
Subject: Re: Programming a Linux USB driver for the 68hc908jb8
 
View this article only
Newsgroups: comp.arch.embedded, alt.microcontrollers.8bit
Date: 2003-05-21 17:51:07 PST
>
> 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.
Message 3 in thread
From: Jean-Michel Friedt (friedtj@imec.be)
Subject: Re: Programming a Linux USB driver for the 68hc908jb8
 
View this article only
Newsgroups: comp.arch.embedded, alt.microcontrollers.8bit
Date: 2003-05-21 22:49:04 PST
> 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 (friedtj@imec.be)
Message 4 in thread
From: Jean-Michel Friedt (friedtj@imec.be)
Subject: Re: Programming a Linux USB driver for the 68hc908jb8
 
View this article only
Newsgroups: comp.arch.embedded, alt.microcontrollers.8bit
Date: 2003-05-21 22:51:06 PST
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).
Message 5 in thread
From: Doublehp (dhp@doublehp.org)
Subject: Re: Programming a Linux USB driver for the 68hc908jb8
 
View this article only
Newsgroups: comp.arch.embedded, alt.microcontrollers.8bit
Date: 2003-05-22 04:19:30 PST
> 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
Message 6 in thread
From: Leigh W3NLB (w3nlbREMOVETHIS@amsat.org)
Subject: Re: Programming a Linux USB driver for the 68hc908jb8
 
View this article only
Newsgroups: comp.arch.embedded, alt.microcontrollers.8bit
Date: 2003-05-26 06:11:54 PST
On 24 May 2003 08:55:11 -0500, Michel Catudal <bbcat@netonecom.net>
wrote:

>Doublehp wrote:
>
>>> 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
>
>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
Message 7 in thread
From: Roger Larsson (roger.larsson@norran.net)
Subject: Re: Programming a Linux USB driver for the 68hc908jb8
 
View this article only
Newsgroups: comp.arch.embedded
Date: 2003-06-02 16:24:46 PST
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

©2004 Google