EV3 Source Code available

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

EV3 Source Code available

Post by mightor »

Hey peeps,

The source code for the EV3 is now online and available for downloading: http://botbench.com/blog/2013/07/31/leg ... available/

= Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
mrblp
Posts: 82
Joined: 02 Oct 2010, 14:33

Re: EV3 Source Code available

Post by mrblp »

Thank you very much :-)
(Now it is on my pc, too. Even if I get the EV3 later this year...)

Bye Marvin
Bye Marvin

- "I think you ought to know I'm feeling very depressed." - (Android Marvin in "The Hitchhiker's Guide to the Galaxy" by Douglas Adams, 1978)
mrblp
Posts: 82
Joined: 02 Oct 2010, 14:33

Re: EV3 Source Code available

Post by mrblp »

Hello,

Oh dear - that one is another story than the NXT firmware. Great: In many of the module-files are specs, eg for the sensor detection, protocols, etc. In some of them are danish comments ;-) But now its time to sleep - my eyes are getting very tired...

One other question: Do I need to store all this in "/home/al/projects/..."? The .d-files have this hard coded in many lines...

Bye Marvin
Bye Marvin

- "I think you ought to know I'm feeling very depressed." - (Android Marvin in "The Hitchhiker's Guide to the Galaxy" by Douglas Adams, 1978)
tcwan
Posts: 186
Joined: 30 Sep 2010, 07:39

Re: EV3 Source Code available

Post by tcwan »

mightor wrote:Hey peeps,

The source code for the EV3 is now online and available for downloading: http://botbench.com/blog/2013/07/31/leg ... available/

= Xander
Thanks! That was quick :D

The docs seem to be quite preliminary, though the Architecture diagram helps.
~/ev3sources/lms2012/lms2012/doc/html/architecture.html

The Botbench link refers to a NXT<->USB Serial Dongle. Is this for the Linux Console and which NXT port does it hook up to?
What about using the USB port on the EV3 itself to communicate between the PC and the NXT? Is there support for remote GDB debugging?
In addition, are there any new Fantom Drivers released to support the EV3? (I'm specifically interested in Mac OSX Fantom Driver status).

(Sorry for asking so many questions as once :mrgreen:)
tcwan
Posts: 186
Joined: 30 Sep 2010, 07:39

Re: EV3 Source Code available

Post by tcwan »

Quick summary of what I've found so far:

1. Busybox, Dropbear SSH and gdbserver are all included. Good.
2. The NXT low level libraries (c_*) are not really meant to be directly accessed by user programs, this means that a higher level library probably is needed for normal application development.
3. lms2012.c (the NBC VM) is over 5000 lines! :x It would be insane to try and figure out all the details from this one file. Pity the guy who's maintaining it...

A useful book for those wishing to get into hacking the EV3 is:
"Embedded Linux Primer: A Practical Real-World Approach" by Christopher Hallinan, ISBN 0-13-167984-8
http://www.amazon.com/s/ref=nb_sb_noss? ... 3-167984-8
There is now a 2nd Edition available, but I don't have it:
http://www.amazon.com/Embedded-Linux-Pr ... pd_sim_b_3
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: EV3 Source Code available

Post by mightor »

Just so you know, the documentation does not always match the reality. The architecture picture is largely inaccurate.

= Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
tcwan
Posts: 186
Joined: 30 Sep 2010, 07:39

Re: EV3 Source Code available

Post by tcwan »

mightor wrote:Just so you know, the documentation does not always match the reality. The architecture picture is largely inaccurate.

= Xander
Ah, yes, I am aware :D

In any case, I found out that the Linux Distro is based on TI DaVinci Linux.
http://processors.wiki.ti.com/index.php ... P_Releases

The release bundled with the ev3sources is based on DaVinci PSP Release 3.20.00.13 using a 2.6.x kernel, while the latest supported on the platform is PSP Release 3.22.00.02 using a 3.3.x kernel. There's some additional hardware driver support in the 3.3 kernel.

I wonder how much impact the 3.3.x kernel would have on the platform (e.g. memory footprint, etc.).
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: EV3 Source Code available

Post by mightor »

I'd say make a new tree and try it out :)

= Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests