Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Porting the Broadcom b44 network driver from Linux
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop
View previous topic :: View next topic  
Author Message
jaspras



Joined: 13 Sep 2007
Posts: 96
Location: Greece

PostPosted: Fri Jan 23, 2015 12:52 am    Post subject: Reply with quote

Check under /system/development/headers
Back to top
View user's profile Send private message
jaspras



Joined: 13 Sep 2007
Posts: 96
Location: Greece

PostPosted: Fri Jan 23, 2015 12:54 am    Post subject: Reply with quote

if you got that


export ATHEOS_SRC=/usr/src

where /usr/src is where the code of syllable stands


you are developing in kernel mode so you will need that
Back to top
View user's profile Send private message
nute



Joined: 01 Aug 2009
Posts: 20

PostPosted: Fri Jan 23, 2015 2:50 am    Post subject: Got the headers installed... Reply with quote

I'm trying to get the example dummy driver to build, it won't.

Looks like kerndbg(...) is a macro for printk that may not be defined anymore.

These don't seem to be defined either:

KERN_INFO
KERN_WARNING
KERN_DEBUG
PCI_BUS_NAME
PCI_BUS_VERSION
DEVICE_SYSTEM

And I get an error that g_sDevOps is undeclared...

My #includes are as follows:

atheos/types.h
atheos/device.h
atheos/pci.h
atheos/kdebug.h
posix/errno.h

Found the Syllable-0.6.7 headers and installed them.
Back to top
View user's profile Send private message
nute



Joined: 01 Aug 2009
Posts: 20

PostPosted: Fri Jan 23, 2015 3:06 am    Post subject: Syllable 0.6.6 source... Reply with quote

Note that I only have the syllable-0.6.6 source code which may explain why I've been having problems trying to use it as a reference to figure out why the example code doesn't work yet Wink
Back to top
View user's profile Send private message
Ronaldlees



Joined: 15 Oct 2014
Posts: 148

PostPosted: Fri Jan 23, 2015 8:09 am    Post subject: Hi Reply with quote

I hope you can build your new driver. The example syllable net driver docs are about the best I've seen. They should help a lot. Your header files are missing. I went through the same process as you, and the following links should help:

http://web.syllable.org/pages/get-Syllable.html#installation-CD

http://forum.syllable.org/viewtopic.php?t=2224

http://development.syllable.org/documentation/drivers/introduction/part-2.html

Good luck!
Back to top
View user's profile Send private message
Ronaldlees



Joined: 15 Oct 2014
Posts: 148

PostPosted: Fri Jan 23, 2015 8:13 am    Post subject: Reply with quote

Another thing you'll need is a symlink in system/sys/include:

ln -s atheos syllable

That's probably why your atheos headers aren't being found.
Back to top
View user's profile Send private message
Ronaldlees



Joined: 15 Oct 2014
Posts: 148

PostPosted: Fri Jan 23, 2015 8:21 am    Post subject: Reply with quote

http://web.syllable.org/pages/get-Syllable.html#installation-CD

The header files are in item number 9 in link (above).
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2207
Location: Friesland

PostPosted: Fri Jan 23, 2015 9:23 am    Post subject: Reply with quote

The source code of Syllable 0.6.6 is probably sufficient as an example of drivers, but you shouldn't use the system headers from it. The system headers need to match the system exactly, so you need them from the development files pack for Syllable 0.6.7, and make sure the headers in any Syllable 0.6.6 source are not in your paths.

If you need to make odd modifications to compile 0.6.6 drivers, it's better to get example source code from the latest version in CVS. For example, the atheos symlink probably shouldn't be necessary anymore.
Back to top
View user's profile Send private message Visit poster's website
nute



Joined: 01 Aug 2009
Posts: 20

PostPosted: Thu Feb 05, 2015 12:54 am    Post subject: CVS checkout Syllable source code... Reply with quote

I'm trying to get the 0.6.7 source code.

http://syllable.cvs.sourceforge.net/viewvc/syllable/syllable/system/?pathrev=MAIN

I clicked the download tarball button.

Is there a better way to check out the source code?

How do I properly install the source when I get it?
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2207
Location: Friesland

PostPosted: Thu Feb 05, 2015 1:09 am    Post subject: Reply with quote

If the SF tarball works, that's probably easiest.

The source doesn't particularly need to be installed, just unpacked somewhere in your working directory. There's no particular place in Syllable for the system source, and you can have multiple versions to work on.

It's easiest to use Builder to compile stuff, because it will set up the environment properly. Builder reacts to where it is used, but if you have a complete system source tree, it knows its structure. It's all described in the Builder manual.
Back to top
View user's profile Send private message Visit poster's website
nute



Joined: 01 Aug 2009
Posts: 20

PostPosted: Thu Feb 05, 2015 8:29 pm    Post subject: Builder manual Reply with quote

I tried builder at the base of the source tarball I had. It tried to download source, which it can't because I don't have support for the network card yet. I have a Linux system online, is there a CVS incantation that will create a full source tree for 0.6.7? I can then zip that up and via USB thumb drive get it onto my syllable laptop.
Back to top
View user's profile Send private message
nute



Joined: 01 Aug 2009
Posts: 20

PostPosted: Thu Feb 05, 2015 8:31 pm    Post subject: Builder manual... Reply with quote

Having trouble finding the builder manual.
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2207
Location: Friesland

PostPosted: Thu Feb 05, 2015 8:35 pm    Post subject: Reply with quote

If by base you mean in the system directory, that's indeed the place to build system components.

But if it tried to download more source, you didn't give it existing source. Just provide the path to an existing driver or other module. You can use tab completion to ensure you are pointing to an existing directory.

Checking out all source is a standard CVS operation, but isn't the tarball already complete?
Back to top
View user's profile Send private message Visit poster's website
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2207
Location: Friesland

PostPosted: Thu Feb 05, 2015 8:36 pm    Post subject: Reply with quote

The Builder manual is in CVS and linked from the documentation section on our development site.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group