parse-bzimage: print kernel version string
Print the kernel version string.
Screenshot:
mcgrof@ergon ~/devel/table-init (git::master)$ ./parse-bzimage
~mcgrof/linux/arch/x86/boot/bzImage
kernel: /home/mcgrof/linux/arch/x86/boot/bzImage
kernel size: 5668224 bytes
Going to parse kernel...
-------------------------------------------------
Kernel version: 4.4.0-rc1-1-default+ (mcgrof@ergon.do-not-panic.com) #215 SMP PREEMPT Tue Nov 17 15:48:54 PST 2015
-------------------------------------------------
Xen Expects: 0x53726448
Qemu Expects: 0x53726448
On image: 0x53726448
bzImage protocol Version: v2.13
Xen hdr->version: 525
Qemu protocol: 525
Qemu VERSION(2,8): 520
-------------------------------------------------
Boot protocol 2.07: 0x0207 (supports hardware_subarch)
Boot protocol 2.08: 0x0208
Boot protocol 2.09: 0x0209
Boot protocol 2.10: 0x020a
Boot protocol 2.11: 0x020b
Boot protocol 2.12: 0x020c
Boot protocol 2.13: 0x020d
Member Offset Expected Match
-------------------------------------------------------------------------
setup_header->loadflags 0x0211 0x0211 YES
setup_header->hardware_subarch 0x023c
setup_header->hardware_subarch_data 0x0240
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
1 file changed