ls1088ardb, kernel 5.4, fitimage bootm hangs if RANDOMIZE_BASE disabled + symbol offset

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ls1088ardb, kernel 5.4, fitimage bootm hangs if RANDOMIZE_BASE disabled + symbol offset

2,277 次查看
mthenault
Contributor III

Hi,

On kernel 5.4 (yocto hardknott), bootm hangs after "starting kernel" if the kernel config RANDOMIZE_BASE is disabled.

The issue is that with RANDOMIZE_BASE enabled, even with the nokaslr kernel option, there is a offset of 0x188000 between the vmlinux symbols and the actual running kernel. This makes debugging / dump analyzing complicated and not future proof, especially that I didn't find where this 0x188000 comes from.

Thanks in advance for your help !

I am using the default yocto fitimage layout:

/dts-v1/;
/ {
description = "FIT Image";
#address-cells = <1>;
images {
kernel {
description = "Kernel";
data = /incbin/("vmlinux.bin");
type = "kernel";
arch = "arm64";
os = "linux";
compression = "none";
load = <0x80008000>;
entry = <0x80008000>;
hash {
algo = "sha1";
};
};
fdt {
description = "DTB";
data = /incbin/("fsl-ls1048a.dtb");
type = "flat_dt";
arch = "arm64";
compression = "none";
load = <0x90000000>;
hash {
algo = "sha1";
};
};
};
configurations {
default = "standard";
standard {
description = "Standard Boot";
kernel = "kernel";
fdt = "fdt";
hash {
algo = "sha1";
};
};
};
};

0 项奖励
回复
3 回复数

2,233 次查看
mthenault
Contributor III

The issue is that we want to use bootm, because we need fitimage support (we want to enable secure boot)

0 项奖励
回复

2,184 次查看
yipingwang
NXP TechSupport
NXP TechSupport

I have escalated this case to the SE team, please refer to the following update from them.

Since maybe it's uboot's issue introduced by customer's custom needs, we have no plan to fix it.

标记 (1)
0 项奖励
回复

2,248 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following suggestion from the SE team.

Suggest customer use booti instead of bootm when disabling config RANDOMIZE_BASE. Refer the following link for details.

https://www.mail-archive.com/[email protected]/msg411672.html

0 项奖励
回复