Hello,



Le lun. 28 juin 2021 à 15:05, Fabiano Ferronato <fabiferro@hotmail.com> a écrit :
Hi everybody,

I'm trying to figure out how to set boot parameters (nfsroot) for a x86 board (Intel NUC10 ). 

>From this job definition I understand it's possible using iPXE:
https://lkft.validation.linaro.org/scheduler/job/2959364/definition

But I can't understand what interface is being used to get terminal output and remote control: https://lkft.validation.linaro.org/scheduler/device/x86-01/devicedict
Look's like is using UART, I'm not sure I can get terminal console on boot time on my board (NUC).

LAVA is getting serial connection through telnet to lkft-slave02 at port 7016 ({% set connection_commands = {'uart0': 'telnet lkft-slave02 7016'} %}).
We use ser2net to forward the local ttysX to a network port (not mandatory but really convenient).

The options I can get from the information found are the following (please add any corrections or suggestions):

1) iPXE + terminal console: PXE alone can't get nfsroot settings dynamically. PXE + iPXE should be added to the chain and LAVA should have access to terminal console.
2) iPXE + environment variables: LAVA sets environment variables and PXE + iPXE gets nfsroot settings from environment variables. No terminal console needed.
3) PXE + static folder: LAVA fetches and extract rootfs always to the same folder. PXE reads static configuration file.
4) PXE + dynamic folder: LAVA sets the nfsroot folder name directly on the PXE configuration file (file is machine specific).
5) PXE + INITRAMFS: fetches root file system from file server and extracts to memory.

In order to work, LAVA requires a serial connection to the device!


Rgds

--
Rémi Duraffort
TuxArchitect
Linaro