【赛昉科技昉·星光RISC-V单板计算机试用体验】ubuntu 20.04 一些配置

描述

本文来源电子发烧友社区,作者:jf_25674040, 帖子地址:https://bbs.elecfans.com/jishu_2292644_1_1.html

一、更改国内源


 
sudo vim /etc/apt/sources.list

%s/ports.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/gc a

 

notes: 我的配置文件


 
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted

## Major bug fix updates produced after the final release of the ## distribution. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security multiverse

 

二、配置静态ip


 
sudo vim /etc/netplan/00-installer-config.yaml

 

 

notes:


 
# This is the network config written by 'subiquity'

network: ethernets: eth0: optional: true dhcp4: no addresses:

  • 10.43.60.71/24 gateway4: 10.43.60.1 nameservers: addresses: [8.8.8.8, 114.114.114.114] version: 2

三、配置ssh免密进入系统


 
$ ssh-keygen

$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@xxx.xxx.xxx.xxx

 

四、更新两个可用串口进入系统

如何编译dtb请查看上一篇


 
sudo cp LINUX_PATH/arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dtb /boot/dtb-5.17.5-visionfive-foobar-29042022

sudo sudo update-grub

 

notes:

LINUX_PATH:linux代码目录

打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分