From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ladislav Michl Date: Thu, 21 Jan 2016 20:56:15 +0100 Subject: [U-Boot] [PATCH] igep00x0: enable CONFIG_CMD_SETEXPR In-Reply-To: <20160121191113.GH3359@bill-the-cat> References: <20160121103449.GA22730@localhost.localdomain> <20160121191113.GH3359@bill-the-cat> Message-ID: <20160121195615.GA15261@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jan 21, 2016 at 02:11:13PM -0500, Tom Rini wrote: > On Thu, Jan 21, 2016 at 11:35:01AM +0100, Ladislav Michl wrote: > > > Enable CONFIG_CMD_SETEXPR, useful when passing initramfs end address: > > $ fatload mmc 0:1 $rdaddr root.cpio.gz > > $ setexpr rdendaddr $rdaddr + $filesize > > $ fdt chosen $rdaddr $rdendaddr > > $ bootz $loadaddr - $fdtaddr > > OK, but why do that instead of 'bootz $loadaddr $rdaddr $fdtaddr' ? => bootz $loadaddr $rdaddr $fdtaddr Wrong Ramdisk Image Format Ramdisk image is corrupt or invalid Well, perhaps that could be done with CONFIG_SUPPORT_RAW_INITRD, which expects size of initrd, not an end address. I'll give it a try and possibly enable that instead. ladis