-
Notifications
You must be signed in to change notification settings - Fork 9
Flash Partitioning
gtxaspec edited this page Jan 31, 2024
·
3 revisions
This section details the automatic recognition and setup process for MTD partitions in the U-Boot environment.
- 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
to0x360000
.
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}