Skip to contentSkip to conversation

Custom Driver

DISCUSSION Brett McNerney 3 participants 3 messages Jan 3, 2006

lore
Share & tools
lore
#0 lore raw

I am need to create a driver to interface to custom hardware on a ml403 board. I am first trying to just create a ipif register bank and access the registers from linux but am not having any luck of yet. Has anyone successfully done this and if so explain how or supply a driver to do this and how to build it into the kernel? I am new at this and am having great difficutly right now.

Thanks for any help anyone can supply

Brett

#1 lore raw
Quoted 8 lines · Brett McNerney

I am need to create a driver to interface to custom hardware on a ml403 board. I am first trying to just create a ipif register bank and access the registers from linux but am not having any luck of yet. Has anyone successfully done this and if so explain how or supply a driver to do this and how to build it into the kernel? I am new at this and am having great difficutly right now.

Thanks for any help anyone can supply

Can you access your device from a debugger, or a no-os program (like a bootloader)? Did you call ioremap() to map the physical register address into virtual memory? Can you give more detail?

g.

Signature · 3 lines
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 663-0761
#2 lore raw
Quoted 3 lines
Quoted 2 lines · Brett McNerney

I am need to create a driver to interface to custom hardware on a ml403 board. I am first trying to just create a ipif register bank and

access

Quoted 9 lines
Quoted 6 lines

the registers from linux but am not having any luck of yet. Has anyone successfully done this and if so explain how or supply a driver to do this and how to build it into the kernel? I am new at this and am having great difficutly right now.

Thanks for any help anyone can supply

Can you access your device from a debugger, or a no-os program (like a bootloader)? Did you call ioremap() to map the physical register address into virtual memory? Can you give more detail?

I have already wrote I custom driver for Xilinx FPGA.
For this I have looked to already exist driver for Xilinx in Linux tree and modify them for me.
It was no problem then.

g.

Signature · 3 lines
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 663-0761