Re: [PATCH v2] tools: fw_env: use erasesize from MEMGETINFO ioctl

2020-04-28 Thread Tom Rini
On Tue, Mar 24, 2020 at 01:57:40PM +0100, Rasmus Villemoes wrote: > We have a board with several revisions. The older ones use a nor flash > with 64k erase size, while the newer have a flash with 4k sectors. The > environment size is 8k. > > Currently, we have to put a column containing 0x1 (

[PATCH v2] tools: fw_env: use erasesize from MEMGETINFO ioctl

2020-03-24 Thread Rasmus Villemoes
We have a board with several revisions. The older ones use a nor flash with 64k erase size, while the newer have a flash with 4k sectors. The environment size is 8k. Currently, we have to put a column containing 0x1 (64k) in fw_env.config in order for it to work on the older boards. But that e