



How to build and run Linux on Altera DE1 board?
by meitoku on Mar 29, 2014 |
meitoku
Posts: 26 Joined: Nov 21, 2013 Last seen: Oct 18, 2015 |
||
Hi all, I'm going to build and run Linux (git://openrisc.net/jonas/linux)on Altera DE1 board. What should I do and how to configure to create a vmlinux image that can run DE1?
|
RE: How to build and run Linux on Altera DE1 board?
by fjullien on Mar 31, 2014 |
fjullien
Posts: 5 Joined: Mar 12, 2014 Last seen: Jan 23, 2018 |
||
Hi,
First you need to install the or1k toolchain: http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prebuilt_versions And of course you need to have Quartus installed... The Altera DE1 board is supported in orpsoc-cores (https://github.com/openrisc/orpsoc-cores/tree/master/systems/de1). You need to install fusesoc (https://github.com/olofk/fusesoc a.k.a ORPSoCv3). Then, create a build directory somewhere on your system and copy fusesoc.conf here. Edit this file tell fusesoc where is orpsoc-cores.Then "fusesoc build de1". You'll get a FPGA configuration file for the system. Configure your fpga with "fusesoc pgm de1". Then you need to compile Linux. Get sources here: git://openrisc.net/jonas/linux. Then go to arch/openrisc/boot/dts and create a de1.dts file with minimal nodes. Then "make menuconfig" and select your de1.dts file. Exit and "make". You'll get a vmlinux image. Download and build openocd (./configure with --enable-usb-blaster-ftdi) and install it. Then run: openocd -f /interface/altera-usb-blaster.cfg -f board/or1k_generic.cfg -c "load_image /your/path/here/vmlinux" -c "reg npc 0x100" -c "resume" -c "exit" If I haven't forget anything Linux should start :) Good luck. Franck. PS: of course your question was to vague. However, I wrote this as it serves as an introduction to fusesoc. |



