From f62ad0e1d7fca6525a8ee0bd092789f5ea3e1edb Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 7 Oct 2023 00:14:09 +0100 Subject: [PATCH] use "tftpboot" instead of "tftp" in u-boot commands openwrt's u-boot installation doesn't accept the short form --- modules/tftpboot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tftpboot.nix b/modules/tftpboot.nix index bfbee17d..b011ebd1 100644 --- a/modules/tftpboot.nix +++ b/modules/tftpboot.nix @@ -73,7 +73,7 @@ in { setenv serverip ${cfg.serverip} setenv ipaddr ${cfg.ipaddr} setenv bootargs 'liminix ${cmdline} $cmd' - tftp 0x$(printf %x ${cfg.loadAddress}) result/uimage ; tftp 0x$(printf %x $rootfsStart) result/rootfs ; tftp 0x$dtbStart result/dtb + tftpboot 0x$(printf %x ${cfg.loadAddress}) result/uimage ; tftpboot 0x$(printf %x $rootfsStart) result/rootfs ; tftpboot 0x$dtbStart result/dtb bootm 0x$(printf %x ${cfg.loadAddress}) - 0x$dtbStart EOF '';