Skip to contentSkip to conversation

Save sspi output bytes in variable

DISCUSSION Valentina Skorpion 1 participant 1 message May 21, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

        Hello all,
 I am using uboot 2024.07 on a Verdin imx8mp board and would like to save the output of the result (the bytes) into a variable.We have developed an spi peripheral that would retrieve us value that we would use further in the boot process (we would parse the spi output and set proper boot partition and devnum in u-boot-initial-env).For example :
        Verdin iMX8MP # sspi 1:0.0 16 00
        AA03
  How can I save in variable the result in hex (AA03 in such case), or if there is a way to do it in u-boot-initial-env ? I have seen so far only scripts and if statements that looks at the return code , but not the output on the console.  Many thanks!
                Best regards,                           Valentina.