0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

boot.scrの「ロード先」アドレス設定

Posted at

ここで述べるのは、boot.scrの 「ロード先」 の話題である。
「ロード元」 ではない。

結論

参考となる基本的なアイデア:
AR# 75730: 2020.x ~ 2021.x PetaLinux: U-Boot distro boot で platform-top.h が機能しない

上記サイトではCONFIG_EXTRA_ENV_SETTINGSをオーバーライドしているが、同様の仕組みを利用してENV_MEM_LAYOUT_SETTINGSをオーバーライドし、scriptaddrを変更する。

Example

scriptaddr= 0x09000000 の、 0x09000000 を要件に合わせる。

/project-spec/meta-user/recipes-bsp/u-boot/files/platform-top.h
#include <configs/xilinx_zynqmp.h>
/* >>>
 * with reference to :
 * <https://support.xilinx.com/s/article/75730?language=en_US>
 */
/*#include <configs/platform-auto.h>*/

#ifdef ENV_MEM_LAYOUT_SETTINGS
#undef ENV_MEM_LAYOUT_SETTINGS
#endif
#define ENV_MEM_LAYOUT_SETTINGS \
	"fdt_high=10000000\0" \
	"fdt_addr_r=0x40000000\0" \
	"fdt_size_r=0x400000\0" \
	"pxefile_addr_r=0x10000000\0" \
	"kernel_addr_r=0x18000000\0" \
	"kernel_size_r=0x10000000\0" \
	"scriptaddr=0x09000000\0" \
	"ramdisk_addr_r=0x02100000\0" \
	"script_size_f=0x80000\0" \

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?