A simple char device driver

I'm trying to find useful resources that will help me write, compile
and build a simple LED device driver into an Angstrom image. I've been
searching for days without success. This is for a school project so
even though I know I can simply open and toggle the pin through the
existing gpio system class, that's not the assignment...

I'm not stuck with the Angstrom/BB environment either, so if you know
a dist that would make this easier, let me know.

There are plenty of good books on linux driver development around, and
plenty of online examples.
I suggest you start reading those and experiment with it.

You didn't want us to do your homework for you, did you?

Have fun, Frans

Hi,

You can start LINUX DEVICE DRIVERS 3RD EDITION it is simple and has a sample. Section 2 and 3 yseful for you.

Saygılarımla

Murat MAMAN

Perhaps out of scope, but you could always bang the hardware itself.
Boot an image directly and implement your own 'os' that has a couple
of system calls and a serial 'driver' and led 'driver' and some
program that uses them. Depends if it's an OS course or a computer
hardware one I guess.

I'm trying to find useful resources that will help me write, compile
and build a simple LED device driver into an Angstrom image. I've been
searching for days without success. This is for a school project so
even though I know I can simply open and toggle the pin through the
existing gpio system class, that's not the assignment...

I'm not stuck with the Angstrom/BB environment either, so if you know
a dist that would make this easier, let me know.

Read one of the driver books. There are some subtle changes in API's
but this example may help you work through those:

Philip