OpenRISC Introduction (4)-ORSOC run Linux Experiment

Source: Internet
Author: User

Introduction

If you don't practice fake handles, this section runs Linux with the official FPGA Development Board.

4.1, experimental preparation

1 "ORSOC Tool chain Environment (GCC,GDB,JTAG), build process to see a blog:

http://blog.csdn.net/rill_zhen/article/details/8443882

2 "Ep4ce22 FPGA Development Board (€:149)

3 "Micro-usb Connecting line"

4.2, experimental steps

0 "connection. Connect the USB port at the top left of the board to the PC.

1 "Write RTL integrated circuit logic file (can also use their own quartus synthesis)

$ cd/home/openrisc

$ JTAG./program_fpga.jtag

2 to open Agent service between Gdbdebugger and or processor

$/opt/or_debug_proxy/bin/or_debug_proxy–r 55555

3 "(another terminal) open a serial terminal

Picocom–b 115200–p n–d 8–f XON/DEV/TTYUSB2

4 (one more terminal) to open gdb to download the vmlinux image

$ CD ~/soc-design/linux

$ make Arch=openrisc Defconfig

$ make Arch=openrisc

$ or32-elf-gdb

(GDB) Target remote:55555

(gdb) file./vmlinux

Answer ' y '

(GDB) load

(GDB) SPR NPC 0x100

(GDB) C

5 at this point, look at picocom that terminal, you can see the Linux boot process: The following figure:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.