标签:elf pmi 进入 oem 描述 efi 文件夹 style 交叉编译
mkdir ~/linux/atk-mp1/my-tfa
cp -r ~/linux/atk-mp1/tf-a/* ~/linux/atk-mp1/my-tfa
cd ~/linux/atk-mp1/my-tfa
~/linux/atk-mp1/my-tfa/tf-a-stm32mp-2.2.r1
make -f ../Makefile.sdk all
cd ~/linux/atk-mp1/my-tfa/build
cd ~/linux/atk-mp1/my-tfa/tf-a-stm32mp-2.2.r1/fdts
cp stm32mp157d-ed1.dts stm32mp157d-atk.dts
cp stm32mp157d-ed1.dts stm32mp157d-atk.dtsi
cd tf-a-stm32mp-2.2.r1
make -f ../Makefile.sdk all
vddcore: regulator-vddcore {
compatible = "regulator-fixed";
regulator-name = "vddcore";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1350000>;
regulator-off-in-suspend;
regulator-always-on;
};
v3v3: regulator-3p3v {
compatible = "regulator-fixed";
regulator-name = "v3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-off-in-suspend;
regulator-always-on;
};
vdd: regulator-vdd {
compatible = "regulator-fixed";
regulator-name = "vdd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-off-in-suspend;
regulator-always-on;
};
vdd_usb: regulator-vdd-usb {
compatible = "regulator-fixed";
regulator-name = "vdd_usb";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-off-in-suspend;
regulator-always-on;
};
&sdmmc1 {
pinctrl-names = "default";
pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
st,neg-edge;
broken-cd;
bus-width = <4>;
vmmc-supply = <&v3v3>;
status = "okay";
};
&sdmmc2 {
pinctrl-names = "default";
pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
non-removable;
st,neg-edge;
bus-width = <8>;
vmmc-supply = <&v3v3>;
vqmmc-supply = <&v3v3>;
status = "okay";
};
&usbotg_hs {
phys = <&usbphyc_port1 0>;
phy-names = "usb2-phy";
usb-role-switch;
status = "okay";
};
&usbphyc {
status = "okay";
};
cd tf-a-stm32mp-2.2.r1
make -f ../Makefile.sdk all
cd tf-a-stm32mp-2.2.r1
make -f ../Makefile.sdk clean
make -f ../Makefile.sdk TFA_DEVICETREE=stm32mp157d-atk TF_A_CONFIG=serialboot ELF_DEBUG_ENABLE=‘1‘ all
cd ~/linux/atk-mp1/my-tfa/build/serialboot
ls tf-a-stm32mp157d-atk-serialboot.stm32 -l
标签:elf pmi 进入 oem 描述 efi 文件夹 style 交叉编译
原文地址:https://www.cnblogs.com/orangebear/p/14417083.html