From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:adf:e804:0:0:0:0:0 with SMTP id o4csp3545947wrm; Mon, 7 Oct 2019 02:10:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxREedgDf7LrOm1KYygxSKJPj8OSMOVl0zMMSG4D7SiKSpP5jUHS9WKlkSvsrJMBT3wxo1 X-Received: by 2002:a05:6402:713:: with SMTP id w19mr27582387edx.126.1570439446787; Mon, 07 Oct 2019 02:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570439446; cv=none; d=google.com; s=arc-20160816; b=SexAT5AEP0SXP57dbveo6tacd5eK0btBNoS2h4+cWC3BOxaKiuqjHHw+azWkFa6iwv DzewgrXbFNvJO96Ew22EdmRLuNwJEi9c59Z0jbGFbeEUbfuN4HcCHREjkUFC8ErKuJ93 cFW/5lvh4RQJMlQURB1oRAhRmCcVXKuo72orR8tUemzoIbv9VSgas+3hk1xrJKUOU10+ mXglgzyXqiVeBWJSy3rIVy1pULeK4tSFS/kUFz4jhZATB3yjRbvGByBRw+087Zp1eknI jUsLzjHPLwIH7Eti459L8zth1nkbv3EtHoEcJUStb/4sG90OzgGLtGmQsrE6r0R17t9I zt+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date; bh=Y6nZ6LcRDjdVl8384Zn9eJ0wmkcvEHxhAf9Dve/iToI=; b=S9qIbTINmAxrvaTqpSkxM1zM7hlClJGeS6/xBD8LXzwPuMrDFF6DBtHaU7vqZICzb1 6Ty29akxh2NNlX4rMgC6UHE7DRbwrO+TALlZPscIlpap48LHyMQIGOxodvcqmyVPp4r9 d5Vym7XNwOsApNkZxJAiiv67QCS6D2xw/ZHpSZNqoBdBKGzbEl1ZpjlcPXJkvIiuzxZG oa4dLsBxwfrOeVVdqCCMUo+VFKcIBMgYNYWRYnDkue3NLwmXGh9A4vFTDA7I6/i+06AO gq2FKiyVPEYDaOWb7qjr0Hz73H6plyNCE6ceLIg9ekY3M4zKDm1lbTlhsO23lmuIo9L5 uNsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w43si8350021edd.332.2019.10.07.02.10.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Oct 2019 02:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from localhost ([::1]:41982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHP2T-0003zH-DH for alex.bennee@linaro.org; Mon, 07 Oct 2019 05:10:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52631) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHP2H-0003vD-7W for qemu-arm@nongnu.org; Mon, 07 Oct 2019 05:10:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHP2F-0000EL-TA for qemu-arm@nongnu.org; Mon, 07 Oct 2019 05:10:33 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHP2C-0000Df-UY; Mon, 07 Oct 2019 05:10:29 -0400 Received: by mail-wm1-f68.google.com with SMTP id 7so11776553wme.1; Mon, 07 Oct 2019 02:10:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Y6nZ6LcRDjdVl8384Zn9eJ0wmkcvEHxhAf9Dve/iToI=; b=e0kcuL4YRtOgY8mdy7pJbwqkXOz74dA1sAZR53/W1e8cQE+DDnq7a1Z+K8Izdrm5Io VypejqgdVG/7Mor8u9Yhy75Ufnzk953VebirjqTtZotemAhHKQZPOzCa5gD9Nfp59Xdv XpcZQ+7i745+2BQC3V3r1cCq4L2Dx4mOtnIfIa75JB23md5gTST1h17O3glzDUQVKuAF 2+xY8WxYcyA3efAbScV3tcqMbROb19l9b/bvtvupfoufNW2tGxCZzgE+lmRTHjfe24L3 wBjuViPCVwbNpDB/055KThs0gr+juR+YCq3AF6jVItUMZPwsM6/TloJnq4vXmmlr+XEx E3/g== X-Gm-Message-State: APjAAAXiC2/mqULyaGGJDEl+4MGwESGBm9KLNcoaq3aGyrc6pF6Yv/2z z5RhGEqqR+CzDNJjm1ftHsU= X-Received: by 2002:a1c:1aca:: with SMTP id a193mr20240492wma.120.1570439427628; Mon, 07 Oct 2019 02:10:27 -0700 (PDT) Received: from pi3 ([194.230.155.145]) by smtp.googlemail.com with ESMTPSA id r13sm24795572wrn.0.2019.10.07.02.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 02:10:26 -0700 (PDT) Date: Mon, 7 Oct 2019 11:10:24 +0200 From: Krzysztof Kozlowski To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: Re: [PATCH 0/5] hw/arm/exynos4210: Add acceptance tests to the SMDKC210 board Message-ID: <20191007091024.GC541@pi3> References: <20191005154748.21718-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191005154748.21718-1-f4bug@amsat.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.68 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?B?RnLDqWTDqXJpYw==?= Basse , Peter Maydell , Eduardo Habkost , Evgeny Voevodin , Bartlomiej Zolnierkiewicz , Igor Mitsyanko , qemu-devel@nongnu.org, Jean-Christophe Dubois , qemu-arm@nongnu.org, Dmitry Solodkiy , Cleber Rosa , Maksim Kozlov , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Guenter Roeck Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: 8IQVbkDHviCH On Sat, Oct 05, 2019 at 05:47:43PM +0200, Philippe Mathieu-Daud=C3=A9 wrote: > Hi all, >=20 > Yesterday Peter Maydell asked on IRC if I had any working Exynos4 > image. I looked at some old backuped notes and could boot Guenter > initrd with BusyBox. > I'll use this cover letter to share my notes, they might help to > have this board fully usable again. >=20 > This board is listed as "Odd Fixes". Since we have it covered, I > thought it was worthwhile to have it covered by tests to avoid > more regressions. >=20 > Fr=C3=A9d=C3=A9ric Basse used this board last year: > https://fredericb.info/2018/03/emulating-exynos-4210-bootrom-in-qemu.html >=20 > I'll have a look a these particular commits he added: >=20 > - https://github.com/frederic/qemu-exynos-bootrom/commit/9be5c9f2253dbc04= ee >=20 > sd: add sd clock support to SDHC_CLKCON >=20 > - https://github.com/frederic/qemu-exynos-bootrom/commit/6f045949ee2fdec6= 24 >=20 > sd: always reply to ACMD41 (SD_APP_OP_COND) >=20 > Guenter also carries on this patch: >=20 > - https://github.com/groeck/qemu/commit/0a80543cc910d >=20 > hw/timer/exynos4210_mct: Initialize timer before starting it >=20 > When booting a recent Linux kernel, the qemu message "Timer with period > zero, disabling" is seen, apparently because a timer is started before > being initialized. Fix the problem by initializing the offending timer > before starting it. >=20 > It might also be interesting to use Krzysztof's initramfs image: > https://github.com/krzk/tools/blob/master/run-qemu.sh#L29 I haven't been working on QEMU since 2 years but I can try to find that initramfs image. The recent initramfs I create, is for testing kernel under my Buildbot. I take standard initramfs from Arch ARM and then I add some more stuff: Source/instruction is here: https://github.com/krzk/tools/tree/master/buildbot/initramfs and the script making it for each boot is here: https://github.com/krzk/tools/blob/master/buildbot/build-slave-deploy.sh#L50 https://github.com/krzk/tools/blob/master/pi/make-initramfs.sh Best regards, Krzysztof >=20 > The 1st test added works fine, however the 2nd (SD card) is not > reliable so it is disabled. We might need to adapt the ADMA patch > Igor sent once: > https://patchwork.ozlabs.org/patch/181854/ >=20 > If you want to run the Avocado tests, you need these other patches > pending review: >=20 > - https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg06439.html > "tests/boot_linux_console: Extract the gunzip() helper" >=20 > - https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg06438.html > "python/qemu/machine: Allow to use other serial consoles than default" > (only for the 2nd disabled test) >=20 > Regards, >=20 > Phil. >=20 > Based-on: 20190926173428.10713-16-f4bug@amsat.org >=20 > Philippe Mathieu-Daud=C3=A9 (5): > tests/boot_linux_console: Add initrd test for the Exynos4210 > hw/sd/sdhci: Add a comment to distinct the i.MX eSDHC functions > hw/sd/sdhci: Add dummy Samsung SDHCI controller > hw/arm/exynos4210: Use the Samsung s3c SDHCI controller > tests/boot_linux_console: Add sdcard test for the Exynos4210 >=20 > hw/arm/exynos4210.c | 2 +- > hw/sd/sdhci.c | 68 +++++++++++++++++++- > include/hw/sd/sdhci.h | 2 + > tests/acceptance/boot_linux_console.py | 88 ++++++++++++++++++++++++++ > 4 files changed, 158 insertions(+), 2 deletions(-) >=20 > --=20 > 2.20.1 >=20