这个烧录文件的格式没有开源。加一个自定义文件的目的是什么?
Z
zqb_all 发布的帖子
-
回复: 请问tina 生成的 tina_d1-nezha_uart0.img 烧录文件格式是什么样的?我可以解包吗?里面各个文件的位置是如何定义的?我如何加一个自定义文件?
-
回复: 如何让D1 uboot支持uImage镜像 + dtb启动系统?
我尝试编译打包后,out/d1-nezha_min/image/sunxi.fex 并不是帖子截图的那样对不上,是有56k大小的。
-
回复: 如何让D1 uboot支持uImage镜像 + dtb启动系统?
全志默认的做法是
-
sys_config.fex中包含dram参数,是必要的配置。此文件在打包阶段会解析并写到boot0头部,启动时,brom加载boot0到sram,boot0负责初始化dram,并加载uboot到dram运行。
-
设备树跟 uboot,opensbi等打包在一起(由boot_package.cfg配置),启动时,boot0会将uboot,opensbi,dtb加载在dram的不同位置,启动到uboot之后,uboot直接用ram中的dtb。
-
board.dts,是在编译阶段拷贝到内核中(执行cdts可跳过去)进行编译,生成board.dtb. 在打包阶段( scripts/pack_img.sh)拷贝到out/xxx/image目录下,进一步根据boot_package.cfg打包生成boot_package.fex。如果修改board.dts,需要重新编译kernel。
-
uboot-board.dts , 此文件是uboot的dts,目前uboot可以支持自带dts,即编译的时候直接内嵌一份dts,不跟kernel共用dts。如果修改uboot-board.dts,需要重新编译uboot.
-
-
回复: 【加精】在Ubuntu21.04中编译Tina SDKV1.01 版本 踩坑记录
关于以上的问题三
可以尝试增加一个文件:
package/libs/libgpg-error/patches/020-awk-Prepare-for-Gawk-5.0.patch
内容如下:
From 5e5e5180e923070ad0450890904e1216295fbc69 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka <gniibe@fsij.org> Date: Mon, 15 Apr 2019 15:10:44 +0900 Subject: [PATCH] awk: Prepare for Gawk 5.0. port from openwrt-18.06: * src/Makefile.am: Use pkg_namespace (instead of namespace). * src/mkerrnos.awk: Likewise. * lang/cl/mkerrcodes.awk: Don't escape # in regexp. * src/mkerrcodes.awk, src/mkerrcodes1.awk, src/mkerrcodes2.awk: Ditto. -- In Gawk 5.0, regexp routines are replaced by Gnulib implementation, which only allows escaping specific characters. GnuPG-bug-id: 4459 Reported-by: Marius Schamschula Signed-off-by: NIIBE Yutaka <gniibe@fsij.org> --- lang/cl/mkerrcodes.awk | 2 +- src/Makefile.am | 2 +- src/Makefile.in | 2 +- src/mkerrcodes.awk | 2 +- src/mkerrcodes1.awk | 2 +- src/mkerrcodes2.awk | 2 +- src/mkerrnos.awk | 2 +- src/mkstrtable.awk | 10 +++++----- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lang/cl/mkerrcodes.awk b/lang/cl/mkerrcodes.awk index ae29043..9a1fc18 100644 --- a/lang/cl/mkerrcodes.awk +++ b/lang/cl/mkerrcodes.awk @@ -122,7 +122,7 @@ header { } !header { - sub (/\#.+/, ""); + sub (/#.+/, ""); sub (/[ ]+$/, ""); # Strip trailing space and tab characters. if (/^$/) diff --git a/src/Makefile.am b/src/Makefile.am index 398ec5e..9879872 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -266,7 +266,7 @@ code-from-errno.h: mkerrcodes Makefile errnos-sym.h: Makefile mkstrtable.awk errnos.in $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \ - -v prefix=GPG_ERR_ -v namespace=errnos_ \ + -v prefix=GPG_ERR_ -v pkg_namespace=errnos_ \ $(srcdir)/errnos.in >$@ diff --git a/src/Makefile.in b/src/Makefile.in index e02b683..8789c0e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1322,7 +1322,7 @@ code-from-errno.h: mkerrcodes Makefile errnos-sym.h: Makefile mkstrtable.awk errnos.in $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \ - -v prefix=GPG_ERR_ -v namespace=errnos_ \ + -v prefix=GPG_ERR_ -v pkg_namespace=errnos_ \ $(srcdir)/errnos.in >$@ mkheader: mkheader.c Makefile diff --git a/src/mkerrcodes.awk b/src/mkerrcodes.awk index 46d436c..e9c857c 100644 --- a/src/mkerrcodes.awk +++ b/src/mkerrcodes.awk @@ -85,7 +85,7 @@ header { } !header { - sub (/\#.+/, ""); + sub (/#.+/, ""); sub (/[ ]+$/, ""); # Strip trailing space and tab characters. if (/^$/) diff --git a/src/mkerrcodes1.awk b/src/mkerrcodes1.awk index a771a73..4578e29 100644 --- a/src/mkerrcodes1.awk +++ b/src/mkerrcodes1.awk @@ -81,7 +81,7 @@ header { } !header { - sub (/\#.+/, ""); + sub (/#.+/, ""); sub (/[ ]+$/, ""); # Strip trailing space and tab characters. if (/^$/) diff --git a/src/mkerrcodes2.awk b/src/mkerrcodes2.awk index ea58503..188f7a4 100644 --- a/src/mkerrcodes2.awk +++ b/src/mkerrcodes2.awk @@ -91,7 +91,7 @@ header { } !header { - sub (/\#.+/, ""); + sub (/#.+/, ""); sub (/[ ]+$/, ""); # Strip trailing space and tab characters. if (/^$/) diff --git a/src/mkerrnos.awk b/src/mkerrnos.awk index f79df66..15b1aad 100644 --- a/src/mkerrnos.awk +++ b/src/mkerrnos.awk @@ -83,7 +83,7 @@ header { } !header { - sub (/\#.+/, ""); + sub (/#.+/, ""); sub (/[ ]+$/, ""); # Strip trailing space and tab characters. if (/^$/) diff --git a/src/mkstrtable.awk b/src/mkstrtable.awk index c9de9c1..285e45f 100644 --- a/src/mkstrtable.awk +++ b/src/mkstrtable.awk @@ -77,7 +77,7 @@ # # The variable prefix can be used to prepend a string to each message. # -# The variable namespace can be used to prepend a string to each +# The variable pkg_namespace can be used to prepend a string to each # variable and macro name. BEGIN { @@ -102,7 +102,7 @@ header { print "/* The purpose of this complex string table is to produce"; print " optimal code with a minimum of relocations. */"; print ""; - print "static const char " namespace "msgstr[] = "; + print "static const char " pkg_namespace "msgstr[] = "; header = 0; } else @@ -110,7 +110,7 @@ header { } !header { - sub (/\#.+/, ""); + sub (/#.+/, ""); sub (/[ ]+$/, ""); # Strip trailing space and tab characters. if (/^$/) @@ -150,7 +150,7 @@ END { else print " gettext_noop (\"" last_msgstr "\");"; print ""; - print "static const int " namespace "msgidx[] ="; + print "static const int " pkg_namespace "msgidx[] ="; print " {"; for (i = 0; i < coded_msgs; i++) print " " pos[i] ","; @@ -158,7 +158,7 @@ END { print " };"; print ""; print "static GPG_ERR_INLINE int"; - print namespace "msgidxof (int code)"; + print pkg_namespace "msgidxof (int code)"; print "{"; print " return (0 ? 0"; -- 2.25.1
-
回复: D1开发板初次编译uboot
@march 还是用这个完整的.img文件,工具上选"单或多分区烧录",可以勾选需要烧录的逻辑分区。若什么都不勾选,则只烧录img中的boot0和uboot等。