Pages: 1 [2]   Go Down
Author Topic: Arduino Ethernet no network connection(toolchain problem on amd64 linux)  (Read 4370 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well,
first of all with IDE on windows all modes work fine.
On Linux no mode works at all. It didn't even succeed the init of e.g. EthernetClient object.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to add some a little comment. Looks like we have a bug at Ethernet class. Following another topic at this forum [1], I have found that Ethernet.begin method expect a different parameter than exposed at the documentation.

Quote
version 0022 Ethernet.begin(mac, ip, gateway, subnet);
version 1.0   Ethernet.begin(mac, ip, subnet, gateway);

It is weird. How can I file a bug about it?

Regards
[1] http://arduino.cc/forum/index.php?action=printpage;topic=52664.0
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5982
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually, that is incorrect for v1.0. Here are the options for the Ethernet.begin() function:

Ethernet.begin(mac);
Ethernet.begin(mac,ip);
Ethernet.begin(mac,ip,dns);
Ethernet.begin(mac,ip,dns,gateway);
Ethernet.begin(mac,ip,dns,gateway,subnet);

There is a dns server ip in there too.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, I have just found it out. There is an updated documentation where we can look at this? I am new with arduino too, so I am not really sure where to get this updated documentation. Thanks a lot for your help.
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5982
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did not get that from documentation. I dig through the ethernet library source code. It is much better than documentation to me.

Here is a link to the documentation, and it is not correct for either version.
http://arduino.cc/en/Reference/EthernetBegin
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Finally it seems I was able to get a working toolchain on gentoo/AMD64:
Now I was able to compile and run blink and DhcpAdressPrinter  smiley-mr-green

I will do some more tests the next few days and report back if this toolchain can be considered stable.

Thanks again to all who tried to help
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5982
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Insure you report any performance improvements to the Gentoo crew. Does Gentoo have a repository or just a package library?

Debian and Ubuntu suffered from this same kind of stuff. It can be fixed.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sadly, all infos I used are already reported bugs  smiley-sad
What do you mean with performance improvement ?

greetings
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5982
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What I mean by "performance improvement" is going from "not working" to "working". I call that an improvement.  smiley

If they are all reported bugs, why does Gentoo have problems with them? Where are you getting the buggy avr toolchain? Is it from the Gentoo repository?

edit: The Ubuntu package manager will insure your install has the recent avr toolchain. That prevents problems like that. There is no "./configure" and "MAKE", just install from the GUI package manager.
« Last Edit: March 23, 2012, 12:29:29 pm by SurferTim » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hm good question. the toolchain builder is the one from the repository and it's fetching recent versions of avr* packages. I'm not informed enough to make any guesses why it isn't fixed yet...
Logged

Pages: 1 [2]   Go Up
Jump to: