How to build osmocon for the target?
Hello everyone! I'm trying to run osmocombb on Neo Freerunner. Read and hopefully understood http://bb.osmocom.org/trac/wiki/{CalypsoRomloader,osmocon,OpenMoko}. 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... Thanks in advance, D.
isn't that ./configure --host=arm-proper-triplet? you may need to update your $PATH. that seems too simple, am I missing something? Sebastien On Tue, Mar 29, 2011 at 1:51 PM, Dave Schmidt <dvsm89@gmx.com> wrote:
Hello everyone!
I'm trying to run osmocombb on Neo Freerunner. Read and hopefully understood http://bb.osmocom.org/trac/wiki/{CalypsoRomloader,osmocon,OpenMoko}.
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...
Thanks in advance,
D.
Hi Dave, list, On 29/03/2011 13:51, Dave Schmidt wrote:
I'm trying to run osmocombb on Neo Freerunner. Read and hopefully understood http://bb.osmocom.org/trac/wiki/{CalypsoRomloader,osmocon,OpenMoko}.
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...
The Openmoko Freerunner has two CPUs: one for the main operating system (the host), and one for the baseband (the target). Here osmocon is running on the host as usual. So technically, you either need to: - compile osmocombb with a native ARM compiler, possibly on the Openmoko (can be slow though) - cross-compile osmocombb for Openmoko, which may require a different compiler than the one recommended for the target. Alternatively, you can use the Debian packages from the hackable:1 project: http://trac.hackable1.org/ http://build.hackable1.org/debian/dists/wip-squeeze/main/binary-armel/ HTH, -- khorben
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/{CalypsoRomloader,osmocon,OpenMoko}.
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 [1] http://wiki.openmoko.org/wiki/Toolchain
participants (4)
-
Alex Badea -
Dave Schmidt -
Pierre Pronchery -
Sébastien Lorquet