LE DISEZ Erwan wrote onĀ 2013-02-15:
> Hello,
> 
> I'am trying to boot a Linux kernel (v 2.3.32) compiled as not
> relocatable. The kernel works fine and can be loaded directly from GRUB2
> for example.
> 
> When booting using GRUB2+TBOOT I use the following 'simple'
> configuration :
>    menuentry "LINUX via TBOOT" {
>            set root=(hd0,1)
>            multiboot /tboot.gz /tboot.gz logging=vga,memory,serial
>            module /lnx /lnx
>            module /2nd_gen_i5_i7_SINIT_51.BIN
>    }
> 
> When loading TBOOT, the last traces just before jumping to Linux are :
>    TBOOT: Error: ELF magic number is not matched.
>    TBOOT: assuming kernel is Linux format
>    TBOOT: kernel type is Linux
>    TBOOT: Initrd from 0x7fc39000 to 0x7ffffeb0
>    TBOOT: kernel is not relocatable
>    TBOOT: load protected-mode part
>    TBOOT: Kernel (protected mode) from 0x100000 to 0x4c3ab0
>    TBOOT: load real-mode part
>    TBOOT: Kernel (real mode) from 0x90000 to 0x93400
>    TBOOT: Entry point initialized = 0xf1dbf443
> For a not relocated kernel all seems good no ?
>    Protected base is 0x100000 (it is a bzImage)
>    Read mode base is 0x90000
> The jump occurs to  hdr->code32_start = @0xf1dbf443.
> 
> Just after the system reset.
> 
> So I have a few questions :
> - Have you already tested with a not relocatable Linux kernel ?

Kernel has TXT/tboot support since v2.6.35. And I never tested a
non-relocatable kernel specifically, but it is supposed to work only if the
kernel memory doesn't overlap with tboot.

> - It is normal to jump to 0xf1dbf443, why not the real mode part ?

Jump to protection mode entry point just work, for any reason shall we
bother to start from real mode part?

Thanks.
Jimmy

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tboot-devel mailing list
tboot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tboot-devel

Reply via email to