Hello Sir
Not sure this is an issue, could you please help to check?
I have used the guidence here to build an image from docker:
-
Follow the step from README.md for build the image:
https://github.com/SolidRun/lx2160a_build/tree/develop-lsdk-21.08
-
Command used to have jammy (Ubuntu 22.04) instead of Ubuntu 20.04 (default), image can be built successfully:
sudo docker run --rm -i -t -v "$PWD":/work -e UBUNTU_VERSION=jammy lx2160a_build -u $(id -u) -g $(id -g)
-
Burn the image into SD card and follow the steps from to copy to eMMC:
https://solidrun.atlassian.net/wiki/spaces/developer/pages/197494288/HoneyComb+LX2+ClearFog+CX+LX2+Quick+Start+Guide
-
Following three commands are used, and run successfully:
load mmc 0:1 0xa4000000 ubuntu-core.img
mmc dev 1
mmc write 0xa4000000 0 0xd2000
-
After boot from eMMC (via jumpers), and log into Ubuntu 22.04, there is no fdisk command found, so the eMMC can not be extended to full size.
-
Search from Ubuntu community, said that “fdisk” is not included from Ubuntu 22.04 by default (tbc), need to run apt install fdisk to install.
-
try to run "apt update" and "apt install fdisk" to install fdisk, but report there is no enough space for apt update.
-
run df to have the following:
root@localhost:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 338867 274364 42487 87% /
tmpfs 7109588 0 7109588 0% /dev/shm
tmpfs 2843836 732 2843104 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1421916 0 1421916 0% /run/user/0
-
The size of the rootfs should be 350M, I tried to use the following comand to re-build the image to have larger rootfs (640M):
sudo docker run --rm -i -t -v "$PWD":/work -e UBUNTU_VERSION=jammy -e UBUNTU_ROOTFS_SIZE=640M -e DEBIAN_ROOTFS_SIZE=640M lx2160a_build -u $(id -u) -g $(id -g)
-
After burn the new image to eMMC, I still got the same size of rootfs (350M?), so still can not install fdisk via apt install fdisk. seems the parameter of -e UBUNTU_ROOTFS_SIZE=640M is not working.
Could you please help to check how to have fdisk command for Ubuntu 22.04 image?
Thanks in advance!
Best Regards
Yuchu
Hello Sir
Not sure this is an issue, could you please help to check?
I have used the guidence here to build an image from docker:
Follow the step from README.md for build the image:
https://github.com/SolidRun/lx2160a_build/tree/develop-lsdk-21.08
Command used to have jammy (Ubuntu 22.04) instead of Ubuntu 20.04 (default), image can be built successfully:$(id -u) -g $ (id -g)
sudo docker run --rm -i -t -v "$PWD":/work -e UBUNTU_VERSION=jammy lx2160a_build -u
Burn the image into SD card and follow the steps from to copy to eMMC:
https://solidrun.atlassian.net/wiki/spaces/developer/pages/197494288/HoneyComb+LX2+ClearFog+CX+LX2+Quick+Start+Guide
Following three commands are used, and run successfully:
load mmc 0:1 0xa4000000 ubuntu-core.img
mmc dev 1
mmc write 0xa4000000 0 0xd2000
After boot from eMMC (via jumpers), and log into Ubuntu 22.04, there is no fdisk command found, so the eMMC can not be extended to full size.
Search from Ubuntu community, said that “fdisk” is not included from Ubuntu 22.04 by default (tbc), need to run apt install fdisk to install.
try to run "apt update" and "apt install fdisk" to install fdisk, but report there is no enough space for apt update.
run df to have the following:
root@localhost:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 338867 274364 42487 87% /
tmpfs 7109588 0 7109588 0% /dev/shm
tmpfs 2843836 732 2843104 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1421916 0 1421916 0% /run/user/0
The size of the rootfs should be 350M, I tried to use the following comand to re-build the image to have larger rootfs (640M):$(id -u) -g $ (id -g)
sudo docker run --rm -i -t -v "$PWD":/work -e UBUNTU_VERSION=jammy -e UBUNTU_ROOTFS_SIZE=640M -e DEBIAN_ROOTFS_SIZE=640M lx2160a_build -u
After burn the new image to eMMC, I still got the same size of rootfs (350M?), so still can not install fdisk via apt install fdisk. seems the parameter of -e UBUNTU_ROOTFS_SIZE=640M is not working.
Could you please help to check how to have fdisk command for Ubuntu 22.04 image?
Thanks in advance!
Best Regards
Yuchu