首页 > 其他分享 >Tools Used in Experiments

Tools Used in Experiments

时间:2024-06-19 15:21:32浏览次数:11  
标签:riscv64 gcc Used gnu Linux Experiments install linux Tools

Tools Used in Experiments

For the experiments you'll need the RISC-V versions of a couple different tools: QEMU 5.1+, GDB8.3+, GCC, and Binutils.

Installing on Windows

We strongly discourage students from using WSL for experiments because it slows down the testsa lot, leading to unexpected timeouts on some labs. Students running Windows are encouragedto install Linux on their local machine.First make sure you have the Windows Subsystem for Linux installed. Then add Ubuntu 20.04from the Microsoft Store. Afterwards you should be able to launch Ubuntu and interact with themachine. To install all the software you need for this class, run:Windows, you can access all of your WSL files under the "\wsl$" directory. For instance, thehome directory for an Ubuntu 20.04 installation should be at "\wsl$\Ubuntu- 0.04\home<username>".

Installing on macOS

First, install developer tools:Next, install Homebrew, a package manager for macOS:Next, install the RISC-V compiler toolchain:The brew formula may not link into /usr/local . You will need to update your shell's rc file (e.g.~/.bashrc) to add the appropriate directory to $PATH.Finally, install QEMU:

$ sudo apt-get update && sudo apt-get upgrade

$ sudo apt-get install git build-essential gdb-multiarch qemu-system-misc gccriscv64-linux-gnu binutils-riscv64-linux-gnu

$ xcode-select --install

$ /usr/bin/ruby -e "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew tap riscv/riscv

$ brew install riscv-tools

PATH=$PATH:/usr/local/opt/riscv-gnu-toolchain/binbrew install qemuDebian or Ubuntu

Arch Linux

Running a Linux VM

If the other options listed don't work, you can also try running a virtual machine with one of theother operating systems listed above. With platform virtualization, Linux can run alongside yournormal computing environment. Installing a Linux virtual machine is a two step process. First, youdownload the virtualization platform.

VirtualBox (free for Mac, Linux, Windows) — Download page

VMware Player (free for Linux and Windows, registration required)VMware Fusion (Downloadable from IS&T for free).VirtualBox is a little slower and less flexible, but free!Once the virtualization platform is installed, download a boot disk image for the Linux distributionof your choice.Ubuntu Desktop is one option.This will download a file named something like ubuntu-20.04.3-desktop-amd64.iso . Start up yourvirtualization platform and create a new (64-bit) virtual machine. Use the downloaded Ubuntuimage as a boot disk; the procedure differs among VMs but shouldn't be too difficult.

Testing your Installation

To test your installation, you should be able to compile and run xv6 (to quit qemu type Ctrl-a x):If that doesn't work, you can double check individual components. Which include QEMU:And at least one RISC-V version of GCC:sudo apt-get install git build-essential gdb-multiarch qemu-system-misc gccriscv64-linux-gnu binutils-riscv64-linux-gnusudo pacman -S riscv64-linux-gnu-binutils riscv64-linux-gnu-gcc riscv64-linuxgnu-gdb qemu-arch-extra

# in the xv6 directory

$ make qemu

# ... lots of output ...init: starting sh

$

$ qemu-system-riscv64 --version

QEMU emulator version 5.1.0$ riscv64-linux-gnu-gcc --versionriscv64-linux-gnu-gcc (Debian 10.3.0-8) 10.3.0

...

$ riscv64-unknown-elf-gcc --versionriscv64-unknown-elf-gcc (GCC) 10.1.0

...

$ riscv64-unknown-linux-gnu-gcc --versionriscv64-unknown-linux-gnu-gcc (GCC) 10.1.0

...

标签:riscv64,gcc,Used,gnu,Linux,Experiments,install,linux,Tools
From: https://www.cnblogs.com/qq99515681/p/18256002

相关文章

  • 安装VMware Tools
    安装VMwareTools在Debian9系统上安装1、查看系统版本hostnamectl查看系统版本信息显示当前的操作系统是Debian9,代号为"stretch"。这是Debian的一个长期支持版本,发布于2017年。root@ucs-8389:~#hostnamectlStatichostname:ucs-8389Iconname:computer-vmChassis:......
  • <转载>使用inotify-tools监控文件夹或文件的变动
    版权声明:本文为博主原创文章,遵循CC4.0BY-SA版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/ywd1992/article/details/106251339文章目录一、前言什么是inotify和inotify-tools检查系统是否支持inotify二、安装使用inotify-tools获取安装包......
  • QT6安装Android SDK出现"Android SDK Command-line Tools run"出错解决办法
    前言以下提供的方案,是在QT6,Androidstudio均有安装的前提下,安装完javaJDK,在设置安卓SDK时出现的问题,具体表现如标题所言本文目的是以做笔记学习,交流为主,推荐参考参考链接参考链接https://blog.csdn.net/yy_xzz/article/details/132135255操作流程确定NDK路径......
  • SpringBoot集成devtools实现热部署调试
    SpringBoot集成devtools实现热部署调试简述参考多篇网上文章终于实现热部署,中间出现过更改的文件已加载,但是并未自动重启的情况。由于判断不出哪些操作时多余的,记录了所有修改项操作步骤1.pom文件中增加依赖<dependency><groupId>org.springframework.b......
  • CPN Tools学习——时间和队列【重要】
    -TimedColorSets时间颜色集-TokenStamps令牌时间戳-EventClock全局/事件/模拟时钟-TimeDelaysonTransitions过渡的时间延迟-ListColorSet列表颜色集-Queue排队1.时间颜色集在定时CPN模型令牌中有:(1)象征性的颜色(2)时间戳:时间戳是一个非负整数.句法:1`e@+表......
  • chatgpt tools调用
    chatgpttools调用1.引入openai,创建clientimportjsonimportosimportsubprocessfromopenaiimportOpenAI#api_key可以填入自己的key#base_url可以使用国内的代理,海外可以使用官方地址client=OpenAI(api_key="",base_url="https://api.openai-proxy.com......
  • 使用Wesky.Net.OpenTools包来快速实现嵌套型结构体数据转换功能
    今天遇到有人提到结构体和byte数组互转的问题,我就顺便拿来水一篇。这是一个冷门的问题,估计使用的人不多。既然有需求,应该就有使用场景,那就顺便整一波。为了达到效果,结构体、复杂结构体嵌套等都能实现转换,我就顺便做了个包更新来提供使用和下面的说明。首先引入nuget包Wesky.Net......
  • 【jmeter】ubuntu分布式jmeter报错:java.rmi.ConnectException: Connection refused to
    一、场景   由于高并发测试,服务器资源不够用,所以需要使用jmeter分布式进行测试,但是测试过程中报错:java.rmi.ConnectException:Connectionrefusedtohost:127.0.1.1;  二、问题原因   就是hostname-i如果返回的是127.0.1.1 三、处理方法   修改hostna......
  • applitools eyes 基于视觉检查的自动化测试
    Applitools是一家专注于视觉AI的自动化测试和监控解决方案的公司,其核心产品围绕着视觉回归测试和UI测试。ApplitoolsEyesApplitoolsEyes是其旗舰产品,是一个基于AI的自动化测试工具,专注于检测和修复UI错误。它使用视觉AI来识别界面的变化,并能够跨不同浏览器和设备进行比较,确......
  • 【讲解下Chrome DevTools,什么是Chrome DevTools?】
    ......