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

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

File Facts

System
Linux kernel
Corpus path
Documentation/translations/zh_TW/arch/openrisc/openrisc_port.rst
Extension
.rst
Size
3981 bytes
Lines
129
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_TW.rst

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

:翻譯:

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

.. _tw_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