From: "Indukumar Ilangovan" <iilangov@cisco.com>
To: <linux-mips@linux-mips.org>
Subject: manipulating e_machine value in the elf Header
Date: Thu, 6 Feb 2003 19:34:40 +0530 [thread overview]
Message-ID: <005201c2cde8$b145e5d0$a78b4d0a@apac.cisco.com> (raw)
Hi,
I'm trying to port linux kernel to a mips board with a R4700 processor. It
has a rom monitor program which can be used to load the image. (has support
for tftp boot, xmodem....) . This bootloader has a hardcoded cpu_type which
is cross checked with the e_machine value in the elf header. When I try to
load the linux kernel this check (cpu_type == e_machine) fails & hence the
boot loader aborts the loading of image.
I tried to change the e_machine type value by changing the EM_MIPS value in
include/linux/elf.h, still e_machine type is "8" in the image even after
completely rebuilding the image. I even changed the EM_MIPS value in
/usr/include/elf.h & couple of other locations (sde headers.....) still no
luck....though hand editing the elf header is an option.. I don't want to do
that !
If any of you have any idea/suggestions I would be a happy man !
Thanks in advance,
Indu
WARNING: multiple messages have this Message-ID (diff)
From: "Indukumar Ilangovan" <iilangov@cisco.com>
To: linux-mips@linux-mips.org
Subject: manipulating e_machine value in the elf Header
Date: Thu, 6 Feb 2003 19:34:40 +0530 [thread overview]
Message-ID: <005201c2cde8$b145e5d0$a78b4d0a@apac.cisco.com> (raw)
Message-ID: <20030206140440.fFQRzU8qSGkATvPvaCejHMQ10jteynLItHmIfNU12tQ@z> (raw)
Hi,
I'm trying to port linux kernel to a mips board with a R4700 processor. It
has a rom monitor program which can be used to load the image. (has support
for tftp boot, xmodem....) . This bootloader has a hardcoded cpu_type which
is cross checked with the e_machine value in the elf header. When I try to
load the linux kernel this check (cpu_type == e_machine) fails & hence the
boot loader aborts the loading of image.
I tried to change the e_machine type value by changing the EM_MIPS value in
include/linux/elf.h, still e_machine type is "8" in the image even after
completely rebuilding the image. I even changed the EM_MIPS value in
/usr/include/elf.h & couple of other locations (sde headers.....) still no
luck....though hand editing the elf header is an option.. I don't want to do
that !
If any of you have any idea/suggestions I would be a happy man !
Thanks in advance,
Indu
next reply other threads:[~2003-02-06 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-06 14:04 Indukumar Ilangovan [this message]
2003-02-06 14:04 ` manipulating e_machine value in the elf Header Indukumar Ilangovan
2003-02-06 14:52 ` Ralf Baechle
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='005201c2cde8$b145e5d0$a78b4d0a@apac.cisco.com' \
--to=iilangov@cisco.com \
--cc=linux-mips@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox