
============================================
    Linux-ready firmware developer kit:
           HOWTO SSH COPY RESULT
============================================

LFK supports uploading test results over the network. The file transfer is via scp/ssh from the 
test target to a single host. 
At the host side, a SSH daemon must be active and support "publickey" authentication method. 
LFK CD image has pre-generated public-private key pair, the public key is available to download at 
URL_FOR_PUBLIC_KEY. Once the public key is downloaded, it needs to be appended or copied to your 
host ~root/.ssh/authorized_keys. 
Host IP and destination directory information can be set automatically or manually. For the manual 
method, the user needs to manually type host IP address and directory name in the syntax of scp; 
For the automatic method, a user needs to use PXE, USB, or other boot method which allows you to 
edit the kernel command line. For an example, on a PXE server the entry for LFK looks like:

label lfk
        kernel vmlinuz-lfk
        APPEND   root=/dev/ram0 init=/init ramdisk_size=8192 vga=0x314 ip=dhcp initrd=initramfs-lfk  console=tty1 pci=nommconf  idle=poll udev saveovernet=11.11.11.10:/root/temp/ noninteractive

The "saveovernet" parameter tells LFK where to save test results. If "noninteractive" is given to 
LFK, the entire process will be automated, i.e. LFK will perform the tests, save the result to 
host, then reboot. After a few iterations, the host destination directory will have results from 
multiple runs and looks like below:

putvin:~# ls -l /root/temp/
total 12
drwxr-xr-x 2 root root 4096 2007-01-10 10:14 results_testmachine_1415020102
drwxr-xr-x 2 root root 4096 2007-01-10 10:16 results_testmachine_1416020102
drwxr-xr-x 2 root root 4096 2007-01-10 10:17 results_testmachine_1417020102

To stop the repetitive reboots needs human intervention.


Public key for LFK:
ssh-dss   root@putvin


Contributer:   Jacob Pan (jacob.jun.pan@intel.com)

