Hi,
On 2011-03-29 14:51, Dave Schmidt wrote:
I'm trying to run osmocombb on Neo Freerunner. Read and hopefully understood http://bb.osmocom.org/trac/wiki/%7BCalypsoRomloader,osmocon,OpenMoko%7D.
One thing I completely miss is how to build osmocon for the target phone to be able to run ./osmocon -i 13 -m romload -p /dev/ttySAC0 layer1.highram.bin In the source tree, osmocon is built only for the host, and I do not see any configuration options to enable it also for the phone...
You can cross-compile the osmocon and layer 2/3 binaries on a PC.
You'll need an additional toolchain [1], then to build osmocom-bb:
$ make HOST_CONFARGS="--host=arm-angstrom-linux-gnueabi"
On my machine this ends up using:
$ arm-angstrom-linux-gnueabi-gcc -v Using built-in specs. Target: arm-angstrom-linux-gnueabi Configured with: /home/walkingice/moko/build/omdev/work/i686-armv4t-sdk-angstrom-linux-gnueabi/gcc-cross-sdk-4.1.2-r8/gcc-4.1.2/configure --build=i686-linux --host=i686-linux --target=arm-angstrom-linux-gnueabi --prefix=/usr/local/openmoko/arm --exec_prefix=/usr/local/openmoko/arm --bindir=/usr/local/openmoko/arm/bin --sbindir=/usr/local/openmoko/arm/bin --libexecdir=/usr/local/openmoko/arm/libexec --datadir=/usr/local/openmoko/arm/share --sysconfdir=/usr/local/openmoko/arm/etc --sharedstatedir=/usr/local/openmoko/arm/share/com --localstatedir=/usr/local/openmoko/arm/var --libdir=/usr/local/openmoko/arm/lib --includedir=/usr/local/openmoko/arm/include --oldincludedir=/usr/local/openmoko/arm/include --infodir=/usr/local/openmoko/arm/share/info --mandir=/usr/local/openmoko/arm/share/man --with-gnu-ld --enable-shared --enable-target-optspace --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-angstrom-linux-gnueabi- --disable-libssp --disable-libmudflap --with-float=soft --with-local-prefix=/home/walkingice/moko/build/omdev/staging/arm-angstrom-linux-gnueabi/usr --with-gxx-include-dir=/home/walkingice/moko/build/omdev/staging/arm-angstrom-linux-gnueabi//usr/include/c++ --with-sysroot=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi --with-build-time-tools=/home/walkingice/moko/build/omdev/cross/arm-angstrom-linux-gnueabi/bin --with-build-sysroot=/home/walkingice/moko/build/omdev/staging/arm-angstrom-linux-gnueabi --disable-libunwind-exceptions --with-mpfr=/home/walkingice/moko/build/omdev/staging/i686-linux/usr --enable-__cxa_atexit Thread model: posix gcc version 4.1.2
Cheers, Alex