friendlyarm / sd-fuse_rk3568

36 stars 15 forks source link

Custom boot image partition errors #13

Closed 05mip closed 2 months ago

05mip commented 2 months ago

Hello, I'm trying to back up my rootfs and boot another box with it (create custom image). I ran the following scripts:

scp pi@192.168.1.60:/rootfs.tar.gz ./rootfs.tar.gz

git clone https://github.com/friendlyarm/sd-fuse_rk3568 --single-branch -b kernel-6.1.y

mv rootfs.tar.gz sd-fuse_rk3568
cd sd-fuse_rk3568

mkdir rootfs && tar xzf rootfs.tar.gz -C rootfs

wget http://112.124.9.243/dvdfiles/rk3568/images-for-eflasher/friendlywrt23-images.tgz
tar xzf friendlywrt23-images.tgz
sudo ./build-rootfs-img.sh ./rootfs friendlywrt23-images

wget http://112.124.9.243/dvdfiles/rk3568/images-for-eflasher/emmc-flasher-images.tgz
tar xzf emmc-flasher-images.tgz

./mk-emmc-image.sh debian-bullseye-core-arm64 autostart=yes

It finishes with an error that says mount: /tmp/media_exfat: unknown filesystem type 'exfat'. dmesg(1) may have more information after failed mount system call.

once i get the image in out\rk3568-eflasher-friendlywrt-20240815.img, i flash it to an sd card and try to boot but it doesn't work. It says it's missing files. When i look at the created partitions in DiskGenius, the partition FriendlyArm [partition 9] (this is the partition that contains the images) is 'damaged' and does not contain the necessary images (boot, uboot, rootfs, parameter.txt, etc.)

i know the target box runs off of friendlywrt23 wondering if I am doing the process wrong, missing a dependency, installed the wrong base image or what?

thanks

05mip commented 2 months ago

@friendlyarm

05mip commented 2 months ago

I found the error. exfat-utils is depracated in Ubuntu 22.04, as such, the shell script could not properly format the partition