<hanetzer>
wrt BOOT_TARGET_FOO; that's about booting an OS, not u-boot from the spl?
jclsn6 has joined #u-boot
dwrice0_ has joined #u-boot
dwrice0 has quit [Ping timeout: 248 seconds]
jclsn6 has quit [Ping timeout: 248 seconds]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 256 seconds]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 248 seconds]
thopiekar has quit [Ping timeout: 260 seconds]
jclsn6 has joined #u-boot
thopiekar has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
dwrice0 has joined #u-boot
thopiekar_ has joined #u-boot
thopiekar_ is now known as thopiekar
thopiekar has quit [Killed (tungsten.libera.chat (Nickname regained by services))]
jclsn6 has quit [Ping timeout: 256 seconds]
dwrice0_ has quit [Ping timeout: 240 seconds]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 250 seconds]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 240 seconds]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 256 seconds]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 248 seconds]
jclsn6 has joined #u-boot
machinehum has quit [Ping timeout: 252 seconds]
machinehum has joined #u-boot
dwrice0_ has joined #u-boot
dwrice0 has quit [Ping timeout: 256 seconds]
guillaume_g has joined #u-boot
camus1 has joined #u-boot
camus has quit [Ping timeout: 250 seconds]
camus1 is now known as camus
___nick___ has joined #u-boot
mckoan|away is now known as mckoan
dwrice0_ has quit [Ping timeout: 256 seconds]
dwrice0 has joined #u-boot
dwrice0 has quit [Ping timeout: 246 seconds]
camus has quit [Ping timeout: 240 seconds]
akaWolf has quit [Ping timeout: 246 seconds]
mmu_man has joined #u-boot
akaWolf has joined #u-boot
camus has joined #u-boot
camus has quit [Client Quit]
camus has joined #u-boot
mckoan is now known as mckoan|away
montjoie has joined #u-boot
<montjoie>
hello, I try to compile uboot on ubuntu/debian and always got ModuleNotFoundError: No module named 'pkg_resources' even if I install all python/python3 - pkg_ressources/setuptools/setuptools-scm
<montjoie>
I verified, pkg_resources is present in /usr/lib/python3
jclsn6 is now known as jclsn
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
<MrSaturn>
marex: you are a genius
thopiekar_ has joined #u-boot
thopiekar_ is now known as thopiekar
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
mmu_man has quit [Ping timeout: 248 seconds]
mmu_man has joined #u-boot
<marex>
MrSaturn: no, that's a recurring topic, if you have small FIFO, no flow control, and you pipe too many data into it at once, that;s what you end up with, overflow
alan_o has quit [Ping timeout: 240 seconds]
alan_o has joined #u-boot
guillaume_g has quit [Quit: Konversation terminated!]
<hanetzer>
so. CONFIG_SYS_INIT_SP_ADDR is the address in memory (as in, external dram or the like) used in u-boot proper, and CONFIG_SPL_STACK is the spl analogue and is *probably* inside the device's internal sram?
akaWolf has quit [Ping timeout: 256 seconds]
qyx has quit [Read error: Connection reset by peer]
akaWolf has joined #u-boot
<Tartarus>
OK, so, sigh, this is a confusing area
<Tartarus>
CONFIG_SYS_INIT_SP_ADDR is where we have a temporary stack pointer, and is typically going to be in some sort of special memory that's not SDRAM
<Tartarus>
(exceptions exist for the cases where none of U-Boot runs before SDRAM is enabled)
dwrice0 has joined #u-boot
<Tartarus>
CONFIG_SPL_STACK (and CONFIG_TPL_STACK) are SPL (and TPL) specific variants of this because in some cases we don't put the initial SP for full U-Boot in special memory but instead just a known OK spot in SDRAM because SPL has initialized SDRAM and we might need a non-trivial amount of stack early on for $reasons
<Tartarus>
Then there's CONFIG_SPL_STACK_R / CONFIG_SPL_STACK_R_ADDR for having SPL move stack pointer to SDRAM, again for $reasons and that's often related to filesystem access I believe.
<Tartarus>
Part of the confusion here is that CONFIG_SYS_INIT_SP_ADDR can be set to say SRAM and that location used for SPL and full U-Boot, not as re-using the stack pointer but just the memory area
<hanetzer>
uh huh. see, I've got a device I should really throw away and forget everything about, but I can't leave it alone. for lack of jtag/similar I've actually modeld quite a lot of the basics of it in qemu, and can execute its bootrom that way and see what's going on
<hanetzer>
by the time it starts trying to execute code on the external flash, sp is pointing to 0x4010500, which is 0x500 bytes into the sram.
vagrantc has joined #u-boot
hthiery has quit [Quit: You have been kicked for being idle]
mmu_man has quit [Ping timeout: 248 seconds]
<marex>
Tartarus: time to start documenting this, properly ?
<marex>
hanetzer: ^
mmu_man has joined #u-boot
<hanetzer>
it'd be nice. there's a lot of good documentation for other similar config values :)
<marex>
hanetzer: are you up for sending a patch then ?
<Tartarus>
marex: A note to self for when I go and move that section of stuff out of README and board.h files, sure
<hanetzer>
like, CONFIG_SYS_SDRAM_BASE
<marex>
Tartarus: does your list of notes look like a roll of TP yet ?
<hanetzer>
marex: I can't document what I don't grok :)(
<Tartarus>
marex: heh
<hanetzer>
hopefully I'll be able to send a patchset for the machine :P
<hanetzer>
hrm. I have a second board of this I'm willing to sacrifice; could *probably* pop off the soc and beep out the jtag_en pin and see if there's something I can do to enable jtag tbh