Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 04-08-2008, 09:24 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
Linux 2.6 Driver Problem

Greetings All!
Having a problem migrating a fully functional 2.4 device driver (a new design, uses /devs). We came up with a scheme whereby any device that requires "special" access, becomes it's own /dev and we load the special code that does all the magic to access the device.
The HW setup uses a PMC CPU (PPC-440) that plugs into a motherboard. We then have a PCI Bridge (PLX-9056) that takes the PCI bus and gives us access to the various devices on the motherboard via a local bus (Motorola style).
The 2.4 version seems to work/function just fine, we can access all of the various devices just fine.

When we move to 2.6 it appears as though either
A. the pci bus fails to work for some addresses
B the ioremap fails to work for some addresses

The failed devices are in bar 3 at 0x80000000 and up, but I have been unsuccessful in making them work in the 0x90000000 region either, which normally houses the fpga which works just fine.

I believe itís the higher address bits that are failing some where, this being a ppc with to many address lines.

The kernel we have is 2.6.22, a home brewed one. That being said, most of the documentation we can get is based upon older 2.6.1x kernels. I believe there were some significant changes regarding drivers that occurred around 2.6.17/.18/.19. Anybody know where to get some updated information?

Has anyone run into a similar problem with the 2.6 kernels as described? Any pointers/assistance would be greatly appreciated, we're kinda stuck right now.

Thanks in Advance!

Old 04-14-2008, 02:17 AM   #2
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50

You'll find there all the API changes for the 2.6 kernels:

and I'm sure you're already know the book "Linux Device Driver 3" which is freely downloadable there:

But, you're talking about "ioremap", do you use this function to get the bar addresses? If I good remember, you should use "pci_iomap" for this purpose, especially for PPC arch, but its just memories...

Hope it'll help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless problem using linux driver fakie_flip Linux - Wireless Networking 8 01-03-2008 09:46 PM
wireless problem with linux driver fakie_flip Linux - Wireless Networking 4 12-30-2007 01:05 PM
driver to device mapping problem in Linux suchi Linux - Kernel 1 01-09-2007 07:18 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration