Author Topic: ARM Linux Drivers  (Read 2040 times)

0 Members and 1 Guest are viewing this topic.

Offline yanirTopic starter

  • Regular Contributor
  • *
  • Posts: 216
  • Country: us
ARM Linux Drivers
« on: December 14, 2012, 08:18:29 pm »
Hi, I'm working in a ARM project that will run a linux distro. I need to interface the ARM with a custom device I will design. If I wanted to communicated with my custom device via serial UART, how would I go about writing the drivers in linux. I have a background in software development, but I'm new to linux drivers and ARM.  Any help or links would be appreciated.

Thanks
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 27825
  • Country: nl
    • NCT Developments
Re: ARM Linux Drivers
« Reply #1 on: December 14, 2012, 08:31:42 pm »
If you connect the device to a UART of the ARM SoC then you won't need any drivers. They should be provided by the board support package. Writing your own driver isn't very difficult if you stick to character devices. Pick a free major number and then you can use read, write and ioctl to talk to the driver. There is a book called 'linux device drivers' which shows some of the basics but its not the ultimate guide because the driver model of Linux tends to change very quick which is a real PITA. I usually look for a driver from the kernel source which is close to what I want and use that as a template to develop from.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline yanirTopic starter

  • Regular Contributor
  • *
  • Posts: 216
  • Country: us
Re: ARM Linux Drivers
« Reply #2 on: December 14, 2012, 10:25:46 pm »
Thanks for the tip! I'll look into that. Sounds like it should be straight forward then.
 

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: ARM Linux Drivers
« Reply #3 on: December 14, 2012, 11:07:33 pm »
Quick question. Can you run Ardunio out-of-the-box with a raspberry pi?

iratus parum formica
 

Offline Quiggers

  • Contributor
  • Posts: 28
Re: ARM Linux Drivers
« Reply #4 on: January 06, 2013, 09:26:36 pm »
thats a quick unrelated question
but yes you can run the arduino ide on a PI,
just dl the linux arduino package

http://arduino.cc/en/Main/Software
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf