redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
jclsn has quit [Ping timeout: 276 seconds]
jclsn has joined #u-boot
jclsn has quit [Ping timeout: 246 seconds]
jclsn has joined #u-boot
thopiekar_ has joined #u-boot
thopiekar is now known as Guest9622
Guest9622 has quit [Killed (iridium.libera.chat (Nickname regained by services))]
thopiekar_ is now known as thopiekar
jclsn has quit [Quit: Ping timeout (120 seconds)]
jclsn has joined #u-boot
vagrantc has joined #u-boot
jclsn has quit [Ping timeout: 256 seconds]
jclsn has joined #u-boot
jclsn has quit [Ping timeout: 240 seconds]
jclsn has joined #u-boot
jclsn has quit [Ping timeout: 256 seconds]
jclsn has joined #u-boot
mmu_man has quit [Ping timeout: 248 seconds]
jclsn has quit [Ping timeout: 276 seconds]
jclsn has joined #u-boot
vagrantc has quit [Quit: leaving]
tlwoerner_ has joined #u-boot
tlwoerner has quit [Ping timeout: 248 seconds]
stefanro has quit [Quit: Leaving.]
stefanro has joined #u-boot
ldevulder has joined #u-boot
milkylainen has joined #u-boot
mckoan|away is now known as mckoan
mmu_man has joined #u-boot
prabhakarlad has joined #u-boot
tre has joined #u-boot
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
tnovotny has joined #u-boot
samueldr has quit [Quit: You have been kicked for being idle]
matthias_bgg has joined #u-boot
monstr has joined #u-boot
indy has quit [Read error: Connection reset by peer]
indy has joined #u-boot
littlebobeep has joined #u-boot
<littlebobeep>
Hi all, I am curious about having a menu TUI screen that allows me to choose between physical boot media such as USB Flash drive, internatl eMMC, a microSDXC card, and an NVMe SSD, I would like to store U-Boot in NOR SPI Flash and have a menu detecting these other devices, but I wanted to confirm that U-Boot might not provide this at present.
<littlebobeep>
Should I use Tow-Boot?
<mps>
littlebobeep: I'm trying to use grub with u-boot efi on my arm boxes for this reason
<mps>
managed to get this on some of them already
<littlebobeep>
I think GRUB does not have display or keyboard support on my platform yet, but I can't check because I do not have the hardware. what arm boxes do you have where GRUB works?
<littlebobeep>
mps: ^
<j`ey>
littlebobeep: GRUb uses EFI protocools provided by uboot
<j`ey>
for keyboard/display
<littlebobeep>
Oh interesting I did not know uboot had anything to do with EFI
<mps>
littlebobeep: I have it on rk3399 gru-kevin, apple m1 macbook and olimex teres-i notebook
<mps>
also will try on exynos5000 peach pi chromebook in next days, if I find some free time
<littlebobeep>
mps: What bootloader does M1 macbook ship with?
<j`ey>
littlebobeep: iBoot
<j`ey>
its proprietary, but it can be used to load u-boot
<mps>
hanetzer: yes, but in last half year my daughter uses it
<littlebobeep>
hanetzer: Okay tow-boot does not provide this? I will look for petitboot
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #u-boot
<hanetzer>
littlebobeep: pettiboot is linux-as-a-bootloader. boots, starts a discovery service, and finds various sorts of bootloader config files. can kexec linux and bsd.
torez has joined #u-boot
tlwoerner_ has quit [Quit: Leaving]
tlwoerner_ has joined #u-boot
tlwoerner_ has quit [Remote host closed the connection]
tlwoerner has joined #u-boot
GNUtoo_ has joined #u-boot
GNUtoo has quit [Ping timeout: 240 seconds]
haritz has joined #u-boot
haritz has joined #u-boot
Amit_T has joined #u-boot
tre has quit [Remote host closed the connection]
monstr has quit [Remote host closed the connection]
mckoan is now known as mckoan|away
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #u-boot
Amit_T has quit [Quit: Leaving]
darkapex_ has joined #u-boot
darkapex has quit [Ping timeout: 240 seconds]
darkapex_ has quit [Ping timeout: 256 seconds]
darkapex has joined #u-boot
<cambrian_invader>
if I refactor something like `obj-$(CONFIG_FOO) += foo.o` into `obj-$(CONFIG_$(SPL_TPL_)FOO) += foo.o`
<cambrian_invader>
should the new CONFIG_SPL_FOO symbols default to y for backwards compatibility or n for reduced size?
tnovotny has quit [Quit: Leaving]
<Tartarus>
kettenis: if you have any ideas on adding openbsd host tool builds to CI I'd be quite happy to hear them and try it out
<cambrian_invader>
perhaps there is a BSD docker image?
<Tartarus>
cambrian_invader: There's no easy default for SPL_FOO vs FOO, it depends on what it is, and how many boards do/don't set it
<cambrian_invader>
the FOO in this case is MISC
<cambrian_invader>
which I want for regular U-Boot but which is missing a DM dependency for SPL
<Tartarus>
SPL_MISC is already a symbol
<Tartarus>
Ah
<Tartarus>
That's harder since SPL_DM isn't required
<cambrian_invader>
huh, so it is
<cambrian_invader>
I guess the makefile is just incorrect then
<Tartarus>
So, yeah, you end up needing CONFIG_IS_ENABLED(MISC) && CONFIG_IS_ENABLED(DM)
<Tartarus>
is it? hm
<Tartarus>
No, I guess misc is one of the cases where there's not a no-DM option
<Tartarus>
MISC/SPL_MISC depend on DM/SPL_DM
<Tartarus>
So Makefile cleanup should be straight forward
<Tartarus>
(And TPL_MISC depends on TPL_DM)
<hanetzer>
I'm under the assumption that spl (or tpl) needs to be smaller than the sram of a given chip?
<cambrian_invader>
generally, yes
<cambrian_invader>
unless you have xip
<hanetzer>
cambrian_invader: I'm masochisticly working on a soc with a shit old u-boot-2010.06/linux-3.10 BSP so I'm not quite sure 'what I have' :P
<hanetzer>
I *do* have a serial based recovery mechanism which I can use from linux now :)
<cambrian_invader>
sorry, I'm not an expert in this area, I just know the xip option exists
<cambrian_invader>
if you're already using SPL you probably don't have it
<hanetzer>
well, their setup uses something akin to spl. its just stupid :P
<kettenis>
Tartarus: unfortunately all of the "free" CI providers only support Linux and Windows (and sometimes macOS)
<hanetzer>
0x40 bytes of vectors, then 4096 bytes of 'reg_info.bin' which is basically a binary csv containing addresses, bytes to write to those addresses, and flags. its generated from an excel workbook with visual basic(?)
<hanetzer>
so, first loop, it reads that data and applies it, then second loop it skips it.
<Tartarus>
kettenis: Figured :( There are apparently options to host your own agents and so forth, both for Azure and GitLab.
<Tartarus>
Maybe a something could get hand-waved and weaved together, for testing, not 100% sure on the hows, since we try (but don't succeed with gitlab) to have the yml file Just Work for anyone
<Tartarus>
Or, if nothing, what toolchain are you using?
<machinehum>
Well I'm trying to upstream something that isn't upstreamed yet. Hacked a bunch of stuff together trying to get the allwinner V5 to boot. I guess a more specific question I should have asked is, where are the memory regions defined and are there any optimisation flags or something to get it to fit?
<machinehum>
Sorry if these questions are not entirely appropriate, it's been a long few weeks
thopiekar has quit [Ping timeout: 272 seconds]
thopiekar has joined #u-boot
<cambrian_invader>
machinehum: look in the linker script for your arch; should be called u-boot-spl.lds
<cambrian_invader>
machinehum: you can also try enabling CONFIG_LTO
<machinehum>
cambrian_invader: LTO=[y] made it fit
<machinehum>
Thanks
<Tartarus>
Yeah, the memory regions are generally defined right, so that error is the build time "stop now because it will fail silently at run time"
<Tartarus>
And if you aren't using the gcc-11.0 toolchains, or possibly newer general ones, you may also get binaries that are too large
<machinehum>
I'm using 11.2
<machinehum>
If I get this board to boot I'm going to lose my shit
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
vagrantc has joined #u-boot
flyback has quit [Quit: Leaving]
GNUtoo_ has quit [Remote host closed the connection]
flyback has joined #u-boot
GNUtoo has joined #u-boot
tlwoerner has quit [Remote host closed the connection]
tlwoerner has joined #u-boot
torez has quit [Quit: torez]
<hanetzer>
anyone know of a trick for defining registers and their bitfields in headers in such a way they're usable in assembly files?