kernelci / kernelci-api

KernelCI API - Database - Pub/Sub
GNU Lesser General Public License v2.1
10 stars 16 forks source link

U-boot variables not substituted in template? #472

Closed hardboprobot closed 5 months ago

hardboprobot commented 5 months ago

Example:

https://lava.collabora.dev/scheduler/job/12713755

Really weird, the Uboot template variables aren't substituted by values:

kvim3#setenv initrd_size ${filesize}
setenv initrd_size ${filesize}
kvim3#tftp {DTB_ADDR} 12713660/tftp-deploy-z94pv2di/dtb/meson-g12b-a311d-khadas-vim3.dtb
tftp {DTB_ADDR} 12713660/tftp-deploy-z94pv2di/dtb/meson-g12b-a311d-khadas-vim3.dtb
Speed: 1000, full duplex
Using dwmac.ff3f0000 device
TFTP from server 192.168.201.1; our IP address is 192.168.201.44
Filename '12713660/tftp-deploy-z94pv2di/dtb/meson-g12b-a311d-khadas-vim3.dtb'.
Load address: 0x0
Loading: *####
5 MiB/s
done
Bytes transferred = 52193 (cbe1 hex)
kvim3#setenv bootargs 'console=ttyAML0,115200n8 root=/dev/ram0  ip=dhcp'
setenv bootargs 'console=ttyAML0,115200n8 root=/dev/ram0  ip=dhcp'
kvim3#{BOOTX}
{BOOTX}
Unknown command '{BOOTX}' - try 'help'
a-wai commented 5 months ago

This is most probably caused by https://lava.collabora.dev/scheduler/job/12713755/definition#defline6, due to the node being refreshed too late (see https://github.com/kernelci/kernelci-core/pull/2347#discussion_r1478483153)

I'm trying to fix it in https://github.com/kernelci/kernelci-core/pull/2342

a-wai commented 5 months ago

Should be fine on the next run

hardboprobot commented 5 months ago

Awesome, thanks!