nuttx/configs/misoc/README.txt

73 lines
2.4 KiB
Plaintext
Raw Normal View History

Misoc README
============
2016-11-07 14:04:44 +01:00
This README applies to a port to NuttX running on a Qemu LM32 system. You
can find the Qemu setup at https://bitbucket.org/key2/qemu
2016-11-08 15:22:07 +01:00
This initial release supports two UARTs, but does not have a system timer
or other peripherals. More to come.
Buildroot Toolchain
===================
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
be modified to point to the correct path to the LM32 GCC toolchain (if
different from the default in your PATH variable).
If you have no LM32 toolchain, one can be cloned from the NuttX
Bitbucket GIT repository (https://bitbucket.org/nuttx/buildroot).
This GNU toolchain builds and executes in the Linux or Cygwin environment.
1. You must have already configured Nuttx in <some-dir>/nuttx.
cd tools
./configure.sh misoc/<sub-dir>
2016-11-06 15:55:15 +01:00
make oldconfig context
2016-11-06 15:55:15 +01:00
2. Clone the latest buildroot package into <some-dir>/buildroot
2016-11-06 15:55:15 +01:00
git clone git@bitbucket.org:nuttx/buildroot.git <some-dir>/buildroot
or
2016-11-06 15:55:15 +01:00
git clone https://patacongo@bitbucket.org/nuttx/buildroot.git <some-dir>/buildroot
2016-11-06 15:55:15 +01:00
3. cd <some-dir>/buildroot
4. cp lm32-elf-defconfig-6.1.0 .config
5. make oldconfig
6. make
2016-11-06 15:55:15 +01:00
7. By default, the tools will be at the absolute path:
2016-11-06 15:55:15 +01:00
<some-dir>/buildroot/build_lm32/staging_dir/bin
2016-11-06 15:55:15 +01:00
Or the NuttX relative path:
2016-11-06 15:55:15 +01:00
../buildroot/build_lm32/staging_dir/bin
The setenv.sh files in these sub-directories are already set to use
the relative path. It you choose to install the buildroot package
in some other location, you may need to edit the setenv.h file so
that the PATH variable includes the path to the newly built binaries.
See the file configs/README.txt in the buildroot source tree. That has more
detailed PLUS some special instructions that you will need to follow if you
are building a LM32 toolchain for Cygwin under Windows. Also included in
that README file is a FAQ of frequent build issues that their work-arounds.
In order to use the buildroot toolchain, you also must set the following
in your .config file:
CONFIG_LM3S_TOOLCHAIN_BUILDROOT=y
2016-11-28 18:22:32 +01:00
configs/misoc/include/generated
===============================
In order to build this configuration, you must provide this directory.
It contains the generated Misoc files. The base configurtion will NOT
build without this directory!