Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2022.04 is OUT / Merge Window is OPEN until 25 April 2022 / Release v2022.07 is scheduled for 4 July 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
dwrice0 has quit [Ping timeout: 260 seconds]
jclsn6 has quit [Ping timeout: 256 seconds]
vagrantc has quit [Quit: leaving]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 248 seconds]
jclsn6 has joined #u-boot
jclsn6 has quit [Ping timeout: 256 seconds]
jclsn6 has joined #u-boot
sobkas has quit [Quit: sobkas]
jclsn6 has quit [Ping timeout: 256 seconds]
jclsn6 has joined #u-boot
dwrice0 has joined #u-boot
jclsn6 has quit [Ping timeout: 248 seconds]
hanetzer has joined #u-boot
<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
<marex> hanetzer: what board / soc is that ?
<hanetzer> marex: consumer cctv device / hisilicon hi3521a
<marex> maybe the jtag is fused off in some otp ?
<hanetzer> doubtful. I was able to extract the on-chip brom with u-boot's tftp
<hanetzer> and no such otp/efuse is in their docs
<hanetzer> in other woids, not exactly a secure soc
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<marex> hanetzer: if it has HDMI, there is a chance it also has some odd secure key store, and likely OTP
<hanetzer> perhaps. I had another board, hi3520d (similar but not the same) that I just had to move a resistor on
<marex> oh, heh
___nick___ has joined #u-boot
<hanetzer> some generic taobao purchase.
<hanetzer> maybe I should see if I can find a board with the exact same soc
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
hanetzer has quit [Ping timeout: 260 seconds]
hanetzer has joined #u-boot
<hanetzer> breh. 'all pins but JTAG are extracted' why would you have a dev board and bring out everything but jtag
<marex> hanetzer: to make your life miserable ?
<hanetzer> I mean. I have another board with a lqfp similar chip which I know has jtag... could just work against that.
<hanetzer> just for the 'basis'
<hanetzer> heh... going thru my old notes. found an image where I put a light under the pcb to shine-thru the traces and trace out where jtag was
<marex> hanetzer: very little ground planes, huh
<hanetzer> yeh
<hanetzer> aight, this is the chip I think it is.
___nick___ has quit [Ping timeout: 248 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
Gravis_ is now known as Gravis
akaWolf has quit [Ping timeout: 248 seconds]
akaWolf has joined #u-boot
indy has quit [Ping timeout: 256 seconds]
indy has joined #u-boot