On Mon, Sep 26, 2022 at 10:06 AM Adam Ford <aford...@gmail.com> wrote: > > On Mon, Sep 26, 2022 at 11:59 AM Tim Harvey <thar...@gateworks.com> wrote: > > > > On Sat, Sep 24, 2022, 2:54 PM Adam Ford <aford...@gmail.com> wrote: > > > > > > On Sat, Sep 24, 2022 at 4:47 PM Marek Vasut <ma...@denx.de> wrote: > > > > > > > > On 9/24/22 21:10, Adam Ford wrote: > > > > > > > > Hi, > > > > > > > > [...] > > > > > > > > > I am using the Mainline with the aarch64 gcc from Ubuntu 22.04. I am > > > > > over by ~1100 bytes with LTO enabled, but I'm going through my SPL > > > > > drivers to see what I can either remove or reduce functionality. > > > > > > > > Try > > > > > > > > $ aarch64...readelf -s spl/u-boot-spl | sort -nk 3 > > > > > > > > That should give you a list of large symbols you might want to inspect. > > > > > > Thank you! > > > > > > > Adam, > > > > I'm curious what you find as my SPL for imx8mm_venice_defconfig also > > overflows by about 3K when enabling what's needed here for SDP as > > well. I have 4 different dram configs which are chewing up about 1K > > each. > > Tim, > > I have it building successfully now, and it loads over USB. I had to > disable BD718x7 PMIC children binding which required a small change to > the PMIC driver [1]. I then removed HS400, HS200 and UHS support in > SPL. Once I did all that, the code size fit into SPL space. > > [1] - > https://patchwork.ozlabs.org/project/uboot/patch/20220817112403.68144-2-aford...@gmail.com/ > > I'll try to push my patch today or tomorrow. I was doing some other > clean-up, but I might just push that as a small series in itself. >
Adam, Yes, I have already done those same things for imx8mm_venice but am still 3K over due to my 4x dram configs. Each dram config must be about 3K as I only have to remove one of them to successfully build. Thanks, Tim