[U-Boot] first u-boot program

Wolfgang Denk wd at denx.de
Wed Jun 2 10:07:11 CEST 2010


Dear Maxime Boure,

Please stop sending HTML. This is strongly discouraged on this list.

In message <AANLkTik0nK69NfhQow6b5cbvnd7CN_9f2kJsDvbfX_Lx at mail.gmail.com> you wrote:
> 
> Thanks for the answer. Do you mean using fw_printenv fw_setenv ? That is
> what I am thinking about.

Yes, that's what I mean.

> But I can't find a fw_env.config that wouldn't warn me about a "bad CRC".

That's a problem to be solved, then.

> The fw_printenv seems to work half way :
> 
> root at myboard:~# fw_printenv
> Warning: Bad CRC, using default environment
> bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath}
> ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
> bootdelay=5
> baudrate=115200
> 
> It misses a lot of variables.

So the configuration is incorrect.

> My config is this one :
> # MTD device name       Device offset   Env. size       Flash sector size
> /dev/mtd2               0x0000          0x80000         0x80000
> 
> My partitions are those :
> root at myboard:~# cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00080000 00040000 "X-Loader"
> mtd1: 00180000 00040000 "U-Boot"
> mtd2: 00080000 00040000 "Environment"
> mtd3: 00300000 00040000 "Kernel"
> mtd4: 1fa80000 00040000 "File System"

And what does the environment configuration in U-Boot look like? Which
board is this?

> Is my configuration file good ? When I reboot my board it doesn't save my
> changes. Where can I get the sources of a fw_saveenv program ?

Your configuration is obviously NOT good - otherwise there weren't any
such errors.

The source is part of the U-Boot code, see the tools/env/ directory.


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 at denx.de
panic: can't find /


More information about the U-Boot mailing list