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 1SqkFW-0004Lx-Oo for barebox@lists.infradead.org; Mon, 16 Jul 2012 12:18:05 +0000 In-Reply-To: <20120716103054.GJ30009@pengutronix.de> References: <20120716085418.GG30009@pengutronix.de> <20120716092101.GI30009@pengutronix.de> <20120716103054.GJ30009@pengutronix.de> MIME-Version: 1.0 Message-ID: From: christian.buettner@rafi.de Date: Mon, 16 Jul 2012 14:17:50 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2660892261632605828==" 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: barebox image size To: Sascha Hauer Cc: barebox@lists.infradead.org Dies ist eine mehrteilige Nachricht im MIME-Format. --===============2660892261632605828== Content-Type: multipart/alternative; boundary="=_alternative 00438D25C1257A3D_=" Dies ist eine mehrteilige Nachricht im MIME-Format. --=_alternative 00438D25C1257A3D_= Content-Type: text/plain; charset="US-ASCII" ok i can boot now! Thank you! I flashed from 0x0 to 0x7FFFF (image size: 479K). I flashed the environment image (image size: 3K) from 0x80000 to 0xFFFFF and changed the config code from barebox/environs/common/config to: ... nand_parts="512k(barebox)ro,768k(bareboxenv),4M(kernel),120M(root)" ... Barebox can boot now but the startup log says: barebox 2012.03.0-dirty (Jul 16 2012 - 09:01:01) Board: i.MX53 eth@eth0: got MAC address from EEPROM: ********************* nand_get_flash_type: second ID read did not match ef,ef against c0,c0 No NAND device found (-19)! Malloc space: 0x7df00000 -> 0x7fefffff (size 32 MB) Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB) Open /dev/env0 No such file or directory running /env/bin/init... not found barebox:/ How can i get the environment loaded? - christian Von: Sascha Hauer An: christian.buettner@rafi.de, Kopie: barebox@lists.infradead.org Datum: 16.07.2012 12:30 Betreff: Re: Antwort: Re: Antwort: Re: barebox image size On Mon, Jul 16, 2012 at 11:37:59AM +0200, christian.buettner@rafi.de wrote: > here it is: > > struct imx_flash_header_v2 __flash_header_section flash_header = > { > .header.tag = IVT_HEADER_TAG, > .header.length = cpu_to_be16(32), > .header.version = IVT_VERSION, > > .entry = APP_DEST + 0x1000, > .dcd_ptr = APP_DEST + 0x400 + offsetof(struct > imx_flash_header_v2, dcd), > .boot_data_ptr = APP_DEST + 0x400 + offsetof(struct > imx_flash_header_v2, boot_data), > .self = APP_DEST + 0x400, > > .boot_data.start = APP_DEST, > .boot_data.size = 0x40000, And here you have the magic 256k. Please use DCD_BAREBOX_SIZE instead. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --=_alternative 00438D25C1257A3D_= Content-Type: text/html; charset="US-ASCII" ok i can boot now! Thank you!

I flashed from 0x0 to 0x7FFFF (image size: 479K).
I flashed the environment image (image size: 3K) from 0x80000 to 0xFFFFF and changed the config code from barebox/environs/common/config to:

...
nand_parts="512k(barebox)ro,768k(bareboxenv),4M(kernel),120M(root)"
...

Barebox can boot now but the startup log says:
barebox 2012.03.0-dirty (Jul 16 2012 - 09:01:01)

Board: i.MX53
eth@eth0: got MAC address from EEPROM: *********************
nand_get_flash_type: second ID read did not match ef,ef against c0,c0
No NAND device found (-19)!
Malloc space: 0x7df00000 -> 0x7fefffff (size 32 MB)
Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB)
Open /dev/env0 No such file or directory
running /env/bin/init...
not found
barebox:/

How can i get the environment loaded?

- christian




Von:        Sascha Hauer <s.hauer@pengutronix.de>
An:        christian.buettner@rafi.de,
Kopie:        barebox@lists.infradead.org
Datum:        16.07.2012 12:30
Betreff:        Re: Antwort: Re: Antwort: Re: barebox image size




On Mon, Jul 16, 2012 at 11:37:59AM +0200, christian.buettner@rafi.de wrote:
> here it is:
>
> struct imx_flash_header_v2 __flash_header_section flash_header =
> {
>     .header.tag         = IVT_HEADER_TAG,
>     .header.length      = cpu_to_be16(32),
>     .header.version     = IVT_VERSION,
>
>     .entry              = APP_DEST + 0x1000,
>     .dcd_ptr            = APP_DEST + 0x400 + offsetof(struct
> imx_flash_header_v2, dcd),
>     .boot_data_ptr      = APP_DEST + 0x400 + offsetof(struct
> imx_flash_header_v2, boot_data),
>     .self               = APP_DEST + 0x400,
>
>     .boot_data.start    = APP_DEST,
>     .boot_data.size     = 0x40000,

And here you have the magic 256k. Please use DCD_BAREBOX_SIZE instead.

Sascha


--
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 |
http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

--=_alternative 00438D25C1257A3D_=-- --===============2660892261632605828== 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 --===============2660892261632605828==--