Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.07.02, v2023.10-rc3 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2023.10 is scheduled for 02 October 2023 / Channel archives at https://libera.irclog.whitequark.org/u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
mmu_man has joined #u-boot
Wouter0100670440 has joined #u-boot
mike_ has quit [Remote host closed the connection]
<clever> is an aarch64 u-boot able to boot a armv7l kernel? or would something pre-uboot have to change the bit width, and then use a 32bit uboot?
camus has joined #u-boot
<tpw_rules> how can i read the value of a text file into an environment variable?
<tpw_rules> (in the shell to be clear)
alpernebbi has quit [Ping timeout: 245 seconds]
alpernebbi has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
jclsn has quit [Ping timeout: 248 seconds]
jclsn has joined #u-boot
vagrantc has joined #u-boot
Hammdist has joined #u-boot
vagrantc has quit [Quit: leaving]
<marex> tpw_rules: => help env
<marex> tpw_rules: env import $loadaddr $filesize
<marex> clever: I honestly dont know, I know RPi does something like that, but I never looked at how they do it
<marex> clever: arch/arm/lib/bootm.c boot_jump_linux() -> armv8_switch_to_el2(... ES_TO_AARCH32) I guess
<marex> clever: ec6617c3974 ("armv8: Support loading 32-bit OS in AArch32 execution state")
<marex> clever: I guess we could do that for like 7 years now
<clever> marex: the rpi has a special control register, so the arm core is in armv7l mode directly out of reset
<clever> ah, that sounds like a relevant commit
<clever> i'll keep that in mind, it will save me from having to make a 32bit build and decide earlier
<clever> * When loading 32-bit kernel, it will jump
<clever> * to secure firmware again, and never return.
<clever> bl armv8_el2_to_aarch32
<clever> hmmm, so it relies on EL3 to re-enter in 32bit mode?
<clever> arch/arm/cpu/armv8/sec_firmware_asm.S:ENTRY(armv8_el2_to_aarch32)
<clever> arch/arm/cpu/armv8/Makefile:obj-$(CONFIG_$(SPL_)ARMV8_SEC_FIRMWARE_SUPPORT) += sec_firmware.o sec_firmware_asm.o
<clever> so it will rely on having this flag set, and ....
<clever> i think its doing a PSCI call, but the call isnt in the doc i have
<clever> so i would also need a PSCI implementation for that, but i have plans for it already
naoki has joined #u-boot
naoki has quit [Quit: naoki]
ja_02 has quit [Read error: Connection reset by peer]
ja_02 has joined #u-boot
Clamor has joined #u-boot
stefanro has joined #u-boot
Clamor has quit [Ping timeout: 246 seconds]
Clamor has joined #u-boot
sukrutb has joined #u-boot
milkylainen has quit [Ping timeout: 260 seconds]
milkylainen has joined #u-boot
milkylainen has quit [Ping timeout: 250 seconds]
milkylainen has joined #u-boot
wooosaiiii has quit [Quit: wooosaiiii]
wooosaiiii has joined #u-boot
milkylainen has quit [Ping timeout: 246 seconds]
milkylainen has joined #u-boot
rvalue has joined #u-boot
monstr has joined #u-boot
rvalue has quit [Ping timeout: 245 seconds]
rvalue has joined #u-boot
goliath has joined #u-boot
monstr has quit [Ping timeout: 248 seconds]
ikarso has joined #u-boot
sng has joined #u-boot
mckoan has joined #u-boot
<mckoan> good morning
sng has quit [Remote host closed the connection]
sng has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
frieder has joined #u-boot
dukiz has joined #u-boot
dukiz has quit [Remote host closed the connection]
tnovotny has joined #u-boot
ezulian has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
sukrutb has quit [Quit: Leaving]
tnovotny_ has joined #u-boot
rockosov has quit [Ping timeout: 245 seconds]
stefanro has quit [Ping timeout: 260 seconds]
tnovotny has quit [Ping timeout: 255 seconds]
rockosov has joined #u-boot
stefanro has joined #u-boot
rvalue has quit [Ping timeout: 246 seconds]
frieder has quit [Remote host closed the connection]
Clamor has quit [Ping timeout: 246 seconds]
Clamor has joined #u-boot
frieder has joined #u-boot
naoki has joined #u-boot
rvalue has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
tnovotny_ has quit [Quit: Leaving]
slobodan has joined #u-boot
mmu_man has joined #u-boot
frieder has quit [Ping timeout: 246 seconds]
naoki has quit [Quit: naoki]
Clamor has quit [Ping timeout: 246 seconds]
Clamor has joined #u-boot
frieder has joined #u-boot
valdemaras has joined #u-boot
sng__ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
Hammdist has quit [Ping timeout: 246 seconds]
sng__ has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
sng has joined #u-boot
monstr has joined #u-boot
monstr has quit [Ping timeout: 255 seconds]
tixlegeek has joined #u-boot
valdemaras has quit [Quit: valdemaras]
Clamor has quit [Ping timeout: 246 seconds]
sng has quit [Remote host closed the connection]
indy has quit [Quit: ZNC 1.8.2 - https://znc.in]
torez has joined #u-boot
indy_ has joined #u-boot
torez has quit [Client Quit]
Clamor has joined #u-boot
torez has joined #u-boot
Clamor has joined #u-boot
frieder has quit [Ping timeout: 245 seconds]
sng has joined #u-boot
frieder has joined #u-boot
tixlegeek has quit [Quit: tixlegeek]
sng has quit [Remote host closed the connection]
<marex> clever: U-Boot already has both arm32 and arm64 PSCI implementation, just use it ?
<clever> marex: its not currently implemented on the rpi, but that is something i plan to do
frieder has quit [Ping timeout: 250 seconds]
mmu_man has quit [Ping timeout: 240 seconds]
frieder has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
sng has joined #u-boot
sng has quit [Remote host closed the connection]
xroumegue has quit [Ping timeout: 248 seconds]
Hammdist has joined #u-boot
mmu_man has joined #u-boot
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
monstr has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
monstr has quit [Ping timeout: 248 seconds]
sng has quit [Remote host closed the connection]
mmu_man has quit [Ping timeout: 246 seconds]
Clamor has quit [Ping timeout: 246 seconds]
Clamor has joined #u-boot
sng has joined #u-boot
sng has quit [Remote host closed the connection]
goliath has quit [Quit: SIGSEGV]
mmu_man has joined #u-boot
Clamor has quit [Ping timeout: 258 seconds]
mckoan is now known as mckoan|away
sng has joined #u-boot
sng has quit [Remote host closed the connection]
frieder has quit [Remote host closed the connection]
j`ey_ is now known as j`ey
Clamor has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
valdemaras has joined #u-boot
sng has joined #u-boot
Hammdist has quit [Quit: Client closed]
goliath has joined #u-boot
sng has quit [Remote host closed the connection]
tixlegeek has joined #u-boot
<marex> clever: at some point , I sent imx8m support
sng has joined #u-boot
vagrantc has joined #u-boot
sng has quit [Remote host closed the connection]
indy_ is now known as indy
Clamor has quit [Ping timeout: 248 seconds]
Clamor has joined #u-boot
sng has joined #u-boot
rvalue has quit [Ping timeout: 248 seconds]
rvalue has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
Gravis_ has joined #u-boot
Gravis has quit [Ping timeout: 245 seconds]
<marex> clever: that was uh ... early this year, January maybe
<marex> clever: also, stm32mp15xx has PSCI support which is understandable and all, although ST did mess it all up with this SCMI goo in MP13xx :-C
Gravis_ has quit [Ping timeout: 255 seconds]
Gravis has joined #u-boot
<milkylainen> Hey. Did github just break for anyone else?
<milkylainen> Trying to download tarballs.
<milkylainen> curl gives me content-length 0, wget a 403.
<milkylainen> Anyone else can confirm?
<milkylainen> same thing
Gravis_ has joined #u-boot
Gravis has quit [Ping timeout: 255 seconds]
Gravis_ has quit [Ping timeout: 255 seconds]
Gravis has joined #u-boot
<Sout_> just you
silurian_invader has quit [Ping timeout: 248 seconds]
<milkylainen> Yeah. Apparently I've been banned from github downloads.
<milkylainen> lol. :D
<marex> milkylainen: fetch from source.denx.de and problem solved ?
<milkylainen> marex: yeah. But there are a lot of github projects. So it's sort of a problem. Oh well. Thanks for checking anyway.
<marex> yes, the centralization of control in hands of single company is a problem
<milkylainen> Definetly so.
<milkylainen> I have no idea why I got banned.
<clever> 17 2022-09-25 14:54:25 < marex> arch/arm/mach-imx/mx7/psci-mx7.c
<clever> marex: ah yeah, we did talk about psci and imx before
Clamor has quit [Read error: Connection reset by peer]
slobodan has quit [Remote host closed the connection]
ikarso has joined #u-boot
slobodan has joined #u-boot
slobodan has quit [Quit: Leaving]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
silurian_invader has joined #u-boot
torez has quit [Quit: torez]
sng has quit [Remote host closed the connection]
Perflosopher has quit [Ping timeout: 246 seconds]
Perflosopher has joined #u-boot
valdemaras has quit [Quit: valdemaras]
deathmist has joined #u-boot
<deathmist> hey, attempting to use U-Boot v2023.10-rc3 on my VisionFive 2 to boot a distro with mainline kernel (6.5.0-next-20230828), but it appears starfive_visionfive2_defconfig forces the device tree to be jh7110-starfive-visionfive-2.dtb while in my case it needs to be jh7110-starfive-visionfive-2-v1.3b.dtb
<deathmist> is there any solution for it to automatically pick it based on the board? there's 2 variants (v1.2a and v1.3b) and I don't feel like it's the job of distributions to deal with something like this
<mps> some scripting to set proper dtb? I also thought about same problem you have, I have VF2 board
<mps> I didn't looked yet how to add such script
<Tartarus> Yes, it should do some of the various things arm boards do to pick the right one
<mps> bdinfo doesn't show anything which I think could be used
prabhakarlad has joined #u-boot
<mps> Tartarus: could you point to example
<Tartarus> git grep findfdt
<Tartarus> This assumes there is some reliable way to determine the revision of the hardware
goliath has quit [Quit: SIGSEGV]
<deathmist> fwiw my UART shows "Model: StarFive VisionFive 2 v1.3B" while booting, not sure if it's hardcoded somehwre to that variant tho
<mps> aha, thanks
<deathmist> and to clarify that log is from U-Boot
<xypron> deathmist: The version should be determined from the EPROM.
<mps> I think some u-boot command have to be used to read some board info
<mps> eeprom show show this 'PCB revision: 0xb2'
<mps> and 'data version: 0x2'
<xypron> deathmist: The right place to set the chosen device-tree is in SPL. The itb file with main U-Boot should have different configurations from which SPL should choose based on the EPROM.
<Tartarus> Yes, there's examples that read eeprom
<Tartarus> The TI platforms have a whole set of frameworks for handling those on their ref platforms
<xypron> Wandboard too?
<mps> what command is used to read eeprom from u-boot
<mps> 'eeprom read' loads eeprom
<Tartarus> Do you mean parse?
<mps> eeprom read <bus> <devaddr> addr off cnt
<mps> yes, something to parse would be useful
<Tartarus> That's up to the board stuff to implement
<Tartarus> There's no real standard for them
<mps> I see, just looking at board/ti/common/cape_detect.c
<deathmist> in any case if you need anything from me or there's something to test I'd be very interested! I'll idle around here so feel free to ping me ^^
<mps> nice, board/starfive/visionfive2/visionfive2-i2c-eeprom.c and there is 'struct eeprom_header header'
<Tartarus> There's examples of reading the eeprom and setting an env var, from board_late_init or what-have-you, too
<mps> simplest would be to set CONFIG_DEFAULT_DEVICE_TREE to desired board/dtb
<mps> err, CONFIG_DEFAULT_FDT_FILE
<deathmist> mps: that's the hack I'll be doing tomorrow, but let's say a distribution wants to support the board and people happen to have the v1.2a while it defaults to v1.3b, then what? they don't have a second working ethernet port at least until manually messing with stuff
<deathmist> I know 1.2 is a super early model with slightly different hw but it does exist in people's hands
<mps> well, then we are out of luck if vendor didn't do right things for this
ezulian has quit [Ping timeout: 246 seconds]
<mps> then distro have to try to make combined dtb
<deathmist> what would be the right things for vendor to do?
<mps> to set proper fdtfile name in 'firmware' they install on board
<deathmist> mps: on the SPI flash or?
<mps> in some of first tries I simply renamed dtb to one u-boot expect
prabhakarlad has quit [Quit: Client closed]
<mps> it could be set in u-boot source or on flash
<mps> this is on the vendor
<mps> and I think debian created unified dtb file name
<mps> but didn't looked how they did
<mps> deathmist: don't take my words seriously, I'm just contemplating aloud
<deathmist> isn't that all downstream stuff tho? I'm trying to run zero downstream things; I've got mainline OpenSBI, U-Boot and Linux kernel where things may differ from what vendor did; I've just flashed it all on SD card similar to as described on https://u-boot.readthedocs.io/en/latest/board/starfive/visionfive2.html and haven't touched SPI
<mps> this could be task for u-boot contributors
<mps> as you know you can put u-boot on e/mmc
<mps> so, distro can hack u-boot which they ship to solve this problem
<mps> for example, I already hacked some things for my personal testing
<mps> in include/configs/starfive-visionfive2.h I added nvme in boot targets
tixlegeek has quit [Quit: tixlegeek]
redbrain_ has quit [Ping timeout: 255 seconds]
redbrain has joined #u-boot