ikarso has quit [Quit: Connection closed for inactivity]
mmu_man has quit [Ping timeout: 276 seconds]
vagrantc has joined #u-boot
apritzel has quit [Ping timeout: 268 seconds]
mmu_man has joined #u-boot
apritzel has joined #u-boot
vagrantc has quit [Quit: leaving]
apritzel has quit [Ping timeout: 245 seconds]
qschulz has quit [Quit: qschulz]
qschulz has joined #u-boot
experemental has quit [Ping timeout: 255 seconds]
Leopold has quit [Ping timeout: 252 seconds]
Leopold has joined #u-boot
jbowen has quit [Excess Flood]
jbowen has joined #u-boot
goliath has quit [Quit: SIGSEGV]
mmu_man has quit [Ping timeout: 264 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
jclsn has quit [Ping timeout: 245 seconds]
jclsn has joined #u-boot
persmule has quit [Remote host closed the connection]
<xypron>
pivi: distroboot relies on a file with the correct name residing in directory /dtbs/ of the boot partition. Debia and Ubuntu use package flash-kernel to copy the devicetree onto the boot partition.
hanetzer has quit [Ping timeout: 264 seconds]
hanetzer has joined #u-boot
Mis012 has quit [Remote host closed the connection]
Mis012 has joined #u-boot
stefanro has joined #u-boot
Mis012 has quit [Remote host closed the connection]
Mis012 has joined #u-boot
Mis012- has joined #u-boot
Mis012 has quit [Ping timeout: 240 seconds]
Clamor has joined #u-boot
ikarso has joined #u-boot
Clamor has quit [Ping timeout: 252 seconds]
Clamor has joined #u-boot
sukrutb has quit [Quit: Leaving]
experemental has joined #u-boot
apritzel has joined #u-boot
apritzel has quit [Ping timeout: 276 seconds]
<pivi>
xypron: yep, that's clear. where I have iasue is with EFI boot, when not using the boot.scr method
<xypron>
pivi: On Ubuntu booted non-secure via EFI update-grub adds a devicetree command to grub.cfg and flash-kernel will not write boot.scr. That way GRUB takes care of loading a devicetree matching the chosen kernel.
f_ is now known as f_estive
norton has joined #u-boot
mmu_man has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
slobodan has joined #u-boot
<pbrobinson>
pivi: do you mean by specifying an out of FW DT like from a filesystem
<pbrobinson>
A lot of the problems we see with Fedora is things like /usr/lib/ may not be available, you may have encrypted filesystem, LVM, a FS the FW can't read etc
<pbrobinson>
I am mostly taking the stance it needs to be dealt with by the FW, we don't get the OS to provide ACPI tables for example
dsimic has quit [Ping timeout: 240 seconds]
dsimic has joined #u-boot
Leopold has quit [Ping timeout: 245 seconds]
Leopold has joined #u-boot
goliath has joined #u-boot
<pivi>
pbrobinson: I see the point. On the other hand we have a different reality with DT files on embedded devices. Just to add one more data point, think at non-discoverable add-on hardware (e.g. DPI display), that are normally handled with DT overlay.
<pivi>
pbrobinson: that would move the complete handling of this to the firmware, where updating is more complex than the OS
<pivi>
xypron: do you have any pointer on how this is implemented? is this ubuntu specific (e.g. not available in Debian) ?
Leopold_ has joined #u-boot
Leopold has quit [Remote host closed the connection]
<pbrobinson>
pivi: the problem with overlays in Linux is some of these devices are not hot pluggable so you can't in a lot of cases actually deal with them in Linux
<pbrobinson>
pivi: The BeagleBone people had a kernel cape manager thing that they threw away because of the problems of dealing with this in Linux and they now do it all in FW
<pbrobinson>
pivi: IMO UEFI makes no difference here, it's just a defined API/hand off between FW and the OS. The same issues apply with extlinux directly from FW
<pivi>
xypron: wondering how this could work in practice. one fixup that is done on my boards is setting the memorysize. other parts really check some condition to decide on fixups
<xypron>
pivi: Exactly the same fixups are applied in the following cases: DT passed to bootefi command, DT pased to EFI_DT_FIXUP_PROTOCOL.
<pivi>
pbrobinson: not sure if I get your points. I am not looking for hotplug capabilities here, I would jyst like the os to provvide a list of dtbo to u-boot
<pivi>
xypron: I'll try it the next dayd
<pbrobinson>
pivi: but how can the OS provide a list of DTB anything to the firmware if the OS isn't running at that time?
<pivi>
pbrobinson: and this is something that's just easy to do with a boot.scr (we do have it implemented)
<xypron>
pivi: if you want the OS to supply dtbo's the best thing is to let the OS generate a boot.scr script.
<pbrobinson>
but the boot.scr isn't provided by the OS, it's generated by a tool and is readable by the FW
<pivi>
pbrobinson: a file? extlinyx.conf allows it
<pbrobinson>
right, but that's not being provided by the OS, it's basically an independent operation
<xypron>
extlinux.conf is also generated by a tool.
<xypron>
u-boot-menu
<pbrobinson>
the extlinux.conf is generated a number of ways
<xypron>
At least in Ubuntu it is generated by the u-boot-menu package.
<pivi>
to be clear, I am wondering on how to get of a well polished user experience. e.g. install the distro just works
<pivi>
yes, I am well aware of those tools
<pbrobinson>
I have x86 devices which accept overlays style things in HW and that's done in a horrible way from the FW as well to provide the OS with ACPI tables
<pbrobinson>
pivi: I agree we need to improve the way overlays are dealt with, I have been trying to work that out for some time but I am basically at a similar stalemate to where you're at
<pivi>
anyways, as OS I meant the Linux distro, tools included
<pivi>
this on my side started as : why I can't just install debian on my boards? and there the journey you are well aware of started also for me
<xypron>
pivi: if you are thinking of removable add on HW then updating the list of dtbos from the OS is not helpful as on the next boot those dtbos may be the wrong ones.
<pivi>
xypron: I do not see a solution for that. you'll just have to update such list if you alter your hw config
<pivi>
of course, I am thinking at non discoverable hw
<pbrobinson>
well some of the "non discoverable HW" can be dealt with by using eeproms and related, this is how both the Beagle and RPi ecosystem deal with it
<xypron>
The bug is having non-discoverable HW. Plug-and-play is a few decades old.
<pivi>
yes, if you add eeprom like that you are effectively making the hw discoverable
<pivi>
but none of this is standardized
<pivi>
xypron: s/bug/reality
<xypron>
design bug I mean
<pivi>
anyway, would be nice to have this standardized some way
<pivi>
having every vendor come up with their own solution means you'll have to customuze for each of them
<pbrobinson>
there's other ways to detect if the HW is within a known range for a particular device, like a small selection of display options. There's lots of examples of that in U-Boot for detecting revs of HW or variants with different features
<pbrobinson>
pivi: well the overlay side of things in U-Boot is quite standardised already, what isn't yet is a nice UX for dealing with it, and we sort of have the starts of that
<pivi>
you would need to handle the new display that does not exist yet when firmware, e.g. u-boot, is deployed on the device
<pivi>
how wpuld you handle that now in a generic way?
<pivi>
I mean, I know how can I make it work manually
<pivi>
my mind is really at a "just works" experience with a random distro
<pbrobinson>
the only way you can make it just work with random distros is have the FW deal with it
<pivi>
anyway, any of you is at Fosdem next month?
Stat_headcrabed has joined #u-boot
<pbrobinson>
pivi: I may be, I need to review that
<jkridner>
Beagle did a blog series of how to make dtbos compatible between boards and kernel versions by producing compatible symbols.
<pivi>
pbrobinson: just reach out, in case, would be nice to have a chat in person
<pbrobinson>
yep, will try to remember as I work it out :)
Hypfer5 has joined #u-boot
<pivi>
jkridner: I assume it's relatively easy to get it working, the challenge is an out if the box experience that just works on any distro
<pivi>
e.g. think at an x86 pc with device on pci
Hypfer has quit [Ping timeout: 256 seconds]
Hypfer5 is now known as Hypfer
<pivi>
(with easy I mean that all the basic tooling is there today)
<pbrobinson>
well an arm device with devices on pci already just work
<pivi>
with the correct dtb provide by the firmware. that may or may not be trivial. think at the 1000th changes in boot/dtb every kernel version ...
Hypfer2 has joined #u-boot
<pivi>
(in linux)
Hypfer has quit [Ping timeout: 268 seconds]
Hypfer2 is now known as Hypfer
<sjg1>
I am probably going to be at Fosdem and am interested in this topic
<sjg1>
Basically my proposal is to use a sysinfo driver to return information about what the board is, in the form of a list of compatible strings
Hypfer7 has joined #u-boot
Hypfer has quit [Ping timeout: 268 seconds]
Hypfer7 is now known as Hypfer
<pivi>
sjg1: cool, let's find a way to meet, I expect we could organize something
<pivi>
sending an email to the list could be a nice idea
Stat_headcrabed has quit [Quit: Stat_headcrabed]
jaganteki has joined #u-boot
stefanro has quit [Quit: Leaving.]
Clamor has quit [Ping timeout: 268 seconds]
Clamor has joined #u-boot
sakman has joined #u-boot
IoT-Maker has joined #u-boot
apritzel has joined #u-boot
<IoT-Maker>
i have an older Marvell u-boot 2.33 shell here. U-Boot starts a vxworks in and after that a linux an a Marvell Armada XP CPU. I need to manually update but there is no network either in vxworks or u-boot. I have serial console access and openocd/jtag. I was able to dump files from vxworks side from NOR flash using openocd. But how can i store files on vxworks side?
<IoT-Maker>
There is a usbbubt command in u-boot. But how can i use this to store an image?
<IoT-Maker>
I couldn't find documentation about usbbubt command.
<IoT-Maker>
xyprom: Thank you for the link. help usbbubt tells me: usbbubt - Burn an image on the eUSB module, default file-name is vxWorks. Usage: usbbubt <file-name>, Burn an image on the eUSB module, default file-name is vxWorks. I was asking myself how i can set the source of a file. In your link they explain it comes from tftp. Sadly i can't setup ethernet on u-boot. It is not accessible. I can set an ip and server-ip, but
<IoT-Maker>
thats all.
mmu_man has quit [Ping timeout: 246 seconds]
<Forty-Bot>
IoT-Maker: if you have jtag, you can try getting U-Boot running with that