导出rootfs时出错
先使用官方提供的固件AIO-3568J-UBUNTU18.04-GPT-20220222-1626.img,能够烧写系统成功,然后根据网上Ubuntu18.04自动启动的帖子,修改了系统的rc-local.service和rc.local。rc-local.service内容修改为:
After=network.target
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no
WantedBy = multi-user.target
Alias=rc-local.service
rc.local的内容为:
#! /bin/bash
echo host > /sys/devices/platform/fe8a0000.usb2-phy/otg_mode
exit 0
并通过官网提供的方法,设置为root自动登录
*]user-session=Lubuntuautologin-user=root然后按照官网指示,导出rootfs,加入官方提供的固件AIO-3568J-UBUNTU18.04-GPT-20220222-1626.img,形成新的固件,能够烧写成功。之后,在新固件的基础上安装mono 运行环境,执行了以下命令:sudo apt updatesudo apt upgradesudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-commonsudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-stable.listsudo apt updatesudo apt install mono-complete mono-devel成功安装了mono 的运行环境,此时,再次按照官网的操作,对rootfs进行导出,执行以下命令,但是出现以下提示root@firefly:/home/firefly# ff_export_rootfs /media/root/72E8-4821/MEDIA FREE SPACE SIZE 131056 MBytesEXPORT IMAGE SIZE 3649 MBytesBLOCK_COUNT 4790158INODE_COUNT 299644mkfs.ext4: Invalid argument while zeroing block 4790080 at end of filesystemWarning, had trouble writing out superblocks.
已解决,将移动硬盘格式化成ex4格式,之前的fat32适用于2G以下的固件,超过2G的需要用ex4格式
页:
[1]