§202 3-09-10

running on x86_64 ubuntu Jammy OS is required!!

alexlai@h2Jammy:~/build$ mkdir orgpi5+ && cd $_
alexlai@h2Jammy:~/build/orgpi5+$
$ git clone https://github.com/orangepi-xunlong/orangepi-build.git -b next
$ sudo ./build.sh 
[sudo] password for alexlai: 
[ o.k. ] Create example config file using template [ config-default.conf ]
[ o.k. ] Using config file [ /home/alexlai/build/orgpi5+/orangepi-build/userpatches/config-example.conf ]
[ .... ] Extension being added [ rkbin-tools :: added by ./build.sh:305 -> scripts/main.sh:381 -> scripts/configuration.sh:151 -> external/config/sources/families/rockchip-rk3588.conf:1 -> external/config/sources/families/include/rockchip64_common.inc:5 -> scripts/extensions.sh:0 ]
[ o.k. ] Extension manager [ processed 3 Extension Methods calls and 3 Extension Method implementations ]
[ o.k. ] Preparing [ host ]
[ o.k. ] Build host OS release [ jammy ]
[ .... ] Installing build dependencies 
[ o.k. ] Syncing clock [ cn.pool.ntp.org ]
[ o.k. ] Checking for external GCC compilers 
[ .... ] downloading using http(s) network [ gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz ]
[#f1bb3c 15MiB/24MiB(61%) CN:1 DL:8.6MiB ETA:1s]                                                                                                        
[ o.k. ] Verified [ PGP ]
[ .... ] decompressing 
[ .... ] gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz: 24.9MiB [8.58MiB/s] [===================================>] 100%
[ .... ] downloading using http(s) network [ gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz ]
[#6ab2ce 33MiB/33MiB(99%) CN:1 DL:9.0MiB]                                                                                                               
[ o.k. ] Verified [ PGP ]
[ .... ] decompressing 
[ .... ] gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz: 21.6MiB [4.90MiB/s] [=================                       ] 63%
[ o.k. ] Building deb [ linux-u-boot-legacy-orangepi5plus_1.0.8_arm64.deb ]
[ o.k. ] U-boot build done [ @host ]
[ o.k. ] Target directory [ /home/alexlai/build/orgpi5+/orangepi-build/output/debs/u-boot ]
[ o.k. ] File name [ linux-u-boot-legacy-orangepi5plus_1.0.8_arm64.deb ]
[ o.k. ] Runtime [ 7 min ]
[ o.k. ] Repeat Build Options [ sudo ./build.sh  BOARD=orangepi5plus BRANCH=legacy BUILD_OPT=u-boot  ]


以下:

Running on orgpi5Arch.yushei.net

!!![ error ] Running this tool on non x86_64 build host is not supported !!!

[alexlai@orgpi5Arch build]$ cd orgpi5+/
$ git clone https://github.com/orangepi-xunlong/orangepi-build.git -b next
$ ls
build.sh  external  LICENSE  README.md  scripts
$ sudo ./build.sh 
[sudo] password for alexlai: 
which: no dialog in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
which: no uuid in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
[ .... ] Installing basic packages [ dialog uuid uuid-runtime  ]
bash: line 1: apt-get: command not found
[ o.k. ] Create example config file using template [ config-default.conf ]
[ o.k. ] Using config file [ /opt/xfs/home/alexlai/build/orgpi5+/orangepi-build/userpatches/config-example.conf ]
[ error ] ERROR in function source [ ./build.sh:305 -> scripts/main.sh:177 -> scripts/general.sh:0 ]
[ error ] No option selected 
[ o.k. ] Process terminated

以下:  is runnin under chageroot !! Failed !!!

¶1. git clone orangepi-build.git and check put branch next

(chroot) SurfacePro /usr/src # (chroot) SurfacePro /usr/src # git clone https://github.com/orangepi-xunlong/orangepi-build.git -b next
# cd orangepi-build/

# ls
LICENSE  README.md  build.sh  external  scripts

¶2. Check out u-boot and make ---> failed!!!

(chroot) SurfacePro /usr/src # git clone https://github.com/orangepi-xunlong/u-boot-orangepi.git -b v2017.09-rk3588
# ls configs|grep orangepi_5_plus
orangepi_5_plus_defconfig
# ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make orangepi_5_plus_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
#  ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make
....
make: *** [Makefile:1307: drivers] エラー 2

¶3. checkout kernel source and make

# git clone https://github.com/orangepi-xunlong/linux-orangepi.git -b orange-pi-5.10-rk3588
# cd linux-orangepi/

ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make rk3588_linux.config