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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 13232C433F5 for ; Mon, 3 Jan 2022 09:09:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2FDE08302B; Mon, 3 Jan 2022 10:09:54 +0100 (CET) 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=pass (2048-bit key; unprotected) header.d=dooray.com header.i=@dooray.com header.b="kZBQtCi1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BEBD28302B; Mon, 3 Jan 2022 10:09:52 +0100 (CET) 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 2267583003 for ; Mon, 3 Jan 2022 10:09:42 +0100 (CET) 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; 3 Jan 2022 18:09:39 +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 9f03565c61d2bd53; Mon, 03 Jan 2022 18:09:39 +0900 DKIM-Signature: a=rsa-sha256; b=kZBQtCi1d/o98xboUSHb6oWz4itrzE2DW1CBY8QVYHuyQ2gImdfs3x/vxHMkDukdfGW5fGs/lw or5BfpXtK/RQUnyNB1+jha8YwAhRM8H8TetfDZIu+8pVCaExw0wUW6xkl/dh0njK4oMB7pvbX1AU fwvXDK0E7YCjGfhiG88ZE4Jqm8sZApGHtBgoYcAkL3ookXH/EWRu4XAvJQ6S2mgvQ0HUvdJ9q3fK QSR/kHkssclZm/2Th/XXZ01byMPd+N5dJE5SjwQVJUl32cb9VtbSOd+e+/t50roLdfJ7ESMoB/Ap DXP8e5maGJYAfSW0gy3srb50Dwp7Xe78A3KHKQOw==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=0fU56HQ0AGwUzAcVr4hvNy6yBuvdWzYUUCPUkZzPIYI=; 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 5dc73c5861d2bd52; Mon, 03 Jan 2022 18:09:38 +0900 From: "Chan Kim" To: "'U-Boot Mailing List'" References: <003701d7f7e2$498743b0$dc95cb10$@etri.re.kr> In-Reply-To: <003701d7f7e2$498743b0$dc95cb10$@etri.re.kr> Subject: RE: How should I set load_address for fdt in the .its file... Date: Mon, 3 Jan 2022 18:09:37 +0900 Message-ID: <001501d80081$a1eb8e60$e5c2ab20$@etri.re.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQL1ik152NUuQ99NSMXMyv71HXXw3aoV6TPw Content-Language: ko X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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, For my question below, I later found I didn't load enough bytes for the FIT image (that's why it could find the configuration node). Now because our FPGA board has only 8MB fake RAM for now, I loaded FIT (about 5.7MB. containing kernel Image, fdt and initramfs.cpio.gz) to 0x8000_0000 (start of fake RAM ). I'm using 'boot from RAM' method(using CONFIG_SPL_RAM_DEVICE, CONFIG_SPL_OS_BOOT). The spl tried to copy the kernel to another location, so I skipped the kernel memcpy to use the kernel image as is inside the FIT image. And I made the fdt to be copied to a location above FIT image. Now I see 'Jumping to Linux' message. I have three questions here..(sorry for asking too many questions at once) 1. I wish linux could start with the kernel image inside FIT as is. But the start address of the kernel image is 0x800000bc, a weird address, and I guess there was a certain requirement for the kernel image alignment (like 16KB?). So can this(using kernel image as in the FIT image, not aligned nicely to 4KB) work? 2. In my spl_image_info struct, the 'void *arg' value is set to NULL. How should I set the value? (I have already CONFIG_BOOT_ARGS=y and CONFIG_BOOTARGS has values for passing the console and earlycon, but I don't know how to fill the spl_image_info's arg value) 3. Another question is, in this method, can linux recognize the initramfs.cpio.gz file? (I guessed so because using qemu, it worked) Any comment will be appreciated. Happy new year! Chan Kim > -----Original Message----- > From: U-Boot On Behalf Of ckim@etri.re.kr > Sent: Thursday, December 23, 2021 6:49 PM > To: 'U-Boot Mailing List' > Subject: How should I set load_address for fdt in the .its file... > > Hello all, > > I saw https://www.thegoodpenguin.co.uk/blog/u-boot-fit-image-overview/ and > used it to make .itb file (FIT image). > > (see the its sample right below the line saying : Let's try this out by > creating an image tree source file (.its): ) > > I was doing the experiment and found the load address of fdt was set wrong > and changed it to the next address after the linux kernel (but 8 byte > aligned). > > But the SPL program complains it can't find the 'configurations' node. So > I'm curious about how I should set the address. > > But I'm not sure how to set the 'load_address' and 'entry_address' for fdt. > Should I set it so that fdt is just placed some place above the linux > Image? > > And why doesn't initrd image node have those 'load_address' and > 'entry_address'? > > Thanks for reading. > > Chan Kim > > > > >