Skip to contentSkip to conversation

"SPL image too big" not that helpful

DISCUSSION Alex G. 2 participants 4 messages Mar 17, 2021 – Mar 19, 2021

lore
Share & tools
lore

Alex G.

author
#0 lore raw

I've recently hit that message in a yocto build. I can't figure out the exact root cause. On the one hand, I don't know how "big" SPL is. On the other hand, I can't objdump -h the SPL elf because one wasn't created.

Alex

#1 lore raw
Quoted 3 lines · Alex G.

I've recently hit that message in a yocto build. I can't figure out the exact root cause. On the one hand, I don't know how "big" SPL is. On the other hand, I can't objdump -h the SPL elf because one wasn't created.

So that comes from arch/arm/cpu/u-boot-spl.lds and I'm not sure how to make it more helpful, aside from having something under perhaps doc/build/ that explains the error more fully and have the build-time error point to that file.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210319/39790317/attachment.sig>
author
#2 lore raw
Quoted 10 lines · Tom Rini
Quoted 3 lines · Alex G.

I've recently hit that message in a yocto build. I can't figure out the exact root cause. On the one hand, I don't know how "big" SPL is. On the other hand, I can't objdump -h the SPL elf because one wasn't created.

So that comes from arch/arm/cpu/u-boot-spl.lds and I'm not sure how to make it more helpful, aside from having something under perhaps doc/build/ that explains the error more fully and have the build-time error point to that file.

Is there a way to print "SPL too big: _so-may_ bytes, only _max_ possible" ? In a local build, one could modify the source to increase SPL max size, rebuild, and objdump the SPL elf, see how much SPL overflows. That is much more tedious to do in a remote/yocto build.

Alex

#3 lore raw
Quoted 12 lines · Alex G.
Quoted 10 lines · Tom Rini
Quoted 3 lines · Alex G.

I've recently hit that message in a yocto build. I can't figure out the exact root cause. On the one hand, I don't know how "big" SPL is. On the other hand, I can't objdump -h the SPL elf because one wasn't created.

So that comes from arch/arm/cpu/u-boot-spl.lds and I'm not sure how to make it more helpful, aside from having something under perhaps doc/build/ that explains the error more fully and have the build-time error point to that file.

Quoted 4 lines

Is there a way to print "SPL too big: _so-may_ bytes, only _max_ possible" ? In a local build, one could modify the source to increase SPL max size, rebuild, and objdump the SPL elf, see how much SPL overflows. That is much more tedious to do in a remote/yocto build.

It's a preprocessor error basically, so I'm not sure how much we can do in that exact location.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210319/5effc579/attachment.sig>