View source for User:Hiciu
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to User:Hiciu.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to User:Hiciu.
We moved here: http://hiciu.rootnode.net/arch/(DEAD LINK). This page is probably outdated.
Needed packages:
yaourt -S crosstool-ng-svn
mkdir ~/toolchain-build cd ~/toolchain-build
wget http://shelli.fi/~bane/.config
ct-ng menuconfig
ct-ng build
If you used default settings, you should now have the toolchain in the directory "arm-unknown-linux-gnueabi" in your home directory
homepage: http://freedesktop.org/wiki/Software/sbox2
"Scratchbox 2 is a cross-compilation engine".
wget http://people.freedesktop.org/~lle/sbox2-releases/sbox2-1.99.0.23.tar.bz2 tar xjf sbox2-1.99.0.23.tar.bz2 cd sbox2-1.99.0.23 ./autogen.sh ./configure && make && sudo make install
pacman -Sy qemu
(should be 0.10, for 0.9 read this: http://qemu-arm-eabi.wiki.sourceforge.net/)
If you changed the paths from toolchain configuration, you need to change these commands too
cp -R ~/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sys-root/ ~/arch-arm-buildroot cd ~/arch-arm-buildroot sb2-init -c "/usr/bin/qemu-arm" arm ~/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc
follow http://wiki.archlinux.org/index.php/ABS_-_The_Arch_Build_System
After all copy build tree to buildroot:
cp -R /var/abs/ ~/arch-arm-buildroot
Now customize your makepkg.conf:
cp /etc/makepkg.conf ~/.makepkg.conf
Edit file ~/.makepkg.conf, change:
CARCH="armv4t" CHOST="arm-unknown-linux-gnueabi"
CFLAGS="-march=armv4t -mtune=arm920t -O2 -pipe" CXXFLAGS="-march=armv4t -mtune=arm920t -O2 -pipe"
PACKAGER="me <me@email.com>"
read more here: http://wiki.archlinux.org/index.php/Install_Arch_i586
cd ~/arch-arm-buildroot mkdir pkgs sb2 makeworld --clean --ignorearch --syncdeps --rmdeps --noconfirm pkgs/core abs/core/
cd ~/arch-arm-buildroot sb2 cd mypackage makepkg -A
(where "-A" means ignore architecture)
(well.. You have to build them first :P).
cd ~/arch-arm-buildroot tar xzf pkgs/$REPO/$PACKAGE #maybe pacman --root=~/arch-arm-buildroot -U pkgs/$REPO/$PACKAGE or something..
todo: How we will share? rsync / svn / git / some kind of web gui? What is better for big binary files?
hiciu's repository browser: http://hiciu.rootnode.net/arch-arm/
Who's involved?