From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.rafi.de ([178.15.151.13]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sr5L9-000837-0Q for barebox@lists.infradead.org; Tue, 17 Jul 2012 10:49:16 +0000 In-Reply-To: <019301cd6409$31d9c110$958d4330$@cpdesign.com.au> References: <20120716103054.GJ30009@pengutronix.de> <2711184.rUQpv2fWDx@dev1> <019301cd6409$31d9c110$958d4330$@cpdesign.com.au> MIME-Version: 1.0 Message-ID: From: christian.buettner@rafi.de Date: Tue, 17 Jul 2012 12:49:11 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6033822906200556122==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Antwort: RE: Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size To: marc@cpdesign.com.au Cc: barebox@lists.infradead.org, Marc Reilly Dies ist eine mehrteilige Nachricht im MIME-Format. --===============6033822906200556122== Content-Type: multipart/alternative; boundary="=_alternative 003B6F60C1257A3E_=" Dies ist eine mehrteilige Nachricht im MIME-Format. --=_alternative 003B6F60C1257A3E_= Content-Type: text/plain; charset="US-ASCII" Ahh, thank you for the hint with the BB! And finally - it is working!! I forgot to change the erase settings in the lauterbach script. Thank you all for your help and long lives barebox ;) - christian Von: "Marc Reilly" An: , Kopie: , "'Sascha Hauer'" Datum: 17.07.2012 12:44 Betreff: RE: Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size Gesendet von: Marc Reilly Hi, >ok i was able to preceed a little. The new error message after booting is: > >Board: RAFI i.MX53 >eth@eth0: got MAC address from EEPROM: ******** >NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit) >Bad block table found at page 65472, version 0x01 >Bad block table found at page 65408, version 0x01 >nand_read_bbt: Bad block at 0x060a0000 >Malloc space: 0x7df00000 -> 0x7fefffff (size 32 MB) >Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB) >envfs: wrong magic on /dev/env0 >running /env/bin/init... >not found >barebox:/ What commands are you using to erase and program the flash area? >Environment config >nand_parts="512k(barebox)ro,512k(bareboxenv),4M(kernel),120M(root)" >board_init.c >devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self0"); >devfs_add_partition("nand0", 0x80000, 0x80000, PARTITION_FIXED, "env0"); These partitions aren't bad block aware, from memory, I think u want something like: devfs_add_partition("nand0", 0x80000, 0x80000, PARTITION_FIXED, "env0_raw"); dev_add_bb_dev("env0_raw", "env0"); Cheers, Marc --=_alternative 003B6F60C1257A3E_= Content-Type: text/html; charset="US-ASCII" Ahh, thank you for the hint with the BB!
And finally - it is working!!
I forgot to change the erase settings in the lauterbach script.

Thank you all for your help and long lives barebox ;)

- christian



Von:        "Marc Reilly" <marc@cpdesign.com.au>
An:        <christian.buettner@rafi.de>,
Kopie:        <barebox@lists.infradead.org>, "'Sascha Hauer'" <s.hauer@pengutronix.de>
Datum:        17.07.2012 12:44
Betreff:        RE: Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size
Gesendet von:        Marc Reilly <marc.reilly@gmail.com>




Hi,

>ok i was able to preceed a little. The new error message after booting is:
>
>Board: RAFI i.MX53
>eth@eth0: got MAC address from EEPROM: ********
>NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V
8-bit)
>Bad block table found at page 65472, version 0x01
>Bad block table found at page 65408, version 0x01
>nand_read_bbt: Bad block at 0x060a0000
>Malloc space: 0x7df00000 -> 0x7fefffff (size 32 MB)
>Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB)
>envfs: wrong magic on /dev/env0
>running /env/bin/init...
>not found
>barebox:/

What commands are you using to erase and program the flash area?

>Environment config
>nand_parts="512k(barebox)ro,512k(bareboxenv),4M(kernel),120M(root)"

>board_init.c
>devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self0");
>devfs_add_partition("nand0", 0x80000, 0x80000, PARTITION_FIXED, "env0");

These partitions aren't bad block aware, from memory, I think u want
something like:

devfs_add_partition("nand0", 0x80000, 0x80000, PARTITION_FIXED, "env0_raw");
dev_add_bb_dev("env0_raw", "env0");

Cheers,
Marc


--=_alternative 003B6F60C1257A3E_=-- --===============6033822906200556122== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============6033822906200556122==--