当前位置:网站首页>RISCV64
RISCV64
2022-07-07 18:55:00 【InfoQ】
install Linux Lab
# Use ordinary users to download Cloud Lab, Then choose linux-lab Warehouse :
git clone https://gitee.com/tinylab/cloud-lab.git
cd cloud-lab/
# start-up Linux Lab And log in to the experimental environment according to the user name and password printed on the console
tools/docker/run linux-labinstall qemu-system-riscv64
export QEMU_VERSION=5.0.0
wget https://download.qemu.org/qemu-${QEMU_VERSION}.tar.xz
tar xvJf qemu-${QEMU_VERSION}.tar.xz
cd qemu-${QEMU_VERSION}
./configure --target-list=riscv64-softmmu --prefix=/opt/qemu
make -j $(nproc)
sudo make installsudo apt-get install libglib2.0-devsudo apt-get install libpixman-1-devDownload the latest Linux Source code
wget -c https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.18.9.tar.gz
tar xvf linux-5.18.9.tar.gz
cd linux-5.18.9
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- -j $(nproc)Download the latest BusyBox
wget -c https://www.busybox.net/downloads/busybox-1.35.0.tar.bz2
tar xvf busybox-1.35.0.tar.bz2
cd busybox-1.35.0
cd busybox
CROSS_COMPILE=riscv64-linux-gnu- make defconfig
CROSS_COMPILE=riscv64-linux-gnu- make -j $(nproc)
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- installMake rootfs
cd _install
mkdir proc sys dev etc etc/init.d
ls
# bin dev etc linuxrc proc sbin sys usr
sudo mknod dev/console c 5 1
sudo mknod dev/ram b 1 0
cat etc/init.d/rcSetc/init.d/rcS#!bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
/sbin/mdev -schmod +x etc/init.d/rcS
find -print0 | cpio -0oH newc | gzip -9 > ../rootfs.imgfunction
/opt/qemu/bin/qemu-system-riscv64 \
-nographic -machine virt \
-kernel linux-5.18.9/arch/riscv/boot/Image \
-initrd busybox-1.35.0/rootfs.img \
-bios fw_jump.elf \
-append "root=/dev/ram rdinit=/sbin/init"
uname
Reference resources
边栏推荐
- [PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
- 嵌入式C语言程序调试和宏使用的技巧
- CVPR 2022丨学习用于小样本语义分割的非目标知识
- Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
- “解密”华为机器视觉军团:华为向上,产业向前
- Learn open62541 -- [67] add custom enum and display name
- debian10系统问题总结
- Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll
- Download, installation and development environment construction of "harmonyos" deveco
- 静态路由配置
猜你喜欢
![[Tawang methodology] Tawang 3W consumption strategy - U & a research method](/img/63/a8c08ac6ec7d654159e5fc8b4423e4.png)
[Tawang methodology] Tawang 3W consumption strategy - U & a research method

Improve application security through nonce field of play integrity API

Industry case | digital operation base helps the transformation of life insurance industry

Charles+drony的APP抓包

微信网页调试8.0.19换掉X5内核,改用xweb,所以x5调试方式已经不能用了,现在有了解决方案

Disk storage chain B-tree and b+ tree

完整的电商系统

五种网络IO模型

将模型的记忆保存下来!Meta&UC Berkeley提出MeMViT,建模时间支持比现有模型长30倍,计算量仅增加4.5%...

简单几步教你如何看k线图图解
随机推荐
Redis
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
嵌入式面试题(算法部分)
Classification of regression tests
线程池的拒绝策略
Nunjuks template engine
Redis集群与扩展
直播预约通道开启!解锁音视频应用快速上线的秘诀
【剑指 Offer】59 - I. 滑动窗口的最大值
Redis
『HarmonyOS』DevEco的下载安装与开发环境搭建
Redis的发布与订阅
小试牛刀之NunJucks模板引擎
[Tawang methodology] Tawang 3W consumption strategy - U & a research method
AntiSamy:防 XSS 攻击的一种解决方案使用教程
数据验证框架 Apache BVal 再使用
Discuss | what preparations should be made before ar application is launched?
App capture of charles+postern
Tips for short-term operation of spot silver that cannot be ignored
高考填志愿规则