--- Log opened Wed Feb 22 00:00:11 2017 | ||
psychotrope | is there anyway to test out compiling and running programs on openRISC before going out an buying a DE0-Nano or similar FPGA? | 17:30 |
---|---|---|
psychotrope | I looked into the VM mentioned on opencores but the link was dead | 17:30 |
shorne | there are two | 17:46 |
shorne | latest from qemu works pretty well too | 17:46 |
shorne | but only for linux apps and kernels, not so good for bare metal | 17:46 |
shorne | done use opencores, check the links here http://openrisc.io/implementations | 17:47 |
shorne | The official simulator is https://github.com/openrisc/or1ksim | 17:47 |
shorne | to run it you have to use 'sim -f <path to or1k-src or kernel?>/or1ksim.cfg' <binary> | 17:48 |
shorne | the or1ksim.cfg you can find in one of the projects | 17:48 |
psychotrope | shorne: so I could fire up openRISC on qemu and run a linux kernel and compile a program there? Sweet | 22:23 |
psychotrope | I like free things | 22:24 |
psychotrope | shorne: know of any guides for setting up openRISC on qemu? I've heard of the software, but I'm not familiar with it | 22:24 |
wbx | psychotrope: you have the choice: Buildroot or OpenADK, both builds linux systems for Qemu-system for OpenRISC | 22:28 |
wbx | psychotrope: both have a complete handbook explaining in detail how to use it. | 22:29 |
wbx | psychotrope: buildroot does not support native compiling. | 22:29 |
psychotrope | wbx: in an openRISC-specific enviroment? or general use | 22:29 |
wbx | psychotrope: on a development pc to create openrisc kernel + applications running in Qemu | 22:30 |
psychotrope | so I'd use these tools to do what exactly? | 22:30 |
wbx | psychotrope: both create a cross-toolchain for you | 22:30 |
psychotrope | soory for being a noob here | 22:30 |
wbx | psychotrope: to create a complete Linux Kernel including Busybox and f.e. GnuPG to run in System emulation of Qemu for OpenRISC | 22:31 |
psychotrope | what about a file system and I/O. How would that be handled | 22:31 |
psychotrope | thanks though :) | 22:32 |
wbx | psychotrope: as I said, it generates a complete system. I mostly only tested Kernel+Piggyback initramfs | 22:32 |
psychotrope | nice | 22:32 |
wbx | psychotrope: I am not sure if Qemu System Emulator emulates a hard disk | 22:32 |
psychotrope | I still have alot ot learn about the openRISC enviroment, but I want to get as close to real simulation as I can before I buy a DE0-nano and try to build an independent general purpose linux device | 22:34 |
wbx | psychotrope: i have not tested any block devices and have not looked if there is emulation for that | 22:34 |
wbx | psychotrope: to cross-compile Linux and apps you can start with the mentioned buildsystems today. | 22:34 |
psychotrope | my main concern is, for all the documentation I have seen, examples with the DE0-Nano show people putting linux directly into RAM and running from there | 22:34 |
wbx | psychotrope: even without real hardware, to learn what you can create with the tools | 22:35 |
wbx | psychotrope: i have a de0-nano, but had not yet started trying the OpenRISC bitstream on it. | 22:35 |
psychotrope | I want some way to boot linux from fixed storage, and then have and open files from there | 22:35 |
wbx | psychotrope: out of the box there is not block device, so you need to put your rootfs in RAM. | 22:36 |
psychotrope | hmmm | 22:36 |
psychotrope | and I assume I'd be writing to RAM over jtag? | 22:37 |
psychotrope | *noob questions* | 22:37 |
wbx | psychotrope: i am not sure if you can create a FPGA bitstream with a SD-Host controller and attach some real sd-card to it for permanent storage. | 22:37 |
psychotrope | Ah, see thats what I'd be interested in, something like a hardware storage controller rolled into my FPGA | 22:37 |
wbx | i think there is a small flash on the device where you put the bitstream, the bootloader and your Linux kernel + initramfs. | 22:38 |
wbx | you put all nto the device with a USB cable connection to your development pc | 22:38 |
psychotrope | I'd heard about that, but I didn't know if it had space for the programs I want to run. | 22:38 |
psychotrope | since a video is worth 1000 words, this is my goal with openrisc: https://www.youtube.com/watch?v=BRr-BUbBV88 | 22:39 |
wbx | i don't know either. I am a FPGA beginner. | 22:39 |
psychotrope | a viable system with basic filesystem and I/O | 22:39 |
wbx | i didn't manage to create a NIOS2 bitstream with the Altera tools, yet. | 22:40 |
psychotrope | wbx: do have any guide that you could reccomend that would take a noob from start to finish with getting a basic openRISC setup running under Qemu? | 23:05 |
psychotrope | I have no experience with Qemu to date | 23:05 |
psychotrope | or the tools you linked (ofc) | 23:05 |
psychotrope | so the openRISC website has a great online simulator tool for openRISC, I'll use this for now | 23:48 |
--- Log closed Thu Feb 23 00:00:13 2017 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!