linux-mips
[Top] [All Lists]

Can you add a signature to the kernel ELF image?

To: linux-mips@linux-mips.org
Subject: Can you add a signature to the kernel ELF image?
From: Adam Nielsen <a.nielsen@shikadi.net>
Date: Wed, 25 Nov 2009 08:46:51 +1000
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.22) Gecko/20090809 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0
Hi all,

I'm trying to port the kernel to an NCD HMX X-Terminal (MIPS R4600), but the one thing I have to do before I can actually boot the image is attach a signature to it. I have the signature 'code' in assembly[1], but I'm not sure how to link it so that it ends up as the first bit of code in the ELF image (the very first instruction is a 'b' to jump over the actual signature text.)

Without this the boot monitor will refuse to boot the kernel. Any suggestions as to how I might accomplish this?

Many thanks,
Adam.

[1] http://www.linux-mips.org/wiki/HMX

<Prev in Thread] Current Thread [Next in Thread>