View previous topic :: View next topic |
Author |
Message |
bimbarabam n00b
Joined: 20 Dec 2012 Posts: 6
|
Posted: Thu Dec 20, 2012 2:17 pm Post subject: Gentoo + ARM - how to start? |
|
|
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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Thu Dec 20, 2012 4:16 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54276 Location: 56N 3W
|
Posted: Thu Dec 20, 2012 5:31 pm Post subject: |
|
|
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 |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Fri Dec 21, 2012 7:04 am Post subject: |
|
|
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 |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Fri Dec 21, 2012 12:56 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54276 Location: 56N 3W
|
Posted: Fri Dec 21, 2012 1:57 pm Post subject: |
|
|
pgu,
The linker on a native ARM system is called 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, 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 |
|
|
|