Imported Upstream version 2.0.1+dfsg
[packages/binwalk.git] / src / magic / kernels
1
2 #-------------------------Kernels-------------------------------------
3
4 # Linux kernel boot images, from Albert Cahalan <acahalan@cs.uml.edu>
5 # and others such as Axel Kohlmeyer <akohlmey@rincewind.chemie.uni-ulm.de>
6 # and Nicol├ís Lichtmaier <nick@debian.org>
7 # All known start with: b8 c0 07 8e d8 b8 00 90 8e c0 b9 00 01 29 f6 29
8 0               string          \xb8\xc0\x07\x8e\xd8\xb8\x00\x90\x8e\xc0\xb9\x00\x01\x29\xf6\x29        Linux kernel boot image
9 >514    string          !HdrS                                                                   (invalid)
10
11 # Finds and prints Linux kernel strings in raw Linux kernels (output like uname -a).
12 # Commonly found in decompressed embedded kernel binaries.
13 0       string          Linux\ version\         Linux kernel version
14 >14     byte            0                       invalid
15 >14     byte            !0
16 >>14    string          x                       "%s
17 >>45    string          x                       \b%s"
18
19 # eCos kernel exception handlers
20 #
21 # mfc0    $k0, Cause       # Cause of last exception
22 # nop
23 # andi    $k0, 0x7F
24 # li      $k1, 0xXXXXXXXX
25 # add     $k1, $k0
26 # lw      $k1, 0($k1)
27 # jr      $k1
28 # nop
29 0       string  \x00\x68\x1A\x40\x00\x00\x00\x00\x7F\x00\x5A\x33        eCos kernel exception handler, architecture: MIPSEL,
30 >14     leshort !0x3C1B                                                                                         invalid
31 >18     leshort !0x277B                                                                                         invalid
32 >12     leshort x                                                                                                       exception vector table base address: 0x%.4X
33 >16     leshort x                                                                                                       \b%.4X
34 0       string  \x40\x1A\x68\x00\x00\x00\x00\x00\x33\x5A\x00\x7F        eCos kernel exception handler, architecture: MIPS,
35 >12     beshort !0x3C1B                                                                                         invalid
36 >16     beshort !0x277B                                                                                         invalid
37 >14     beshort x                                                                                                       exception vector table base address: 0x%.4X
38 >18     beshort x                                                                                                       \b%.4X