Detecting network loaded uboot

I would like to configure uboot to default to network booting, if uboot.img was loaded from the network itself (by SPL). Otherwise booting from the drive. I presume some information is passed from SPL to uboot. Is the source of uboot.img (network, mmc) known to uboot after it starts?
If not, I'd like to patch spl to pass this info, but I'm not sure the appropriate mechanism. Bloblist seems appropriate, but there seemed to be some alternatives discussed here http://u-boot.10912.n7.nabble.com/passing-info-from-SPL-to-U-Boot-td361636.h....
I am working with an am335x/beaglebone black. Bloblist is not configured in the standard config, I'm not sure if this because of incompatibility or what the constraints are on choosing an address.

Hi, i don't think this is possible, because uboot is loaded in both cases to memory before it is executed. maybe you can set some kind of memory-flag outside the executions range before loading from storage/network.
regards Frank
Gesendet: Freitag, 06. November 2020 um 22:52 Uhr Von: "Spaker, Erich" e.spaker@qvii.com An: "u-boot@lists.denx.de" u-boot@lists.denx.de Betreff: Detecting network loaded uboot
I would like to configure uboot to default to network booting, if uboot.img was loaded from the network itself (by SPL). Otherwise booting from the drive. I presume some information is passed from SPL to uboot. Is the source of uboot.img (network, mmc) known to uboot after it starts?
If not, I'd like to patch spl to pass this info, but I'm not sure the appropriate mechanism. Bloblist seems appropriate, but there seemed to be some alternatives discussed here http://u-boot.10912.n7.nabble.com/passing-info-from-SPL-to-U-Boot-td361636.h....
I am working with an am335x/beaglebone black. Bloblist is not configured in the standard config, I'm not sure if this because of incompatibility or what the constraints are on choosing an address.
participants (2)
-
Frank Wunderlich
-
Spaker, Erich