Skip to content

Flash Partitioning

gtxaspec edited this page Jan 31, 2024 · 3 revisions

MTD Partition Recognition and Setup for U-Boot Environment

This section details the automatic recognition and setup process for MTD partitions in the U-Boot environment.

Automatic Squashfs Partition Detection

  • Manual Definition Not Required: There is no need to manually define MTD partitions. The system is configured to automatically detect the squashfs partition.
  • Detection Range: The squashfs partition is automatically identified in the memory range from 0x180000 to 0x360000.

Auto-Updating bootargs Variables

The bootargs environment variable in the U-Boot setup is automatically updated with the necessary parameters. The typical configuration is as follows:

bootargs=mem=${osmem} rmem=${rmem} console=${serialport},${baudrate}n8 panic=${panic_timeout} root=/dev/mtdblock3 rootfstype=squashfs init=/init mtdparts=jz_sfc:256k(boot),64k(env),${kern_size}(kernel),${rootfs_size}(rootfs),-(rootfs_data)${update}