Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2022.04, v2022.07-rc1 are OUT / Merge Window is CLOSED / 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
jclsn has quit [Ping timeout: 260 seconds]
littlebobeep has joined #u-boot
jclsn has joined #u-boot
apritzel has quit [Ping timeout: 256 seconds]
jclsn has quit [Ping timeout: 276 seconds]
jclsn has joined #u-boot
jclsn has quit [Client Quit]
jclsn has joined #u-boot
jclsn has quit [Ping timeout: 256 seconds]
littlebobeep has quit [Ping timeout: 240 seconds]
jclsn has joined #u-boot
jclsn has quit [Ping timeout: 248 seconds]
jclsn has joined #u-boot
littlebobeep has joined #u-boot
jclsn has quit [Ping timeout: 260 seconds]
jclsn has joined #u-boot
jclsn has quit [Ping timeout: 240 seconds]
jclsn has joined #u-boot
jclsn has quit [Ping timeout: 276 seconds]
jclsn has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
thopiekar has quit [Ping timeout: 260 seconds]
thopiekar has joined #u-boot
jclsn0 has joined #u-boot
jclsn has quit [Ping timeout: 260 seconds]
ilunev has quit [Read error: Connection reset by peer]
jclsn0 has quit [Ping timeout: 260 seconds]
ilunev has joined #u-boot
jclsn0 has joined #u-boot
jclsn0 has quit [Ping timeout: 256 seconds]
littlebobeep has joined #u-boot
jclsn0 has joined #u-boot
jclsn0 has quit [Ping timeout: 250 seconds]
jclsn0 has joined #u-boot
jclsn0 has quit [Ping timeout: 248 seconds]
jclsn0 has joined #u-boot
jclsn0 has quit [Ping timeout: 276 seconds]
jclsn0 has joined #u-boot
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
littlebo1eep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
ilunev has quit [Quit: Textual IRC Client: www.textualapp.com]
kveremitz has quit [Quit: ZNC - http://znc.in]
kveremitz has joined #u-boot
smurray has quit [*.net *.split]
pratyush has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
kallisti5 has joined #u-boot
smurray has joined #u-boot
pratyush has joined #u-boot
apritzel has joined #u-boot
jimpo has quit [*.net *.split]
davlefou_ has quit [*.net *.split]
ide12 has quit [*.net *.split]
haritz has quit [*.net *.split]
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
davlefou_ has joined #u-boot
jimpo has joined #u-boot
ide12 has joined #u-boot
littlebo1eep has quit [Ping timeout: 240 seconds]
apritzel has quit [Ping timeout: 248 seconds]
littlebobeep has joined #u-boot
littlebo1eep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebo1eep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
guillaume_g has joined #u-boot
monstr has joined #u-boot
tre has joined #u-boot
apritzel has joined #u-boot
ldevulder has joined #u-boot
frieder has joined #u-boot
gsz has joined #u-boot
apritzel has quit [Ping timeout: 256 seconds]
sszy has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
mmu_man has joined #u-boot
littlebo1eep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
mckoan|away is now known as mckoan
josem has quit [Ping timeout: 252 seconds]
mmu_man has quit [Ping timeout: 248 seconds]
mmu_man has joined #u-boot
<montjoie> hello I have a nanopineoplus2 with 512M RAM, I got some problem (Failed to allocate) with big kernel+ramdisk I have added a lmb_dump_all and memory is memory[0][0x40000000-0x49ffffff] so only a partial part of RAM. does it this normal ?
tre has quit [Ping timeout: 252 seconds]
<marex> montjoie: so DRAM is recognized as 256 MiB ?
<montjoie> marex: uboot said DRAM: 512 MiB
<marex> what does 'bdinfo' say ?
tre has joined #u-boot
<marex> which shows LMB all the way to 512 MiB, no ?
<montjoie> yes, let me do some tftp command like my CI do, the lmb_dump_all was after the Failed to allocate
<marex> failed to allocate ?
<montjoie> I do TFTP image+ramdisk+dtb then I issue a booti, which give: https://pastebin.com/Gccgtmjw
<marex> montjoie: can you please use e.g. paste.debian.net , I get a huge popup over the whole paste and multiple ads, it's unreadable
<marex> btw 0x40080000 won't work for arm64 Image, that has to be aligned to 2 MiB
<marex> 0x40080000 is aligned to 512 kiB
<marex> montjoie: how large is the ramdisk ?
<montjoie> rmadisk is 39922913
<marex> montjoie: does it boot if you do this before booti ?
<marex> =
<marex> => setenv initrd_high 0xffffffffffffffff
<marex> and probably also
<marex> => setenv fdt_high 0xffffffffffffffff
<montjoie> LAVA CI already issue setenv initrd_high 0xffffffff
<marex> this will skip the ramdisk and fdt relocation step, but then you have to assure they are properly aligned
<montjoie> same for setenv fdt_high 0xffffffff
<marex> not 0xffffffff, it has to be -1 representation in the bit-ness of the platform
<marex> so on arm64, 16 Fs
<marex> on arm32, 8 Fs
<montjoie> I will try
gsz has quit [Ping timeout: 240 seconds]
gsz has joined #u-boot
littlebo1eep has quit [Ping timeout: 240 seconds]
<montjoie> marex: setting xxx_high did the trick
<montjoie> thanks for your help
<montjoie> unfortunatly, kernel oom just after booting:)
littlebobeep has joined #u-boot
<marex> montjoie: does it also work if you drop the xxx_high and instead do:
<marex> setenv bootm_size 0x10000000
<marex> ?
<marex> maybe load the kernel/dt/ramdisk initialy above 0x50000000
jwillikers has joined #u-boot
mckoan is now known as mckoan|away
jybz has quit [Excess Flood]
jybz has joined #u-boot
jwillikers has quit [Remote host closed the connection]
<hanetzer> question. is it appropriate to include soc-specific tools for flashing in the u-boot tree? soc in question has the ability to load spl to sram and u-boot to dram over serial, has a specific protocol for it.
<hanetzer> you can then (usually) tftp the actual flash image and use the u-boot you initially sent over serial to write it with the usual tools.
mmu_man has quit [Ping timeout: 276 seconds]
<marex> imx-usb is not included, so probably no
<marex> separate repo ?
<hanetzer> marex: k, just checking. I suppose that makes sense, rkflashtool is also not in there
<montjoie> marex: will try
mmu_man has joined #u-boot
tre has quit [Remote host closed the connection]
<hanetzer> another question. the concept of 'back to bootrom' on this family of soc is to read a pc/sp value from a general purpose mmiospace register and mov them into the current pc/sp registers, if another general purpose mmio register contains a flag. think you can do that in c cleanly?
<hanetzer> or am I just gonna have to __asm__ volatile() it?
<Forty-Bot> probably that
<Forty-Bot> generally anything involving specific registers has to be done with asm
<hanetzer> figured.
<hanetzer> whelp, I wonder how much of this code is going to be 'we do this because the vendor code does it' for lack of documentation :P
sukbeom has quit [Quit: WeeChat 3.3]
sukbeom has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
torez has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
<hanetzer> is there any particular overhead of making uboot/spl/tpl relocatable? as in, code size?
<marex> hanetzer: CONFIG_POSITION_INDEPENDENT and TEXT_BASE=0 , there is overhead of PIE
littlebobeep has joined #u-boot
zibolo has quit [Ping timeout: 248 seconds]
monstr has quit [Remote host closed the connection]
<hanetzer> noted.
frieder has quit [Remote host closed the connection]
<hanetzer> not much, nice.
littlebobeep has quit [Ping timeout: 240 seconds]
<hanetzer> or is the overhead perf related as opposed to size?
<hanetzer> tbqh I *think* the soc has some kind of xip going on. during the bootrom->flash transition it just loads 0x1400_0000 (the sfc memory address space) into a register and moves that into the program counter.
guillaume_g has quit [Quit: Konversation terminated!]
vagrantc has joined #u-boot
Net147 has quit [Quit: Quit]
Net147 has joined #u-boot
Net147 has quit [Changing host]
Net147 has joined #u-boot
Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2022.04, v2022.07-rc2 are OUT / Merge Window is CLOSED / 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
<hanetzer> what changed?
<hanetzer> ah, rc1->rc2
<dormito> for an aarch64 system, does TF-A provide the linux kernel with cpu frequency scaling? If so, is there a place I'd look for how to load TFA during/before u-boot? I know some chips embed it in a FIT image with u-boot that the SPL/TPL loads.
<hanetzer> dormito: oh hey, it u.
<hanetzer> iirc the rk3399 boards may do that?
<dormito> hanetzer: I was thinking of exactly the rk3399
<hanetzer> heh. the rk3288 tree is my 'pattern' for the soc I'm working on :)
<dormito> however I'n now working with an ls1046a. And while I got a u-boot build to work & run. linux seems to lack any clocking info :/
<hanetzer> dormito: I'm not at all familiar with wtf atf and friends do tbh, but I do see some chips encode the cpu operating table in the dts (freq & voltage), maybe look into that?
<xypron> fALSO: are your build problems fixed with v2022.07-rc2?
<dormito> I'm using upstream linux (with an upstream dts). A quick glance suggests upsteram doesn't include any cpu freq info in the dts.
<fALSO> xypron, nice
<fALSO> xypron, i recreated my cross compiler to be just arm.
<fALSO> xypron, i recreated my cross compiler to be just arm-
<fALSO> it ran OK after that
<fALSO> the only thing missing is the support for "ccache" but that wasnt probably supported, and uboot is small enought to not need it :)
<fALSO> I used to do CROSS_COMPILE="ccache armv7a-hardfloat-linux-gnueabi-"
<fALSO> that sed doesnt like it that way ;-)
<fALSO> xypron, its OK with me, awesome that you managed to merge the patches so quickly =)
<hanetzer> dormito: the dtsi, you mean? perhaps one of the downstream (as in, in #include order) board-specific files sets it up and yours doesn't?
<hanetzer> because a lot of times the board dts will override the soc dts
<hanetzer> *soc dtsi
___nick___ has joined #u-boot
sobkas has joined #u-boot
<dormito> hanetzer: I mean the full dts. I decompiled the dtb and looked at it
<hanetzer> ah. hrm. well. not familiar with that platform, or, as I said, atf stuff
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
prabhakarlad has quit [Quit: Client closed]
___nick___ has joined #u-boot
apritzel has joined #u-boot
prabhakarlad has joined #u-boot
torez has quit [Remote host closed the connection]
apritzel has quit [Ping timeout: 240 seconds]
___nick___ has quit [Ping timeout: 240 seconds]
<xypron> Tartarus: just found one reason for spurious CI failures: https://patchwork.ozlabs.org/project/uboot/list/?series=299253
<Tartarus> Ah ok
apritzel has joined #u-boot
gsz has quit [Quit: leaving]
littlebobeep has joined #u-boot
camus1 has joined #u-boot
camus has quit [Ping timeout: 248 seconds]
camus1 is now known as camus
vagrantc has quit [Quit: leaving]
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
littlebo1eep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebo1eep has quit [Ping timeout: 240 seconds]
emz229 has quit [Ping timeout: 252 seconds]
littlebobeep has joined #u-boot
sobkas has quit [Quit: sobkas]
vagrantc has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #u-boot
flyback has quit [Quit: Leaving]
flyback has joined #u-boot
littlebobeep has quit [Ping timeout: 240 seconds]