From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49077)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1bxAr2-0007zs-Jt
for qemu-devel@nongnu.org; Thu, 20 Oct 2016 06:45:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bxAqy-0008DV-MV
for qemu-devel@nongnu.org; Thu, 20 Oct 2016 06:45:44 -0400
Received: from mout.gmx.net ([212.227.17.22]:50704)
by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from ) id 1bxAqy-0008DG-Eg
for qemu-devel@nongnu.org; Thu, 20 Oct 2016 06:45:40 -0400
Received: from [192.168.178.27] ([109.192.248.236]) by mail.gmx.com (mrgmx103)
with ESMTPSA (Nemesis) id 0Lm2lZ-1cWVjk41yL-00ZhHq for
; Thu, 20 Oct 2016 12:45:38 +0200
From: Dennis Luehring
Message-ID: <0f042e9b-f6a3-27c1-4ca0-94e13f8102d8@gmx.net>
Date: Thu, 20 Oct 2016 12:45:37 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [Qemu-devel] alpha platform is missing files after initrd load
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: qemu-devel
qemu: 2.7.x (git head)
platform: Alpha (Clipper)
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