Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45021C433F5 for ; Thu, 21 Oct 2021 02:14:21 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2CA4611F2 for ; Thu, 21 Oct 2021 02:14:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F2CA4611F2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D9D51833E3; Thu, 21 Oct 2021 04:14:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dooray.com header.i=@dooray.com header.b="w+FGL/8c"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 10804833E3; Thu, 21 Oct 2021 04:14:15 +0200 (CEST) Received: from mscreen.etri.re.kr (mscreen.etri.re.kr [129.254.9.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 29C44833D5 for ; Thu, 21 Oct 2021 04:14:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ckim@etri.re.kr Received: from unknown (HELO send002-relay.gov-dooray.com) (211.180.235.153) by 129.254.9.16 with ESMTP; 21 Oct 2021 11:14:00 +0900 X-Original-SENDERIP: 211.180.235.153 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: u-boot@lists.denx.de Received: from [10.162.225.112] (HELO smtp002-imp.gov-dooray.com) ([10.162.225.112]) by send002-relay.gov-dooray.com with SMTP id 44710bfa6170cce8; Thu, 21 Oct 2021 11:14:00 +0900 DKIM-Signature: a=rsa-sha256; b=w+FGL/8cebi7O6OAme/W8GH81z+Inj3OJFfmKU9aArG99p2cdjJOke5A9Yn3no9k6/E3YoSNPy fnZCChnNZ9mMEUYxah5HqeY8dkfyN5TrD7JXQQQRhhHnYC+BJm3gGZcNlAxTNyKLb1lMhuaprY47 yQrbgElSwQeGK/ckH/iOVb9cJiJMhjWgAn2qLNMxLbCtqgs9bcoKwQQf+jCOVrJpv0mWW3fo9y32 XSE4Bu0AoJktM+eFoEZTGTFb8e2pkduCVD9K8GAfdjFkwbgE2xNAnWL19RW32WBfQd75Q8liqYHi aDYSqma4vc7ZBq/sxVm/rJxriSfpifhvR6YflYpQ==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=1kYkX1Zat6Gjytr6ZnYqdwCHNIj0sOlMXNJz/GyCwbc=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp002-imp.gov-dooray.com with SMTP id 2e3ee2ab6170cce8; Thu, 21 Oct 2021 11:14:00 +0900 From: "Chan Kim" To: "U-Boot Mailing List" Subject: questions about mkimage and a good tutorial Date: Thu, 21 Oct 2021 11:13:59 +0900 Message-ID: <03f401d7c621$4f8a67d0$ee9f3770$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdfGH3zAOUNOgxlyRluP8VLJrjPm7g== Content-Language: ko Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hello all, I'm learning about u-boot these days and have a basic question about mkimage. I saw in a pdf document (opdenacker ) this command. mkimage -A arm -O linux -C none -T kernel \ -a 0x20008000 -e 0x20008000 \ -n "Linux-5.12.6" \ -d arch/arm/boot/zImage arch/arm/boot/uImage 1. It looks like I am supposed to run this command in the linux source director not u-boot source directory. Is it correct? 2. And in linux, by running make uImage, I can make uImage under arch/arm/boot/, buy why should we use this mkimage command? (I'm working on arm64 so I don't need uImage and I just run 'make Image') 3. I found I can install mkimage on ubuntu by 'sudo apt install u-boot-tools' but also found mkimage is compiled under tools (in u-boot). Then am I supposed to include the tools directory to PATH and use that version? If anyone knows a good hands-on tutorial about u-boot (from kernel, initrd, dtb build to u-boot build and use. hopefully for arm64. I'm hope for too much..), please share it here. Thank you! Chan Kim