noMMU Linux/M32R

How to use noMMU Linux/M32R

We use an OAKS32R board.

Snap Shot Informations (2005.12.20)


How to build Tools and Libraries

elf2flt

(original elf2flt sources)
How to install elf2flt

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.2
2. 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
  % make
3. 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

uClibc

The following is how to build uClibc for noMMU.
  % 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 binary

About FLAT Format   http://www.beyondlogic.org/uClinux/bflt.htm

[Home]


Last modified: 2006/01/10 webmaster@linux-m32r.org