2014年10月7日 星期二

How to text TXT under linux (Old)

How to text TXT under linux     2015/06/03 update

TXT only support in BIOS legacy mode , not support UEFI mode.

  1. Install trousuers and trousers-devel
#rpm –ivh trousers-devel-0.3.4-4.e16.x86_64.rpm
  1. Unzip the tboot source code to a folder under root
Type the following command:
# tar -xzvf tboot.1.8.tar.bz2 -C /root
# cd /root/tboot-1.8/
  1. Browse to the tboot source code and execute “make all”
This compile successfully and generates a tboog.gz image which needs to be copied to the /boot folder.
Type the following command:
#cp /root/tboot-1.8/tboot/tboot.gz /boot/
#cp /root/tboot-1.8/tboot/tboot.syms /boot/
  1. Once tboot and the Linux kernel 3.1.5 is compiled and images are generated we should modify the menu.lst file in /boot folder. Just copy the existing boot entry and modify it like this 
a)      title Red Hat Enterprise Linux Sever  + TBOOT
b)       root (hd0,0)  --- # use what is there in your original menu.lst
c)       kernel /tboot.gz logging=serial,vga,memory
d)      module /vmlinuz-*.*.* root=/dev/VolGroup00/LogVol00  ro # use what is there in your original menu.lst
e)       module /initramfs-*.*.*.img # use what is there in your original menu.lst
1.1.1.1.2                    Booting tboot
Now reboot the system and select the Linux with Intel® Trusted Execution technology from the boot loader. Now your system should boot with a set of tboot messages to the Linux login prompt.



1.1.1    R. TXT.MeasuredLaunchEnvironment.Function

logged in as root
Proceed to the folder where tboot was extracted and compiled.
Browse to /tboot-1.6/utils folder
Execute the txt-stat utility in the terminal by typing “./txt-stat”<ENTER>   (dump log: ./txt-stat >> *.log)

Verify if the log mentions “Measured Launch : TRUE”


沒有留言:

張貼留言