AMP设置为1Linux(CPU0) +3HAL(CPU1、 2、 3) 配置。
用vscode打开its 配置文件rk3568_amp_linux.its文件修改
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
*/
/dts-v1/;
/ {
description = "FIT source file for rockchip AMP";
#address-cells = <1>;
images {
/*amp1 {
description = "bare-mental-core1";
data = /incbin/("cpu1.bin");
type = "firmware";
compression = "none";
arch = "arm";
cpu = <0x100>;
thumb = <0>;
hyp = <0>;
load = <0x01800000>;
udelay = <10000>;
hash {
algo = "sha256";
};
};
amp2 {
description = "bare-mental-core2";
data = /incbin/("cpu2.bin");
type = "firmware";
compression = "none";
arch = "arm";
cpu = <0x200>;
thumb = <0>;
hyp = <0>;
load = <0x02000000>;
udelay = <10000>;
hash {
algo = "sha256";
};
};*/
amp3 {
description = "bare-mental-core3";
data = /incbin/("cpu3.bin");
type = "firmware";
compression = "none";
arch = "arm";
cpu = <0x300>;
thumb = <0>;
hyp = <0>;
load = <0x02800000>;
udelay = <10000>;
hash {
algo = "sha256";
};
};
};
configurations {
default = "conf";
conf {
description = "Rockchip AMP images";
rollback-index = <0x0>;
loadables = "amp1", "amp2", "amp3";
//loadables = "amp3";
signature {
algo = "sha256,rsa2048";
padding = "pss";
key-name-hint = "dev";
sign-images = "loadables";
};
/* - run linux on cpu0
* - it is brought up by amp(that run on U-Boot)
* - it is boot entry depends on U-Boot
*/
linux {
description = "linux-os";
arch = "arm64";
cpu = <0x000>;
thumb = <0>;
hyp = <0>;
udelay = <0>;
};
};
};
};
用vscode打开设备树文件rk3568-evb1-ddr4-v10-linux-amp.dts修改
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
*
*/
#include "rk3568-evb1-ddr4-v10-linux.dts"
#include "rk3568-amp.dtsi"
/ {
memory {
device_type = "memory";
reg = <0x0 0x03880000 0x0 0x04b80000>,
<0x0 0x0a200000 0x0 0x75e00000>;
};
};
&arm_pmu {
interrupt-affinity = <&cpu0>;
// interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>;
};
/delete-node/ &cpu1;
/delete-node/ &cpu2;
/delete-node/ &cpu3;