Open thanhduongvs opened 1 year ago
git clone git@github.com:OneKiwiTech/uboot-stm32mp.git -b v2021.10-stm32mp-r2
cd uboot-stm32mp
export CROSS_COMPILE=arm-ostl-linux-gnueabi-
or export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm
export KBUILD_OUTPUT=./build
make distclean
make stm32mp15_basic_defconfig
or make stm32mp15_trusted_defconfig
make DEVICE_TREE=stm32mp15xxaa-onekiwi-r1 all -j8
export CROSS_COMPILE=arm-ostl-linux-gnueabi-
or export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm
export KBUILD_OUTPUT=./build
make distclean
make stm32mp15_basic_defconfig
make menuconfig
CONFIG_STM32MP1_DDR_INTERACTIVE=y
CONFIG_DEBUG_UART=y
CONFIG_DEBUG_UART_STM32=y
make DEVICE_TREE=stm32mp15xxaa-onekiwi-r1 DDR_INTERACTIVE=1 all -j8
STM32_Programmer_CLI -c port=usb1 -w build/u-boot-spl.stm32 0x01 --start 0x01
git clone git@github.com:OneKiwiTech/uboot-stm32mp.git -b v2021.10-stm32mp-r2
cd uboot-stm32mp
export CROSS_COMPILE=arm-ostl-linux-gnueabi-
export ARCH=arm
export KBUILD_OUTPUT=./build
make distclean
make stm32mp15_trusted_defconfig
make DEVICE_TREE=stm32mp15xxaa-onekiwi-r1 all -j8
git clone git@github.com:OneKiwiTech/arm-trusted-firmware-stm32mp.git -b v2.6-stm32mp-r2
cd arm-trusted-firmware-stm32mp
make distclean
make CROSS_COMPILE=arm-ostl-linux-gnueabi- PLAT=stm32mp1 ARCH=aarch32 ARM_ARCH_MAJOR=7 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp15xxaa-onekiwi-r1.dtb STM32MP_SDMMC=1 STM32MP_EMMC=1 STM32MP_USB_PROGRAMMER=1
cd arm-trusted-firmware-stm32mp
make CROSS_COMPILE=arm-ostl-linux-gnueabi- PLAT=stm32mp1 ARCH=aarch32 ARM_ARCH_MAJOR=7 AARCH32_SP=sp_min STM32MP_SDMMC=1 STM32MP_EMMC=1 STM32MP_USB_PROGRAMMER=1 DTB_FILE_NAME=stm32mp15xxaa-onekiwi-r1.dtb BL33=<path-uboot>/uboot-stm32mp/build/u-boot-nodtb.bin BL33_CFG=<path-uboot>/uboot-stm32mp/build/u-boot.dtb fip
STM32_Programmer_CLI -c port=usb1 -d tf-a_usb.stm32 0x1 -s 0x1 -d fip.bin 0x3 -s 0x3
https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/plat/stm32mp1.rst
https://wiki.st.com/stm32mpu/wiki/How_to_configure_TF-A_SP-MIN
https://wiki.st.com/stm32mpu/wiki/How_to_load_U-Boot_with_STM32CubeProgrammer
https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout
git clone git@github.com:OneKiwiTech/linux-stm32mp.git
cd linux-stm32mp
export CROSS_COMPILE=arm-ostl-linux-gnueabi-
export ARCH=arm
export KBUILD_OUTPUT=./build
make distclean
make multi_v7_defconfig
make zImage -j8
make dtbs -j8
make stm32mp15xxaa-onekiwi-r1.dtb -j8
make stm32mp15xxaa-onekiwi-r1-a7-examples.dtb -j8
make stm32mp15xxaa-onekiwi-r1-m4-examples.dtb -j8
make uImage vmlinux dtbs LOADADDR=0xC2000040 -j8
make modules -j8
Compile the modulesfile:///home/vanson/working/stm32mp/atf-stm32mp/fip.bin
bitbake -f -c clean st-image-userfs bitbake -f -c configure st-image-userfs bitbake -f -c compile st-image-userfs bitbake -f -c install st-image-userfs