liveonlinux wrote:Could you tell me the usage of those files?
I'm not sure if I am up to speed with all the files LEDE build environment generates, but I'll try my best to help you. This explanation might not be entirely accurate, since both LEDE and OpenWRT are moving targets, and I am not at all familiar with the AP148 development board and all the intricacies involved with it.
It should give you the general idea though.
That is the output of ./scripts/diffconfig.sh (In practice that is the difference between global empty defaults and all the changes you've done inside 'make menuconfig')
lede-ipq806x-AP148-squashfs-nand-factory.ubi
A combo that contains a kernel image, followed by a read-only root filesystem and a read-write JFFS2 filesystem. The entire package is masqueraded to look like a stock firmware so as to make it compatible with the "upgrade" or "update" tools that are present in the OEM's own firmware; the package may contain folder structures, padding, headers, magic numbers, checksums etc. depending on what is required.
The 'squashfs' refers to the filesystem used in the root filesystem, and 'ubi' refers to the Unsorted Block Images layer that is placed underneath both the root filesystem and the read-write filesystem in order to extend the life of the NAND physical chip. The two filesystems are combined together using the OverlayFS scheme.
lede-ipq806x-AP148-squashfs-nand-sysupgrade.tar
Similar in essence to the 'factory' variant, but is an archive that contains a folder structure and some supporting files to make the image compatible with LEDE/OpenWRT's own "upgrade" option (i.e. the 'sysupgrade' program or from LuCI). Does not contain padding, headers, magic numbers or anything of the sort (since LEDE/OpenWRT does not use them), and is not compatible with the stock firmware's "upgrade" or "update" tools.
lede-ipq806x-AP148-ubifs-nand-factory.ubi
Similar to the first 'factory' variant, but the root filesystem and the read-write filesystem both use UBIFS instead of a SquashFS+JFFS2 combo. Underneath the entire UBIFS, there's an UBI layer. Contains folder structures, padding, headers, magic numbers & checksums to make it look like a stock firmware. I don't know if OverlayFS is in use in these images, or how exactly it is used.
lede-ipq806x-AP148-ubifs-nand-sysupgrade.tar
Similar to the previous 'sysupgrade' variant, but uses UBIFS instead of SquashFS+JFFS2 combo.
lede-ipq806x-device-ap148.manifest
I do not know what this file contains. Open it up and see for yourself 
lede-ipq806x-squashfs-root.img
A filesystem image that contains the read-only SquashFS root section and the read-write JFFS2 section. An OverlayFS is present to combine the two.
lede-ipq806x-ubifs-root.img
A filesystem image that uses UBIFS for all sections. I'm not sure if OverlayFS is used here.
A kernel image. I do not know if this image is usable as-is, or if it requires binary conversion or something else before it gets placed into the 'factory' and 'sysupgrade' packages. You can try doing binary compare between the kernel image found inside the aforementioned packages and this file, to see how they differ from each other.
If memory serves right, this file contains a full list of packages (and the versions used) that you selected for installation during the 'make menuconfig' phase. This file can be empty if you chose to remove the IPKG/OPKG data from the final image in 'make menuconfig'.
The SHA256 checksums of the image files.
Hopefully these explanations are useful. I take no responsibility if the explanations are inaccurate. I try the best I can, but considering the complexity of the LEDE system, it's very difficult to be always on the top of everything 
(Last edited by Antek on 11 Jul 2017, 10:23)