Hi everyone. I've built lede images using these instructions and this config file.
In menuconfig I selected all possible target images (except ext4), that are:
ramdisk
cpio.gz
tar.gz
squashfs
After compilation, in targets directory I got the files:
but apparently no sysupgrade image. Are sysupgrade images generated only for some devices in presence of some kind of profile or there is something wrong with my config?
You most likely selected too many packages to be included, so the resulting image got too large. You'll see the error messages if you bump up the build verbosity (make -j1 V=s).
You think could be this even if squashfs-cfe.bin (the factory image, right?) is only 3.5 mb large?
If I delete .config file and redo the steps in the instructions without selecting anything else than target config (I've selected almost anything previously anyway) and without doing make clean, sysupgrade should be built even if there is no sysupgrade in official repos?
EDIT: used default .config. Now squashfs-cfe.bin is 3.3mb large and no sysupgrade image being generated.
The factory.bin files are meant to be flashed over factory stock firmware routers - they usually have some extra "magic bytes" i.e. a trick header - to fool the factory firmware into thinking its reading its own factory firmware, not 3rd party firmware.
Source: https://www.gargoyle-router.com/phpbb/viewtopic.php?f=5&t=1412#p6531
@tmomas@Blarty_Runfaster from what I've found on openWRT wiki when there is no sysupgrade image we first have to convert .bin image to .trx as described here, then use the image created through LuCI, sysupgrade tool or mtd (how to find the name of the partition?), am I right?
I just want to know how to upgrade lede without using cfe commands and breaking the router. Apparently not so much routers support sysupgrade and many non-standard ways to upgrade exist, depending on router model. You know what is the recommended way to upgrade AGPF-S0?
It's not that I want to mix targets, I'm just collecting information because, well, there is no manual or standard procedures and you are the only person replying.
I am not much help as there are many unanswered questions for me too. I would think the best solution is to build the firmware yourself.
But then you need to find out how to make a sysupgrade image. But I don't know what making a sysupgrade image requires. Here are some questions I can't find answers to.
Questions for anyone and any device without sysupgrade images:
Is it impossible to create sysupgrade images for some devices?
Is it possible to create sysupgrade images for any device but some require much more work to do that?
If it's possible to create sysupgrade images for any device are there any guides to do that?
If it's not possible is it documented why it's not possible? If so, where?
If there's no documentation where to look in the build environment to understand how sysupgrade images are created?
There are probably other questions that need asking and answering but I don't know enough to know what else to ask.