Version 1 (modified by bennylp, 16 years ago) (diff) |
---|
What do we need:
- QEMU ARM Emulator (download binaries from http://www.qemu.org)
- GNU ARM toolchain (download binaries from http://www.gnuarm.com/)
- Linux kernel source (download from http://www.kernel.org)
Setting up Development Environment
QEMU ARM Emulator Installation
TBD.
Colinux Installation
Download, Install, Run
Create a Disk for ARM Development
- Create 3GB blank file with Cygwin:
# under cygwin! $ cd /cygdrive/path/to/colinux $ dd if=/dev/zero of=disk_armdev bs=1k count=3000000
(note: the above count is three million). - Stop Colinux:
# from colinux: $ shutdown -h now
- Edit your configuration:
cobd3=f:\colinux\disk_armdev
- Restart colinux:
net start colinux
- Format and mount the new disk:
# In colinux: $ mkfs -t ext3 /dev/cobd3 $ mkdir /arm $ mount /dev/cobd3 /arm
Directory Structure
/arm /arm/setup /arm/setup/download /arm/setup/src /arm/setup/obj
GNU ARM Toolchain Installation
Binutils
Download and unpack:
$ mkdir -p /arm/setup/download $ cd /arm/setup/download $ wget http://www.gnuarm.com/bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 $ tar xjf bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 -C /arm
Glibc
Download and unpack:
$ cd /arm/setup/download $ wget http://ftp.gnu.org/gnu/glibc/glibc-2.7.tar.gz $ wget http://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.5.tar.bz2 $ tar xzf glibc-2.7.tar.gz -C /arm/setup/work $ tar xjf glibc-linuxthreads-2.5.tar.bz2 -C /arm/setup/work/glibc-2.7/
Build:
$ mkdir -p /arm/setup/obj/glibc-2.7 $ cd /arm/setup/obj/glibc-2.7 $
Newlib
Download:
$ cd /arm/src $ cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/src login (type anoncvs as password) $ cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/src co newlib $ mv src newlib $