From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6698555328899842048 X-Received: by 2002:a2e:8197:: with SMTP id e23mr16327620ljg.28.1559629709197; Mon, 03 Jun 2019 23:28:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:4c27:: with SMTP id u7ls1858525lfq.5.gmail; Mon, 03 Jun 2019 23:28:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/Yd3zFZ6MKe3tE1nV+SHpt7bap8i8cv0/PR5PqO0GijN1XmT8ZLDZEOUERM0agF8XtkhZ X-Received: by 2002:a05:6512:144:: with SMTP id m4mr15980427lfo.114.1559629708542; Mon, 03 Jun 2019 23:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559629708; cv=none; d=google.com; s=arc-20160816; b=qDSSbKM8sRJuunaVuIGst1Xf2JGKpeA9l7UVu1lLqxyUsxQCizoyjzTr6BFraGKsow 2REbqYsLVBEhtb6t88DPS1aN4hiEJp8puS6qnDAm9w7c1EO4t9522Enlzo8+voGJBtLG uE47MUMUvgsChYv18p639vYkW4M+qgKUMd6mTPMgjYrmFeO+qJdhZ0NVjitcbK4cgnxK 9vk+YB8/LZutBpYF9f5XCjdIJ7+KoieDlSKA6mqToTnfJBfNTQ+9f6DviM+72uN+k9ic 2jLEZ3vYEFT4Zgqx97dyvaS4VPXyDevyy9BH3iElYsZ3cf1PH3Ne+AENeFACoxLrpdCW HGCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=x5RUznPSQ8SRxFLrtdJk2HeYvzL44Sl6whbC/eKqreY=; b=uTvzOwU26ogfBAYtwqZNO7a3fnYoy7SkbCP8bLj7kbxVNAizd/+s5oRNP9I5PiH96x C5tKnrU9d5y4uo5wDal7VRWC5ZSxYfGzLCpA9IrlWGx6tmhxLztbwQlEobPu6XyWIF+w WHT3YGfWHzWRlEZN17T7YfEd2a2P2JJHPLTmYjn9g3IVQ+JQ5yBV2GNox0Nvte0A57hA s+ruposn9vhticK3LW3peFG3ryMHOUW5VBOpZtc/LuCdy1Txk9YaffZWWManVJCZ/xWc 6PjszT+9LDBfwrNz6YNlV+wbKyybjO/Ve86SV1ISlqQfFlJkMRXR7UfNhsU79ZcqSBFf EY0g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id c15si472976lfi.5.2019.06.03.23.28.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 23:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x546SRbV030917 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Jun 2019 08:28:27 +0200 Received: from [167.87.7.197] ([167.87.7.197]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x546SQUW031855; Tue, 4 Jun 2019 08:28:27 +0200 Subject: Re: [isar-cip-core] porting isar-cip-core to iwg20m To: daniel.sangorrin@toshiba.co.jp, cip-dev@lists.cip-project.org Cc: isar-users@googlegroups.com References: From: Jan Kiszka Message-ID: <7f7466fb-a307-076d-8ea4-8913fc02fbe9@siemens.com> Date: Tue, 4 Jun 2019 08:28:26 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: b2ctX8IXXOfo On 04.06.19 08:15, daniel.sangorrin@toshiba.co.jp wrote: > Hi Jan, > > I am trying to port isar-cip-core to the iwg20m board. > > So far I managed to create a WIC SDCard image with 2 partitions: > - boot: an VFAT partition to store the uImage and devicetree > - root: the root filesystem > [Note] u-boot.bin is installed on an SPI memory with a JTAG debugger, so it's not in the image. > > I would appreciate your help with a couple of problems: > > - The kernel is built correctly, but I need to transform it into an uImage. I guess I can install u-boot-tools and do a mkimage in some postinstall script, but isn't this supposed to be automatized? Why is that transformation needed or desired? > For example, in meta-debian, I just need to define KERNEL_IMAGETYPE=uImage and the UBOOT_ENTRYPOINT. The rest is done for me. > > - In case, I want to build u-boot (not strictly necessary but it would be good to have it), do I have to create a whole recipe including debian rules like in the jailhouse-images repository [1]!? Nope, just use u-boot-custom.inc, see meta-isar/recipes-bsp/u-boot/u-boot_2018.09.bb for an example. > In meta-debian, I just need to define a few variables (git repo, config, entrypoint) and the u-boot packages will be created automatically. Those scripts may be needed for very detailed customization (e.g. Trusted firmware), but the common case should be automatized. > [1] https://github.com/siemens/jailhouse-images/tree/master/recipes-bsp/u-boot > > - What is the correct way to specify the device tree for the kernel? > I added DTB_FILE="mydt.dtb" to my machine config, and then added that to IMAGE_BOOT_FILES. That worked, but is that the correct way to do it? There is no documentation about this. > > - For the kernel configuration, I want to use shmobile_defconfig (already in the kernel source) plus a few extra configurations that I have on another file. Is that possible? So far I had to concatenate my configurations to shmobile_defconfig which is redundant. We probably need to tune the recipes a bit, including in isar, to pick up an existing defconfig != "defconfig" - though that is now the default, only ARMv7 still has board-specific defconfigs. > > - How can I install the kernel into the boot partition? > Currently, the kernel binary and symbols are deployed into the the /boot folder of the "root" partition instead of the "boot" partition. I would like the /boot folder to be deployed into the FAT partition. And maybe also get fstab filled automatically. You want U-Boot distro boot. The kernel will then be picked up from the rootfs, and you do not need to move it manually. See other boards, e.g. the bananapi in upstream isar. Jan > > I send the actual code/metadata separately on another e-mail. > https://lists.cip-project.org/pipermail/cip-dev/2019-June/002409.html > > Thanks, > Daniel > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux