Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ IPL_CUST at `0x10000`, the uImage at `0x20000`.

The layout and environment of openipc-hisilicon (`include/configs/openipc-common.h`,
`openipc/nand_config`): `768k(boot),256k(env),-(ubi)`, the environment at
`0xC0000` (128 KiB in the 256 KiB range, so one bad block there leaves the
other; openipc-hisilicon's is 256 KiB in 256), one UBI device from `0x100000` whose UBIFS
`0xC0000` (256 KiB, range 256 KiB, as openipc-hisilicon's and the
firmware's `fw_env.config`), one UBI device from `0x100000` whose UBIFS
`rootfs` volume holds the kernel as `/boot/fitImage` or `/boot/uImage`, and
`rootfs_data` on the rest; `root=ubi0:rootfs rootfstype=ubifs ubi.mtd=2,2048`.
`common/openipc.c` is the common one (openipc-ingenic's, `OPENIPC_SPI_NAND`
Expand Down
5 changes: 2 additions & 3 deletions include/configs/openipc-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,8 @@
#define OPENIPC_NAND_MTDPARTS "768k(boot),256k(env),-(ubi)"

/* Environment lives in the NAND 'env' partition: CONFIG_ENV_OFFSET 0xc0000,
* CONFIG_ENV_RANGE 0x40000 as on openipc-hisilicon, CONFIG_ENV_SIZE 0x20000
* so that a bad block in the partition leaves room for it
* (openipc/nand_config). */
* CONFIG_ENV_SIZE and CONFIG_ENV_RANGE 0x40000 (openipc/nand_config), as
* on openipc-hisilicon. */

#define CONFIG_BOOTARGS OPENIPC_MEMARGS_HEAD "console=ttyS0,115200 panic=20 init=/init root=ubi0:rootfs rootfstype=ubifs ubi.mtd=2,2048 mtdparts=\\${mtdparts}" OPENIPC_MEMARGS_TAIL " \\${extras}"

Expand Down
3 changes: 1 addition & 2 deletions openipc/nand_config
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ CONFIG_CMD_NAND_TRIMFFS=y
# CONFIG_CMD_NAND_TORTURE is not set
CONFIG_ENV_IS_IN_NAND=y
CONFIG_ENV_OFFSET=0xc0000
# 128 KiB in the 256 KiB partition: one bad block there leaves the other
CONFIG_ENV_SIZE=0x20000
CONFIG_ENV_SIZE=0x40000
CONFIG_ENV_RANGE=0x40000
CONFIG_MTD_PARTITIONS=y
CONFIG_CMD_MTDPARTS=y
Expand Down
Loading