
4 Oct
2009
4 Oct
'09
9:07 p.m.
Dear Rainer,
In message NDBBKLDECLOIHFJKBINAGECGEKAA.Berns@BEKA-Elektronik.de you wrote:
the reason for this problem is the definition of
#define DATAFLASH_BUSY 0x00 #define DATAFLASH_OK 0x01 in the file /include/dataflash.h.
All functions return DATAFLASH_OK and in the file /common/cmd_nvedit.c
function do_saveenv()
return (saveenv() ? 1 : 0);
than cause an error.
I have modified it to return (saveenv() == 1 ? 0 : 1);
and this works for my, but i'am not sure if this is the best way of fixing the problem.
I really would like to get this problem fixed. Can you please submit your changes as a patch (including especially your Signed-off-by: line); please see http://www.denx.de/wiki/U-Boot/Patches for details.
Best regards,
Wolfgang Denk
--
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@denx.de
SW engineering is a race between programmers trying to make better
idiot-proof programs and the universe producing greater idiots.