Expand storage or use the full storage capacity of a microSD on a LuckFox Pico Plus running Ubuntu 22.04

  • Hello, due to licensing issues, technical support and maintenance for Ubuntu images are no longer provided.

    In the Buildroot system, partition information is passed to the kernel via env.img. To adjust partition sizes, you can modify env.img by updating .BoardConfig.mk and rebuilding it. The steps are as follows:
    1 In the SDK, run ./build.sh lunch to select the target board model. (In older versions, the microSD card partition configurations for Buildroot and Ubuntu systems are the same.)
    2 Modify the RK_PARTITION_CMD_IN_ENV variable in .BoardConfig.mk.
    3 Run ./build.sh env to build a new env.img.
    4 Replace the old env.img with the newly generated one.

    Alternatively, if you're using a serial module to access the terminal, you can also modify partition settings directly in U-Boot:
    1 After powering on or rebooting, press Ctrl-C to enter the U-Boot terminal.
    2 Use the printenv command to view the blkdevparts information.
    3 Use setenv blkdevparts to set new partition information.
    4 Run saveenv to save the changes, then reboot the device.