因为HD-G2UL-EVM开发板出厂默认系统为YOCTO linux,比起Ubuntu,总是那么少点东西。
一、资料包
HD-G2UL-EVM开发板资料包URL:https://pan.baidu.com/s/1Ho8vRe-NyLFaoHNNQfPvRQ?pwd=G2UL
其中包括硬件设计参考手册、软件开发参考手册、核心板&主板数据手册。其中软件开发参考手册包括YOCTO和UBUNTU版本,非常之丰富。
HD-G2UL-EVM开发板切换Ubuntu需要用到teraterm工具和Ubuntu20.04出厂固件,这些都能在UBUNTU文件夹中找到。
二、替换Ubuntu镜像
替换Ubuntu镜像需要做二大块工作,先通过teraterm工具将一部分文件传输至开发板,后续通过TF卡将Ubuntu系统复制到板内。
(一)文件传输
先将开发板的拔码开关1设置为“ON”,利用teraterm工具先连接上开发板,然后分别将Flash_Writer_SCIF_G2UL_IOT_DDR4_1GB_1PCS.mot 、bl2_bp-g2ul_iot.srec 、fip-g2ul_iot.srec 文件发送到板子上。
(二)Ubuntu镜像
将G2UL出厂固件中的全部文件除去已经传输完成的三个文件全部拷贝到一个tf卡中,必须先记得格式化成为FAT32。
之后将开发板的拔码开关1设置为原样,插入TF卡开机,此时系统自动从TF卡中更新系统,更新完成后蜂鸣器会持续响,直接断电,拔出TF卡,再上电。
三、系统体验
root/root直接进入系统。
Ubuntu 20.04.5 LTS vanxoak ttySC0
vanxoak login: [ 17.808116] rtk_btusb: btusb_open hdev->promisc ==0
vanxoak login: root
Password:
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.10.83-cip1-yocto-standard aarch64)
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this content, you can run the 'unminimize' command.
Last login: Wed Dec 28 10:29:29 CST 2022 on ttySC0
看看系统版本:
root@vanxoak:~# uname -a
Linux vanxoak 5.10.83-cip1-yocto-standard #1 SMP PREEMPT Tue Apr 5 23:00:00 UTC 2011 aarch64 aarch64 aarch64 GNU/Linux
root@vanxoak:~#
感人的apt来了,新世界的大门:
root@vanxoak:~# apt
apt 2.0.9 (arm64)
Usage: apt [options] command
apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.
Most used commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
install - install packages
reinstall - reinstall packages
remove - remove packages
autoremove - Remove automatically all unused packages
update - update list of available packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file
satisfy - satisfy dependency strings
See apt(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).
This APT has Super Cow Powers.
###感谢阅读##
|