From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c0b::22a; helo=mail-it0-x22a.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2F4112214E340 for ; Sun, 10 Dec 2017 15:03:30 -0800 (PST) Received: by mail-it0-x22a.google.com with SMTP id p139so11910388itb.1 for ; Sun, 10 Dec 2017 15:08:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7SNBrR/6m1C9LFtERxD6rbcCbvEWjvTfK5WB/+1ikdY=; b=RHk89JxCGHn/5uNbNdCPAvyCZQSmVKaCuSfgqscKcIHE2ZEti9o/VAZfnXHJeI3I3D rRRqHZ84zFluGL4styj8gEWhz6IZM4V0G5fd/f/8H8qcKLMnUqU4TXCHTtpwGNC5gOvU NB4LXUiOofSKMnRW5fPSi70tGhSXgmioxAjA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7SNBrR/6m1C9LFtERxD6rbcCbvEWjvTfK5WB/+1ikdY=; b=c4CF/f+4WmxgiQzwWjiSc6lIlw+mQAnGYHu+E5PkEpTup6YFV5iMpflnU9TFshBDjn 5PPdp4fpl0eJKZ/12F/JfTx4bowaf5lKRjKt6SHQo7O3TaJ0hvN+TsYSo0swqhedwDMq sQEKvp9Etsvv7q1oJPkUwQ07LhQUqWRuU2SJDcsnKa4MKjHn/o6SxeSTNqBznOKcH4Ja IC552HaktkqtprRfyLgqbGIyyixOY9zCeKDGqiOLBhC9sPdXeF2bDmFSCa7NpopzXMEj EcMPqsUxUY0IFMp+9cAKrVuCBOh2hKkOqqOru0HVc0pjXN8TQsYV4hJ8rjwEgQ7Muwkb XvZg== X-Gm-Message-State: AKGB3mI8dywNtLXstrXFc6UU/Sn9cPulCJKLFOVD9wrjdwVmLjOdyW0P YxL4ssSsj5w8V74KVcg4UuD93qg2cHBiKsH1Q2n3EA== X-Google-Smtp-Source: AGs4zMYaa82vGRYbJYVQZ07+bR3hPyl3HhnXvtgCUKw4GeJEWn2zMX0L3eHytMuRF8f1pRohkA5pd3FWLFS1gSHTM8c= X-Received: by 10.107.180.18 with SMTP id d18mr12208723iof.52.1512947287124; Sun, 10 Dec 2017 15:08:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.104.16 with HTTP; Sun, 10 Dec 2017 15:08:06 -0800 (PST) In-Reply-To: References: From: Ard Biesheuvel Date: Sun, 10 Dec 2017 23:08:06 +0000 Message-ID: To: Michael Zimmermann Cc: "Gao, Liming" , Yonghong Zhu , edk2-devel-01 , Leif Lindholm Subject: Re: PrePiLib's FwVol.c can't handle padding before volume header X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Dec 2017 23:03:31 -0000 Content-Type: text/plain; charset="UTF-8" On 10 December 2017 at 22:18, Michael Zimmermann wrote: > Exactly. If I shift the pointer by 4 bytes from within PrePiLib the device > boots just fine. > > I'm not sure if the size is the root cause but right now it only happens > when adding a ~15mb binary efi to the end of fvmain. > It appears so. So it would be good to check where the disparity originates. The Ffs section containing the compressed FV looks like this for ArmVirtQemu $ hexdump -C 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792SEC1.1fv.sec |head 00000000 84 a8 48 17 00 00 00 00 00 00 00 00 00 00 00 00 |..H.............| 00000010 00 00 00 00 78 e5 8c 8c 3d 8a 1c 4f 99 35 89 61 |....x...=..O.5.a| 00000020 85 c3 2d d3 80 a8 48 00 00 00 00 00 5f 46 56 48 |..-...H....._FVH| 00000030 ff fe 04 00 48 00 24 2b 00 00 00 02 a2 22 01 00 |....H.$+....."..| 00000040 40 00 00 00 00 00 00 00 00 00 00 00 7f cb a2 d6 |@...............| 00000050 18 6a 2f 4e b4 3b 99 20 a7 33 70 0a 4d aa 05 00 |.j/N.;. .3p.M...| 00000060 30 c0 01 f8 04 c0 01 10 4d 5a 00 00 00 00 00 00 |0.......MZ......| 00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000000a0 00 00 00 00 58 0e 00 00 00 00 00 00 00 00 00 00 |....X...........| Could you compare with your build?