xypron changed the topic of #u-boot to: #u-boot SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot 2023.01 / Merge Window is OPEN, -next is CLOSED / Release v2023.01 is scheduled for 2023-01-09 / Channel archives at https://libera.irclog.whitequark.org/u-boot
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
mmu_man has joined #u-boot
naoki has quit [Quit: naoki]
persmule has quit [Ping timeout: 255 seconds]
persmule has joined #u-boot
umbramalison has quit [Quit: %So long and thanks for all the fish%]
umbramalison has joined #u-boot
apritzel__ has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
naoki has joined #u-boot
WoC-PbP has quit [Ping timeout: 268 seconds]
thopiekar has quit [Ping timeout: 260 seconds]
thopiekar_ has joined #u-boot
<Dhruvag2000[m]> please could someone have a look at some spi/ patches I've sent?
<Dhruvag2000[m]> These are potentially bug fixes.
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
jclsn has quit [Ping timeout: 240 seconds]
jclsn has joined #u-boot
persmule has quit [Ping timeout: 255 seconds]
<Forty-Bot> Dhruvag2000[m]: wait a week or two
persmule has joined #u-boot
PhoenixMage has left #u-boot [#u-boot]
vagrantc has quit [Quit: leaving]
hanetzer has quit [Ping timeout: 268 seconds]
hanetzer has joined #u-boot
ikarso has joined #u-boot
GNUtoo has quit [Ping timeout: 255 seconds]
GNUtoo has joined #u-boot
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
persmule has quit [Ping timeout: 255 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
persmule has joined #u-boot
Forty-Bot has quit [Ping timeout: 248 seconds]
Forty-Bot has joined #u-boot
guillaume_g has joined #u-boot
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
mmu_man has joined #u-boot
sszy has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
mncheck has joined #u-boot
GNUtoo has joined #u-boot
macromorgan is now known as Guest3476
Guest3476 has quit [Killed (cadmium.libera.chat (Nickname regained by services))]
macromorgan has joined #u-boot
adams[1] has quit [Quit: Client closed]
yollom has quit [Quit: leaving]
frieder has joined #u-boot
srk has joined #u-boot
mmu_man has quit [Ping timeout: 260 seconds]
ldevulder has quit [Remote host closed the connection]
mps has quit [Ping timeout: 256 seconds]
mps has joined #u-boot
ldevulder has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
rfs613 has quit [Read error: Connection reset by peer]
GNUtoo has quit [Remote host closed the connection]
prabhakarlad has joined #u-boot
rfs613 has joined #u-boot
Blok has joined #u-boot
stefanro has quit [Ping timeout: 255 seconds]
Blok has quit [Quit: Client closed]
mmu_man has joined #u-boot
stefanro has joined #u-boot
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
GNUtoo has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
__ad has quit [Read error: Connection reset by peer]
ad__ has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
persmule has quit [Remote host closed the connection]
torez has joined #u-boot
mmu_man has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
<Jacmet> maybe an odd question, but what is the "normal way to use boot scripts with signed boot (FIT_SIGNATURE)?
<Jacmet> the source command doesn't work very well with required = "conf" for signed configuration like you would normally use for the FIT images
prabhakarlad has joined #u-boot
<Jacmet> the "nicest" interface would IMHO to bundle the script in the FIT image and then verity and source it as part of bootm (E.G. list it in the configuration). This can be done by abusing the "loadables" functionality by adding a handler for a "script" loadables in my board code, but it would be nicer to have something like that working out of the box - E.G. http://paste.debian.net/hidden/1ce2c324/
<Jacmet> am I missing some generic infrastructure for this somewhere?
persmule has joined #u-boot
torez has quit [Quit: torez]
ikarso has quit [Quit: Connection closed for inactivity]
<cambrian_invader> Jacmet: I have a patch for that
GNUtoo has quit [Ping timeout: 255 seconds]
umbramalison has quit [Quit: %So long and thanks for all the fish%]
<cambrian_invader> but at the moment there's not an easy way to do this
umbramalison has joined #u-boot
<Jacmet> cambrian_invader: OK, so that solves the config vs images issue. To connect that to bootm you would end your script with bootm $somevar rather than triggering the script from bootm like I do?
<Jacmet> cambrian_invader: my patch above is really trivial, but it is a bit annoying that a patch is needed
<cambrian_invader> I think you can just run `bootm`
<cambrian_invader> if you load your combined image/script to $loadaddr
<cambrian_invader> actually, I think I have a similar use case to yours
<cambrian_invader> I use a script to load dm-verity parameters
<Jacmet> cambrian_invader: yes, me too
<Jacmet> with the above patch
<Jacmet> E.G. just embed a script that sets up bootargs with dm-mod.create= based on the A/B mode
<cambrian_invader> I use a separate image to avoid circular dependencies
<Jacmet> cambrian_invader: sorry, what do you mean?
<cambrian_invader> although I originally intended to do everything in one image
<Jacmet> the FIT image is signed and "binds" to a rootfs through dm-verity. The FIT image is created after the kernel and rootfs are built
<cambrian_invader> yeah, but it's easier in yocto
<Jacmet> I'm a Buildroot guy ;)
<Jacmet> but ok, if it is a single FIT image or 2 doesn't change things a lot
<Jacmet> 1 file is just a bit simpler
<qschulz> Jacmet: if I remember correctly how I did it years ago, source was working on images inside a fitImage
<qschulz> so if you sign the image within the fitImage, it should be fine?
<qschulz> that would mean a call to source before a call to bootm
<Jacmet> qschulz: yes, source is working, but it uses /images/$foo, so it doesn't work very well with FIT_SIGNATURE and signed configuration rather than signed images
<Jacmet> qschulz: so to have both then you need to add two certs in your control dtb, one with required = "conf" and one with required = "images" and sign both the images and the configuration, and you pay the RSA overhead twice (for source and for bootm), so it isn't really great
<Jacmet> qschulz: referencing the source from the config would be a lot nicer as it would then be verified together with the kernel/dtb/initramfs/..
<Jacmet> qschulz: which is what I'm doing in http://paste.debian.net/hidden/1ce2c324/ but it is a bit annoying that I need to have such logic in my board file
<Jacmet> when it isn't board specific at all
torez has joined #u-boot
<Jacmet> but if this is generally useful and I'm just not missing it, then I guess we could add this somewhere common behind an option?
<cambrian_invader> adding an image key is a security vuln IMO\
<cambrian_invader> if you keep the config it's fine I guess
<Jacmet> yes, we definately want signed configs
<Jacmet> and if you do that, then having signed images as well is a bit silly
WoC` has joined #u-boot
<Jacmet> so if we would add something like http://paste.debian.net/hidden/1ce2c324/ generically, where should it go? boot/image-board.c?
GNUtoo has joined #u-boot
<qschulz> Jacmet: I guess you could have this exact code in boot/image-board.c yes? register a handler for the script type in there
<qschulz> you could also manually call the function instead of relying on the handler logic since anyways it should always be called if there is a loadable of type script to be loaded
<Jacmet> qschulz: indeed, if that is the way we want to handle it
<Jacmet> qschulz: doing it through the handlers means no extra explicit code, which is IMHO nice
<qschulz> yes but somewhat hidden/non-obvious logic for something that is always called, makes debugging a bit harder
<qschulz> Jacmet: I can anticipate maintianers will want a unit test for that BTW :)
<Jacmet> qschulz: sure, and documentation ;)
guillaume_g has quit [Quit: Konversation terminated!]
<Jacmet> cambrian_invader: as you are also using dm-mod.create= to setup dm-verity, did you run into issues with it getting configured before the underlying block device is available (E.G. mmc/usb/.. gets probed asynchronously)
<cambrian_invader> yes
<cambrian_invader> I found a kludge for it, let me dig it up
<cambrian_invader> this is obviously a hack, but it's better than not working
<Jacmet> cambrian_invader: I sent a patch for a dm-mod.waitfor=device1[,..,deviceN] to get behaviour similar to rootwait
<Jacmet> so far without any feedback though
<Jacmet> but it is a bit nicer than a fixed delay
<Jacmet> it's basically a straight copy of the rootwait logic
<cambrian_invader> yeah, I think that's a much cleaner approach
vagrantc has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
umbramalison has quit [Quit: %So long and thanks for all the fish%]
umbramalison has joined #u-boot
frieder has quit [Remote host closed the connection]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
apritzel__ has quit [Ping timeout: 260 seconds]
WoC` has quit [Remote host closed the connection]
WoC` has joined #u-boot
GNUtoo has quit [Ping timeout: 255 seconds]
GNUtoo has joined #u-boot
Wouter0100 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100 has joined #u-boot
ldevulder has quit [Quit: Leaving]
persmule has quit [Remote host closed the connection]
GNUtoo has quit [Ping timeout: 255 seconds]
persmule has joined #u-boot
GNUtoo has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
ldevulder has joined #u-boot
ikarso has joined #u-boot
torez has quit [Quit: torez]
matthias_bgg has quit [Ping timeout: 268 seconds]
mmu_man has joined #u-boot
matthias_bgg has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
mncheck has quit [Ping timeout: 260 seconds]