diff options
author | 2017-05-11 09:15:33 +0200 | |
---|---|---|
committer | 2017-05-11 09:15:33 +0200 | |
commit | b4a6e1cd6c718f4f58536d516174a2afa75fba08 (patch) | |
tree | 9ad8d6a420f439692b69cc4955481fba501a673f /INSTALL | |
parent | 8c79cea9310e0d7e44d4fd3a24053f6deb0106e4 (diff) |
tools/scripts_netboot: adjustments for multi-images builds
As the path for each target board can be specific, the tftpd config
should be adjusted each time we serve a new image.
Change-Id: I5d79787cde5b215848e5247ae2a4e8bf06dccb6a
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'INSTALL')
-rwxr-xr-x | INSTALL/tools/scripts_netboot/run_xnbd_server | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/INSTALL/tools/scripts_netboot/run_xnbd_server b/INSTALL/tools/scripts_netboot/run_xnbd_server index 92dd98c..7da5fac 100755 --- a/INSTALL/tools/scripts_netboot/run_xnbd_server +++ b/INSTALL/tools/scripts_netboot/run_xnbd_server @@ -21,5 +21,14 @@ echo "Using MACHINE=$MACHINE IMAGE=$IMAGE" REALIMG=$(realpath $IMAGE) [[ ! -f ${REALIMG}.bak ]] && cp -v ${REALIMG} ${REALIMG}.bak +cat <<EOF | sudo tee /etc/default/tftpd-hpa &>/dev/null +# /etc/default/tftpd-hpa + +TFTP_USERNAME="tftp" +TFTP_DIRECTORY="/xdt/build/$MACHINE/tmp/deploy/images" +TFTP_ADDRESS="0.0.0.0:69" +TFTP_OPTIONS="--secure" +EOF + sudo systemctl restart tftpd-hpa sudo xnbd-server --target --lport 10809 $IMAGE |