Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] qemu_riscv64_virt can't boot up with large cpio initial RAM filesystem
@ 2019-10-09  7:46 han_mao at c-sky.com
  2019-10-09 22:59 ` Arnout Vandecappelle
  0 siblings, 1 reply; 6+ messages in thread
From: han_mao at c-sky.com @ 2019-10-09  7:46 UTC (permalink / raw)
  To: buildroot

Hi,
I've got some troble when I tried to use init ram fs on riscv64 virt.
The default ext2 fs works fine. If I use cpio and init ram fs to
replace that. The kernel can boot up with small ram fs, but
a big ram fs(>100M) doesn't work.
kernel got into panic and report "junk within compressed archive"
static long __init flush_buffer(void *bufv, unsigned long len)
{
        char *buf = (char *) bufv;
        long written;
        long origLen = len;
        if (message)
                return -1;
        while ((written = write_buffer(buf, len)) < len && !message) {
                char c = buf[written];
                if (c == '0') {
                        buf += written;
                        len -= written;
                        state = Start;
                } else if (c == 0) {
                        buf += written;
                        len -= written;
                        state = Reset;
                } else
                        error("junk within compressed archive");
This check failed.
Someone knows how to solve this problem?

Thanks,
Mao Han
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20191009/f88a9d62/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-17 17:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2019100915262320629523@c-sky.com>
2019-10-15  0:53 ` [Buildroot] qemu_riscv64_virt can't boot up with large cpio initial RAM filesystem Alistair Francis
2019-10-16 10:48   ` Mao Han
2019-10-17 17:30     ` Alistair Francis
2019-10-09  7:46 han_mao at c-sky.com
2019-10-09 22:59 ` Arnout Vandecappelle
2019-10-10  1:41   ` Mao Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox