[SLOF] [PATCH 10/16] Implement measurements of the master boot record

Thomas Huth thuth at redhat.com
Thu Nov 12 18:17:37 AEDT 2015


On 11/11/15 14:07, Stefan Berger wrote:
> On 11/09/2015 05:57 AM, Nikunj A Dadhania wrote:
>> Stefan Berger <stefanb at linux.vnet.ibm.com> writes:
[...]
>>> diff --git a/board-js2x/slof/OF.fs b/board-js2x/slof/OF.fs
>>> index 3e37735..8e736c7 100644
>>> --- a/board-js2x/slof/OF.fs
>>> +++ b/board-js2x/slof/OF.fs
>> Why js2x ?
> 
> Avoid compilation error.

I think you could also do without this...

>>> @@ -255,6 +255,8 @@ create vpd-bootlist 4 allot
>>>   #include <usb/usb-static.fs>
>>>   320 cp
>>>   #include <scsi-loader.fs>
>>> +\\ need tpm-static for verbs in disk-labels.fs
>>> +#include <tpm/tpm-static.fs>
>>>   #include <root.fs>
>>>   360 cp
>>>   #include "tree.fs"
>>> diff --git a/slof/fs/packages/disk-label.fs
>>> b/slof/fs/packages/disk-label.fs
>>> index e034d64..f827d72 100644
>>> --- a/slof/fs/packages/disk-label.fs
>>> +++ b/slof/fs/packages/disk-label.fs
>>> @@ -545,7 +545,11 @@ B9E5                CONSTANT
>>> GPT-BASIC-DATA-PARTITION-2
>>>   \ load from a bootable partition
>>>   : load-from-boot-partition ( addr -- size )
>>>      debug-disk-label? IF ." Trying DOS boot " .s cr THEN
>>> -   dup load-from-dos-boot-partition ?dup 0 <> IF nip EXIT THEN
>>> +   dup load-from-dos-boot-partition ?dup 0 <> IF
>>> +      nip
>>> +      80 block 200 vtpm-add-bcv
>> what does 80 mean ?
> 
> Ah, cannot drop the bcv function...

... if you use something like this (untested):

 s" 80 block 200 vtpm-add-bcv" ['] evaluate CATCH drop

Yes, Forth is fun! :-)

 Thomas



More information about the SLOF mailing list