Documentation/translations/zh_CN/arch/openrisc/openrisc_port.rst

Source file repositories/reference/linux-study-clean/Documentation/translations/zh_CN/arch/openrisc/openrisc_port.rst

File Facts

System
Linux kernel
Corpus path
Documentation/translations/zh_CN/arch/openrisc/openrisc_port.rst
Extension
.rst
Size
3980 bytes
Lines
128
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: documentation
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

.. include:: ../../disclaimer-zh_CN.rst

:Original: Documentation/arch/openrisc/openrisc_port.rst

:翻译:

 司延腾 Yanteng Si <siyanteng@loongson.cn>

.. _cn_openrisc_port:

==============
OpenRISC Linux
==============

这是Linux对OpenRISC类微处理器的移植;具体来说,最早移植目标是32位
OpenRISC 1000系列(或1k)。

关于OpenRISC处理器和正在进行中的开发的信息:

	=======		==============================
	网站		https://openrisc.io
	邮箱		linux-openrisc@vger.kernel.org
	=======		==============================

---------------------------------------------------------------------

OpenRISC工具链和Linux的构建指南
===============================

为了构建和运行Linux for OpenRISC,你至少需要一个基本的工具链,或许
还需要架构模拟器。 这里概述了准备就位这些部分的步骤。

1) 工具链

工具链二进制文件可以从openrisc.io或我们的github发布页面获得。不同
工具链的构建指南可以在openrisc.io或Stafford的工具链构建和发布脚本
中找到。

	======      ==========================================================
	二进制      https://github.com/stffrdhrn/or1k-toolchain-build/releases
	工具链      https://openrisc.io/software
	构建        https://github.com/stffrdhrn/or1k-toolchain-build
	======      ==========================================================

2) 构建

像往常一样构建Linux内核::

	make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig
	make ARCH=openrisc CROSS_COMPILE="or1k-linux-"

3) 在FPGA上运行(可选)

OpenRISC社区通常使用FuseSoC来管理构建和编程SoC到FPGA中。 下面是用
OpenRISC SoC对De0 Nano开发板进行编程的一个例子。 在构建过程中,
FPGA RTL是从FuseSoC IP核库中下载的代码,并使用FPGA供应商工具构建。
二进制文件用openocd加载到电路板上。

::

	git clone https://github.com/olofk/fusesoc
	cd fusesoc
	sudo pip install -e .

	fusesoc init
	fusesoc build de0_nano
	fusesoc pgm de0_nano

	openocd -f interface/altera-usb-blaster.cfg \
		-f board/or1k_generic.cfg

Annotation

Implementation Notes