qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Dennis Luehring <dl.soluz@gmx.net>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] alpha platform is missing files after initrd load
Date: Fri, 4 Nov 2016 11:08:13 +0000	[thread overview]
Message-ID: <20161104110813.GF9817@stefanha-x1.localdomain> (raw)
In-Reply-To: <0f042e9b-f6a3-27c1-4ca0-94e13f8102d8@gmx.net>

[-- Attachment #1: Type: text/plain, Size: 2397 bytes --]

On Thu, Oct 20, 2016 at 12:45:37PM +0200, Dennis Luehring wrote:
> qemu: 2.7.x (git head)
> platform: Alpha (Clipper)

Two options:

1. Not many people use Alpha.  You may need to debug this yourself by
   learning about the Linux alpha boot protocol (where the initramfs is
   loaded and how big that region of memory may be).  Then you can
   verify the memory contents after QEMU has loaded the
   kernel/initramfs using monitor commands to read memory.  You may need
   to look at QEMU's kernel/initramfs loading code to see what it's
   doing.

2. If it worked in a previous QEMU version, please use git-bisect(1) to
   find out which commit broke it.

Good luck!

> kernel: 4.7.0
> gcc: 6.1
> 
> i don't know if its an qemu oder linux kernel problem
> 
> i've got an ~360MB big_initrd.cpio and it sometimes happen(seems so) that
> there are files missing after the kernel loaded the initrd
> this does not happen with the same programs/initrd compiled for the sparc64
> platform using qemu
> 
> i've got a small C/C++-based init that prints some infos about the system
> and
> prints the content of the /tools/bin folder and there a some files missing
> that are
> definitely in the cpio file
> 
> im starting qemu with
> 
> alpha-softmmu/qemu-system-alpha -m 1GB -nographic -monitor
> telnet::4440,server,nowait -serial telnet::3000,server -kernel clfskernel
> -append 'console=ttyS0' -initrd big_initrd.cpio
> 
> i've found a problem description on stackoverflow going in the same
> direction but im not using an in-kernel-ramfs
> http://stackoverflow.com/questions/31524636/files-disappearing-from-initramfs
> 
> i've uploaded my complete test here:
> http://www.filedropper.com/testalpha-linux-470gcc-610 (~66MB)
> 
> containing files:
> big_initrd.cpio -> the big cpio which misses files after load
> clfskernel -> linux 4.7.0 (default settings)
> config -> used config
> init.cpp -> my init
> initrd.cpio -> only kernel+init cpio
> kernel.out.txt -> output of the kernel and init
> start_big.sh -> my starting script for qemu loading big_initrd.cpio
> start_small.sh -> my starting script for qemu loading initrd.cpio
> System.map -> kernel map file
> tools_dir_after_load.txt -> files in /tools/bin (copy&paste+sort from
> kernel.out.txt printdir /tools/bin)
> tools_dir_in_cpio.txt -> files in the cpio:/tools/bin
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2016-11-04 11:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-20 10:45 [Qemu-devel] alpha platform is missing files after initrd load Dennis Luehring
2016-11-04 11:08 ` Stefan Hajnoczi [this message]
2016-11-04 16:37   ` Richard Henderson
2016-11-04 19:40     ` Laszlo Ersek
2016-11-04 21:08       ` Richard Henderson
2016-11-07  7:37         ` Dennis Luehring
2016-11-07 14:12           ` Laszlo Ersek
2016-11-07 14:38             ` Dennis Luehring
2016-11-07 15:56               ` Laszlo Ersek
2016-11-07 16:11                 ` Dennis Luehring
2016-11-07 17:21                   ` Laszlo Ersek
2016-11-09  6:34                     ` Dennis Luehring
2016-11-11  6:49                       ` Dennis Luehring
2016-11-07  7:35       ` Dennis Luehring
2016-11-07 14:15         ` Laszlo Ersek
2016-11-07 14:18           ` Laszlo Ersek
2016-11-07 15:16           ` Dennis Luehring

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=20161104110813.GF9817@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=dl.soluz@gmx.net \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).