From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB3C7C47404 for ; Sat, 5 Oct 2019 15:49:49 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 70E3C2133F for ; Sat, 5 Oct 2019 15:49:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Tz2OBEzn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70E3C2133F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:57500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGmJY-0001VF-1f for qemu-devel@archiver.kernel.org; Sat, 05 Oct 2019 11:49:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46539) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGmHl-0008Jw-HB for qemu-devel@nongnu.org; Sat, 05 Oct 2019 11:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGmHj-0007xx-JO for qemu-devel@nongnu.org; Sat, 05 Oct 2019 11:47:57 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:34422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGmHj-0007vr-Dm; Sat, 05 Oct 2019 11:47:55 -0400 Received: by mail-wr1-x444.google.com with SMTP id j11so4697848wrp.1; Sat, 05 Oct 2019 08:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+KZkCjnpWsck0vFdcK+J/MedLmjgtJnly7P8Steiz+s=; b=Tz2OBEznFhNeytBK64c7xOLNFyT6xWjSeKR/RSxfEHRIFkCQBXsHyqtWiILBWwA3lU GXshkZcYSomlj/2AdpzVQsDQ5NbkZ6A2hz9tuhHnro14QFMm1BPWhBpJTBIFC2WhUhtr SuxOOIOCj/IHhp4h915BQqbnnyERKqcYrrrpW27XDCZNhmONJCM92i88r0pVxUxNBO4T 4u/nWyKBDRCAL8WfBxmy4KPFDprsdFFIVikg5Wye4sZgNMU/wrxDE1xkcMuikA1THrKA 48XsCiOnjHWAvT0esQpvLNokuL+aBXSDAmkIBzjWSj+VWt3GXmw4XTufKN2FmSKxaNut UG3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=+KZkCjnpWsck0vFdcK+J/MedLmjgtJnly7P8Steiz+s=; b=Y0Kve6Btmf46g0gQecavx1DEDS4girCehDLP/ydD2tmizusczVoC5TIzn/quddUEiS Yhxc+ILFWWKzl4dZTSYjLTP6kCUg2mYKjKFlXuQ76q5xRW9bCGATgHSmdnGMAcmwL+wk UrjKO+x/N/IefyVHAPLJ4nUygIe5kLU/uDYXDVmGpNudWBkjuE5nhCnmbW6ITBM1WVlp xE/XLwd6vjdVRogaHDADPuictodisDWZyDcJpxt7W4lRhlQqLOKiR3l4fdCXQbKtp8LT ZLv0ukzE6br85BVUcT6OvVSFvxFy5IHVqQMOG6cwzgnqQIOjl5GPqc2fYH4SVYEVwGWs LwOQ== X-Gm-Message-State: APjAAAWTurqpgf6IdrSFsaopgy2Q/+G5hLoMsjWKuuS7bEU3PaO0g3ey i3Ha8F5TBjloDqOfLg0wcsPBeQKFaDY= X-Google-Smtp-Source: APXvYqx/8wd1T1wt3UEpJYA+U1zY5ufG+rbSM0EWYMYk9G2WwJrCkHgLB3k5ELn686/q+eUTEmHT7Q== X-Received: by 2002:adf:f64f:: with SMTP id x15mr16461725wrp.25.1570290471559; Sat, 05 Oct 2019 08:47:51 -0700 (PDT) Received: from localhost.localdomain (46.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.46]) by smtp.gmail.com with ESMTPSA id o22sm24542294wra.96.2019.10.05.08.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2019 08:47:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/5] hw/arm/exynos4210: Add acceptance tests to the SMDKC210 board Date: Sat, 5 Oct 2019 17:47:43 +0200 Message-Id: <20191005154748.21718-1-f4bug@amsat.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-BeenThere: qemu-devel@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?q?Fr=C3=A9d=C3=A9ric=20Basse?= , Peter Maydell , Eduardo Habkost , Evgeny Voevodin , Bartlomiej Zolnierkiewicz , Igor Mitsyanko , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Krzysztof Kozlowski , Jean-Christophe Dubois , qemu-arm@nongnu.org, Dmitry Solodkiy , Cleber Rosa , Maksim Kozlov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Guenter Roeck Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi all, 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. 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. Frédéric Basse used this board last year: https://fredericb.info/2018/03/emulating-exynos-4210-bootrom-in-qemu.html I'll have a look a these particular commits he added: - https://github.com/frederic/qemu-exynos-bootrom/commit/9be5c9f2253dbc04ee sd: add sd clock support to SDHC_CLKCON - https://github.com/frederic/qemu-exynos-bootrom/commit/6f045949ee2fdec624 sd: always reply to ACMD41 (SD_APP_OP_COND) Guenter also carries on this patch: - https://github.com/groeck/qemu/commit/0a80543cc910d hw/timer/exynos4210_mct: Initialize timer before starting it 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. It might also be interesting to use Krzysztof's initramfs image: https://github.com/krzk/tools/blob/master/run-qemu.sh#L29 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/ If you want to run the Avocado tests, you need these other patches pending review: - https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg06439.html "tests/boot_linux_console: Extract the gunzip() helper" - 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) Regards, Phil. Based-on: 20190926173428.10713-16-f4bug@amsat.org Philippe Mathieu-Daudé (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 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(-) -- 2.20.1