Champs:
There is a customer request to know: how to use the Yocto building the "TinyLinux" or rootfs under 512M.
Do we know how to shrink the size < 512M RootFS by using Yocto?
please comment, thanks.
BR Rio
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Champs:
There is a customer request to know: how to use the Yocto building the "TinyLinux" or rootfs under 512M.
Do we know how to shrink the size < 512M RootFS by using Yocto?
please comment, thanks.
BR Rio
Hi Rio,
when you build the tisdk-tiny-image for AM62x based on SDK v9.0 sources...
$ MACHINE=am62xx-evm bitbake -k tisdk-tiny-image
...the resulting uncompressed rootfs size is about 93MB, see the first file .rootfs.cpio.
$ ll -h arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm* -rw-r--r-- 2 a0797059 a0797059 93M Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.cpio -rw-r--r-- 2 a0797059 a0797059 25M Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.cpio.xz -rw-r--r-- 2 a0797059 a0797059 3.9K Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.manifest -rw-r--r-- 2 a0797059 a0797059 25M Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.tar.xz -rw-r--r-- 2 a0797059 a0797059 91 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.tar.xz.md5sum -rw-r--r-- 2 a0797059 a0797059 3.5K Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic.bmap -rw-r--r-- 2 a0797059 a0797059 33M Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic.xz -rw-r--r-- 2 a0797059 a0797059 451K Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.testdata.json lrwxrwxrwx 2 a0797059 a0797059 54 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.cpio -> tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.cpio lrwxrwxrwx 2 a0797059 a0797059 57 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.cpio.xz -> tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.cpio.xz lrwxrwxrwx 2 a0797059 a0797059 58 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.manifest -> tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.manifest lrwxrwxrwx 2 a0797059 a0797059 56 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.tar.xz -> tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.tar.xz lrwxrwxrwx 2 a0797059 a0797059 63 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.tar.xz.md5sum -> tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.tar.xz.md5sum lrwxrwxrwx 2 a0797059 a0797059 56 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.testdata.json -> tisdk-tiny-image-am62xx-evm-20230920222657.testdata.json lrwxrwxrwx 2 a0797059 a0797059 58 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.wic.bmap -> tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic.bmap lrwxrwxrwx 2 a0797059 a0797059 56 Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm.wic.xz -> tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic.xz
Similarly, when I extract the .wic.xz SD card image file, the resulting image is 298MB in size (which has a lot of space I'm sure could be trimmed out depending on application needs). Also here, less than 512MB.
$ unxz -k arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic.xz $ ll -h arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic* -rw-r--r-- 1 a0797059 a0797059 298M Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic -rw-r--r-- 2 a0797059 a0797059 3.5K Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic.bmap -rw-r--r-- 2 a0797059 a0797059 33M Sep 20 17:28 arago-tmp-default-glibc/deploy/images/am62xx-evm/tisdk-tiny-image-am62xx-evm-20230920222657.rootfs.wic.xz
Which SDK version/file are you looking at?
I think there was an issue in an earlier SDK with the tisdk-tiny-image was very large due to some software bug/issue but I'm not sure if this was ever made public like that. Either way, SDK v9.0 should work as shown above.
Regards, Andreas