Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2B2CCE00CD8; Thu, 10 Jan 2019 14:36:09 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [40.107.0.48 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid X-Greylist: delayed 3625 seconds by postgrey-1.32 at yocto-www; Thu, 10 Jan 2019 14:36:07 PST Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00048.outbound.protection.outlook.com [40.107.0.48]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7FCB3E00CB0 for ; Thu, 10 Jan 2019 14:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ajXdOsTUODk+RG1DCtq05f8zAj8aOTTkDW0ancvP7EA=; b=L9OqWARg/eW6P3rpwLkXERjbrUWvT1wMswiv0Pv/zciOehccy9vYh6+diMw4NmBQ4jWazKTqPjZCFAn2Oy+ttFAd/NK52VKHn8UUBqO9utsTNRSl2vC9CTFNSEj6yfY6xjlVKvXVg4qKYDR59d5eO2qFd8J32wh9LlvryiLJz9I= Received: from DB7PR04MB4956.eurprd04.prod.outlook.com (20.176.234.80) by DB7PR04MB5386.eurprd04.prod.outlook.com (20.178.104.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.7; Thu, 10 Jan 2019 15:02:46 +0000 Received: from DB7PR04MB4956.eurprd04.prod.outlook.com ([fe80::2113:2a8c:2e6f:8445]) by DB7PR04MB4956.eurprd04.prod.outlook.com ([fe80::2113:2a8c:2e6f:8445%4]) with mapi id 15.20.1516.015; Thu, 10 Jan 2019 15:02:46 +0000 From: Daiane Angolini To: "meta-freescale@yoctoproject.org" Thread-Topic: [meta-freescale][PATCH] wic:mx8: Fix the image creation Thread-Index: AQHUqPWLW4GoRVnwE0OFNn8b1COIsg== Date: Thu, 10 Jan 2019 15:02:46 +0000 Message-ID: <20190110150224.28052-1-daiane.angolini@nxp.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [201.55.228.192] x-clientproxiedby: CP2PR80CA0084.lamprd80.prod.outlook.com (2603:10d6:102:14::22) To DB7PR04MB4956.eurprd04.prod.outlook.com (2603:10a6:10:19::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=daiane.angolini@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR04MB5386; 6:Yl4vATekjfPZMCZskkHrwtm30FqofX19LxtDTMn7Leoc0V8PHXWUajpDPg9pgcgPk/dKiBC/n0IJ99FW1nIPqbS4wA1fxlCN2nA9/lX7R4xy0s+4Xp1+amsNeKOSD3NSJ9qEa2rpirr4mqsnDr/Zp+wwJ8sTj7M7cFM9U3/ywHNOYhUyIFBnOk5KEAxYSByG6Mr93zev4LqlWxwuZd1ygS3atZuUwDwKFDMjRpr5mBy9CfWLGYq8QKhqvXSJ1HrwwcX+82onGndIQS5gKUsHhDRpITRfdpMByGxQhH5reU11XDBuq/GP6Hvwm0P5hmP7NKvfq1bd3wxUGNLuiJb/Z4jq4LmbhlLVTzXXC/6Lt1mL65qRhB6W2aYCdBe01vJvOPUYB8owZG2I7Ed8VphHFbnLqIOXgQkw6mG8/k6r16LLHlt6kJYoDP+RS3qNEC90Yrrg13jERQMfhSOGuXvw8w==; 5:oKkOf5xTfkYFg2cFLfaFcdI3nIh3tUtAXDKw1hsOtsE3s5acrxUDhcjY5LqlJlmbe4grxggA+7mcc/Rmvs8+XPWtVtPWUTRp6oCbquuFdO2D8yt5Z+k+up/Quhea1Bhw5H7ijbKEeW61etD/pOnX/oJarhkwM2zYyCBFr9bGMdeacnM5d5BamU49bRRiJHN0EcqZ9MssuX2NGEOsVOnkfA==; 7:xtMYqrpp3h0booTaCAAHyYXJDi+s5kjOXfxfvjQOw0n0ny1M6wbfpUOJFGRjFZPsY0f7j1ONOgkEJk+IpRLjuLo0m1AIbx6xO4dLDmVyS79m1e1paXPJuwlctt5VrUcBbfDIrRznwfJD8ZttVgqX9w== x-ms-office365-filtering-correlation-id: 0a03bba0-2ffc-474b-466f-08d6770cadef x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR04MB5386; x-ms-traffictypediagnostic: DB7PR04MB5386: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(93006095)(93001095)(3002001)(3231475)(944501520)(52105112)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:DB7PR04MB5386; BCL:0; PCL:0; RULEID:; SRVR:DB7PR04MB5386; x-forefront-prvs: 0913EA1D60 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(346002)(39860400002)(376002)(189003)(199004)(26005)(71200400001)(81166006)(99286004)(5660300001)(4326008)(66066001)(2351001)(2616005)(3846002)(25786009)(6116002)(6916009)(68736007)(36756003)(81156014)(256004)(575784001)(7736002)(50226002)(186003)(476003)(8936002)(8676002)(305945005)(44832011)(486006)(6486002)(52116002)(5640700003)(6436002)(6512007)(53936002)(102836004)(386003)(6506007)(105586002)(316002)(97736004)(14454004)(2906002)(86362001)(1076003)(71190400001)(106356001)(478600001)(2501003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB5386; H:DB7PR04MB4956.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yLBHhduRVQKP+B8ztKDJTya+yqnoTPGFcGfLVxj8KZSXb4+wr2TkY4saUA5XqmzbhS3iVFVFjwKpyg6IWIyUjwOqVtmpqUys4saacxtd2+qjb+C+yuD6hx+qQfekBmsWV+YRRAIuWjpLsoY2dOwFzoOogLTJR3OfzbEo34IGPO9Wl2ioMMzGiL9GbmrME9/VRP1YVD/UQLDI/1qGBbKKHmUaCrajmPkrwGR7gYerApIf+MmK3ufUVJ3B+TTLqXwEIBhviagYUiD0AJwCiC9txRnY5wpLHvMPyqdIriP0Rb2QZBYnvC+jXCyCq3M/j/HE spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a03bba0-2ffc-474b-466f-08d6770cadef X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jan 2019 15:02:45.0989 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5386 Subject: [PATCH] wic:mx8: Fix the image creation X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2019 22:36:09 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable imx8 family boards use u-boot as boot loader in addition to some other binaries. The final bootloader binary is gathered by mkimage into a file called imx-boot. Add the wks file to create the wic image tailored for imx8 family. Fix the symbolic link file create to point to imx-boot (so it works for all the imx8 flavors). Set the wks file as default for all imx8. Signed-off-by: Daiane Angolini --- conf/machine/include/imx-base.inc | 3 +++ recipes-bsp/imx-mkimage/imx-boot_0.2.bb | 2 +- recipes-bsp/u-boot/u-boot-imx_2017.03.bb | 2 +- wic/imx-imx-boot-bootpart.wks | 19 +++++++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 wic/imx-imx-boot-bootpart.wks diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-b= ase.inc index 572e8e5e..005b71e1 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc @@ -301,7 +301,10 @@ WKS_FILE_DEPENDS ?=3D " \ bmap-tools-native \ " =20 +WKS_FILE_DEPENDS_mx8 +=3D "imx-boot" + SOC_DEFAULT_WKS_FILE ?=3D "imx-uboot-bootpart.wks" +SOC_DEFAULT_WKS_FILE_mx8 ?=3D "imx-imx-boot-bootpart.wks" SOC_DEFAULT_WKS_FILE_mxs ?=3D "imx-uboot-mxs-bootpart.wks.in" =20 WKS_FILE ?=3D "${SOC_DEFAULT_WKS_FILE}" diff --git a/recipes-bsp/imx-mkimage/imx-boot_0.2.bb b/recipes-bsp/imx-mkim= age/imx-boot_0.2.bb index 5ffddd0e..b232ed52 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_0.2.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_0.2.bb @@ -180,7 +180,7 @@ do_deploy() { install -m 0644 ${S}/${BOOT_CONFIG_MACHINE}-${target} ${DEPLOYDIR} done cd ${DEPLOYDIR} - ln -sf ${BOOT_CONFIG_MACHINE}-${IMAGE_IMXBOOT_TARGET} ${BOOT_CONFIG_MA= CHINE} + ln -sf ${BOOT_CONFIG_MACHINE}-${IMAGE_IMXBOOT_TARGET} ${BOOT_NAME} cd - } addtask deploy before do_build after do_compile diff --git a/recipes-bsp/u-boot/u-boot-imx_2017.03.bb b/recipes-bsp/u-boot/= u-boot-imx_2017.03.bb index 705ff164..86eca196 100644 --- a/recipes-bsp/u-boot/u-boot-imx_2017.03.bb +++ b/recipes-bsp/u-boot/u-boot-imx_2017.03.bb @@ -35,7 +35,7 @@ do_deploy_append_mx8m() { install -d ${DEPLOYDIR}/${BOOT_TOOLS} install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DT= B_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOY= DIR}/${BOOT_TOOLS}/mkimage_uboot - install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEP= LOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} + install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEP= LOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin fi done unset j diff --git a/wic/imx-imx-boot-bootpart.wks b/wic/imx-imx-boot-bootpart.wks new file mode 100644 index 00000000..8bbcd6c0 --- /dev/null +++ b/wic/imx-imx-boot-bootpart.wks @@ -0,0 +1,19 @@ +# short-description: Create SD card image with a boot partition +# long-description: +# Create an image that can be written onto a SD card using dd for use +# with i.MX SoC family +# It uses u-boot +# +# The disk layout used is: +# - ---------- -------------- -------------- +# | | imx-boot | boot | rootfs | +# - ---------- -------------- -------------- +# ^ ^ ^ ^ +# | | | | +# 0 33kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10M= iB) +# +part u-boot --source rawcopy --sourceparams=3D"file=3Dimx-boot" --ondisk m= mcblk --no-table --align 33 +part /boot --source bootimg-partition --ondisk mmcblk --fstype=3Dvfat --la= bel boot --active --align 4096 --size 16 +part / --source rootfs --ondisk mmcblk --fstype=3Dext4 --label root --alig= n 4096 + +bootloader --ptable msdos \ No newline at end of file --=20 2.17.1