Flash dts and kernel out of 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

    1. cat /proc/mtd

    A typical output would be:

    1. dev: size erasesize name
    2. mtd0: 00040000 00020000 "NBoot"
    3. mtd1: 000c0000 00020000 "UserDef"
    4. mtd2: 00040000 00020000 "Refresh"
    5. mtd3: 000c0000 00020000 "UBoot"
    6. mtd4: 00040000 00020000 "UBootEnv"
    7. mtd5: 00800000 00020000 "Kernel"
    8. mtd6: 001c0000 00020000 "FDT"
    9. mtd7: 0f400000 00020000 "TargetFS"

    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>.


    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

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.