From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: bcm4708-smartrg-sr400ac boot failures in next/arm-soc
Date: Sat, 9 Jan 2016 01:29:13 +0000 [thread overview]
Message-ID: <20160109012912.GS19062@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CANMBJr7+X0nj8-DLQ7vLLEowj1SbZxqqikHDBUP-GawZAG0a6w@mail.gmail.com>
On Fri, Jan 08, 2016 at 04:58:05PM -0800, Tyler Baker wrote:
> On 8 January 2016 at 16:21, Tyler Baker <tyler.baker@linaro.org> wrote:
> > I agree, and in my last reply I stated I did this. To be very
> > specific, I used "initrd=0x4000000,10M" which still did not work. Give
> > me a moment to reconfigure the scripts and I'll post and updated boot
> > log.
>
> Here is the boot log when using "initrd=0x4000000,10M" [1]. Obviously,
> it does resolve the 'RAMDISK: EOF while reading compressed data'
> error, but still fails to mount.
Okay, thanks. Things are better - there's another change in there.
We've gone from:
[ 0.156295] Trying to unpack rootfs image as initramfs...
[ 0.990981] rootfs image is not initramfs (read error); looks like an initrd
note the "read error" because we hit EOF while trying to read the
initramfs, which now has become:
[ 0.156226] Trying to unpack rootfs image as initramfs...
[ 0.993838] rootfs image is not initramfs (junk in compressed archive); looks like an initrd
I suspect the kernel has always complained about this, the difference
is that with BLK_DEV_RAM enabled, we will clean the initial rootfs,
which will return it to a pristine state after failed initramfs unpack.
Either way, turning off BLK_DEV_RAM doesn't _actually_ fix the problem -
it merely masks that the initramfs failed to properly unpack.
This is because unpack_to_rootfs() wants to consume all the data in the
passed image, so if you say it's 10MB in size, it will want 10MB of data.
So, I think the only proper solution is to set
"initrd=0x4000000,<actual-size>" and not "something that's larger"
which will prevent unpack_to_rootfs() reporting an error.
To prove this, if you look at a successful boot log from a kernel without
BLK_DEV_RAM enabled, I suspect you'll see:
Unpacking initramfs...
Initramfs unpacking failed: junk in compressed archive
in your log, which is just another symptom of the incorrect size being
passed.
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2016-01-09 1:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-08 22:33 bcm4708-smartrg-sr400ac boot failures in next/arm-soc Tyler Baker
2016-01-08 22:47 ` Arnd Bergmann
2016-01-08 22:50 ` Russell King - ARM Linux
2016-01-08 23:17 ` Tyler Baker
2016-01-08 23:44 ` Russell King - ARM Linux
2016-01-08 23:59 ` Tyler Baker
2016-01-09 0:07 ` Russell King - ARM Linux
2016-01-09 0:21 ` Tyler Baker
2016-01-09 0:58 ` Tyler Baker
2016-01-09 1:29 ` Russell King - ARM Linux [this message]
2016-01-09 1:50 ` Tyler Baker
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=20160109012912.GS19062@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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