Skip to content

Support NAND in fw_printenv/fw_setenv

Wolfgang Denk u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Convert fw_env.c to use a single environment image union+0 -01 reply
1/6Convert fw_env.c to use a single environment image union+0 -00 replies
2/6Separate flash read and write operations+0 -01 reply
2/6Separate flash read and write operations+0 -01 reply
2/6Separate flash read and write operations+0 -00 replies
3/6"return" is not a function+0 -01 reply
3/6"return" is not a function+0 -01 reply
4/6Unify active vs. redundant environment variable naming+0 -01 reply
4/6Unify active vs. redundant environment variable naming+0 -01 reply
4/6Unify active vs. redundant environment variable naming+0 -00 replies
5/6Support environment anywhere within erase area+0 -01 reply
5/6Support environment anywhere within erase area+0 -00 replies
6/6Support environment in NAND+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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.