From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 20 Oct 2015 23:25:24 +0200 Subject: [U-Boot] [PATCH v2] nios2: add README.nios2 In-Reply-To: <1445305726-10393-1-git-send-email-thomas@wytron.com.tw> References: <1445234776-18489-1-git-send-email-thomas@wytron.com.tw> <1445305726-10393-1-git-send-email-thomas@wytron.com.tw> Message-ID: <201510202325.25062.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, October 20, 2015 at 03:48:46 AM, Thomas Chou wrote: > Add README.nios2 about how to add nios2 boards to u-boot. > > Signed-off-by: Thomas Chou > --- > v2 > add ref and fix words as suggested by Marek. > > doc/README.nios2 | 97 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, > 97 insertions(+) > create mode 100644 doc/README.nios2 > > diff --git a/doc/README.nios2 b/doc/README.nios2 > new file mode 100644 > index 0000000..453c7c7 > --- /dev/null > +++ b/doc/README.nios2 > @@ -0,0 +1,97 @@ > +Nios II is a 32-bit embedded-processor architecture designed > +specifically for the Altera family of FPGAs. > + > +Please refer to the link for more information on Nios II, > +https://www.altera.com/products/processors/overview.html > + > +Please refer to the link for Linux port and toolchains, > +http://rocketboards.org/foswiki/view/Documentation/NiosIILinuxUserManual > + > +The Nios II port of u-boot is controlled by device tree. Please check > +out doc/README.fdt-control. > + > +To add a new board/configuration (eg, mysystem) to u-boot, you will need > +three files. > + > +1. The device tree source which describes the hardware, dts file. > + arch/nios2/dts/mysystem.dts > + > +2. Default configuration of Kconfig, defconfig file. > + configs/mysystem_defconfig > + > +3. The legacy board header file. > + include/configs/mysystem.h > + > +The device tree source must be generated from your qsys/sopc design > +using the sopc2dts tool. Then modified to fit your configuration. Please > +find the sopc2dts download and usage at the wiki, > +http://www.alterawiki.com/wiki/Sopc2dts > + > +java -jar sopc2dts.jar --force-altr -i mysystem.sopcinfo -o mysystem.dts Just a hint -- in case you're listing a command, add a dollar sign before it to be explicit it's a command, like this: $ java -jar ... Otherwise, Acked-by: Marek Vasut Best regards, Marek Vasut