Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2024.10, v2025.01-rc2 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2025.01 is scheduled for 06 January 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
warpme has quit [Ping timeout: 272 seconds]
Forty-Bot has joined #u-boot
<sjg1> Tartarus: PHASE_ is used to individually control (via Kconfig) which phases get a certain feature. XPL_ is used when *all* xPL phases should behave the same (either get the feature or not)
naoki has joined #u-boot
warpme has joined #u-boot
warpme has quit [Ping timeout: 245 seconds]
sakman has quit [Remote host closed the connection]
sakman has joined #u-boot
warpme has joined #u-boot
warpme has quit [Ping timeout: 252 seconds]
goliath has quit [Quit: SIGSEGV]
ikarso has quit [Quit: Connection closed for inactivity]
Algotech has joined #u-boot
warpme has joined #u-boot
warpme has quit [Ping timeout: 246 seconds]
Danct12 has quit [Quit: ZNC 1.9.1 - https://znc.in]
warpme has joined #u-boot
Danct12 has joined #u-boot
slobodan_ has joined #u-boot
slobodan has quit [Ping timeout: 245 seconds]
warpme has quit [Ping timeout: 264 seconds]
zibolo has quit [Ping timeout: 252 seconds]
zibolo has joined #u-boot
joeskb7 has joined #u-boot
warpme has joined #u-boot
warpme has quit [Ping timeout: 272 seconds]
slobodan_ has quit [Ping timeout: 255 seconds]
warpme has joined #u-boot
warpme has quit [Ping timeout: 245 seconds]
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #u-boot
warpme has joined #u-boot
joeskb7 has quit [Quit: Lost terminal]
warpme has quit [Ping timeout: 252 seconds]
joeskb7 has joined #u-boot
warpme has joined #u-boot
warpme has quit [Ping timeout: 244 seconds]
Rahix_ has quit [Quit: ZNC - https://znc.in]
warpme has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
warpme has quit [Ping timeout: 252 seconds]
joeskb7 has quit [Quit: Lost terminal]
joeskb7 has joined #u-boot
Wouter01002 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter01002 has joined #u-boot
warpme has joined #u-boot
Rahix has joined #u-boot
warpme has quit [Ping timeout: 252 seconds]
warpme has joined #u-boot
warpme has quit [Ping timeout: 272 seconds]
warpme has joined #u-boot
warpme has quit [Ping timeout: 276 seconds]
warpme has joined #u-boot
persmule has quit [Remote host closed the connection]
warpme has quit [Ping timeout: 252 seconds]
warpme has joined #u-boot
warpme has quit [Ping timeout: 255 seconds]
warpme has joined #u-boot
warpme has quit [Ping timeout: 252 seconds]
warpme has joined #u-boot
warpme has quit [Ping timeout: 252 seconds]
warpme has joined #u-boot
sakman has quit [Quit: Leaving]
ja_02 has quit [Read error: Connection reset by peer]
joeskb7 has quit [Ping timeout: 252 seconds]
ja_02 has joined #u-boot
warpme has quit [Ping timeout: 260 seconds]
alexeymin has quit [Ping timeout: 252 seconds]
alexeymin has joined #u-boot
joeskb7 has joined #u-boot
sakman has joined #u-boot
warpme has joined #u-boot
monstr has joined #u-boot
ikarso has joined #u-boot
warpme has quit [Ping timeout: 264 seconds]
ladis has joined #u-boot
warpme has joined #u-boot
warpme has quit [Ping timeout: 245 seconds]
warpme has joined #u-boot
warpme has quit [Ping timeout: 252 seconds]
warpme has joined #u-boot
sakman_ has joined #u-boot
sakman has quit [Ping timeout: 252 seconds]
warpme has quit [Ping timeout: 252 seconds]
warpme has joined #u-boot
ldevulder has joined #u-boot
GNUtoo has quit [Ping timeout: 265 seconds]
Wouter01002 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter01002 has joined #u-boot
GNUtoo has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jones42 has joined #u-boot
Stat_headcrabbed has joined #u-boot
warpme has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
Jones42 has quit [Remote host closed the connection]
rvalue has joined #u-boot
sszy has joined #u-boot
mmu_man has joined #u-boot
Jones42 has joined #u-boot
sakman_ has quit [Remote host closed the connection]
sakman_ has joined #u-boot
persmule has joined #u-boot
slobodan_ has joined #u-boot
ja_02 has quit [Read error: Connection reset by peer]
ja_02 has joined #u-boot
slobodan__ has joined #u-boot
slobodan_ has quit [Read error: Connection reset by peer]
slobodan__ is now known as slobodan
per1cycle has joined #u-boot
warpme has quit [Read error: Connection reset by peer]
warpme_ has joined #u-boot
mripard has joined #u-boot
goliath has joined #u-boot
goliath has quit [Quit: SIGSEGV]
warpme_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jones42_ has joined #u-boot
naoki has quit [Quit: naoki]
Jones42 has quit [Ping timeout: 276 seconds]
Jones42 has joined #u-boot
Jones42_ has quit [Ping timeout: 255 seconds]
Jones42_ has joined #u-boot
Wouter01002 has quit [Quit: The Lounge - https://thelounge.chat]
Jones42 has quit [Ping timeout: 252 seconds]
Wouter01002 has joined #u-boot
Wouter01002 has quit [Client Quit]
Wouter01002 has joined #u-boot
Jones42 has joined #u-boot
Jones42_ has quit [Ping timeout: 246 seconds]
warpme has joined #u-boot
per1cycle has quit [Quit: Client closed]
slobodan_ has joined #u-boot
slobodan has quit [Ping timeout: 252 seconds]
per1cycle has joined #u-boot
__ad has quit [Changing host]
__ad has joined #u-boot
per1cycle has quit [Quit: Client closed]
per1cycle has joined #u-boot
per1cycle has quit [Client Quit]
dsimic has quit [Ping timeout: 260 seconds]
dsimic has joined #u-boot
goliath has joined #u-boot
mmu_man has quit [Ping timeout: 255 seconds]
monstr has quit [Remote host closed the connection]
mmu_man has joined #u-boot
<Jones42> Has anyone already managed to get to run op-tee on a i.mx7?
<marex> Jones42: not me, why ?
<marex> Jones42: start u-boot in EL3 or equal on arm32, pack up optee into fitImage alongside Linux, set correct load address and entry point for OpTee , make sure optee exits into the Linux load address, boot ?
<marex> something like that , give or take
sakman_ is now known as sakman
<Jones42> marex: thanks for the pointers.
<Jones42> marex: we have a student who's trying to make it work for his thesis. Not sure why they didn't go for a imx8mp. that looked like it would be easier.
<Jones42> marex: the colleagues chose a toradex board and it's all very "work in progress"-y
<Jones42> marex: in case you're interested: https://community.toradex.com/t/optee-support-on-imx7d/25535/6
<marex> oh well ... board/warp7/warp7.c: printf("Board: WARP7 in %s mode OPTEE DRAM 0x%08lx-0x%08lx\n",
<marex> isnt the warp7 some mx7 board ?
<Jones42> uh... never heard of it, but google says: NXP "WaRP7 Wearable Reference Design"
<Jones42> ah, it took me a while - now I know where you're going. Thanks!
<marex> Jones42: I uh ... ran git grep ... in u-boot sources, I was not going anywhere
<marex> Jones42: but it seems the board is capable of booting Tee
<Jones42> marex: I wasn't sure what you were referring to. But that sounds like good news for the poor guy :-)
ldevulder has quit [Quit: Leaving]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marex> Jones42: if you have a specific question, then ask the specific question -- describe what you are doing/trying and include logs
alpernebbi has quit [Ping timeout: 248 seconds]
mmu_man has quit [Ping timeout: 265 seconds]
goliath has quit [Quit: SIGSEGV]
alpernebbi has joined #u-boot
<calebccff> this let's you boot tfa/optee directly from a fit image
<calebccff> you can add a second u-boot as a loadable too
<Tartarus> calebccff: The button patch still apply cleanly? I'm starting to look for things for -next now
<calebccff> Tartarus: yeah applies on next
mmu_man has joined #u-boot
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Jones42> calebccff: Thanks a lot!
<Jones42> marex: thanks. I was just hoping someone would point me to a working example or something in that direction. It's a student's project and I'm not his supervisor, so I'll just pass that information on to them :-)
warpme has joined #u-boot
warpme has quit [Client Quit]
<marex> calebccff: nice
<marex> calebccff: I think U-Boot should be the first thing running in EL3, and load all the other non-free blobs and then Linux as well
<marex> calebccff: U-Boot is, after all, the debug tool
<marex> calebccff: it should have the option of having unrestricted hardware access so it can act like one, hence it should run in EL3
<calebccff> marex: i like it... :P
<calebccff> marex: is it possible to emulate MMIO access from el3? or only el2?
<calebccff> i've been wanting a platform-agnostic m1n1 equivalent for a while
warpme has joined #u-boot
<marex> calebccff: emulate ?
<marex> mini is the apple loader ?
<calebccff> marex: trap accesses for logging, or for example to mux the UART
<calebccff> m1n1 is also a debug hypervisor, it can boot linux/macos in el1, it takes control of a USB port and lets you interactively debug
<calebccff> xen can apparently kinda do this too but it's gdbstub is x86 specific i think
warpme has quit [Client Quit]
<calebccff> would be suuuuper awesome if we could turn U-Boot into a small VMM that just let you gdb the kernel
<marex> calebccff: oh, huh
<marex> calebccff: U-Boot can become PSCI provider, even on ARM64, the PSCI part runs in EL3, but the whole __secure thing is awful
* calebccff tried before but was too dumb to figure out how to set up a vector table in el2 and drop to el1, might try again at some point though
<marex> calebccff: I think that would have to be spun into some dedicated stage , which would have to be started from U-Boot ... and act as the hypervisor
<marex> calebccff: I did a bit of that for iMX8MP for the PSCI implementation ; I have to revisit that at some point
<calebccff> marex: i was thinking we'd have u-boot start in el2 and drop to el1 during relocation (setting up the vectors in the process). it could emulate the UART and implement a gdbstub on top
<calebccff> eventually emulate whatever mmio you want i guess, but baby steps...
<marex> calebccff: I would want U-Boot in EL3, because then I have full access to EVERYTHING
<marex> calebccff: it makes debugging hardware so much easier
<marex> but yes, there is no safety net
<marex> if something goes wrong, it goes ... boom
<calebccff> how does that help debugging?
<calebccff> ooi
<marex> calebccff: I can e.g. read memory which is otherwise not accessible because some TFA/TEE thinks it knows better
<Tartarus> calebccff: Can you post a boot log from a UFS-having device please, when you have a minute?
<calebccff> Tartarus: https://p.calebs.dev/418858@raw
<calebccff> marex: you can do that just by building tfa too though right? XD
<marex> calebccff: I dont want TFA in there at all
<Tartarus> thanks
<calebccff> we could go u-boot all the way, start in el3, relocate and drop to el2, relocate and drop to el1
<marex> I would much prefer free software which has solid trustworthy review process, TFA is neither
<calebccff> then add support for IRQs, a syscall interface and virtual memory and it's a whole OS woooo
<marex> calebccff: woooooo !
<calebccff> port sandbox to u-boot and run u-boot in el0 !
<calebccff> ok yeah fair enough
<calebccff> at least tf-a isn't "QTEE" :P
<Tartarus> calebccff: Do you have a PREBOOT set somewhere or ? I'm wondering what triggers that sccan
<calebccff> Tartarus: ah yeah I do, preboot=scsi scan; usb start;
<Tartarus> Ah, ok, yeah
<Tartarus> Hum
<calebccff> scsi scan is fairly fast but usb not so much
<Tartarus> And I guess that's on a board with your patch already applied? Or just with MMC disabled already?
<marex> calebccff: I was thinking about using cyclic framework for doing USB operations in the background
<calebccff> Tartarus: oh that board doesn't have MMC enabled
<marex> calebccff: another thing on my wall of things to explore
<calebccff> or, wait, rather it has the patch
<calebccff> confused myself there
<calebccff> marex: async usb would be great, i wonder if we couldn't speed things up other ways though
<calebccff> aren't there some big fixed delays?
<calebccff> eh, should just profile it
<marex> calebccff: there are, which the async would also mitigate
<marex> calebccff: the delays are there for a reason, to handle crappy hardware
<calebccff> marex: could we poll instead?
<marex> calebccff: I think the significant stuff is waiting for hubs to power up, which IIRC you cannot poll if they are ... powering up
mmu_man has quit [Ping timeout: 272 seconds]
<calebccff> marex: ah right
<marex> calebccff: but ... if you do it in a cyclic task ... :)
<marex> calebccff: I even have the outline in my head, just not the time :(
<calebccff> always the way
<calebccff> is gitlab CI down? or just reaaaally busy?
mmu_man has joined #u-boot
<marex> calebccff: slow ; there was some load issue this afternoon
<Tartarus> There's only a few shared runners for everyone on gitlab, yeah
<Tartarus> You can add ones that are local to your repository too, if you don't mind hammering your own workstation a bit for example
<calebccff> ah good to know
<calebccff> bah i forgot to copy my b4 thanks template from my laptop
slobodan_ is now known as slobodan
redbrain has quit [Read error: Connection reset by peer]
slobodan has quit [Changing host]
slobodan has joined #u-boot
redbrain has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #u-boot
glaroque has joined #u-boot
<Tartarus> syncthing ftw :)
Wouter01002 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter01002 has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
ikarso has joined #u-boot
ladis has quit [Quit: Leaving]
_whitelogger_ has joined #u-boot
Stat_headcrabbe1 has joined #u-boot
Stat_headcrabbed has quit [Read error: Connection reset by peer]
Stat_headcrabbe1 is now known as Stat_headcrabbed
mmu_man has quit [Ping timeout: 255 seconds]
vagrantc has joined #u-boot
prabhakalad has quit [Remote host closed the connection]
mmu_man has joined #u-boot
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #u-boot
mmu_man has quit [Ping timeout: 272 seconds]
alexxy has quit [Read error: Connection reset by peer]
alexxy has joined #u-boot
mmu_man has joined #u-boot
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #u-boot
_whitelogger_ has quit [Remote host closed the connection]
goliath has joined #u-boot
Stat_headcrabbed has quit [Remote host closed the connection]
joeskb7 has quit [Quit: Lost terminal]
slobodan has quit [Ping timeout: 248 seconds]
naoki has joined #u-boot
rvalue- has joined #u-boot
rvalue has quit [Ping timeout: 260 seconds]
rvalue- is now known as rvalue
ellyq_ has joined #u-boot
ellyq_ has quit [Client Quit]
_whitelogger_ has joined #u-boot