From: Richard Purdie <rpurdie@rpsys.net>
To: Lennert Buytenhek <buytenh@wantstofly.org>,
Sergey Smirnov <svs1957@gmail.com>
Cc: Bill Gatliff <bgat@billgatliff.com>,
linux-kernel@vger.kernel.org, bugme-daemon@bugzilla.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
linux-arm-kernel@lists.arm.linux.org.uk,
Russell King <rmk@arm.linux.org.uk>
Subject: Re: [Bugme-new] [Bug 9217] New: CONFIG_CMDLINE doesn't pass to kernel
Date: Thu, 25 Oct 2007 14:43:36 +0100 [thread overview]
Message-ID: <1193319816.6167.45.camel@localhost.localdomain> (raw)
In-Reply-To: <20071025122303.GB7543@xi.wantstofly.org>
On Thu, 2007-10-25 at 14:23 +0200, Lennert Buytenhek wrote:
> On Wed, Oct 24, 2007 at 10:35:33PM -0500, Bill Gatliff wrote:
>
> > >Something broke CONFIG_CMDLINE of ARM (at least) between 2.6.22 and 2.6.23.
> > >
> > >I don't know whether it was an ARM patch one of those kernel-wide changes.
> > >We have futzed with the command-line parsing a bit recently, but the 2.6.23
> > >changelog doesn't suggest anything obvious.
> >
> > What does the affected system's bootloader pass in r2? If it's nonzero,
> > ARM's 2.6.23 may interpret it as being an ATAGS pointer. And when that
> > happens, the system prefers the ATAGS over CONFIG_CMDLINE.
> >
> > There's sanity checking in __vet_atags, but maybe it isn't enough.
> > Other than that, I can't see anything yet.
>
> If this is the SHARP Shepherd (which seems to be the Zaurus SL-C750,
> which looks like it's the one the submitter is using), it's not setting
> boot_params at all:
>
> MACHINE_START(SHEPHERD, "SHARP Shepherd")
> .phys_io = 0x40000000,
> .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
> .fixup = fixup_corgi,
> .map_io = pxa_map_io,
> .init_irq = pxa25x_init_irq,
> .init_machine = corgi_init,
> .timer = &pxa_timer,
> MACHINE_END
The Zaurus has an insane bootloader which doesn't pass any sane values,
it doesn't support the right (well, any) machine number and the
commandline it passes is unchangeable and bogus too. The approach has
always therefore been to pretend it doesn't exist and used a commandline
compiled into the kernel.
Could the original bug reporter please report what commandline the
kernel actually uses please? In theory it can only be either:
* the one being compiled in with CONFIG_CMDLINE
* the one hardcoded into the bootloader
but I'd be surprised it boots at all with the latter!
Cheers,
Richard
next prev parent reply other threads:[~2007-10-25 13:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-9217-10286@http.bugzilla.kernel.org/>
2007-10-25 2:57 ` [Bugme-new] [Bug 9217] New: CONFIG_CMDLINE doesn't pass to kernel Andrew Morton
2007-10-25 3:35 ` Bill Gatliff
2007-10-25 12:23 ` Lennert Buytenhek
2007-10-25 13:43 ` Richard Purdie [this message]
2007-10-25 20:02 ` Andrew Morton
2007-10-25 21:54 ` Richard Purdie
2007-10-28 22:46 ` Richard Purdie
2007-10-28 22:53 ` Russell King
2007-10-25 5:26 ` mwester
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=1193319816.6167.45.camel@localhost.localdomain \
--to=rpurdie@rpsys.net \
--cc=akpm@linux-foundation.org \
--cc=bgat@billgatliff.com \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=buytenh@wantstofly.org \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
--cc=svs1957@gmail.com \
/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