Support NAND in fw_printenv/fw_setenv
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Convert fw_env.c to use a single environment image union | +0 | 1 reply | |
| 1/6 | Convert fw_env.c to use a single environment image union | +0 | 0 replies | |
| 2/6 | Separate flash read and write operations | +0 | 1 reply | |
| 2/6 | Separate flash read and write operations | +0 | 1 reply | |
| 2/6 | Separate flash read and write operations | +0 | 0 replies | |
| 3/6 | "return" is not a function | +0 | 1 reply | |
| 3/6 | "return" is not a function | +0 | 1 reply | |
| 4/6 | Unify active vs. redundant environment variable naming | +0 | 1 reply | |
| 4/6 | Unify active vs. redundant environment variable naming | +0 | 1 reply | |
| 4/6 | Unify active vs. redundant environment variable naming | +0 | 0 replies | |
| 5/6 | Support environment anywhere within erase area | +0 | 1 reply | |
| 5/6 | Support environment anywhere within erase area | +0 | 0 replies | |
| 6/6 | Support environment in NAND | +0 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/6] Support NAND in fw_printenv/fw_setenv
Dear Guennadi Liakhovetski,
Quoted 5 lines · In message <[email protected]> you wrote:
What follows is a patch series to support NAND environment under Linux, including bad blocks. In principle, this is just one logical change, but it is a big one... So I split it into 6 smaller patches, which should be easier to review. Tested with and without redundant environment, with an injected bad block, crossing block border, read and write.
I just tried building for older kernels - it doesn't work:
-> make env MTD_VERSION=old
make -C tools/env all MTD_VERSION=old || exit 1
make[1]: Entering directory `/home/wd/git/u-boot/tmp/tools/env'
ppc_8xx-gcc -Wall -DUSE_HOSTCC -I/home/wd/git/u-boot/tmp/include -DMTD_OLD crc32.c fw_env.c fw_env_main.c -o fw_printenv In file included from /home/wd/git/u-boot/tmp/include/linux/mtd/mtd.h:13,
from fw_env.c:36:
/home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:15: error: parse error before "uint32_t" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:15: warning: no semicolon at end of struct or union /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:16: warning: type defaults to int' in declaration of length' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:16: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:20: error: parse error before "uint32_t" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:20: warning: no semicolon at end of struct or union /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:21: warning: type defaults to int' in declaration of length' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:21: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:23: error: parse error before '}' token /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:57: error: parse error before "uint8_t" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:57: warning: no semicolon at end of struct or union /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:58: warning: type defaults to int' in declaration of flags' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:58: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:59: error: parse error before "size" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:59: warning: type defaults to int' in declaration of size' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:59: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:60: error: parse error before "erasesize" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:60: warning: type defaults to int' in declaration of erasesize' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:60: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:61: error: parse error before "writesize" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:61: warning: type defaults to int' in declaration of writesize' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:61: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:62: error: parse error before "oobsize" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:62: warning: type defaults to int' in declaration of oobsize' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:62: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:65: error: parse error before "ecctype" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:65: warning: type defaults to int' in declaration of ecctype' /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:65: warning: data definition has no type or storage class /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:66: error: parse error before "eccsize" /home/wd/git/u-boot/tmp/include/linux/mtd/mtd-abi.h:66: warning: type defaults to int' in declaration of eccsize'
...
etc. etc.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Two wrongs don't make a right, but three rights make a left.