<font size=2 face="sans-serif">ahh thank you.. i try that.</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:
</font><font size=1 face="sans-serif">Christian Kapeller
<christian.kapeller@cmotion.eu></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:
</font><font size=1 face="sans-serif">christian.buettner@rafi.de,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Kopie:
</font><font size=1 face="sans-serif">barebox@lists.infradead.org,
Sascha Hauer <s.hauer@pengutronix.de></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:
</font><font size=1 face="sans-serif">16.07.2012 16:26</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:
</font><font size=1 face="sans-serif">Re: Antwort:
Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On 07/16/2012 03:52 PM, christian.buettner@rafi.de
wrote:<br>
> Thx for the hint.<br>
> What i don't understand is that barebox boots from nand but the<br>
> environement can't..<br>
<br>
Good point. In any case the driver isn't able to recognize your nand<br>
device. I see from you supplied code snipplets, that your barebox is<br>
at least two weeks old. Maybe you use the upstream tree, as maybe there<br>
are already fixes for imx53 nand flash.<br>
<br>
Also you may want to activate mtd debugging:<br>
<br>
#define CONFIG_MTD_DEBUG<br>
#define CONFIG_MTD_DEBUG_VERBOSE 3<br>
<br>
for example to your include/linux/mtd/mtd.h file. (Those are config<br>
settings, but they don't appear in any Kconfig file, hence supply them<br>
manually)<br>
<br>
good luck.<br>
<br>
> <br>
> <br>
>> I flashed from 0x0 to 0x7FFFF (image size: 479K).<br>
>> I flashed the environment image (image size: 3K) from 0x80000
to 0xFFFFF<br>
>> and changed the config code from barebox/environs/common/config
to:<br>
>><br>
>> ...<br>
>> nand_parts="512k(barebox)ro,768k(bareboxenv),4M(kernel),120M(root)"<br>
>> ...<br>
>><br>
>> Barebox can boot now but the startup log says:<br>
>> barebox 2012.03.0-dirty (Jul 16 2012 - 09:01:01)<br>
>><br>
>> Board: i.MX53<br>
>> eth@eth0: got MAC address from EEPROM: *********************<br>
>> nand_get_flash_type: second ID read did not match ef,ef against
c0,c0<br>
>> No NAND device found (-19)!<br>
>> Malloc space: 0x7df00000 -> 0x7fefffff (size 32 MB)<br>
>> Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB)<br>
>> Open /dev/env0 No such file or directory<br>
>> running /env/bin/init...<br>
>> not found<br>
>> barebox:/<br>
>><br>
>> How can i get the environment loaded?<br>
> <br>
> Normally you would issue 'saveenv' which writes the environment to
the<br>
> environment partition. On subsequent boots the environment will be
loaded.<br>
> <br>
> But the flash device on your board isn't detected by barebox, so you<br>
> will have to fix the detection first.<br>
> <br>
>> nand_get_flash_type: second ID read did not match ef,ef against
c0,c0<br>
> <br>
> This line suggests, that the nand flash isn't working property. The
line<br>
> is generated in drivers/mtd/nand/nand_base.c, after reading manufacturer<br>
> id and chip id two times, and checking them for equality.<br>
> <br>
> Not only does your board different values for manufacturer and flash
id<br>
> on first and second read, but they are also the same. manuf id=ef
and<br>
> chip id=ef isn't plausible. Maybe you should check your hardware.<br>
> <br>
> Regards<br>
> Christian<br>
> <br>
<br>
<br>
-- <br>
Christian Kapeller<br>
cmotion GmbH<br>
Kriehubergasse 16<br>
1050 Wien / Austria<br>
</font></tt><a href=http://www.cmotion.eu/><tt><font size=2>http://www.cmotion.eu</font></tt></a><tt><font size=2><br>
<br>
christian.kapeller@cmotion.eu<br>
Phone: +43 1 789 1096 38<br>
<br>
<br>
</font></tt>
<br>