From: kkaras Date: Sun, 4 Sep 2016 23:54:46 -0700 (MST) Subject: [U-Boot] Passing squashfs of unknown size to linux Message-ID: <1473058486401-266083.post@n7.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, I would like to pass a rootfs.squashfs image to linux with the initrd in the bootargs parameter, but I can only get it to work by including the size of the image (e.g. ",21M"). Is there a way to make this work without hardcoding the size of the image in u-boot? This is my current configuration: /set bootargs 'console=ttymxc0,115200 root=/dev/ram0 ro initrd=0x83800000,21M rootfstype=squashfs' bootz 0x80800000 - 0x83000000/ During production, the rootfs.squashfs image is transferred to RAM without involving u-boot, so u-boot does not know the size of the image. The tool loading the image into RAM obviously know the size, but I do not have a shell into u-boot, so there is no easy way to tell u-boot. I have considered prepending the size of the image, to the image it self, and have u-boot extract it from RAM. However, I'm wondering if there is a better method? -- View this message in context: http://u-boot.10912.n7.nabble.com/Passing-squashfs-of-unknown-size-to-linux-tp266083.html Sent from the U-Boot mailing list archive at Nabble.com.