Quote:
Originally Posted by jonathan_s
I have installed and used the poky cross-build environment and emulator, and have been building kernel modules. So I think I probably only need the specifics for your code.
|
I assume you have read the
development document from the iRex website and downloaded the sources. First execute:
Code:
source /usr/local/poky/eabi-glibc/arm/environment-setup
to prepare your shell.
Next go to the component you want to build and do:
Code:
export MACHINE_NAME=dr1000s
autoreconf --install
intltoolize
./configure --host=arm-poky-linux-gnueabi --sysconfdir=/etc --prefix=/usr
make install-strip DESTDIR=~/Development/4.0/Install/
(I use ~/Development/4.0/Install/ to store the build results, so you may need to change this.)
Depending on what I have build I copy it to the emulator:
scp ../../Install/usr/bin/erkeybd root@qemu:/usr/bin/
or:
scp ../../Install/usr/lib/liberkeyb.so.0.0.1 root@qemu:/usr/lib/
Note that this does not work for programs that are executing, first copy them to another location on the qemu and then from the qemu to the correct location.
(You can log into the qemu using ssh qemu)
When changing library interfaces, you also need to install the changed header files in the development environment:
Code:
make install-strip DESTDIR=/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi
Or copy them manually to the development environment. (You may need to change permissions in the development environment.)
I hope that I got everything correct and that it is enough to get you up and running.