Hi,
is there a way to flash the kernel and dts out of the running linux?
Hi,
is there a way to flash the kernel and dts out of the running linux?
In the default configuration, these images are written to regular MTD partitions, which means they are available as regular MTD devices in Linux. You can list all MTD devides with
A typical output would be:
There you'll see that the kernel is on mtd5 and the device tree on mtd6. More detailled information about these devices can be found in /sys/class/mtd/mtd<n> where <n> is 5 or 6 in this case. And you can read and write data via /dev/mtd<n>.
Remark:
The Kernel and FDT partitions are marked as read-only in U-Boot so that they are not overwritten unintentionally. So if you want to write data to them in Linux, you have to remove the read-only flag in U-Boot first.
Your F&S Support Team