Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo + ARM - how to start?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
bimbarabam
n00b
n00b


Joined: 20 Dec 2012
Posts: 6

PostPosted: Thu Dec 20, 2012 2:17 pm    Post subject: Gentoo + ARM - how to start? Reply with quote

Hello!
I was using openwrt linux on my at91sam board. And now I'm thinking about installing gentoo on arm9 based uc with my own-created board. I've got few questions - is there any list of supported by gentoo MCU's? Which crosscompiler should I use? and how to transfer files from my computer to uc?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5263

PostPosted: Thu Dec 20, 2012 3:02 pm    Post subject: Reply with quote

I have a Pi, which I think is an ARM 6. I haven't done so yet, but I want to get Gentoo on it. Not sure how much this applies to what you want to do but you could check out this wiki as a starting point: http://wiki.gentoo.org/wiki/Raspberry_Pi
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.org
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 458
Location: Oslo, Norway

PostPosted: Thu Dec 20, 2012 4:16 pm    Post subject: Reply with quote

The wiki page says:

Quote:
root # crossdev -S -v -t armv6j-hardfloat-linux-gnueabi

If you get any errors or portage warnings here, please fix them.


But I get the following error:

Quote:
* please convert /etc/portage/package.keywords to a directory


From what I've read it seems like this can be a directory, rather than a file. But does it contain subdirectories, or is it simple filenames for each entry which usually resides in the file. In that case does the filename contain slashes?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32027
Location: 56N 3W

PostPosted: Thu Dec 20, 2012 5:31 pm    Post subject: Reply with quote

pgu,

I'm not sure if subdirs work or not.
rename your existing /etc/portage/package.keywords to /etc/portage/package.keywords_file
make a dir called /etc/portage/package.keywords and move /etc/portage/package.keywords_file into it.

The idea is that every file in /etc/portage/package.keywords is processed and you can use files to group things together.
Most of the files in /etc/portage have become directories. Crossdev puts make.conf there too, for the cross environment.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 458
Location: Oslo, Norway

PostPosted: Fri Dec 21, 2012 7:04 am    Post subject: Reply with quote

thanks, crossdev worked when I made directories for package.keywords and package.use.

I would expect to find more info about the directory alternative for the files in the portage man page, but I did not...
Back to top
View user's profile Send private message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 458
Location: Oslo, Norway

PostPosted: Fri Dec 21, 2012 12:56 pm    Post subject: Reply with quote

I can't seem to run the binaries built using my crossdev tools on my Gentoo system, but it works on my Debian system:

Gentoo:
Code:
# ./hello
-bash: ./hello: No such file or directory
# file ./hello
./hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
# uname -srvmpio
Linux 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l ARMv6-compatible processor rev 7 (v6l) BCM2708 GNU/Linux
# cat /etc/gentoo-release
Gentoo Base System release 2.1


Debian:
Code:
# ./hello
hello pi
# file ./hello
./hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
# uname -srvmpio
Linux 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l unknown unknown GNU/Linux
# cat /etc/debian_version
6.0.4
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32027
Location: 56N 3W

PostPosted: Fri Dec 21, 2012 1:57 pm    Post subject: Reply with quote

pgu,

The linker on a native ARM system is called
Code:
/lib/ld-2.16.so
or whatever your version of glibc is.
To keep binaries happy, there is also a symlink
Code:
 /lib/ld-linux-armhf.so.3


However, the Gentoo crossdev toolchain built binaries look for ld as
Code:
/lib/ld-linux.so.3
, which is missing.
You need to make a symlink like
Code:
/lib/ld-linux.so.3 -> ld-linux-armhf.so.3
on your target system
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
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