From: "Kevin D. Kissell" <kevink@paralogos.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Florian Fainelli <florian@openwrt.org>, linux-mips@linux-mips.org
Subject: Re: initramfs breakage with 64-bits kernels?
Date: Sun, 03 May 2009 11:24:37 +0200 [thread overview]
Message-ID: <49FD62D5.5000803@paralogos.com> (raw)
In-Reply-To: <10f740e80905030119u6f196b6bqe63003d502f9f731@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]
Geert Uytterhoeven wrote:
> On Thu, Apr 30, 2009 at 21:41, Florian Fainelli <florian@openwrt.org> wrote:
>
>> I have been trying to get a 2.6.29 64-bits kernel for Cavium Octeon to work
>> with a 32-bits userland in an initramfs. While booting, the kernel does not
>> find the initramfs due to the check against initrd_start in populate_rootfs
>> (init/initramfs.c) failing.
>>
>
> You mean the test for initrd_start being non-zero? Is your initramfs really at
> address zero?
I'm not set up to verify this, but I have a nagging suspicion that a
big-endian 64-bit kernel build could store an initrd_start address with
32 or fewer significant bits (i.e. it starts in the first 4GB) as a
64-bit pointer, but that the code in initramfs.c is testing the value as
a 32-bit scalar type. I don't know about lmo but in kernel.org 2.6.29,
it's declared in include/linux/initrd.h as an extern unsigned long, not
a void *. Little endian builds wouldn't see such a problem.
Regards,
Kevin K.
[-- Attachment #2: Type: text/html, Size: 1557 bytes --]
next prev parent reply other threads:[~2009-05-03 9:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-30 19:41 initramfs breakage with 64-bits kernels? Florian Fainelli
2009-05-03 8:19 ` Geert Uytterhoeven
2009-05-03 9:24 ` Kevin D. Kissell [this message]
2009-05-03 9:42 ` Kevin D. Kissell
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=49FD62D5.5000803@paralogos.com \
--to=kevink@paralogos.com \
--cc=florian@openwrt.org \
--cc=geert@linux-m68k.org \
--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 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.