Openmoko Bug #2325: adventures in building Qi on Debian armel
Openmoko Public Trac
bugs at docs.openmoko.org
Wed Jan 6 10:30:38 CET 2010
#2325: adventures in building Qi on Debian armel
--------------------------------+-------------------------------------------
Reporter: pabs | Owner: openmoko-kernel
Type: defect | Status: closed
Priority: normal | Milestone:
Component: System Software | Version:
Severity: normal | Resolution: fixed
Keywords: qi | Haspatch: 1
Blockedby: | Estimated:
Patchreview: | Blocking:
Reproducible: |
--------------------------------+-------------------------------------------
Comment(by lindi):
Did you nandwrite the udfu image or the one without udfu in the name?
Not sure if it helps anybody but I build a cross-compiler with
{{{
# debian lenny
# i386
# normal user (with sudo access)
mkdir armel-cross
cd armel-cross/
sudo aptitude install dpkg-cross apt-cross fakeroot dpatch gawk flex
realpath automake1.7 debhelper cdbs
apt-get source gcc-4.2 binutils glibc
cd binutils-2.18.1~cvs20080103/
TARGET=arm-linux-gnueabi fakeroot debian/rules binary-cross
sudo dpkg -i ../binutils-arm-linux-gnueabi_2.18.1~cvs20080103-7_i386.deb
cd ..
apt-cross -a armel -v -i libdb1-compat
apt-cross -a armel -v -i libc6
apt-cross -a armel -v -i libc6-dev
apt-cross -a armel -v -i linux-libc-dev
cd gcc-4.2-4.2.4/
export GCC_TARGET=armel
debian/rules control
dpkg-buildpackage -b -rfakeroot
sudo dpkg -i ../libstdc++6-4.2-dev-armel-cross_4.2.4-6_all.deb ../gcc-4.2
-arm-linux-gnueabi_4.2.4-6_i386.deb ../gcc-4.2-arm-linux-gnueabi-
base_4.2.4-6_i386.deb ../g++-4.2-arm-linux-gnueabi_4.2.4-6_i386.deb
../cpp-4.2-arm-linux-gnueabi_4.2.4-6_i386.deb ../libstdc++6-armel-
cross_4.2.4-6_all.deb
cd ..
cd ..
}}}
and then built Qi with
{{{
sudo aptitude install uboot-mkimage
git clone git://git.openmoko.org/git/qi
cd qi
make CPU=s3c2442 CROSS_COMPILE=arm-linux-gnueabi-
COMPILER_LIB_PATH_PRE=/usr/lib/gcc/arm-linux-gnueabi
dfu-util -a u-boot -R -U backup.udfu
dfu-util -a u-boot -R -D image/qi-s3c2442-master_36bb5c03756268ff.udfu
}}}
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2325#comment:5>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
More information about the buglog
mailing list