Changes between Initial Version and Version 1 of ARM_QEMU


Ignore:
Timestamp:
Feb 4, 2008 3:11:00 PM (16 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ARM_QEMU

    v1 v1  
     1 
     2What do we need: 
     3 * QEMU ARM Emulator (download binaries from http://www.qemu.org) 
     4 * GNU ARM toolchain (download binaries from http://www.gnuarm.com/) 
     5 * Linux kernel source (download from http://www.kernel.org) 
     6 
     7== Setting up Development Environment == 
     8 
     9=== QEMU ARM Emulator Installation === 
     10 
     11TBD. 
     12 
     13=== Colinux Installation === 
     14 
     15=== Download, Install, Run === 
     16 
     17==== Create a Disk for ARM Development ==== 
     18 
     19 1. Create 3GB blank file with Cygwin: 
     20 {{{ 
     21  # under cygwin! 
     22  $ cd /cygdrive/path/to/colinux 
     23  $ dd if=/dev/zero of=disk_armdev bs=1k count=3000000 
     24 }}} 
     25 (note: the above count is ''three million''). 
     26 1. Stop Colinux: 
     27 {{{ 
     28  # from colinux: 
     29  $ shutdown -h now 
     30 }}} 
     31 1. Edit your configuration: 
     32 {{{ 
     33  cobd3=f:\colinux\disk_armdev 
     34 }}} 
     35 1. Restart colinux: 
     36 {{{ 
     37  net start colinux 
     38 }}} 
     39 1. Format and mount the new disk: 
     40 {{{ 
     41  # In colinux: 
     42  $ mkfs -t ext3 /dev/cobd3 
     43  $ mkdir /arm 
     44  $ mount /dev/cobd3 /arm 
     45 }}} 
     46 
     47=== Directory Structure === 
     48 
     49{{{ 
     50 /arm 
     51 /arm/setup 
     52 /arm/setup/download 
     53 /arm/setup/src 
     54 /arm/setup/obj 
     55}}} 
     56 
     57=== GNU ARM Toolchain Installation === 
     58 
     59==== Binutils ==== 
     60Download and unpack: 
     61{{{ 
     62  $ mkdir -p /arm/setup/download 
     63  $ cd /arm/setup/download 
     64  $ wget http://www.gnuarm.com/bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 
     65  $ tar xjf bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 -C /arm 
     66}}} 
     67 
     68==== Glibc ==== 
     69Download and unpack: 
     70{{{ 
     71  $ cd /arm/setup/download 
     72  $ wget http://ftp.gnu.org/gnu/glibc/glibc-2.7.tar.gz 
     73  $ wget http://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.5.tar.bz2 
     74  $ tar xzf glibc-2.7.tar.gz -C /arm/setup/work 
     75  $ tar xjf glibc-linuxthreads-2.5.tar.bz2 -C /arm/setup/work/glibc-2.7/ 
     76}}} 
     77 
     78Build: 
     79{{{ 
     80 $ mkdir -p /arm/setup/obj/glibc-2.7 
     81 $ cd /arm/setup/obj/glibc-2.7 
     82 $  
     83}}} 
     84 
     85==== Newlib ==== 
     86 
     87Download: 
     88{{{ 
     89 $ cd /arm/src 
     90 $ cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/src login 
     91   (type anoncvs as password) 
     92 $ cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/src co newlib 
     93 $ mv src newlib 
     94 $  
     95}}}