- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if I add a device IP to SoPC,how can I write a driver to drive this device under uClinux?Who can help me?Thanks!
Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Dec 25 2006, 09:24 PM please loot at,
http://nioswiki.jot.com/wikihome/operating...duleprogarmming (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/moduleprogarmming)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20215)
--- quote end ---
--- Quote End --- Hi hippo: I use microtronix uclinux,and I tried the example,after I download the kernel and filesystem to the board(stratix II EP2S60F1020C4),I run the application, it failed, the error is "open error:can't find hello". What's wrong with it?What could I do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by wzl540+dec 26 2006, 05:48 am--><div class='quotetop'>quote (wzl540 @ dec 26 2006, 05:48 am)</div>
--- quote start ---
<!--quotebegin-hippo@Dec 25 2006, 09:24 PM please loot at,
http://nioswiki.jot.com/wikihome/operating...duleprogarmming (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/moduleprogarmming)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20215)
--- quote end ---
--- Quote End --- Hi hippo: I use microtronix uclinux,and I tried the example,after I download the kernel and filesystem to the board(stratix II EP2S60F1020C4),I run the application, it failed, the error is "open error:can't find hello". What's wrong with it?What could I do? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20219)</div> [/b] --- Quote End --- you haven't builded the filesystem again!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TO_BE_DONE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should develope uClinux on a Linux PC.
And don't mix-up kernel module and user apps, thought they all called hello.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Dec 26 2006, 09:49 AM you should develope uclinux on a linux pc.
and don't mix-up kernel module and user apps, thought they all called hello.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20225)
--- quote end ---
--- Quote End --- Hi hippo: I develop the nios under windows,using nios II IDE,and microtrnix uclinux.I use the hello driver programme in the web you gave,and do what it said,then I write an application to call the hello driver,it failed,the error is "can't find hello driver". if I call "dev/mem" driver which had existed,it succeed. why did I fail to add the hello driver module to uClinux?Is there anything else I need to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The hello module in the wiki does not support any open,read,write,close operationing functions. So you cannot do any operations on it. It is only a very simple module, with only init and exit. You should follow the book "Linux Device Driver" to get more examples.
Microtronix stated "not for kernel development" in their guide. You should really move to Linux PC. You have to learn Linux before you can develope Nios2 uClinux. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page