From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2cM9-00008r-0j for qemu-devel@nongnu.org; Fri, 04 Nov 2016 07:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2cM4-0007M0-KZ for qemu-devel@nongnu.org; Fri, 04 Nov 2016 07:08:20 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:36124) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2cM4-0007L6-D1 for qemu-devel@nongnu.org; Fri, 04 Nov 2016 07:08:16 -0400 Received: by mail-wm0-x230.google.com with SMTP id p190so43387884wmp.1 for ; Fri, 04 Nov 2016 04:08:16 -0700 (PDT) Date: Fri, 4 Nov 2016 11:08:13 +0000 From: Stefan Hajnoczi Message-ID: <20161104110813.GF9817@stefanha-x1.localdomain> References: <0f042e9b-f6a3-27c1-4ca0-94e13f8102d8@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Zs/RYxT/hKAHzkfQ" Content-Disposition: inline In-Reply-To: <0f042e9b-f6a3-27c1-4ca0-94e13f8102d8@gmx.net> Subject: Re: [Qemu-devel] alpha platform is missing files after initrd load List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dennis Luehring Cc: qemu-devel --Zs/RYxT/hKAHzkfQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > i don't know if its an qemu oder linux kernel problem >=20 > 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 sparc= 64 > platform using qemu >=20 > 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 >=20 > im starting qemu with >=20 > alpha-softmmu/qemu-system-alpha -m 1GB -nographic -monitor > telnet::4440,server,nowait -serial telnet::3000,server -kernel clfskernel > -append 'console=3DttyS0' -initrd big_initrd.cpio >=20 > 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-initr= amfs >=20 > i've uploaded my complete test here: > http://www.filedropper.com/testalpha-linux-470gcc-610 (~66MB) >=20 > 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 >=20 >=20 --Zs/RYxT/hKAHzkfQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJYHGwdAAoJEJykq7OBq3PI0pYH/RfOIGKICrFacLoD4k2VlOZN d6wdzDWKsyMVSUL4XtWD1j0kttyB9yUMwcIb1kbZmDGoHgP+U633Y0wjKm7sHk+G HqwIrC8r9DRFNeXC9x4kepAfMnicOqK/KL1rNOuyzoycvlIJ/vT9Zz2RvzBkY3YK iw+TWKrHE9HR6IP4Pi990GXbMaHDT+rYVPd2CP4pNTqRdGElqV78BPuBw4Le2Q53 0JENkXzSzpiNY1KifCnE25w93BkXqWtP1BIPYp/Lm9bOGePhac6cHF+1O3/xNEcI mzgVUTCcCzRBV7vF7YK9nP7mjDbeGf6g6HPwqL2/U/x/biBnSupDceTRuk392Pg= =sAUK -----END PGP SIGNATURE----- --Zs/RYxT/hKAHzkfQ--