Building from docker, it failed after 2h or so.
With EMMC
Add khadas to (audio,video,disk,input,tty,root,users,games,dialout,cdrom,dip,plugdev,bluetooth,pulse-access,systemd-journal,netdev,staff,i2c) groups.
Hit:1 http://ports.ubuntu.com focal InRelease
Get:2 http://ports.ubuntu.com focal-security InRelease [109 kB]
Get:3 http://ports.ubuntu.com focal-updates InRelease [114 kB]
Get:4 http://ports.ubuntu.com focal-backports InRelease [101 kB]
Get:5 https://dl.khadas.com/repos/vim3 focal InRelease [2200 B]
Get:6 https://dl.khadas.com/repos/vim3 focal/main arm64 Packages [11.3 kB]
Get:7 https://dl.khadas.com/repos/vim3 focal/main armhf Packages [3514 B]
Fetched 341 kB in 21s (16.0 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Info: Preparing image file for rootfs...
Info: Current rootfs cache size: 3395 MiB
Info: Creating eMMC rootfs image...
0+0 records in
0+0 records out
0 bytes copied, 0.000210907 s, 0.0 kB/s
mount: /home/khadas/fenix/build/images/rootfs: failed to setup loop device for /home/khadas/fenix/build/images/rootfs.img.
Cleanup...
make: *** [Makefile:5: all] Error 32
I did this GitHub - khadas/fenix: One-stop script set to build Ubuntu/Debian images and built with:
khadas@7e1c7c279fca:~/fenix$ KHADAS_BOARD=VIM3 LINUX=mainline UBOOT=mainline DISTRIBUTION=Ubuntu DISTRIB_RELEASE=focal DISTRIB_TYPE=gnome DISTRIB_ARCH=arm64 COMPRESS_IMAGE=yes INSTALL_TYPE=EMMC INSTALL_TYPE_RAW=yes make
Now with SD_USB
Now building with the same but without “INSTALL_TYPE=EMMC”…
Info: Create SD/USB image...
0+0 records in
0+0 records out
0 bytes copied, 0.000115381 s, 0.0 kB/s
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x4239b479.
Command (m for help): Created a new DOS disklabel with disk identifier 0x2e93ccc5.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-9658367, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (32768-9658367, default 9658367):
Created a new partition 1 of type 'Linux' and of size 240 MiB.
Command (m for help): Selected partition 1
The bootable flag on partition 1 is enabled now.
Command (m for help): Selected partition 1
Hex code (type L to list all codes): Changed type of partition 'Linux' to 'W95 FAT32'.
Command (m for help): Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (2048-9658367, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (524288-9658367, default 9658367):
Created a new partition 2 of type 'Linux' and of size 4.4 GiB.
Command (m for help): Disk /home/khadas/fenix/build/images/VIM3_Ubuntu-gnome-focal_Linux-5.10-rc6_arm64_SD-USB_V1.0.2-210226.raw.img: 4.62 GiB, 4945084416 bytes, 9658368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2e93ccc5
Device Boot Start End Sectors Size Id Type
/home/khadas/fenix/build/images/VIM3_Ubuntu-gnome-focal_Linux-5.10-rc6_arm64_SD-USB_V1.0.2-210226.raw.img1 * 32768 524287 491520 240M b W95
/home/khadas/fenix/build/images/VIM3_Ubuntu-gnome-focal_Linux-5.10-rc6_arm64_SD-USB_V1.0.2-210226.raw.img2 524288 9658367 9134080 4.4G 83 Linu
Command (m for help): The partition table has been altered.
Syncing disks.
losetup: /home/khadas/fenix/build/images/VIM3_Ubuntu-gnome-focal_Linux-5.10-rc6_arm64_SD-USB_V1.0.2-210226.raw.img: failed to set up loop device: No such file or directory
Cleanup...
make: *** [Makefile:5: all] Error 1
I tried to manually execute:
losetup --show -f ${BUILD_IMAGES}/${IMAGE_FILE_NAME}
and it fails, so, I do:
sudo mknod /dev/loop0 -m0660 b 7 0
And repeat the whole process. It continued failing…
losetup: /home/khadas/fenix/build/images/VIM3_Ubuntu-gnome-focal_Linux-5.10-rc6_arm64_SD-USB_V1.0.2-210226.raw.img: failed to set up loop device: No such file or directory
Cleanup...
make: *** [Makefile:5: all] Error 1
khadas@7e1c7c279fca:~/fenix$ ls /dev/loop
loop0 loop-control
Awful.
When will Khadas update the Wizard list of images (Krescue) with recent kernels (5.10-rc6) to be installed in the EMMC? Why we need to deal with this having so many problems.