updated orangepi_zero_2w_defconfig

This commit is contained in:
wt
2025-04-04 15:06:54 +07:00
parent 641ab89367
commit f1a0d8cbf4
7 changed files with 30 additions and 8 deletions
+11 -3
View File
@@ -15,12 +15,20 @@ uboot() {
check $? "Extract uboot"
cd u-boot-$uboot_version
# cp -rv $root/uclibc/config-1.0.50 .config
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- orangepi_pc_defconfig
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE- $UBOOT_DEFCONFIG
check $? "Configure uboot"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
if [ "$BOARD_NAME" = "orangepi_pc" ]; then
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
elif [ "$BOARD_NAME" = "orangepi_zero_2w" ]; then
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE- BL31=$root/board/$BOARD_NAME/bl31.bin $makeflags
fi
check $? "Build uboot"
cp -v u-boot-sunxi-with-spl.bin $out
cp -v arch/arm/dts/sun8i-h3-orangepi-pc.dtb $sdroot/boot/dtbs
if [ "$ARCH" = "arm" ]; then
cp -v arch/arm/dts/sun8i-h3-orangepi-pc.dtb $sdroot/boot/dtbs
elif [ "$ARCH" = "arm64" ]; then
cp -v dts/upstream/src/arm64/allwinner/sun50i-h618-orangepi-zero2w.dtb $sdroot/boot/dtbs
fi
# make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE DESTDIR=$rootfspath install # &>> $fulllogfile
check $? "Install uboot to out directory"
check $? "Build and install uboot to out directory"