From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 28 Apr 2016 01:28:52 +0200 Subject: [U-Boot] [PATCH] ARM: mx6: Enable MMC FS boot support In-Reply-To: <20160427231647.GF19598@bill-the-cat> References: <1461798367-9723-1-git-send-email-marex@denx.de> <20160427231647.GF19598@bill-the-cat> Message-ID: <57214B34.6040005@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/28/2016 01:16 AM, Tom Rini wrote: > On Thu, Apr 28, 2016 at 01:06:07AM +0200, Marek Vasut wrote: > >> Enable support for booting U-Boot image from filesystem instead of some >> random offset on the SD card. This makes the board usable by putting the >> u-boot.img to first partition of the SD card and writing the SPL this way: >> $ dd if=u-boot-with-spl.imx of=/dev/sdX seek=2 bs=512 > > Wait, you're still writing u-boot + SPL to the device and not just SPL, > but it's still preferring the filesystem one over the appended one? > Ha, good point. I should've written the 'SPL' file instead, which is just the SPL without U-Boot. I don't want to install U-Boot to random offset on the SD card as it has the potential to corrupt data if the u-boot binary changes in size. If I install u-boot image to random offset 138 blocks from the start of SD card, it will boot that, otherwise it will load from FS. I will update the commit message with the correct info, sorry. -- Best regards, Marek Vasut