Arm Linux 开发注意事项(@Like)

Arm Linux 20200706(@Like)
1. 搭建 QT 交叉编译器发现虚拟机磁盘空间不够
研究 VXBox 如何修改 VDI 虚拟盘空间,首先直接修改 VDI 大小失败,然后采用新建更大的
VDI 磁盘再克隆的方法修改成功。
D:\program
files\Oracle\VirtualBox>
.\VBoxManage.exe
createhd
-filename
"D:\program files\virtualbox vms\Ubuntu\Ubuntu64.vdi" -size 196608 -format VDI
-variant Standard
D:\program
files\Oracle\VirtualBox>
.\VBoxManage.exe
clonehd
"D:\program
files\virtualbox
vms\Ubuntu\Ubuntu.vdi"
"D:\program
files\virtualbox
vms\Ubuntu\Ubuntu64.vdi" --existing
虚拟磁盘扩容成功了,可是启动虚拟机后发现 sda1 分区大小还是原来的 100G 并没有相应
的增大。然后下载 gparted-live-1.1.0-5-amd64.iso 工具,挂在到虚拟机光驱从 GParted 启动
后修改 sda1 大小。
启动虚拟机,按 F12 进入启动页面选择 GRarted 光盘启动,删除交换分区扩展分区,调整
sda1 分区 188G,新建扩展分区交换分区 4G。
启动后 df 查看 sda1 已经变大,free -m 查看交换分区未挂在,sudo -i,再 fdisk -l 查看
linux-swap 分区未/dev/sda5,gedit /etc/fstab
"UUID=?"修改为/dev/sda5。完成。
2. Qt 交叉编译器安装到默认目录
gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf
gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz
fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa7hf-neon-toolchain-4.1.15-
2.1.0.sh
fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa7hf-neon-toolchain-4.1.15-
2.1.0.sh
3. FTP NFS
haneWIN Software
D:\tftp
-name:nfs -public
mount -t nfs -o nolock,nfsvers=3,vers=3 192.168.1.31:/nfs ./nfs
umount ./nfs
4. 触摸屏校准 ts_calibrate
configure.bat
-release
-opensource
-xplatform
linux-aarch64-gnu-g++
-prefix
D:\ProgramFiles\Qt\QtMake\linux_arm64 -nomake tests -nomake examples -no-opengl -skip
qtvirtualkeyboard
configure.bat -release -opensource -prefix E:\QT\5.15.0\Qt5.15.0_ARM_Linux -nomake
tests
-nomake
examples
-no-opengl
-skip
qtvirtualkeyboard
-xplatform
linux-arm-gnueabi-g++
5. 安装中文输入法 setting language
一般安装失败,先要 sudo apt-get update 更新软件数据库,再 sudo apt-get upgrade 升
级软件
6. git 下载安装 git sudo apt-get install git
查看版本 git --version
git clone https://github.com/lxqt/qterminal.git
7. 替换 uboot 和 linux 开机画面
首先下载 XnView
XnView 打开
F:\EE\Platform\Jomp\Azero\Software\linux\uboot\uboot-imx-rel_imx_4.1.15_2.1.0
_ga\tools\logos\freescale.bmp
F:\EE\Platform\Jomp\Azero\Software\linux\kernel\linux-imx-rel_imx_4.1.15_2.1.
0_ga\drivers\video\logo\logo_linux_clut224.ppm
编辑图片,然后替换对应位置的图片
进入 uboot 用./create.sh 重新编译出 u-boot.imx 镜像
进入 kernel 用./create.sh 重新编译 arch/arm/boot/zImage 系统镜像,编译时报错
ppm 格式不对,重新生成 png,pnm,ppm。
替换烧写工具目录内的镜像用 MFGTools 烧录镜像,启动。
发现加载文件系统时开机画面没改,这个需要用 psplash,删除替换 yocto 文件系统
内的/usr/bin/psplash 和 psplash-write。
8. 用 MfgTool 烧写镜像后,切换启动方式,开机 3 秒内在终端上回车进入 uboot,
setenv lcdtype
10.1;saveenv;reset.
9. Ubuntu 双击执行.sh,文件首选项行为选 RUN
 
posted @ 2023-06-02 11:07  SLike  阅读(32)  评论(0编辑  收藏  举报