1. Install m32r-elf tools
% cd /usr/local % bzip2 -cd m32r-elf.20040210-3.2.tar.bz2 | tar xf - % ln -s m32r-elf.20040210-3.2 m32r-elf-3.22. Build binutils
% bzip2 -cd binutils-2.13_src_20040210.tar.bz2 | tar xf - % cd binutils % mkdir build % cd build % ../src/configure --target=m32r-elf --prefix=/usr/local/m32r-elf-3.2 % make3. Install elf2flt with m32r-elf tools
% bzip2 -cd elf2flt-20040409.tar.bz2 | tar xf - % mkdir build % cd build Depend on the environment. binutils_src=/xxx/binutils/src ... source directory of binutils binutils_build=/xxx/binutils/build ... directory to build binutils binutils_prefix=/usr/local/m32r-elf-3.2 ... m32r-elf toos prefix % ../configure --target=m32r-elf --srcdir=../elf2flt \ --prefix=${binutils_prefix} \ --with-binutils-include-dir=${binutils_src}/include \ --with-bfd-include-dir=${binutils_build}/bfd \ --with-libbfd=${binutils_build}/bfd/libbfd.a \ --with-libiberty=${binutils_prefix}/lib/libiberty.a % make % make install
% bzip2 -cd uClibc-0.9.26-20040507.tar.bz2 | tar xf - % cd uClibc-0.9.26 % make menuconfig Specify the following items. Target Architecture Features and Options -> Target CPU has a memory management unit (MMU) ... Disable Linux Kernel header location ... Depend on the environment General Library Settings -> Malloc returns live pointer for malloc(0) ... Enable % set path=($path /usr/local/m32r-elf-3.2/bin) % make % make install
About FLAT Format http://www.beyondlogic.org/uClinux/bflt.htm