From nobody Tue Nov 18 09:16:26 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1608706942; cv=none; d=zohomail.com; s=zohoarc; b=YjhjEK6U0EMtq58WAL7jo97QKoI65JsyTtIkvYi8y0NK8F4ZZDEAKYj/TShAHc0iCrwe/e5jTlZZWBd5NDLPRhI4CXV/1HTP6+zbPAyzfHaDaCMdkhr0eyprPhlNZhTVbfjUMqglgIO9G3RBwRH/DPxZRKFMl14XRpCoY6pNOMA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608706942; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=ea300HOW8ofLPhUdOkUc6i+pqGe3xUrkR+h2FXHkW9Y=; b=BWSHBUg0x1j7rkYXVq80lGlxJ9exvRo71Gn5croHBSXezHSb5ImsE+RExVVQpHV1lfN84jCkc/iizQffnV1w18LCnN+TSSfMWnSShC7Nb5vD7Fa7wbJCuFwqDX5MS9GJN3VzewmoFwvnD4BHTG2SUF2xmiDZsqZNJDb+Gy3EXhA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1608706942581153.6248174717649; Tue, 22 Dec 2020 23:02:22 -0800 (PST) Received: from localhost ([::1]:38406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kryA8-0005Wq-Fq for importer@patchew.org; Wed, 23 Dec 2020 02:02:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krxbW-0006Az-2e; Wed, 23 Dec 2020 01:26:34 -0500 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:33419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krxbU-00021J-34; Wed, 23 Dec 2020 01:26:33 -0500 Received: by mail-qt1-x82c.google.com with SMTP id c14so10710240qtn.0; Tue, 22 Dec 2020 22:26:31 -0800 (PST) Received: from pek-vx-bsp2.wrs.com (unknown-124-94.windriver.com. [147.11.124.94]) by smtp.gmail.com with ESMTPSA id q32sm14518589qtb.0.2020.12.22.22.26.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Dec 2020 22:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ea300HOW8ofLPhUdOkUc6i+pqGe3xUrkR+h2FXHkW9Y=; b=ObNgumNLd+bUAV74TogOAQDr+wP6wP0cQ/3chCX/rBr85CIMBgPwd9bKTTYzJO5RMp 0glu1+cgLTwCKrJvdqEQOkLOFbEZSi3u+K04bWWakvj+SJ/KEOUvCmsMMkhuQrtB9d3K 4/ThHgYL10cOhRCqXGRCXInbelxmu43T/sZW0SyemAcpLpw1iUQP0iN/Zn2NhgVIXr+e XSJ6qZTkEGgzRvoKin+e1Zmd0dEZrHqIE3hd69/I2Dz4lcoQlVNAzV4qkAadLHGF4A2n y3NVmpqZ4S41x224+qLuyYrSHlI0SMWNxtdAxWm9Ltq43YZNi0lW4CJhUA/ymLiEH2sC jMAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ea300HOW8ofLPhUdOkUc6i+pqGe3xUrkR+h2FXHkW9Y=; b=BqfCBUbB18Q0Lo0PH5w/OPVIfkii5lnTamRNDWJtmyxBHSCsj9vs3dtKcxzriBEd3/ nWpxhhuLJF7MP2zeqnfS6nBA3a+aDuWR3dsZ4zHRq25vBpmOzXqfCG37+vpaSYxLedI8 aYVFYvpLjF9uNZDngshhcgjLIBAS1Cbya9h/Uf+NgeiNXANYdwT7xJWbvWRfhpNaRxue 12A55XzBFOY7LmFFs/d896j1w7AlaBJwfaZD6L0XhWU0nspa/ZCvlZlLJbbCggTZ3OpE g7ThCBfLI0BDyBRKsRyoxKaYoUuHgXmUtXlCH0gffCLQmb1TMbAnL8PudPTJCSk4Q65s k2XQ== X-Gm-Message-State: AOAM532Sb+WIn3Yy8Kw3w3KQJUiIIlWhE8aVx4p1+VTK9eLsbXq/Z6LH vYdLinyHYIBaIelByqHBT/Q= X-Google-Smtp-Source: ABdhPJwK81CR7eCyMnY6CNaSfSLP2Xv7Z/zqEPlnhEMLtzsldzR0hS7iAJVdWAcm7pbLNazeSbtv2A== X-Received: by 2002:ac8:5a90:: with SMTP id c16mr24560007qtc.331.1608704790879; Tue, 22 Dec 2020 22:26:30 -0800 (PST) From: Bin Meng To: Jean-Christophe Dubois , Peter Maydell , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v2 4/4] docs/system: arm: Add sabrelite board description Date: Wed, 23 Dec 2020 14:26:07 +0800 Message-Id: <1608704767-9317-5-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608704767-9317-1-git-send-email-bmeng.cn@gmail.com> References: <1608704767-9317-1-git-send-email-bmeng.cn@gmail.com> Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=bmeng.cn@gmail.com; helo=mail-qt1-x82c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Bin Meng Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @gmail.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Bin Meng This adds the target guide for SABRE Lite board, and documents how to boot a Linux kernel and U-Boot bootloader. Signed-off-by: Bin Meng Reviewed-by: Alex Benn=C3=A9e --- Changes in v2: - new patch: add sabrelite target guide docs/system/arm/sabrelite.rst | 119 ++++++++++++++++++++++++++++++++++++++= ++++ docs/system/target-arm.rst | 1 + 2 files changed, 120 insertions(+) create mode 100644 docs/system/arm/sabrelite.rst diff --git a/docs/system/arm/sabrelite.rst b/docs/system/arm/sabrelite.rst new file mode 100644 index 0000000..4c5d101 --- /dev/null +++ b/docs/system/arm/sabrelite.rst @@ -0,0 +1,119 @@ +Boundary Devices SABRE Lite (``sabrelite``) +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Boundary Devices SABRE Lite i.MX6 Development Board is a low-cost developm= ent +platform featuring the powerful Freescale / NXP Semiconductor's i.MX 6 Quad +Applications Processor. + +Supported devices +----------------- + +The SABRE Lite machine supports the following devices: + + * Up to 4 Cortex A9 cores + * Generic Interrupt Controller + * 1 Clock Controller Module + * 1 System Reset Controller + * 5 UARTs + * 2 EPIC timers + * 1 GPT timer + * 2 Watchdog timers + * 1 FEC ethernet controller + * 3 I2C controllers + * 7 GPIO controllers + * 4 SDHC storage controllers + * 4 USB 2.0 host controllers + * 5 ECSPI controllers + * 1 SST 25VF016B flash + +Please note above list is a complete superset the QEMU SABRE Lite machine = can +support. For a normal use case, a device tree blob that reprents a real wo= rld +SABRE Lite board, only exposes a subset of devices to the guest software. + +Boot options +------------ + +The SABRE Lite machine can start using the standard -kernel functionality +for loading a Linux kernel, U-Boot bootloader or ELF executable. + +Running Linux kernel +-------------------- + +Linux mainline v5.10 release is tested at the time of writing. To build a = Linux +mainline kernel that can be booted by the SABRE Lite machine, simply confi= gure +the kernel using the imx_v6_v7_defconfig configuration: + +.. code-block:: bash + + $ export ARCH=3Darm + $ export CROSS_COMPILE=3Darm-linux-gnueabihf- + $ make imx_v6_v7_defconfig + $ make + +To boot the newly built Linux kernel in QEMU with the SABRE Lite machine, = use: + +.. code-block:: bash + + $ qemu-system-arm -M sabrelite -smp 4 -m 1G \ + -display none -serial null -serial stdio \ + -kernel arch/arm/boot/zImage \ + -dtb arch/arm/boot/dts/imx6q-sabrelite.dtb \ + -initrd /path/to/rootfs.ext4 \ + -append "root=3D/dev/ram" + +Running U-Boot +-------------- + +U-Boot mainline v2020.10 release is tested at the time of writing. To buil= d a +U-Boot mainline bootloader that can be booted by the SABRE Lite machine, u= se +the mx6qsabrelite_defconfig with similar commands as described above for L= inux: + +.. code-block:: bash + + $ export CROSS_COMPILE=3Darm-linux-gnueabihf- + $ make mx6qsabrelite_defconfig + +Note we need to adjust settings by: + +.. code-block:: bash + + $ make menuconfig + +then manually select the following configuration in U-Boot: + + Device Tree Control > Provider of DTB for DT Control > Embedded DTB + +To start U-Boot using the SABRE Lite machine, provide the u-boot binary to +the -kernel argument, along with an SD card image with rootfs: + +.. code-block:: bash + + $ qemu-system-arm -M sabrelite -smp 4 -m 1G \ + -display none -serial null -serial stdio \ + -kernel u-boot + +The following example shows booting Linux kernel from dhcp, and uses the +rootfs on an SD card. This requies some additional command line parameters +for QEMU: + +.. code-block:: none + + -nic user,tftp=3D/path/to/kernel/zImage \ + -drive file=3Dsdcard.img,id=3Drootfs -device sd-card,drive=3Drootfs + +The directory for the built-in TFTP server should also contain the device = tree +blob of the SABRE Lite board. The sample SD card image was populated with = the +root file system with one single partition. You may adjust the kernel "roo= t=3D" +boot parameter accordingly. + +After U-Boot boots, type the following commands in the U-Boot command shel= l to +boot the Linux kernel: + +.. code-block:: none + + =3D> setenv ethaddr 00:11:22:33:44:55 + =3D> setenv bootfile zImage + =3D> dhcp + =3D> tftpboot 14000000 imx6q-sabrelite.dtb + =3D> setenv bootargs root=3D/dev/mmcblk3p1 + =3D> bootz 12000000 - 14000000 diff --git a/docs/system/target-arm.rst b/docs/system/target-arm.rst index bde4b8e..edd013c 100644 --- a/docs/system/target-arm.rst +++ b/docs/system/target-arm.rst @@ -83,6 +83,7 @@ undocumented; you can get a complete list by running arm/versatile arm/vexpress arm/aspeed + arm/sabrelite arm/digic arm/musicpal arm/gumstix --=20 2.7.4