Difference between revisions of "Talk:Gentoo embedded"

From ElphelWiki
Jump to: navigation, search
 
(6 intermediate revisions by 3 users not shown)
Line 4: Line 4:
  
 
I have created a crossdev crisv32-axis-linux-uclibc. Glibc was broken on another point in the middle of compilation. Now I'm trying to actually get a normal program to compile with the toolchain just made.
 
I have created a crossdev crisv32-axis-linux-uclibc. Glibc was broken on another point in the middle of compilation. Now I'm trying to actually get a normal program to compile with the toolchain just made.
And to answer your question, to get the axis compilation to work is trivial, what is not trivial is to compile things with an old GCC ;)
+
And to answer your question, to get the axis compilation to work is trivial, I made a hello world with that, but it is not trivial is to compile things with an old GCC ;) So if this works it gives me an uclibc system, I can run the camera from and a cross compiler to make software. And I presume crisv32 is more optimal than cris.
  
--[[User:Skinkie|Skinkie]] 13:39, 6 September 2008 (CDT)
+
--[[User:Skinkie|Skinkie]] 13:52, 6 September 2008 (CDT)
 +
 
 +
As far as I know cris and crisv32 are different arch. EtraxFS is crisv32.
 +
 
 +
About testing the rootfs... It's safe. The camera is unkillable. :) You can boot in a network boot mode and reflash the camera.
 +
 
 +
The network boot loader is build in to the EtraxFS SoC. To put the camera in this mode you have to power-up-down-up the camera 6 times with a 3 second delay between each operation. More on this in the beginning of http://linuxdevices.com/articles/AT5102023409.html
 +
 
 +
--[[User:Polto|Alexandre.Poltorak]] 20:07, 6 September 2008 (CDT)
 +
 
 +
...I really think I should connect the serial cable and become a professional embedded user ;) Does it do TFTP? Or is the network boot something proprietary?
 +
 
 +
--[[User:Skinkie|Skinkie]] 11:15, 7 September 2008 (CDT)
 +
 
 +
Are you sure you need uclibc? As I understand this library is used for the processors w/o MMU. ETRAX (and camera) uses regular libc ( http://192.168.0.9/admin-bin/editcgi.cgi?file=/lib )--[[User:Andrey.filippov|Andrey.filippov]] 20:18, 7 September 2008 (CDT)
 +
 
 +
''Need'' is a big word, Axis supports newlib. But I ''needed'' a supported libc version for crosscompiling, and a ''newer'' GCC. That uClibc is also smaller could be considered beneficial.
 +
 
 +
--[[User:Skinkie|Skinkie]] 22:02, 7 September 2008 (CDT)
 +
 
 +
I don't really think that smaller library would make a big difference - the other ones are already there. And compared to 3 copies of PHP running as FastCGI applications - that's nothing--[[User:Andrey.filippov|Andrey.filippov]] 00:58, 8 September 2008 (CDT)

Latest revision as of 21:58, 7 September 2008

Why don't you try to make an ebuild for Axis' cris-dist-glibc ?

--Alexandre.Poltorak 13:24, 6 September 2008 (CDT)

I have created a crossdev crisv32-axis-linux-uclibc. Glibc was broken on another point in the middle of compilation. Now I'm trying to actually get a normal program to compile with the toolchain just made. And to answer your question, to get the axis compilation to work is trivial, I made a hello world with that, but it is not trivial is to compile things with an old GCC ;) So if this works it gives me an uclibc system, I can run the camera from and a cross compiler to make software. And I presume crisv32 is more optimal than cris.

--Skinkie 13:52, 6 September 2008 (CDT)

As far as I know cris and crisv32 are different arch. EtraxFS is crisv32.

About testing the rootfs... It's safe. The camera is unkillable. :) You can boot in a network boot mode and reflash the camera.

The network boot loader is build in to the EtraxFS SoC. To put the camera in this mode you have to power-up-down-up the camera 6 times with a 3 second delay between each operation. More on this in the beginning of http://linuxdevices.com/articles/AT5102023409.html

--Alexandre.Poltorak 20:07, 6 September 2008 (CDT)

...I really think I should connect the serial cable and become a professional embedded user ;) Does it do TFTP? Or is the network boot something proprietary?

--Skinkie 11:15, 7 September 2008 (CDT)

Are you sure you need uclibc? As I understand this library is used for the processors w/o MMU. ETRAX (and camera) uses regular libc ( http://192.168.0.9/admin-bin/editcgi.cgi?file=/lib )--Andrey.filippov 20:18, 7 September 2008 (CDT)

Need is a big word, Axis supports newlib. But I needed a supported libc version for crosscompiling, and a newer GCC. That uClibc is also smaller could be considered beneficial.

--Skinkie 22:02, 7 September 2008 (CDT)

I don't really think that smaller library would make a big difference - the other ones are already there. And compared to 3 copies of PHP running as FastCGI applications - that's nothing--Andrey.filippov 00:58, 8 September 2008 (CDT)