I tried with a zImage, here is what I'm getting :<br><br>barebox:/ bootz /dev/<a href="http://nand0.kernel.bb">nand0.kernel.bb</a> <br>invalid magic 0x00002018 <br><br>And here the ls -l /dev/nand0.* output :<br><br>
barebox:/ ls -l /dev/nand0.* <br>crw------- 393216 /dev/<a href="http://nand0.barebox.bb">nand0.barebox.bb</a><br>crw------- 131072 /dev/<a href="http://nand0.bareboxenv.bb">nand0.bareboxenv.bb</a><br>crw------- 2883584 /dev/<a href="http://nand0.kernel.bb">nand0.kernel.bb</a><br>
crw------- 533200896 /dev/<a href="http://nand0.root.bb">nand0.root.bb</a><br>crw------- 533667840 /dev/nand0.root<br>crw------- 2764800 /dev/nand0.kernel<br>crw------- 131072 /dev/nand0.bareboxenv<br>crw------- 307200 /dev/nand0.barebox<br>
<br>Here is how I did my kernel and root partitions, following this steps : <br><br>addpart /dev/nand0 300k(barebox)ro,128k(bareboxenv),2700k(kernel),-(root)<br>nand -a /dev/nand0.*<br>update -t kernel -d nand<br>update -t rootfs -d nand<br>
<br>Is there any specific command to erase the nand before flashing it ? <br><br><br><br><div class="gmail_quote">2011/10/18 Sascha Hauer <span dir="ltr"><<a href="mailto:s.hauer@pengutronix.de">s.hauer@pengutronix.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Oct 17, 2011 at 10:31:38PM +0200, Kamel BOUHARA wrote:<br>
> > bootu is for starting raw kernel images. Do you have such an image?<br>
> > Normally you have an uImage (bootm) or a zImage (bootz)<br>
><br>
><br>
> Ok so that maybe the solution because I didn't tried with the bootm .... my<br>
> bad ! But why did I don't have the "Bad magic number" error like when I<br>
> tried the boot command ???<br>
<br>
</div>A raw image does not have any magic number you could check, so the bootu<br>
command relies on the user passing the correct image.<br>
<div class="im"><br>
><br>
> Here is the ls /dev result:<br>
><br>
> barebox:/ ls /dev/<br>
> zero defaultenv mem<br>
> nor0 nand0 nand_oob0<br>
> ram0 phy0 self_raw<br>
> self0 env_raw env0<br>
> nor0.barebox nor0.bareboxenv nor0.kernel<br>
> nor0.root nand0.barebox nand0.bareboxenv<br>
> nand0.kernel nand0.root <a href="http://nand0.root.bb" target="_blank">nand0.root.bb</a><br>
> <a href="http://nand0.kernel.bb" target="_blank">nand0.kernel.bb</a> <a href="http://nand0.bareboxenv.bb" target="_blank">nand0.bareboxenv.bb</a> <a href="http://nand0.barebox.bb" target="_blank">nand0.barebox.bb</a><br>
<br>
</div>Sorry, I meant the output of 'ls -l /dev/nand0.*' to check the sizes of<br>
your partitions.<br>
<div><div></div><div class="h5"><br>
Sascha<br>
<br>
<br>
--<br>
Pengutronix e.K. | |<br>
Industrial Linux Solutions | <a href="http://www.pengutronix.de/" target="_blank">http://www.pengutronix.de/</a> |<br>
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: <a href="tel:%2B49-5121-206917-0" value="+4951212069170">+49-5121-206917-0</a> |<br>
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>__________________________________<br><i><font face="'comic sans ms', sans-serif">Kamel BOUHARA</font></i><div>7 rue Jules César<div>02100 SAINT-QUENTIN<br>
06.17.83.29.04<br><br></div></div><br>