cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
raviphulsundar
Visitor
Visitor
3,710 Views
Registered: ‎02-23-2011

using custom IP in linux

Dear all,

 

Kindly help me.

 

I have connected my own peripheral to PLB slave bus.

Kindly help me to

how to access my own peripheral on linux platform

 

thanx in advance

0 Kudos
3 Replies
ra
Xilinx Employee
Xilinx Employee
3,705 Views
Registered: ‎11-12-2007

That's a complicated question - it depends a lot on what your custom peripheral does, but typically you'll need to create a driver to tell the Linux kernel how to talk to your peripheral. You might want to take a look at this online reference book; there's a lot of information in there to help you get started.

 

http://lwn.net/Kernel/LDD3/

 

Cheers,

Rob

0 Kudos
Anonymous
Not applicable
3,701 Views

I agree with Rob.. The one thing you'll find missing from the book is information on Open Firmware/Device tree and how to add the support to your driver. Your best bet is to study the OF documentation in the kernel docs, and look at an existing microblaze/powerpc driver to see how the OF/device tree support was implemented.

 

Another option for simple devices is writing a user-space driver. You can search the wiki and this forum for examples of how to do this. Many time this is all you need, especially if you just need to setup some control registers and monitor status.

 

Terry

 

0 Kudos
raviphulsundar
Visitor
Visitor
3,697 Views
Registered: ‎02-23-2011

Dear Rob

 

Thanx for quick reply

 

 

I will go through the LDD3

and also the existing driveres developed for xilinx devices in linux source tree

 

 

 

0 Kudos