Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nanonote toolchain
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
manaru
n00b
n00b


Joined: 07 Jan 2008
Posts: 26

PostPosted: Thu May 06, 2010 12:51 am    Post subject: nanonote toolchain Reply with quote

Hi,

i try to build a valid toolchain for nanonote ben. i cannot get a valid toolchain/binarys. Its the second time i make it (openmoko with tutorial) so please be thoughtful.
device: http://en.qi-hardware.com/wiki/Ben_NanoNote

file on nano bin: ELF 32-bit LSB executable, MIPS, MIPS32 version 1, dynamically linked (uses shared libs), corrupted section header size
file on my bin: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), with unknown capability 0xf41 = 0x756e6700, stripped


I think it is because of SYSV.


chroot is not possible
root@BenNanoNote:/mnt# chroot . /bin/bash
chroot: can't execute '/bin/bash': No such file or directory


emerge-mipsel-softfloat-linux-uclibc --info
Portage 2.1.8.3 (!/usr/local/portage/nanonote-overlay/profiles/nanonote, gcc-4.4.3, unavailable, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-1.12.13
Timestamp of tree: Wed, 05 May 2010 11:00:01 +0000
app-shells/bash: 4.0_p37
dev-lang/python: 2.6.4-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.10.3
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -march=mips32 -mtune=mips32"
CHOST="mipsel-softfloat-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -pipe -march=mips32 -mtune=mips32"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS=""
MAKEOPTS="-j5"
PKGDIR="/usr/mipsel-softfloat-linux-uclibc/packages/"
PORTAGE_CONFIGROOT="/usr/mipsel-softfloat-linux-uclibc/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/mipsel-softfloat-linux-uclibc/tmp/"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="crypt iconv make-symlinks minimal mipsel ssl zlib" ELIBC="uclibc"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


uname -a
Linux BenNanoNote 2.6.32.10 #3 PREEMPT Fri Apr 9 03:28:59 CEST 2010 mips GNU/Linux


root@BenNanoNote:/mnt# cat /proc/cpuinfo
system type : JZ4740
processor : 0
cpu model : Ingenic JZRISC V4.15
BogoMIPS : 335.05
wait instruction : yes
microsecond timers : no
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 1, address/irw mask: [0x0fff]
ASEs implemented :
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Thu May 06, 2010 6:20 pm    Post subject: Re: nanonote toolchain Reply with quote

manaru wrote:

root@BenNanoNote:/mnt# chroot . /bin/bash
chroot: can't execute '/bin/bash': No such file or directory


Have you tried linking your test app statically?
Back to top
View user's profile Send private message
manaru
n00b
n00b


Joined: 07 Jan 2008
Posts: 26

PostPosted: Thu May 06, 2010 10:19 pm    Post subject: Reply with quote

no, but uclibc was installed. i just compile it again with static

ROOT=/nano/ emerge-mipsel-softfloat-linux-uclibc busybox coreutils bash uclibc -bkpvNe
[ebuild N ] sys-libs/ncurses-5.7-r3 to /nano/ USE="minimal -ada -cxx -debug -doc -gpm -profile -trace -unicode"
[ebuild N ] sys-libs/uclibc-0.9.30.1-r1 to /nano/ USE="minimal -build -crosscompile_opts_headers-only -debug -hardened -ipv6 -savedconfig -ssp -uclibc-compat -wordexp"
[ebuild N ] sys-apps/busybox-1.16.0 to /nano/ USE="make-symlinks mdev static -debug -ipv6 -pam -savedconfig -selinux"
[ebuild N ] sys-apps/coreutils-8.5 to /nano/ USE="static -acl -caps -gmp -nls -selinux -unicode -vanilla -xattr"
[binary N ] app-shells/bash-4.1_p5 to /nano/ USE="net -afs -bashlogger -examples -mem-scramble -nls -plugins -vanilla"
Back to top
View user's profile Send private message
manaru
n00b
n00b


Joined: 07 Jan 2008
Posts: 26

PostPosted: Thu May 06, 2010 10:46 pm    Post subject: Reply with quote

THX! busybox works now and i think i just have to install baselayout for bash.... after this works i need a kernel. sadly it is embedded into the toolchain/buildenv of openwrt http://en.qi-hardware.com/wiki/Building_Software_Image

will continute reporting here and in future in gentoo-wiki or qi-hardware.

root@BenNanoNote:/mnt# chroot .
@BenNanoNote:/# bash
bash: /dev/null: No such file or directory
BenNanoNote / # qfile /dev
bash: qfile: command not found
BenNanoNote / #

edit 01:13 cest
portage; kernel
but python is tricky like ncurses with cxx
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Fri May 07, 2010 2:58 pm    Post subject: Reply with quote

<shameless plug>

I have a snapshot of a softfloat MIPS32 gentoo installation here:
http://mlau.at/files/mips32-linux/

Only difference is that it's based on glibc, not uclibc. But it contains
everything you need to compile stuff.

</shameless plug>
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