LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-12-2015, 03:52 PM   #1
newhorizon101
LQ Newbie
 
Registered: Apr 2014
Posts: 16

Rep: Reputation: Disabled
Custom platform device


Greetings,

I am working on a proprietary prototype hardware, running 3.10-ltsi. My processor is Arm A9 Cortex.

I have a platform device driver to fetch the data from an external IO device, I recently enabled the CONFIG_PCI option in my config, since then the my driver for the external IO device doesnt work.

I have a printk to print when the open is called.

Without CONFIG_PCI, I see my printk in the driver open function gets called if I do, cat /dev/frontIO

With CONFIG_PCI device, upon doing cat /dev/frontIO, all i get is constant prints of "invalidinvalidinvalidinvalid"

Any clues to any one ?
 
Old 10-15-2015, 09:15 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,838
Blog Entries: 13

Rep: Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893Reputation: 4893
I believe you haven't offered anywhere near enough information for anyone to assist you.

From what I can tell: You wrote a custom driver, and you have a printk() statement at the module_init, and based on your kernel configuration your driver doesn't get loaded.

Firstly: Is your driver a standalone module, or did you modify the kernel to call your driver? If you modified the kernel to account for your driver, then it does matter what sub-system of code you performed this modification too. Since you specifically identified CONFIG_PCI, then in the kernel and the modules, there should be conditionals related to that definition. I'd check to see if a normal place in the kernel which would load your module now will not run because of your change. Next I'd check to see if things which your module depends upon are no longer present due to your change.

Is "invalidinvalidinvalid" a print string of yours? Have you tried to search code for printk() statements where "invalid" will be output? I'll grant that there are likely many places where this string will show up, but maybe if you search specifically looking for it as part of a printk() or printf() or system log call, and limit to certain sections, you may find the source of it. And also be able to validate it by modifying certain statements and checking to see what modifications end up making it to your system log. And then perhaps you can trace this down further.

Clearly your module is not being loaded, but now you'll need to dig a bit further to determine what is different. Given that you changed CONFIG_PCI, I'd search all code related to that definition and then parry down that search as you classify the results between "possibly meaningful" versus "not a factor".
 
  


Reply


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
how platform device drivers are different sunil.d Linux - Newbie 2 09-04-2015 08:11 AM
LXer: Box CEO Levie predicts in five years custom apps on top of platform will be bigger than generi LXer Syndicated Linux News 0 03-11-2014 02:30 AM
LXer: New Development in Cybertechâ??s Custom Online Gaming Platform LXer Syndicated Linux News 0 12-14-2011 02:40 AM
Looking for an embedded wireless device platform NedRyerson Linux - Embedded & Single-board computer 2 01-21-2009 12:14 PM
LXer: Multi-Platform XML Custom-Coded Java Framework LXer Syndicated Linux News 0 10-11-2006 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:06 PM.

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