[u-boot-test-hooks][PATCH 1/2] labgrid: rpi: Rework the writer to be more robust

Tom Rini trini at konsulko.com
Tue Nov 4 22:55:08 CET 2025


In order to always correctly write the correct file to the correct location, we
need to first ensure that our newly generated config.txt file is readable to
everyone, as it may be accessed by another user during transport. Second, as
this is a file for the first partition, tell write-files this rather than
assume it.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 bin/writer.labgrid-trini.rpi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/writer.labgrid-trini.rpi b/bin/writer.labgrid-trini.rpi
index 83ce516..000c403 100644
--- a/bin/writer.labgrid-trini.rpi
+++ b/bin/writer.labgrid-trini.rpi
@@ -40,7 +40,8 @@ case "${board_ident}" in
     ;;
 esac
 
-labgrid-client write-files -T ${configtxt} config.txt
-labgrid-client write-files -T ${build}/u-boot.bin u-boot.bin
+chmod 0644 ${configtxt}
+labgrid-client write-files --partition 1 -T ${configtxt} config.txt
+labgrid-client write-files --partition 1 -T ${build}/u-boot.bin u-boot.bin
 rm ${configtxt}
 echo "Done writing build"
-- 
2.39.2



More information about the U-Boot mailing list