From patchwork Thu Jun 28 03:38:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 935909 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="B8v0m+xA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41GQTj4Znnz9ryk for ; Thu, 28 Jun 2018 13:38:01 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 529A6C21D83; Thu, 28 Jun 2018 03:34:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6E742C21DFF; Thu, 28 Jun 2018 03:33:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 34C74C21D56; Thu, 28 Jun 2018 03:33:26 +0000 (UTC) Received: from mail-pl0-f49.google.com (mail-pl0-f49.google.com [209.85.160.49]) by lists.denx.de (Postfix) with ESMTPS id 09EA4C21DF3 for ; Thu, 28 Jun 2018 03:33:22 +0000 (UTC) Received: by mail-pl0-f49.google.com with SMTP id w8-v6so2046552ply.8 for ; Wed, 27 Jun 2018 20:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=q0l5Fb0S1VLmF9E/XrvhjW8wKa+OZBZ4sKEISEovSlo=; b=B8v0m+xAbpJ6bQgqfrH5NTilXcIveeqVcFdM/4kAtuQu5JOCVGPYplBNE32m+I9SdL 6d5TlX7o7va1gbK8Jo4OuLBIWTJRw7a27LzyfUV7E7ucc2yLo7MLY+3nHv0mAaYLg+Ik k1BCuoBwLbbawKksvReTwRSJhRaIkHIGkMBYt5z4uYMGSmuZpBUYKXCm0y+aVnxTPHWQ 24DQkU2IpsYb7j7RCB8BOtI77TNDZH6UyXupy/bn5SkcnPj8Gr3m7X5fjGShpReg9+Hu 91Bu15zt9Ij61V89tyUn4BkqVTqOat1Av0M8ni4sTbeyky/YmzT9Z0n8Dn2J6to93IY9 G87w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=q0l5Fb0S1VLmF9E/XrvhjW8wKa+OZBZ4sKEISEovSlo=; b=SuQeoRNhGe4X1y+OU0V+A6PgEcTUtvXfErGZr5KsMsmVzL0/QNwOZOPr0LgqxIb6QI 7IY1iY9xyjKBc6PTltHkLOStqgVDn3eTOogNNi6vFhYleFc6E1ime+oC/1f4MY1qFncw 9f2yBEgr7/MeI/I+jnua4GPF9BZ3l+Ebah9jIedll9BcqySlwwzo+pNbAOO4V+uC7+qb 38av98qpkF7kzUfsJTa8DDmZntyqcprX4eu+1Ovmf6wmdDwGoHldd9x+KBbgzqZvydyx oljUc0B3f5CXwgOtuH9vtx2wykJ0qXOU9sVQR1EsuLO15d6otG6XsmDNVqQSrNS0D8jN FauA== X-Gm-Message-State: APt69E0v4q89KHJkdTHv0q2VOUA68YgI+uDJLOiep1UKi+GCDgTaPhNV NbStghWqBFPVDVw8XUvBMzM= X-Google-Smtp-Source: ADUXVKIWxjYxfnF7SL6CuDWzOwA3PKt0dBLp3/y5fFe7GPXyG22pb3NCAGxPBDp2wjjlRAuZP2PtrA== X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr8699986plb.274.1530156800735; Wed, 27 Jun 2018 20:33:20 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id r65-v6sm9321231pfg.65.2018.06.27.20.33.19 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 20:33:19 -0700 (PDT) From: Bin Meng To: Simon Glass , Alexander Graf , Heinrich Schuchardt , U-Boot Mailing List Date: Wed, 27 Jun 2018 20:38:06 -0700 Message-Id: <1530157086-4538-6-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1530157086-4538-1-git-send-email-bmeng.cn@gmail.com> References: <1530157086-4538-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v3 6/6] doc: vxworks: Mention chain-loading an x86 kernel via 'bootefi' X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This updates the doc to mention chain-loading an x86 kernel via 'bootefi' command, along with several typos fix. Signed-off-by: Bin Meng Reviewed-by: Simon Glass Reviewed-by: Alexander Graf --- Changes in v3: None Changes in v2: None doc/README.vxworks | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/doc/README.vxworks b/doc/README.vxworks index 1aa8e44..3e08711 100644 --- a/doc/README.vxworks +++ b/doc/README.vxworks @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0+ # # Copyright (C) 2013, Miao Yan -# Copyright (C) 2015, Bin Meng +# Copyright (C) 2015-2018, Bin Meng VxWorks Support =============== @@ -15,10 +15,13 @@ For booting old kernels (6.9.x) on PowerPC and ARM, and all kernel versions on other architectures, 'bootvx' shall be used. For booting VxWorks 7 kernels on PowerPC and ARM, 'bootm' shall be used. +With CONFIG_EFI_LOADER option, it's possible to chain load a VxWorks x86 kernel +via the UEFI boot loader application for VxWorks loaded by 'bootefi' command. + VxWorks 7 on PowerPC and ARM --------------------------- -From VxWorks 7, VxWorks starts adopting device tree as its hardware decription -mechansim (for PowerPC and ARM), thus requiring boot interface changes. +From VxWorks 7, VxWorks starts adopting device tree as its hardware description +mechanism (for PowerPC and ARM), thus requiring boot interface changes. This section will describe the new interface. For PowerPC, the calling convention of the new VxWorks entry point conforms to @@ -53,6 +56,9 @@ gatewayip, hostname, othbootargs. When using 'bootm', just define "bootargs" in the environment and U-Boot will handle bootline fix up for the kernel dtb automatically. +When using 'bootefi' to chain load an x86 kernel, the UEFI boot loader +application for VxWorks takes care of the kernel bootline preparation. + Serial console -------------- It's very common that VxWorks BSPs configure a different baud rate for the @@ -63,9 +69,9 @@ look like VxWorks hangs somewhere as nothing outputs on the serial console. x86-specific information ------------------------ -Before loading an x86 kernel, one additional environment variable need to be -provided. This is "vx_phys_mem_base", which represent the physical memory -base address of VxWorks. +Before direct loading an x86 kernel via 'bootvx', one additional environment +variable need to be provided. This is "vx_phys_mem_base", which represent the +physical memory base address of VxWorks. Check VxWorks kernel configuration to look for LOCAL_MEM_LOCAL_ADRS. For VxWorks 7, this is normally a virtual address and you need find out its