From: Adam Nielsen <a.nielsen@shikadi.net>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Subject: Re: Can you add a signature to the kernel ELF image?
Date: Wed, 25 Nov 2009 21:34:50 +1000 [thread overview]
Message-ID: <4B0D165A.5030500@shikadi.net> (raw)
In-Reply-To: <20091124234406.GB20316@linux-mips.org>
> Take a look at arch/mips/kernel/head.S. This file will be the first on
> the final linker call's command line, that is head.S's .text section will
> end at the lowest address.
Ah excellent, that combined with the linker script (to twiddle load addresses)
is just what I'm after.
> #ifdef CONFIG_NCD_HMX
> b 1f
> nop
> nop
> .word 0x20
> .asciz "XncdHMX"
> .word 0, 0, 0
> #endif
Perfect, thanks for the example, that makes it much easier.
>> [1] http://www.linux-mips.org/wiki/HMX
>
> The wiki page says something about a CRC but just poking a 0x20 into a
> constant address is not exactly a CRC calculation. Not sure how this
> really is meant.
As far as I'm aware 0x20 means "ignore the CRC", I think the CRC itself is
covered by one of the zero words.
Cheers,
Adam.
prev parent reply other threads:[~2009-11-25 11:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 22:46 Can you add a signature to the kernel ELF image? Adam Nielsen
2009-11-24 23:39 ` David Daney
2009-11-24 23:44 ` Ralf Baechle
2009-11-25 11:34 ` Adam Nielsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0D165A.5030500@shikadi.net \
--to=a.nielsen@shikadi.net \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.