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 shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 343CAC433F5 for ; Fri, 4 Mar 2022 07:19:14 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nQ2DG-0003qz-HS; Fri, 04 Mar 2022 02:18:54 -0500 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1nQ2DC-0003qS-I9 for kernelnewbies@kernelnewbies.org; Fri, 04 Mar 2022 02:18:51 -0500 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 4 Mar 2022 16:18:42 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.112] (HELO smtp002-imp.gov-dooray.com) ([10.162.225.112]) by send001-relay.gov-dooray.com with SMTP id 833ba2ea6221bd52; Fri, 04 Mar 2022 16:18:42 +0900 DKIM-Signature: a=rsa-sha256; b=kURwjQD8CZO1xQGEB4y9h+tzeDQylO5P/ayJ8MyejVADtIKMAkRNkC0XVnRj2gYT5H6ABzlU3b gFNWLeX4eDZX9jnE2DVpE62vATOCwedOv7339xc9/dflDahMONAujcQZpvU4Ph0EYf6u+mo1pnDk r/Vcs8me7jOeTjLyxlC9nRBkIbaliWCE05MOJ4F1VIn6W0Ztg5J4Z5ho7tVs0s+9UoJazvPEvdy6 cW7S8sd6PkIBsqQkFS0WRx+5j9nvaYmusrJGWTRHHJJUEs6JrxNuEPG3rySCc+jC8bTeg/PuSmqY hm/+JpO5osJv6q18cNXpZQha5xdCG+zwuJMAPEyA==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=mUQ+ZDtykQV++p7FT/k6TWyDw1+/hj/O4REpCQhv2KY=; 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 27433b776221bd52; Fri, 04 Mar 2022 16:18:42 +0900 From: "Chan Kim" To: Subject: Does fixmap pages for fdt require 4MB memory? Date: Fri, 4 Mar 2022 16:18:40 +0900 Message-ID: <021701d82f98$12fe9bc0$38fbd340$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: Adgvl//mSkX44voYSbaLXqfcarOAxg== X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1224711339569527521==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============1224711339569527521== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0218_01D82FE3.82E6B8F0" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_0218_01D82FE3.82E6B8F0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hello all, I'm porting linux on an FPGA board which has only 8MB SRAM in place of DDR address range for now. (using linux-5.4.21) So this means, seen from software, the DDR memory exists only for 0x80000000 ~ 0x807fffff. I loaded kernel image (Image) at 0x80080000 and it takes space to 0x8061d008. For there is so scare space, I loaded the dtb at 0x807fd000. Now the kernel stops during setup_machine_fdt in setup_arch. I guess maybe it's because the kernel could not setup fixmap for fdt. (I recently learned the kernel uses fixmap for the fdt and it requires 4MB separate pages) I just started to look into early_fixmap_init function but can anyone tell me if this can be the real problem? Isn't it possible to use 8MB memory to run linux? (I'm doing this before the board is fully ready) Thank you! Chan Kim ------=_NextPart_000_0218_01D82FE3.82E6B8F0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hello all,

 

I’m porting linux on an FPGA = board which has only 8MB SRAM in place of DDR address range for now. = (using linux-5.4.21)

So this means, seen from software, the DDR memory exists = only for 0x80000000 ~ 0x807fffff.

I loaded kernel image (Image) at = 0x80080000 and it takes space to 0x8061d008. For there is so scare = space, I loaded the dtb at 0x807fd000.

Now the kernel stops during = setup_machine_fdt in setup_arch. I guess maybe it’s because the = kernel could not setup fixmap for fdt.

(I recently learned the kernel uses = fixmap for the fdt and it requires 4MB separate = pages)

I = just started to look into early_fixmap_init function but can anyone tell = me if this can be the real problem?

Isn’t it possible to use 8MB = memory to run linux? (I’m doing this before the board is fully = ready)

 

Thank you!

Chan Kim

 

------=_NextPart_000_0218_01D82FE3.82E6B8F0-- --===============1224711339569527521== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============1224711339569527521==--