orangepi-xunlong / orangepi-build

Orange Pi build for H2+, H3, H5, H6, H616, RK3328, RK3399 and RK3588(s)
http://www.orangepi.cn/
GNU General Public License v2.0
630 stars 272 forks source link

RK3566 CM4 kernel build error #148

Closed Yoonmv closed 3 months ago

Yoonmv commented 3 months ago

An error occurred while building the cm4 board kernel.

My DESKTOP OS is ubuntu20.04

=============================================================================
[ o.k. ] Compiling u-boot [ v2017.09 ]
[ o.k. ] Compiler version [ aarch64-none-linux-gnu-gcc 9.2.1 ]
[ o.k. ] Started patching process for [ u-boot rockchip-rk356x-orangepicm4-legacy ]
[ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-rockchip-rk356x ]
....
....
make[6]: *** [scripts/Makefile.build:273: drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_linux.o] Error 1
make[6]: *** [scripts/Makefile.build:273: drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_sdio.o] Error 1
make[5]: *** [scripts/Makefile.build:516: drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd] Error 2
make[4]: *** [scripts/Makefile.build:516: drivers/net/wireless/rockchip_wlan/rkwifi] Error 2
make[4]: *** [scripts/Makefile.build:273: drivers/net/wireless/rtl88x2cs/core/rtw_cmd.o] Error 1
make[5]: *** [scripts/Makefile.build:273: drivers/net/wireless/rockchip_wlan/rtl8852be/phl/phl_cmd_ps.o] Error 1
make[4]: *** [scripts/Makefile.build:516: drivers/net/wireless/rockchip_wlan/rtl8852be] Error 2
make[3]: *** [scripts/Makefile.build:516: drivers/net/wireless/rockchip_wlan] Error 2
make[3]: *** [scripts/Makefile.build:516: drivers/net/wireless/rtl88x2cs] Error 2
make[2]: *** [scripts/Makefile.build:516: drivers/net/wireless] Error 2
make[1]: *** [scripts/Makefile.build:516: drivers/net] Error 2
make: *** [Makefile:1938: drivers] Error 2
[ error ] ERROR in function compile_kernel [ build.sh:305 -> scripts/main.sh:637 -> scripts/main.sh:540 -> scripts/compilation.sh:515 -> scripts/general.sh:0 ]
[ error ] Kernel was not built [ @host ]
[ o.k. ] Process terminated 
==============================================================================

I'm tried this, but it didn't work


--- a/scripts/debootstrap.sh
+++ b/scripts/debootstrap.sh
@@ -137,7 +137,7 @@ create_rootfs_cache()
                        local apt_extra="-o Acquire::http::Proxy=\"http://${APT_PROXY_ADDR:-localhost:3142}\""
                        local apt_mirror="http://${APT_PROXY_ADDR:-localhost:3142}/$APT_MIRROR"
                else
-                       local apt_mirror="https://$APT_MIRROR"
+                       local apt_mirror="http://$APT_MIRROR"