问题1,2022.07 uboot 编译顺序
$ make loongson2k1000_defconfig
$ make ARCH=loongarch CROSS_COMPILE=loongarch64-linux-gnu- -j4 all
会出现 时间戳问题 **.binman_stamp**
.binman_stamp: FORCE
@touch $@
我将
all: .binman_stamp inputs
改为
all: inputs
删除 .binman_stamp依赖项
问题2,buildroot 添加2k1000la编译 linux 和uboot,
需要修改buildroot/arch/Config.in.loongisa 文件
添加或修改
config BR2_ARCH
default “loongarch32” if !BR2_ARCH_IS_64
default “loongarch” if BR2_ARCH_IS_64 # 将loongarch64 改为loongarch
config BR2_ENDIAN
default “LITTLE”
config BR2_NORMALIZED_ARCH # 添加选项 BR2_NORMALIZED_ARCH
default “loongarch” if BR2_loongisa_g
且修改 buildroot 配置项
Toolchain —>
Toolchain type (External toolchain) --->
Toolchain (Custom toolchain) --->
Toolchain origin (Pre-installed toolchain) --->
(../loongarch_toolchain) Toolchain path
($(ARCH)64-linux-gnu) Toolchain prefix
External toolchain gcc version (8.x) --->
External toolchain kernel headers series (4.19.x) --->
External toolchain C library (glibc/eglibc) --->
[*] Toolchain has SSP support?
[*] Toolchain has SSP strong support?
[*] Toolchain has RPC support?
[*] Toolchain has C++ support?
...
Kernel —>
[*] Linux Kernel
Kernel version (Custom version) --->
(2k1000la-4.19.190) Kernel version
Kernel configuration (Using an in-tree defconfig file) --->
(ls2k1000) Defconfig name
...
[*] Build a Device Tree Blob (DTB)
[ ] DTB is built by kernel itself
(loongson/loongson64_2k1000) In-tree Device Tree Source file names
....
[*] Needs host OpenSSL
Bootloaders —>
[*] U-Boot
Build system (Kconfig) --->
U-Boot Version (Custom version) --->
(la-2022.07) U-Boot version
...
U-Boot configuration (Using an in-tree board defconfig file) --->
(loongson2k1000) Board defconfig
...
[*] U-Boot needs dtc
...
[*] U-Boot needs OpenSSL