Received: from eggs.gnu.org ([208.118.235.92]:39243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYXjM-00010i-G8 for qemu-devel@nongnu.org; Sat, 04 May 2013 04:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYXjL-0004f3-Jc for qemu-devel@nongnu.org; Sat, 04 May 2013 04:22:08 -0400 Received: from zose-mta12.web4all.fr ([178.33.204.89]:49882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYXjL-0004cq-DY for qemu-devel@nongnu.org; Sat, 04 May 2013 04:22:07 -0400 Message-ID: <5184C52B.2070600@tribudubois.net> Date: Sat, 04 May 2013 10:22:03 +0200 From: Jean-Christophe DUBOIS MIME-Version: 1.0 References: <1367438026-27573-1-git-send-email-jcd@tribudubois.net> <51825E30.5000802@suse.de> <5183D4E3.9060505@tribudubois.net> <5183D5D7.3010805@suse.de> <5183E020.2030209@tribudubois.net> <5183E8C1.5070506@suse.de> In-Reply-To: <5183E8C1.5070506@suse.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Andreas_F=E4rber?= Cc: qemu-devel@nongnu.org On 05/03/2013 06:41 PM, Andreas F=E4rber wrote: > CC tests/libi2c-imx.o > LINK tests/tmp105-test > CC tests/ds1338-test.o > LINK tests/ds1338-test > GTESTER check-qtest-arm > Kernel image must be specified > Without seeing your code and since tmp105-test is working on my side, I > can only guess that your ds1338-test is starting either your own machin= e > or some machine that terminates with above error. the ds1338-test.c code is very similar to the tmp105-test.c code. The tmp105-test.c code starts a n800 machine while the ds1338-test.c=20 starts a imx25_3ds machine (to get the i.MX I2C device, it seems natural)= . Nowhere in the tmp105-test.c code is any kernel or initrd file=20 specified. So I did the same with ds1338-test.c. But then "make check" is complaining the kernel is missing ... So it seems the n800 allows qemu to start even if no parameters (ram=20 size, kernel file, ...) are provided (you can actually confirm this by=20 running "qemu-system-arm -machine n800"). This is not the default=20 behavior for most implemented platform (including imx25_3ds) that will=20 refuse to start if no parameter is given. Is there a new requirement mandating platforms to start with guessed=20 parameters if not provided on the command line in order to be compatible=20 with qtest? > > The solution is to only mandate -kernel, -initrd, -dtb, etc. in the > machine init function if !qtest_enabled() or so. I am calling arm_load_kernel() with a pointer to a "struct arm_boot_info"= . The first thing done by arm_load_kernel() is to check for the kernel=20 parameter without checking for qtest_enable() and all. /* Load the kernel. */ if (!info->kernel_filename) { fprintf(stderr, "Kernel image must be specified\n"); exit(1); } Do you mean arm_load_kernel() should test for qtest_enable() or should I=20 call arm_load_kernel() only if !qtest_enable() (there is not much=20 platform checking for qtest_enable() at this time and it seems somebody=20 need to set the "entry" field in the info struct).