Giter VIP home page Giter VIP logo

orangepi-build's Introduction

Supported boards

Soc Boards
Allwinner H6 Orange Pi 3/3 LTS
Allwinner H616 Orange Pi Zero2/Zero2w/Zero3
Rockchip RK3399 Orange Pi 4/4B/4 LTS/800
Rockchip RK3566 Orange Pi 3B/CM4
Rockchip RK3588S Orange Pi 5/5B
Rockchip RK3588 Orange Pi 5Plus

Download links

orangepi-build's People

Contributors

baiywt avatar leeboby avatar liu1313277 avatar longergg avatar matt335672 avatar orangepi-xunlong avatar spadelushen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orangepi-build's Issues

Burn new U-BOOT on Orange Pi 4B doesn't work

I build new U-BOOT for my Orange Pi 4B. There are a lot of files at my screenshort at figure 3. How I should transfer my new U-BOOT to my 32GB microSD? What I should write in dd command?

At this time I use official Ubuntu 18 from xunlong google drive on my microsd look at figure 1.
Screenshot from 2021-04-14 14-45-18
Figure 1. xunlong Ubuntu 18 on microsd
my Ubuntu 18
Figure 2. My Ubuntu 18 on microsd (where u-boot?)
u-boot OPI4B
Figure 3. Building Ubuntu process

I also try "Full OS image for flashing" but in folder output/images there is Orangepi4_2.1.2_ubuntu_bionic_server_linux4.4.179_minimal.img only, no Orangepi4_2.1.2_ubuntu_bionic_server_linux4.4.179_minimal.tar.gz. I try flash to my 32GB microsd
sudo dd if=Orangepi4_2.1.2_ubuntu_bionic_server_linux4.4.179_minimal.img of=/dev/sdb

but no boot sectors in Orangepi4_2.1.2_ubuntu_bionic_server_linux4.4.179_minimal.img (only one ext4 sector about 2GB) and Orange Pi 4B do nothing.

Orangepizero2_2.1.6_ubuntu_focal_server_linux5.13.0 ble issue

Device: Zero2
with Orangepizero2_2.1.6_ubuntu_focal_server_linux5.13.0
with bluepy

from bluepy.btle import DefaultDelegate, Peripheral

try:
    d= Peripheral("80:6f:b0:b7:72:b0", "public")
    print(d)
except Exception as e:
    print(e)

cannot connect the ble device ,the code above allways raise Exception

with Orangepizero2_2.1.6_ubuntu_focal_server_linux4.9.170
Everything goes well.

sunxi-tools for RK3399

I am making Ubuntu for my Orange Pi 4B with Rockchip RK3399 using orangepi-build.

File orangepi-build/scripts/main.sh contains

	fetch_from_repo "https://github.com/linux-sunxi/sunxi-tools" "${EXTER}/cache/sources/sunxi-tools" "branch:master"
	fetch_from_repo "https://github.com/armbian/rkbin" "${EXTER}/cache/sources/rkbin-tools" "branch:master"

	if [[ $BOARD == orangepi4 ]]; then
		fetch_from_repo "https://github.com/orangepi-xunlong/rk3399_gst_xserver_libs.git" "${EXTER}/cache/sources/rk3399_gst_xserver_libs" "branch:main"
	fi

I think I don't need sunxi-tools. When I download it I just spend time. May be @orangepi-xunlong should use elif to download sunxi-tools?

R1 PLUS LTS 编译错误,按照OrangePi_R1_Plus_LTS_RK3328_用户手册_v1.4.pdf这个文档的方法,从百度云下载的openwrt,编译出错,下面是错误log:

Scanning dependencies of target rpcd-mod-luci
make[6]: Leaving directory '/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614'
make[6]: Entering directory '/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614'
[ 50%] Building C object CMakeFiles/rpcd-mod-luci.dir/luci.c.o
/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/luci.c: In function 'rpc_luci_get_iwinfo':
/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/luci.c:938:14: error: 'IWINFO_80211_AX' undeclared (first use in this function); did you mean 'IWINFO_80211_A'?
if (nret & IWINFO_80211_AX)
^~~~~~~~~~~~~~~
IWINFO_80211_A
/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/luci.c:938:14: note: each undeclared identifier is reported only once for each function it appears in
/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/luci.c:983:14: error: 'IWINFO_HTMODE_HE20' undeclared (first use in this function); did you mean 'IWINFO_HTMODE_HT20'?
if (nret & IWINFO_HTMODE_HE20)
^~~~~~~~~~~~~~~~~~
IWINFO_HTMODE_HT20
/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/luci.c:986:14: error: 'IWINFO_HTMODE_HE40' undeclared (first use in this function); did you mean 'IWINFO_HTMODE_HT40'?
if (nret & IWINFO_HTMODE_HE40)
^~~~~~~~~~~~~~~~~~
IWINFO_HTMODE_HT40
/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/luci.c:989:14: error: 'IWINFO_HTMODE_HE80' undeclared (first use in this function); did you mean 'IWINFO_HTMODE_VHT80'?
if (nret & IWINFO_HTMODE_HE80)
^~~~~~~~~~~~~~~~~~
IWINFO_HTMODE_VHT80
/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/luci.c:992:14: error: 'IWINFO_HTMODE_HE160' undeclared (first use in this function); did you mean 'IWINFO_HTMODE_VHT160'?
if (nret & IWINFO_HTMODE_HE160)
^~~~~~~~~~~~~~~~~~~
IWINFO_HTMODE_VHT160
CMakeFiles/rpcd-mod-luci.dir/build.make:81: recipe for target 'CMakeFiles/rpcd-mod-luci.dir/luci.c.o' failed
make[6]: *** [CMakeFiles/rpcd-mod-luci.dir/luci.c.o] Error 1
make[6]: Leaving directory '/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614'
CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/rpcd-mod-luci.dir/all' failed
make[5]: *** [CMakeFiles/rpcd-mod-luci.dir/all] Error 2
make[5]: Leaving directory '/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614'
Makefile:148: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614'
Makefile:54: recipe for target '/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/.built' failed
make[3]: *** [/home/user/openwrt/openwrt/build_dir/target-aarch64_generic_musl/rpcd-mod-luci-20210614/.built] Error 2
make[3]: Leaving directory '/home/user/openwrt/openwrt/feeds/luci/libs/rpcd-mod-luci'
time: package/feeds/luci/rpcd-mod-luci/compile#0.18#0.09#0.27
ERROR: package/feeds/luci/rpcd-mod-luci failed to build.
package/Makefile:112: recipe for target 'package/feeds/luci/rpcd-mod-luci/compile' failed
make[2]: *** [package/feeds/luci/rpcd-mod-luci/compile] Error 1
make[2]: Leaving directory '/home/user/openwrt/openwrt'
package/Makefile:108: recipe for target '/home/user/openwrt/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_compile' failed
make[1]: *** [/home/user/openwrt/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/user/openwrt/openwrt'
/home/user/openwrt/openwrt/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2

Check official firmware SHA failed

Checksum from the archive with the firmware Ubuntu Image from the official site
[from file Orangepi800_3.0.8_ubuntu_jammy_desktop_xfce_linux5.18.5.img.sha]:
4cfd9e022950f4f29c3e21a12fb2555849eb1ddd407dfd0fcecc512477c3f945

The result of calculating the real checksum of the image after unpacking the downloaded archive
[file Orangepi800_3.0.8_ubuntu_jammy_desktop_xfce_linux5.18.5.img]:
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

Am I doing something wrong, or is the checksum information simply not updated?
Or was the firmware file really changed?

How to enable mpp hardware encode/decode function in the RK3328(ubuntu 20.04)(kernel branch:"orange-pi-5.8-rockchip64")

■Summary
・hardware platform
Orange Pi R1 Plus(RK3328)
・kernel source and branch
https://github.com/orangepi-xunlong/linux-orangepi
※branch:orange-pi-5.8-rockchip64
・mpp library source
https://github.com/rockchip-linux/mpp/
・issue
the error occur because the following 3 devices can not be found when run the mpp library
①/dev/vpu_service
②/dev/dri/card0
③/dev/ion
・additional information
the kernel version of the Android9 of the RK3328 is the 4.4 and the following 2 devices can be found
①/dev/vpu_service
②/dev/dri/card0

■Question
Is the following good solution what enable mpp hardware encode/decode function in the RK3328(ubuntu 20.04)(kernel branch:"orange-pi-5.8-rockchip64")?
transplant the driver vpu_service and the driver dri from the kernel 4.4 of the Android9 to the kernel 5.8 of ubuntu 20.04.
※If you have the related patchs, could you release it to us?

Or, could you give us some good suggestions?

Thank you very much.

Orange pi zero 2 can not reboot or shutdown

Hello,

When I am trying to shutdown or reboot, it stuck at shutdown after giving message:
systemd-shutdown[1]: Waiting for process: grep, lscpu

Any idea why this is happening?

The OS image:
Orangepizero2_3.0.6_ubuntu_jammy_desktop_xfce_linux5.16.17

This script need to be better

Hello! I have few question about this build script, one is what is the OS better for this?

  1. When I try to compile at debian 10 i've getting
Configuring for sun50iw6p1 - Board: sun50iw6p1, Options: SUN50IW6P1
  GEN     include/autoconf.mk.dep
  GEN     include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  scripts/basic/fixdep
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CC      lib/asm-offsets.s
  CC      arch/arm/lib/asm-offsets.s
  GEN     include/generated/generic-asm-offsets.h
  GEN     include/generated/asm-offsets.h
  HOSTCC  tools/aisimage.o
  HOSTCC  tools/atmelimage.o
  WRAP    tools/common/bootm.c
  LDS     u-boot.lds
  WRAP    tools/common/image-fit.c
  WRAP    tools/common/image.c
  HOSTCC  tools/default_image.o
[ error ] ERROR in function compile_uboot [ compilation.sh:217 ]
[ error ] U-boot compilation failed
[ o.k. ] Process terminated
  1. I had to install libusb library and another things over my apt

build fails orangepipc - [ error ] ERROR in function compile_kernel [ compilation.sh:392 ]

[ o.k. ] Using kernel config file [ config/kernel/linux-sunxi-current.config ]
scripts/kconfig/conf  --oldconfig Kconfig
#
# No change to .config
#
scripts/kconfig/mconf  Kconfig
Your display is too small to run Menuconfig!
It must be at least 19 lines by 80 columns.
make[1]: *** [scripts/kconfig/Makefile:33: menuconfig] Error 1
make: *** [Makefile:592: menuconfig] Error 2
[ error ] ERROR in function compile_kernel [ compilation.sh:392 ]
[ error ] Error kernel menuconfig failed 
[ o.k. ] Process terminated 

Bluetooth BNEP fails on Orange PI 3 LTS - bnep.c:bnep_add_to_bridge()

I've tried the setup below with many different boards. For some reason it fails on the Orange PI 3 LTS. If you fix this error, I will port it to Armbian like I did with your previous fix.

Image: Orangepi3-lts_3.0.6_debian_bullseye_server_linux5.16.17.img (I've also tried orange pi buster, ubuntu, etc.)

Setup from clean image

nano /etc/systemd/network/pan0.netdev

Paste content:

[NetDev]
Name=pan0
Kind=bridge
nano /etc/systemd/network/pan0.network

Paste content:

[Match]
Name=pan0

[Network]
Address=10.10.0.5/24
DHCPServer=true

[DHCPServer]
PoolOffset=100
PoolSize=100
EmitDNS=yes
DNS=9.9.9.9

[Link]
RequiredForOnline=false
apt-get install -y bluez bluez-tools nginx
systemctl enable systemd-networkd
systemctl enable nginx
reboot

Reproduce the error

In one terminal, start bt-agent:

/usr/bin/yes | /usr/bin/bt-agent -c NoInputNoOutput

In another terminal, start bt-network:

/usr/bin/bt-network -s nap pan0

In a 3rd terminal, set properties and tail log:

/usr/bin/bt-adapter --set Discoverable 1
/usr/bin/bt-adapter --set Pairable 1
journalctl -u bluetooth -f

Now connect to Bluetooth with a mobile phone. It prints this error on the orange PI:

Sep 15 17:10:31 orangepi3-lts systemd[1]: Starting Bluetooth service...
Sep 15 17:10:31 orangepi3-lts bluetoothd[1037]: Bluetooth daemon 5.55
Sep 15 17:10:31 orangepi3-lts bluetoothd[1037]: Starting SDP server
Sep 15 17:10:31 orangepi3-lts systemd[1]: Started Bluetooth service.
Sep 15 17:10:32 orangepi3-lts bluetoothd[1037]: Bluetooth management interface 1.21 initialized
Sep 15 17:15:42 orangepi3-lts bluetoothd[1037]: profiles/network/bnep.c:bnep_add_to_bridge() bnep: Can't add bnep0 to the bridge pan0: Invalid argument(22)
Sep 15 17:15:42 orangepi3-lts bluetoothd[1037]: profiles/network/server.c:bnep_setup() BNEP server cannot be added

It breaks here, which seems like some sort of network adapter index error?
https://github.com/bluez/bluez/blob/401643e5c5528a6d0c372f82b1059fc0e02aed8e/profiles/network/bnep.c#L450

Expected result: the mobile phone can open http://10.10.0.5 and see the nginx page.

If you get sap-server errors you can ignore them. Sap can be disabled and doesn't affect the problem reported here.

error: gpg failed to sign the data

CPU configuration:
480000 - 1512000 with ondemand
Displaying message: Preparing host info
Displaying message: Build host OS release focal info
Displaying message: Syncing clock cn.pool.ntp.org info
Displaying message: Checking for external GCC compilers info
pub rsa2048 2011-01-04 [SC]
873D6A08B28A5167B466D9D4D47877808F427EAF
uid [ 未知 ] Linaro Toolchain Builder [email protected]

pub rsa4096 2015-03-16 [SC]
DF00FAF1C577104B50BF1D0093D6889F9F0E78D5
uid [ 未知 ] Igor Pecovnik [email protected]
uid [ 未知 ] Igor Pecovnik (Ljubljana, Slovenia) [email protected]
sub rsa4096 2015-03-16 [E]

gpg: 没有已签名的数据
gpg: can't hash datafile: 无数据
Displaying message: ERROR in function download_and_verify general.sh:1031 err
Displaying message: verification failed err
Displaying message: Process terminated info

Ubuntu 2020-01-03 No temperature in htop

Hello!

There is different between Ubuntu from GoogleDrive and Ubuntu by me. When I use htop I can see temperature in Ubuntu from GoogleDrive only. How to fix it?
noTemp

I use Ubuntu from GoogleDrive Orangepi4_2.1.2_ubuntu_bionic_desktop_linux4.4.179.7z It works well and I can see temperature in htop.

Than I download orangepi-build from here and build my own Ubuntu 18. I do not change anything in config. I just build Ubuntu for my Orange Pi 4B. I use PC with Ubuntu 18 to build Ubuntu for Orange Pi 4B. I also try use PC with Ubuntu 20 to build Ubuntu for Orange Pi 4B. But I can't see temperature in htop, see picture.

Orange Pi Focal with Linux 4.4.179-rk3399

IMG_20210422_184428_489
I build Ubuntu 18 for my Orange Pi 4B using orangepi-build script.
After I make

sudo apt install ubuntu-release-upgrader-core
do-release-upgrade -d -f DistUpgradeViewNonInteractive

It is very interesting! My Orange Pi 4B works good! May be @orangepi-xunlong add option to build Ubuntu 20 directly from script? Or just build Ubuntu 20 instead of Ubuntu 18?

orangepi-check-first-login.sh not compatible with sh

Hi,

I'm one of the maintainers of the xrdp project.

As part of investigating issue neutrinolabs/xrdp#2044, we've found that /etc/profile.d/orangepi-check-first-login.sh is not compatible with sh, but assumes the user is using bash. This can be seen with:-

sh -x /etc/profile
. . .
/etc/profile: 20: /etc/profile.d/orangepi-check-first-login.sh: Syntax error: "(" unexpected

This means that any user configured with /bin/sh (and maybe other shells) will not be able to log in.

We found this issue also with Armbian a while ago. I raised it with them as armbian/build#2185, and then later raised a PR armbian/build#2190 to resolve it.

As far as I can see, a similar PR should be applied to OrangePI. Would you be happy for me to raise one?

Thanks.

[ error ] ERROR in function compile_uboot [ build.sh:305 -> scripts/main.sh:596 -> scripts/main.sh:479 -> scripts/compilation.sh:242 -> scripts/general.sh:0 ]

asus@asus-1:~/project/orangepi/orangepi-build$ ./build.sh
[ warn ] This script requires root privileges, trying to use sudo
[ o.k. ] Using config file [ /home/asus/project/orangepi/orangepi-build/userpatches/config-example.conf ]
[ .... ] Extension being added [ sunxi-tools :: added by build.sh:305 -> scripts/main.sh:358 -> scripts/configuration.sh:150 -> external/config/sources/families/sun50iw6.conf:2 -> external/config/sources/families/include/sunxi64_common.inc:1 -> 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
[ o.k. ] Downloading sources
[ o.k. ] Checking git sources [ /home/asus/project/orangepi/orangepi-build/u-boot v2021.10-sunxi ]
[ .... ] Creating local copy
[ .... ] Fetching updates
remote: Enumerating objects: 29850, done.
remote: Counting objects: 100% (10203/10203), done.
remote: Compressing objects: 100% (6240/6240), done.
remote: Total 29850 (delta 4413), reused 3974 (delta 3963), pack-reused 19647
接收对象中: 100% (29850/29850), 36.55 MiB | 9.46 MiB/s, 完成.
处理 delta 中: 100% (10069/10069), 完成.
来自 https://github.com/orangepi-xunlong/u-boot-orangepi

  • branch v2021.10-sunxi -> FETCH_HEAD
  • [新分支] v2021.10-sunxi -> origin/v2021.10-sunxi
    [ .... ] Checking out
    [ o.k. ] Checking git sources [ /home/asus/project/orangepi/orangepi-build/kernel orange-pi-5.16-sunxi64 ]
    [ .... ] Up to date
    [ o.k. ] Checking git sources [ /home/asus/project/orangepi/orangepi-build/external/cache/sources/arm-trusted-firmware-sunxi-mainline v2.2 ]
    [ .... ] Up to date
    [ o.k. ] Checking git sources [ /home/asus/project/orangepi/orangepi-build/external/cache/sources/sunxi-tools master ]
    [ .... ] Up to date
    [ o.k. ] Cleaning /home/asus/project/orangepi/orangepi-build/output/debs for [ orangepi3 next ]
    [ o.k. ] Compiling ATF
    [ o.k. ] Compiler version [ aarch64-none-linux-gnu-gcc 9.2.1 ]
    [ o.k. ] Started patching process for [ atf sun50iw6-orangepi3-next ]
    [ o.k. ] Looking for user patches in [ userpatches/atf/atf-sun50iw6 ]
    [ o.k. ] Compiling u-boot [ v2021.10 ]
    [ o.k. ] Compiler version [ aarch64-none-linux-gnu-gcc 9.2.1 ]
    [ o.k. ] Started patching process for [ u-boot sun50iw6-orangepi3-next ]
    [ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-sunxi ]
    '/tmp/tmp.Izp7PIpLSY/bl31.bin' -> './bl31.bin'
    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/kconfig/conf.o
    YACC scripts/kconfig/zconf.tab.c
    LEX scripts/kconfig/zconf.lex.c
    HOSTCC scripts/kconfig/zconf.tab.o
    HOSTLD scripts/kconfig/conf

configuration written to .config

scripts/kconfig/conf --syncconfig Kconfig
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk.dep
CFG spl/u-boot.cfg
GEN include/autoconf.mk
GEN spl/include/autoconf.mk
UPD include/generated/dt.h
UPD include/generated/timestamp_autogenerated.h
UPD include/config/uboot.release
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
SHIPPED scripts/dtc/pylibfdt/libfdt.i
LEX scripts/dtc/dtc-lexer.lex.c
YACC scripts/dtc/dtc-parser.tab.h
YACC scripts/dtc/dtc-parser.tab.c
UPD include/generated/version_autogenerated.h
PYMOD rebuild
CC lib/asm-offsets.s
CC arch/arm/lib/asm-offsets.s
UPD include/generated/asm-offsets.h
UPD include/generated/generic-asm-offsets.h
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
CFGCHK u-boot.cfg
LDS u-boot.lds
HOSTLD scripts/dtc/dtc
HOSTCC tools/gen_eth_addr
HOSTCC tools/gen_ethaddr_crc.o
WRAP tools/lib/crc8.c
HOSTCC tools/img2srec
HOSTCC tools/mkenvimage.o
HOSTCC tools/os_support.o
WRAP tools/lib/crc32.c
HOSTCC tools/aisimage.o
HOSTCC tools/atmelimage.o
HOSTCC tools/fit_common.o
HOSTCC tools/fit_image.o
HOSTCC tools/image-host.o
WRAP tools/common/image-fit.c
HOSTCC tools/image-sig-host.o
WRAP tools/common/image-fit-sig.c
WRAP tools/common/image-cipher.c
WRAP tools/common/fdt_region.c
WRAP tools/common/bootm.c
HOSTCC tools/lib/crc32.o
HOSTCC tools/default_image.o
WRAP tools/lib/fdtdec_common.c
WRAP tools/lib/fdtdec.c
WRAP tools/common/image.c
HOSTCC tools/imagetool.o
HOSTCC tools/imximage.o
HOSTCC tools/imx8image.o
HOSTCC tools/imx8mimage.o
HOSTCC tools/kwbimage.o
WRAP tools/lib/md5.c
HOSTCC tools/lpc32xximage.o
HOSTCC tools/mxsimage.o
HOSTCC tools/omapimage.o
HOSTCC tools/pblimage.o
HOSTCC tools/pbl_crc32.o
HOSTCC tools/vybridimage.o
HOSTCC tools/stm32image.o
WRAP tools/lib/rc4.c
HOSTCC tools/rkcommon.o
HOSTCC tools/rkimage.o
HOSTCC tools/rksd.o
HOSTCC tools/rkspi.o
HOSTCC tools/socfpgaimage.o
HOSTCC tools/sunxi_egon.o
WRAP tools/lib/crc16.c
WRAP tools/lib/hash-checksum.c
WRAP tools/lib/sha1.c
WRAP tools/lib/sha256.c
WRAP tools/lib/sha512.c
WRAP tools/common/hash.c
HOSTCC tools/ublimage.o
HOSTCC tools/zynqimage.o
HOSTCC tools/zynqmpimage.o
HOSTCC tools/zynqmpbif.o
WRAP tools/lib/fdt-libcrypto.c
HOSTCC tools/libfdt/fdt.o
HOSTCC tools/libfdt/fdt_ro.o
HOSTCC tools/libfdt/fdt_wip.o
HOSTCC tools/libfdt/fdt_sw.o
HOSTCC tools/libfdt/fdt_rw.o
HOSTCC tools/libfdt/fdt_strerror.o
HOSTCC tools/libfdt/fdt_empty_tree.o
HOSTCC tools/libfdt/fdt_addresses.o
HOSTCC tools/libfdt/fdt_overlay.o
HOSTCC tools/gpimage.o
HOSTCC tools/gpimage-common.o
HOSTCC tools/mtk_image.o
WRAP tools/lib/ecdsa/ecdsa-libcrypto.c
WRAP tools/lib/rsa/rsa-sign.c
WRAP tools/lib/rsa/rsa-verify.c
WRAP tools/lib/rsa/rsa-mod-exp.c
WRAP tools/lib/aes/aes-encrypt.c
WRAP tools/lib/aes/aes-decrypt.c
HOSTCC tools/dumpimage.o
HOSTCC tools/common/image-fit.o
HOSTCC tools/common/image-fit-sig.o
HOSTCC tools/common/image-cipher.o
HOSTCC tools/common/fdt_region.o
HOSTCC tools/common/bootm.o
HOSTCC tools/lib/fdtdec_common.o
HOSTCC tools/lib/fdtdec.o
HOSTCC tools/common/image.o
HOSTCC tools/lib/md5.o
HOSTCC tools/lib/rc4.o
HOSTCC tools/lib/crc16.o
HOSTCC tools/lib/hash-checksum.o
HOSTCC tools/lib/sha1.o
HOSTCC tools/lib/sha256.o
HOSTCC tools/lib/sha512.o
HOSTCC tools/common/hash.o
HOSTCC tools/lib/fdt-libcrypto.o
HOSTCC tools/lib/ecdsa/ecdsa-libcrypto.o
HOSTCC tools/lib/rsa/rsa-sign.o
HOSTCC tools/lib/rsa/rsa-verify.o
HOSTCC tools/lib/rsa/rsa-mod-exp.o
HOSTCC tools/lib/aes/aes-encrypt.o
HOSTCC tools/lib/aes/aes-decrypt.o
HOSTCC tools/mkimage.o
HOSTCC tools/fit_info.o
HOSTCC tools/fit_check_sign.o
HOSTCC tools/mksunxiboot
HOSTCC tools/sunxi-spl-image-builder.o
WRAP tools/lib/bch.c
HOSTCC tools/proftool
HOSTCC tools/relocate-rela
HOSTCC tools/fdtgrep.o
HOSTCC tools/spl_size_limit
HOSTCC tools/lib/crc8.o
HOSTLD tools/mkenvimage
HOSTCC tools/lib/bch.o
HOSTLD tools/fdtgrep
HOSTLD tools/gen_ethaddr_crc
HOSTLD tools/fit_info
HOSTLD tools/fit_check_sign
HOSTLD tools/sunxi-spl-image-builder
HOSTLD tools/dumpimage
HOSTLD tools/mkimage
AR arch/arm/cpu/built-in.o
CC arch/arm/cpu/armv8/cpu.o
CC arch/arm/cpu/armv8/generic_timer.o
CC arch/arm/cpu/armv8/cache_v8.o
AS arch/arm/lib/crt0_64.o
AS arch/arm/cpu/armv8/cache.o
AS arch/arm/lib/setjmp_aarch64.o
AS arch/arm/cpu/armv8/exceptions.o
AS arch/arm/lib/relocate_64.o
CC arch/arm/cpu/armv8/exception_level.o
CC arch/arm/lib/bootm-fdt.o
AS arch/arm/cpu/armv8/tlb.o
CC arch/arm/mach-sunxi/board.o
AS arch/arm/cpu/armv8/transition.o
CC arch/arm/lib/bootm.o
CC arch/arm/mach-sunxi/clock.o
CC arch/arm/cpu/armv8/fwcall.o
CC arch/arm/lib/image.o
CC board/sunxi/board.o
CC arch/arm/mach-sunxi/cpu_info.o
CC arch/arm/cpu/armv8/cpu-dt.o
CC arch/arm/lib/bdinfo.o
CC arch/arm/mach-sunxi/dram_helpers.o
AS arch/arm/cpu/armv8/lowlevel_init.o
CC arch/arm/lib/sections.o
AS arch/arm/cpu/armv8/start.o
CC arch/arm/mach-sunxi/pinmux.o
CC arch/arm/mach-sunxi/pmic_bus.o
CC arch/arm/lib/stack.o
CC arch/arm/mach-sunxi/clock_sun50i_h6.o
CC arch/arm/lib/interrupts_64.o
CC cmd/boot.o
CC cmd/bootm.o
CC arch/arm/lib/reset.o
CC cmd/help.o
CC arch/arm/lib/cache.o
CC cmd/panic.o
CC arch/arm/lib/psci-dt.o
AR arch/arm/lib/lib.a
CC cmd/version.o
AR cmd/arm/built-in.o
AS arch/arm/lib/crt0_aarch64_efi.o
CC common/main.o
CC disk/part.o
CC arch/arm/lib/reloc_aarch64_efi.o
CC disk/part_dos.o
CC cmd/blk_common.o
CC cmd/source.o
CC common/exports.o
CC disk/part_iso.o
CC common/init/board_init.o
CC common/autoboot.o
CC cmd/bdinfo.o
CC common/cli_hush.o
CC disk/part_efi.o
AR arch/arm/cpu/armv8/built-in.o
CC cmd/blkcache.o
CC cmd/bootefi.o
CC cmd/booti.o
CC common/board_f.o
AR arch/arm/mach-sunxi/built-in.o
CC common/board_r.o
CC cmd/console.o
CC common/board_info.o
CC cmd/echo.o
CC cmd/dm.o
CC common/bootm.o
CC cmd/elf.o
AR board/sunxi/built-in.o
CC common/bootm_os.o
CC cmd/exit.o
AR drivers/dma/ti/built-in.o
CC cmd/ext4.o
CC common/miiphyutil.o
CC common/fdt_support.o
CC common/usb.o
CC common/usb_hub.o
CC cmd/ext2.o
AR arch/arm/lib/built-in.o
CC common/splash.o
AR drivers/ata/built-in.o
CC cmd/fat.o
CC drivers/gpio/gpio-uclass.o
CC common/menu.o
AR drivers/adc/built-in.o
CC cmd/fdt.o
AR drivers/axi/built-in.o
CC drivers/block/blk-uclass.o
CC drivers/gpio/sunxi_gpio.o
AR drivers/dma/built-in.o
AR drivers/cache/built-in.o
AR drivers/bus/built-in.o
CC common/cli_readline.o
CC drivers/block/blkcache.o
CC common/cli_simple.o
CC cmd/fs.o
CC drivers/core/device.o
AR drivers/dfu/built-in.o
CC drivers/core/fdtaddr.o
AR common/init/built-in.o
AR drivers/i2c/built-in.o
AR drivers/net/mscc_eswitch/built-in.o
AR drivers/net/phy/built-in.o
CC drivers/crypto/fsl/sec.o
CC drivers/core/lists.o
AR drivers/net/qe/built-in.o
AR disk/built-in.o
AR drivers/clk/imx/built-in.o
AR drivers/crypto/rsa_mod_exp/built-in.o
CC drivers/clk/clk-uclass.o
CC common/console.o
CC drivers/clk/clk_fixed_rate.o
AR drivers/clk/tegra/built-in.o
CC drivers/core/root.o
AR drivers/clk/analogbits/built-in.o
CC common/dlmalloc.o
CC drivers/core/uclass.o
AR drivers/mailbox/built-in.o
AR drivers/clk/ti/built-in.o
CC drivers/core/util.o
CC common/malloc_simple.o
AR drivers/net/ti/built-in.o
AR drivers/gpio/built-in.o
CC common/image.o
CC drivers/clk/clk_fixed_factor.o
CC common/hash.o
CC drivers/clk/sunxi/clk_sun6i_rtc.o
AR drivers/crypto/fsl/built-in.o
CC drivers/core/device-remove.o
CC drivers/power/axp806.o
AR drivers/memory/built-in.o
CC drivers/clk/sunxi/clk_sunxi.o
CC drivers/mmc/mmc.o
AR drivers/misc/built-in.o
CC drivers/mmc/mmc-uclass.o
CC drivers/input/key_matrix.o
CC common/image-fdt.o
CC drivers/core/simple-bus.o
AR drivers/net/built-in.o
CC drivers/mmc/mmc_write.o
CC drivers/clk/sunxi/clk_h6.o
CC drivers/mmc/sunxi_mmc.o
AR drivers/pwm/built-in.o
AR drivers/block/built-in.o
AR drivers/mtd/nand/built-in.o
AR drivers/power/battery/built-in.o
CC drivers/core/dump.o
AR drivers/rtc/built-in.o
CC drivers/reset/reset-uclass.o
AR drivers/power/domain/built-in.o
CC drivers/reset/reset-sunxi.o
CC drivers/phy/allwinner/phy-sun4i-usb.o
CC cmd/gpio.o
CC common/image-fit.o
CC drivers/input/input.o
CC drivers/input/keyboard-uclass.o
AR drivers/scsi/built-in.o
AR drivers/power/built-in.o
AR drivers/crypto/built-in.o
AR drivers/power/fuel_gauge/built-in.o
AR drivers/phy/cadence/built-in.o
CC drivers/core/of_extra.o
CC drivers/core/ofnode.o
AR drivers/phy/rockchip/built-in.o
AR drivers/sound/built-in.o
AR drivers/phy/marvell/built-in.o
CC drivers/core/read_extra.o
AR drivers/power/mfd/built-in.o
AR drivers/soc/built-in.o
CC cmd/load.o
AR drivers/smem/built-in.o
CC cmd/itest.o
AR drivers/mtd/onenand/built-in.o
AR drivers/power/pmic/built-in.o
CC cmd/mem.o
CC cmd/mii.o
AR drivers/clk/sunxi/built-in.o
AR drivers/spmi/built-in.o
AR drivers/ufs/built-in.o
AR drivers/phy/socionext/built-in.o
CC cmd/sleep.o
CC drivers/phy/phy-uclass.o
AR drivers/watchdog/built-in.o
AR drivers/thermal/built-in.o
AR drivers/phy/ti/built-in.o
AR drivers/reset/built-in.o
CC cmd/mmc.o
CC common/stdio.o
AR drivers/phy/allwinner/built-in.o
AR drivers/video/bridge/built-in.o
CC cmd/net.o
CC common/memsize.o
CC cmd/part.o
AR drivers/video/sunxi/built-in.o
CC common/command.o
CC common/cli.o
AR drivers/video/ti/built-in.o
CC cmd/pxe.o
CC cmd/pxe_utils.o
CC common/s_record.o
CC common/xyzModem.o
AR drivers/input/built-in.o
CC drivers/serial/serial-uclass.o
AR drivers/power/regulator/built-in.o
CC cmd/setexpr.o
CC drivers/serial/ns16550.o
AR drivers/core/built-in.o
AR drivers/clk/built-in.o
CC cmd/test.o
CC drivers/spi/spi.o
CC cmd/unlz4.o
CC cmd/unzip.o
CC cmd/sysboot.o
CC cmd/lzmadec.o
AR drivers/usb/cdns3/built-in.o
AR drivers/video/built-in.o
CC cmd/ximg.o
CC cmd/gpt.o
CC cmd/nvedit.o
AR drivers/mmc/built-in.o
AR drivers/phy/built-in.o
AR common/built-in.o
CC drivers/usb/common/common.o
AR drivers/usb/dwc3/built-in.o
AR drivers/serial/built-in.o
AR drivers/spi/built-in.o
AR drivers/usb/emul/built-in.o
AR drivers/usb/eth/built-in.o
AR drivers/mtd/spi/built-in.o
CC drivers/usb/gadget/epautoconf.o
AR cmd/built-in.o
CC drivers/usb/gadget/config.o
CC drivers/usb/gadget/usbstring.o
CC drivers/usb/gadget/udc/udc-uclass.o
AR drivers/usb/common/built-in.o
CC drivers/usb/host/usb-uclass.o
AR drivers/mtd/built-in.o
AR drivers/usb/mtu3/built-in.o
AR drivers/usb/musb/built-in.o
AR drivers/usb/phy/built-in.o
AR drivers/built-in.o
AR drivers/usb/gadget/built-in.o
AR drivers/usb/gadget/udc/built-in.o
AR drivers/usb/ulpi/built-in.o
AR drivers/usb/host/built-in.o
CC env/common.o
CC env/env.o
CC env/attr.o
CC env/flags.o
CC fs/fs.o
CC env/callback.o
CC env/fat.o
CC fs/fs_internal.o
CC fs/ext4/ext4fs.o
CC net/arp.o
CC fs/fat/fat_write.o
CC fs/ext4/ext4_common.o
CC net/bootp.o
AR drivers/usb/musb-new/built-in.o
CC fs/ext4/dev.o
CC net/eth-uclass.o
CC lib/binman.o
CC lib/charset.o
CC net/eth_common.o
AR lib/crypto/built-in.o
CC net/net.o
CC lib/efi_driver/efi_uclass.o
CC net/nfs.o
CC lib/libfdt/fdt.o
CC lib/efi_driver/efi_block_device.o
CC lib/crc8.o
CC lib/lzma/LzmaDec.o
CC lib/libfdt/fdt_ro.o
CC lib/lzma/LzmaTools.o
CC lib/efi_loader/efi_bootmgr.o
CC lib/zlib/zlib.o
CC lib/efi_loader/efi_boottime.o
CC net/ping.o
CC lib/crc16.o
CC net/tftp.o
CC lib/efi_loader/efi_helper.o
CC lib/efi_loader/efi_console.o
CC lib/libfdt/fdt_wip.o
CC lib/efi_loader/efi_device_path.o
CC lib/efi_loader/efi_device_path_to_text.o
AR env/built-in.o
CC lib/libfdt/fdt_strerror.o
CC lib/efi_loader/efi_device_path_utilities.o
CC lib/libfdt/fdt_sw.o
CC lib/fdtdec_common.o
CC lib/efi_loader/efi_dt_fixup.o
CC lib/efi_loader/efi_file.o
CC lib/libfdt/fdt_empty_tree.o
CC lib/libfdt/fdt_addresses.o
CC lib/efi_loader/efi_hii.o
CC lib/libfdt/fdt_rw.o
CC lib/libfdt/fdt_overlay.o
CC lib/smbios.o
AR fs/ext4/built-in.o
AR fs/fat/built-in.o
CC lib/efi_loader/efi_image_loader.o
CC lib/efi_loader/efi_load_options.o
CC lib/net_utils.o
CC lib/rc4.o
CC lib/list_sort.o
CC lib/ldiv.o
AR lib/lzma/built-in.o
CC lib/efi_loader/efi_memory.o
CC lib/efi_loader/efi_root_node.o
CC lib/md5.o
CC lib/efi_loader/efi_runtime.o
CC lib/hash-checksum.o
CC lib/efi_loader/efi_setup.o
CC lib/sha256.o
CC lib/sha1.o
AR net/built-in.o
AR lib/zlib/built-in.o
AR fs/built-in.o
CC lib/efi_loader/efi_string.o
CC lib/efi_loader/efi_unicode_collation.o
CC lib/gunzip.o
CC lib/efi_loader/efi_var_common.o
AR lib/efi_driver/built-in.o
CC lib/efi_loader/efi_var_mem.o
CC lib/efi_loader/efi_var_file.o
CC lib/lz4_wrapper.o
CC lib/fdtdec.o
CC lib/qsort.o
CC lib/efi_loader/efi_variable.o
CC lib/hashtable.o
CC lib/errno.o
CC lib/display_options.o
CC lib/efi_loader/efi_watchdog.o
CC lib/crc32.o
CC lib/ctype.o
CC lib/efi_loader/efi_disk.o
CC lib/div64.o
CC lib/efi_loader/efi_net.o
CC lib/hang.o
CC lib/efi_loader/efi_smbios.o
CC lib/linux_compat.o
CC lib/efi_loader/efi_load_initrd.o
CC lib/linux_string.o
CC lib/lmb.o
CC lib/membuff.o
CC lib/efi_loader/helloworld.o
AR lib/libfdt/built-in.o
AS lib/efi_loader/efi_crt0.o
CC lib/efi_loader/efi_reloc.o
CC lib/slre.o
CC lib/efi_loader/efi_freestanding.o
CC lib/string.o
CC lib/tables_csum.o
CC lib/time.o
CC lib/hexdump.o
CC lib/uuid.o
CC lib/rand.o
CC lib/panic.o
AR lib/efi_loader/built-in.o
CC lib/vsprintf.o
LD lib/efi_loader/helloworld_efi.so
CC lib/strto.o
CC lib/date.o
CC lib/rtc-lib.o
CC lib/elf.o
OBJCOPY lib/efi_loader/helloworld.efi
AR lib/built-in.o
LD u-boot
[ error ] ERROR in function compile_uboot [ build.sh:305 -> scripts/main.sh:596 -> scripts/main.sh:479 -> scripts/compilation.sh:242 -> scripts/general.sh:0 ]
[ error ] U-boot compilation failed
[ o.k. ] Process terminated

Build U-boot - multiple definition of `yylloc'

root@35b6a4c971d9:~/OrangePiRK3399# ./build.sh
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
automake is already the newest version (1:1.16.5-1.3).
bc is already the newest version (1.07.1-3build1).
dosfstools is already the newest version (4.2-1build3).
gcc is already the newest version (4:11.2.0-1ubuntu1).
lib32z1 is already the newest version (1:1.2.11.dfsg-2ubuntu9).
lib32z1-dev is already the newest version (1:1.2.11.dfsg-2ubuntu9).
make is already the newest version (4.3-4.1build1).
mtools is already the newest version (4.0.33-1+really4.0.32-1build1).
pv is already the newest version (1.6.6-1build2).
u-boot-tools is already the newest version (2022.01+dfsg-2ubuntu2).
libarchive-tools is already the newest version (3.6.0-1ubuntu1).
python2-minimal is already the newest version (2.7.18-3).
debootstrap is already the newest version (1.0.126+nmu1ubuntu0.1).
qemu-user-static is already the newest version (1:6.2+dfsg-2ubuntu6.1).
The following additional packages will be installed:
  libexpat1-dev libncurses-dev libpipeline1 libpython2.7 swig4.0
Suggested packages:
  bison-doc build-essential flex-doc ncurses-doc libssl-doc swig-doc swig-examples swig4.0-examples swig4.0-doc
Recommended packages:
  libfl-dev
The following NEW packages will be installed:
  binfmt-support bison dos2unix flex libexpat1-dev libncurses-dev libncurses5-dev libpipeline1 libpython2.7 libpython2.7-dev libssl-dev swig swig4.0
0 upgraded, 13 newly installed, 0 to remove and 5 not upgraded.
Need to get 9208 kB of archives.
After this operation, 42.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 flex amd64 2.6.4-8build2 [307 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpipeline1 amd64 1.5.5-1 [23.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 binfmt-support amd64 2.2.1-2 [55.8 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 bison amd64 2:3.8.2+dfsg-1build1 [748 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libexpat1-dev amd64 2.4.7-1 [147 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libncurses-dev amd64 6.3-2 [380 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 libncurses5-dev amd64 6.3-2 [780 B]
Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libpython2.7 amd64 2.7.18-13ubuntu1 [1162 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libpython2.7-dev amd64 2.7.18-13ubuntu1 [2512 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.2 [2372 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/universe amd64 swig4.0 amd64 4.0.2-1ubuntu1 [1110 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/universe amd64 swig all 4.0.2-1ubuntu1 [5632 B]
Get:13 http://archive.ubuntu.com/ubuntu jammy/universe amd64 dos2unix amd64 7.4.2-2 [384 kB]
Fetched 9208 kB in 2s (4170 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package flex.
(Reading database ... 15559 files and directories currently installed.)
Preparing to unpack .../00-flex_2.6.4-8build2_amd64.deb ...
Unpacking flex (2.6.4-8build2) ...
Selecting previously unselected package libpipeline1:amd64.
Preparing to unpack .../01-libpipeline1_1.5.5-1_amd64.deb ...
Unpacking libpipeline1:amd64 (1.5.5-1) ...
Selecting previously unselected package binfmt-support.
Preparing to unpack .../02-binfmt-support_2.2.1-2_amd64.deb ...
Unpacking binfmt-support (2.2.1-2) ...
Selecting previously unselected package bison.
Preparing to unpack .../03-bison_2%3a3.8.2+dfsg-1build1_amd64.deb ...
Unpacking bison (2:3.8.2+dfsg-1build1) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../04-libexpat1-dev_2.4.7-1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.4.7-1) ...
Selecting previously unselected package libncurses-dev:amd64.
Preparing to unpack .../05-libncurses-dev_6.3-2_amd64.deb ...
Unpacking libncurses-dev:amd64 (6.3-2) ...
Selecting previously unselected package libncurses5-dev:amd64.
Preparing to unpack .../06-libncurses5-dev_6.3-2_amd64.deb ...
Unpacking libncurses5-dev:amd64 (6.3-2) ...
Selecting previously unselected package libpython2.7:amd64.
Preparing to unpack .../07-libpython2.7_2.7.18-13ubuntu1_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.18-13ubuntu1) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../08-libpython2.7-dev_2.7.18-13ubuntu1_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.18-13ubuntu1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../09-libssl-dev_3.0.2-0ubuntu1.2_amd64.deb ...
Unpacking libssl-dev:amd64 (3.0.2-0ubuntu1.2) ...
Selecting previously unselected package swig4.0.
Preparing to unpack .../10-swig4.0_4.0.2-1ubuntu1_amd64.deb ...
Unpacking swig4.0 (4.0.2-1ubuntu1) ...
Selecting previously unselected package swig.
Preparing to unpack .../11-swig_4.0.2-1ubuntu1_all.deb ...
Unpacking swig (4.0.2-1ubuntu1) ...
Selecting previously unselected package dos2unix.
Preparing to unpack .../12-dos2unix_7.4.2-2_amd64.deb ...
Unpacking dos2unix (7.4.2-2) ...
Setting up libpipeline1:amd64 (1.5.5-1) ...
Setting up libpython2.7:amd64 (2.7.18-13ubuntu1) ...
Setting up flex (2.6.4-8build2) ...
Setting up libncurses-dev:amd64 (6.3-2) ...
Setting up libexpat1-dev:amd64 (2.4.7-1) ...
Setting up libssl-dev:amd64 (3.0.2-0ubuntu1.2) ...
Setting up binfmt-support (2.2.1-2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up libncurses5-dev:amd64 (6.3-2) ...
Setting up bison (2:3.8.2+dfsg-1build1) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/yacc.1.gz because associated file /usr/share/man/man1/bison.yacc.1.gz (of link group yacc) doesn't exist
Setting up dos2unix (7.4.2-2) ...
Setting up swig4.0 (4.0.2-1ubuntu1) ...
Setting up libpython2.7-dev:amd64 (2.7.18-13ubuntu1) ...
Setting up swig (4.0.2-1ubuntu1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
 Build U-boot
make for rk3399_defconfig by -j8
  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
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     tpl/u-boot.cfg
  CFG     spl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     spl/include/autoconf.mk
  GEN     tpl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  SHIPPED scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  CHK     include/config.h
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  CFG     u-boot.cfg
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:108: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:425: scripts/dtc] Error 2
make: *** [Makefile:491: scripts] Error 2
make: *** Waiting for unfinished jobs....
  UPD     include/config/uboot.release

orangepi 4b lts can't boot from emmc

orangepi 4b lts 意外停电后,重新上电,出现无法启动问题

看上去像错误的使用/boot/dtb/rockchip/rk3399-orangepi-4.dtb
应该使用的是rk3399-orangepi-4-lts.dtb

分析发现读取orangepiEnv.txt的异常,
4096 bytes read in 16 ms (250 KiB/s)
实际应该读取209字节。

请问这个问题怎么解决。

完整启动日志

DDR Version 1.24 20191016 In channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 0 training pass! channel 1 training pass! change freq to 416MHz 0,1 Channel 0: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB Channel 1: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB 256B stride channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x1 MR8=0x10 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0x0 channel 0 training pass! channel 1 training pass! channel 0, cs 0, advanced training done channel 1, cs 0, advanced training done change freq to 856MHz 1,0 ch 0 ddrconfig = 0x101, ddrsize = 0x40 ch 1 ddrconfig = 0x101, ddrsize = 0x40 pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD ddr_set_rate to 328MHZ ddr_set_rate to 666MHZ ddr_set_rate to 928MHZ channel 0, cs 0, advanced training done channel 1, cs 0, advanced training done ddr_set_rate to 416MHZ, ctl_index 0 ddr_set_rate to 856MHZ, ctl_index 1 support 416 856 328 666 928 MHz, current 856MHz OUT Boot1: 2019-03-14, version: 1.19 CPUId = 0x0 ChipType = 0x10, 255 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=14910MB FwPartOffset=2000 , 100000 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 SdmmcInit=0 1 StorageInit ok = 67833 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT 0x3380ec0 signature is wrong recovery gpt... GPT 0x3380ec0 signature is wrong recovery gpt fail! LoadTrust Addr:0x4000 No find bl30.bin No find bl32.bin Load uboot, ReadLba = 2000 Load OK, addr=0x200000, size=0xb5130 RunBL31 0x40000 �NOTICE: BL31: v1.3(debug):42583b6 NOTICE: BL31: Built : 07:55:13, Oct 15 2019 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1190): pd status 3e INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMCs destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9

U-Boot 2020.10-orangepi (Mar 07 2022 - 18:56:22 +0800)

Model: OrangePi 4 AI board
DRAM: 3.9 GiB
PMIC: RK808
MMC: mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Model: OrangePi 4 AI board
Net: eth0: ethernet@fe300000
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3341 bytes read in 18 ms (180.7 KiB/s)
Executing script at 00500000

Boot script loaded from mmc 0
4096 bytes read in 16 ms (250 KiB/s)
6501981 bytes read in 637 ms (9.7 MiB/s)
10810271 bytes read in 1048 ms (9.8 MiB/s)
Failed to load '/boot/dtb/rockchip/rk3399-orangepi-4.dtb'
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr

" command.
Aborting!
Failed to load '/boot/dtb/rockchip/overlay/-fixup.scr'
Uncompressing Kernel Image
Moving Image from 0x2080000 to 0x2200000, end=40e0000
Loading init Ramdisk from Legacy Image at 06000000 ...

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 6501917 Bytes = 6.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
SCRIPT FAILED: continuing...
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3c0000: USB EHCI 1.00
scanning bus usb@fe380000 for devices... 1 USB Device(s) found
scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
ethernet@fe300000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
`

No have sound in HDMI Orange Pi Zero 2 Debian XFCE 3.0.0

Hello! I install on orangepi zero 2 this image: Orangepizero2_3.0.0_debian_bullseye_desktop_xfce_linux5.16.17
In this image I havent sound in HDMI. Dmesg show next errors:
input: dmesg | grep snd
[ 1.291730] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.235495] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.236540] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.243243] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.243401] #0: sndahub
[ 2.703637] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.705602] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.729792] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed

pulseaudio -v command have this error:
E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="platform-soc_sound_0" card_name="alsa_card.platform-soc_sound_0" namereg_fail=false tsched=no fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
I: [pulseaudio] module-udev-detect.c: Card /devices/platform/soc/soc:sound@0/sound/card0 (alsa_card.platform-soc_sound_0) failed to load module.

Please fix this error.
Thanks!

Failed to retrieve jammy release on non-China mirror

Uncommented the China download mirror in config-default.conf and when I went to build a Jammy server image it failed.

[ o.k. ] Installing base system [ Stage 1/2 ]
I: Retrieving InRelease 
I: Retrieving Release 
E: Failed getting release file https://ports.ubuntu.com/dists/jammy/Release
[ error ] ERROR in function create_rootfs_cache [ build.sh:305 -> scripts/main.sh:603 -> scripts/main.sh:572 -> scripts/debootstrap.sh:50 -> scripts/debootstrap.sh:162 -> scripts/general.sh:0 ]
[ error ] Debootstrap base system for legacy orangepi5 jammy   yes first stage failed 
[ o.k. ] Process terminated 
[ error ] unmount_on_exit() called! [ build.sh:305 -> scripts/main.sh:1 -> scripts/image-helpers.sh:0 ]
[ o.k. ] Unmounting [ /home/jberi/orangepi-build/.tmp/rootfs-a5df2e4e-9e48-40a2-beb3-3d1e26833c38/ ]
[ error ] ERROR in function unmount_on_exit [ build.sh:305 -> scripts/main.sh:1 -> scripts/image-helpers.sh:90 -> scripts/general.sh:0 ]
[ error ] debootstrap-ng was interrupted 
[ o.k. ] Process terminated 

OPi Zero 2 GPU Drivers?

Hi, i have a problem with mainline kernel panfrost driver. I'm compiled it into kernel and dmesg | grep panfrost shows nothing.
However, official arm mali driver doesn't work too. System just can't detect gpu. I think there's problem in device tree.

Orangepi 4LTS build Debian can't boot to xfce Desktop

Hi,

I using following command to build Debian full image for OrangePI 4LTS,

sudo ./build.sh  BOARD=orangepi4-lts BRANCH=current BUILD_OPT=image RELEASE=bullseye BUILD_MINIMAL=no BUILD_DESKTOP=yes KERNEL_CONFIGURE=no DESKTOP_ENVIRONMENT=xfce DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DESKTOP_APPGROUPS_SELECTED="desktop_tools programming" COMPRESS_OUTPUTIMAGE=sha,gpg,img 

but the device only boot to console and not enter into xfce desktop, when command shows shat no startx and startxfce4. is there something missing using the build.sh?

Thanks.

PCIe fails to initialize on Orange PI 5

Hi,

I received an Orange Pi 5 and I could not use the NVMe SSD.

I tried with

  • Orangepi5_1.0.2_debian_bullseye_server_linux5.10.110.7z
  • Orangepi5_1.0.6_ubuntu_focal_server_linux5.10.110.7z with the same result.

After some investigation I noticed that tthe PCIe fails to initialize with:

$ cat dmesg.txt | grep rk-pcie
[    6.086227] rk-pcie fe190000.pcie: invalid prsnt-gpios property in node
[    6.086238] rk-pcie fe190000.pcie: Looking up vpcie3v3-supply from device tree
[    6.086922] rk-pcie fe190000.pcie: missing legacy IRQ resource
[    6.086939] rk-pcie fe190000.pcie: IRQ msi not found
[    6.086945] rk-pcie fe190000.pcie: use outband MSI support
[    6.086951] rk-pcie fe190000.pcie: Missing *config* reg space
[    6.086966] rk-pcie fe190000.pcie: host bridge /pcie@fe190000 ranges:
[    6.086996] rk-pcie fe190000.pcie:      err 0x00f4000000..0x00f40fffff -> 0x00f4000000
[    6.087018] rk-pcie fe190000.pcie:       IO 0x00f4100000..0x00f41fffff -> 0x00f4100000
[    6.087040] rk-pcie fe190000.pcie:      MEM 0x00f4200000..0x00f4ffffff -> 0x00f4200000
[    6.087058] rk-pcie fe190000.pcie:      MEM 0x0a00000000..0x0a3fffffff -> 0x0a00000000
[    6.087088] rk-pcie fe190000.pcie: Missing *config* reg space
[    6.087118] rk-pcie fe190000.pcie: invalid resource
[    6.293620] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    6.319156] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    6.345823] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    6.372490] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    6.399152] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    6.425824] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    6.452485] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x1
[    6.479154] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x0
[    6.505824] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    6.532487] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x2
[    8.992510] rk-pcie fe190000.pcie: PCIe Link Fail
[    8.992526] rk-pcie fe190000.pcie: failed to initialize host

This happens with or without the NVMe SSD plugged in.

Here is the full dmesg log: https://pastebin.com/4UZ03yAP

Please tell me if this is a software or hardware issue and how to fix this.

Thanks.

Also posted on OrangePI forums: http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=144107&extra=

Bluetooth doesn't work on OPI3 LTS

Hi,

The image built by current mainline doesn't include hciattach_opi:
During build it shows:

install: cannot stat '/home/sde/projects/orangepi-build/external/packages/blobs/bt/hciattach/hciattach_opi_arm64_current': No such file or directory

It looks like this patch (ef22bd4) did not include the same change for the OPI3 hardware:
https://github.com/orangepi-xunlong/orangepi-build/blob/main/external/config/sources/families/sun50iw6.conf

There's also the issue that the 'addr_mgt' kernel module is not yet available in the 5.10 kernel. This makes the hciattach_opi tool segfault when trying to read the mac address.

Regards,
Stijn

Orangepi 4 LTS

Please include a config for Orangepi 4 LTS. The when using the Orangepi 4 build option neither wifi nor BT works.
Selecting ap6255 and motorcomm modules manually compiles but it doesn't work at the end.

dmesg | grep wifi
[ 1.478013] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6255
[ 1.478020] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[ 1.478026] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[ 1.478112] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[ 4.216122] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[ 4.216142] dhd_wifi_platform_load: Enter
[ 4.216441] wifi_platform_set_power = 1
[ 4.216454] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 4.216460] [WLAN_RFKILL]: wifi turn on power. -1
[ 4.342754] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[ 4.342869] dhd_wifi_platform_load_sdio dhd_bus_reg_sdio_notify fail(-16)
[ 4.342962] unregister wifi platform drivers
[ 4.344399] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[ 4.344485] dhd_wifi_platform_load_sdio dhd_bus_reg_sdio_notify fail(-16)
[ 4.344686] unregister wifi platform drivers

Change U-boot args

Hello

I rebuild U-boot for my Orange pi 4B. I want disable debug uart. As I see in file boot-rockchip64.cmd I shouldn't change anything. I need /boot/orangepiEnv.txt But I can't find it in my build tree. @orangepi-xunlong are you shure that /boot/orangepiEnv.txt exist for Orange Pi 4B?

Screenshot from 2021-04-13 03-06-22

Orange pi zero 2 can't reboot

Hello,
I recently bought orangepi zero 2 sample and there is most strage thing: it doesn't reboot on

sudo reboot now

or

sudo shutdown -r now

it actually shuts down and never powers up.

This happens with these firmware:

  • Orangepizero2_2.1.0_ubuntu_focal_server_linux4.9.170
  • Armbian_21.02.1_Orangepizero2_focal_current_5.10.12
  • Armbian_21.02.1_Orangepizero2_buster_current_5.10.12

But with these firmware reboot works properly:

  • Orangepizero2_2.1.0_ubuntu_bionic_server_linux4.9.170
  • Orangepizero2_2.1.0_debian_buster_server_linux4.9.170

I tested this with many power supplies.

libkms.so.1

After build full OS using orangepi-build I try upgrade packages of my Ubuntu 18 server
The end of log is

The following packages will be upgraded:
  libcaca0
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 192 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-security/main arm64 libcaca0 arm64 0.99.beta19-2ubuntu0.18.04.2 [192 kB]
Fetched 192 kB in 3s (76.8 kB/s)   
(Reading database ... 33743 files and directories currently installed.)
Preparing to unpack .../libcaca0_0.99.beta19-2ubuntu0.18.04.2_arm64.deb ...
Unpacking libcaca0:arm64 (0.99.beta19-2ubuntu0.18.04.2) over (0.99.beta19-2ubuntu0.18.04.1) ...
Setting up libcaca0:arm64 (0.99.beta19-2ubuntu0.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
/sbin/ldconfig.real: /usr/lib/libdrm.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/liborc-test-0.4.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libdrm_radeon.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libdrm_amdgpu.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libdrm_freedreno.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libdrm_nouveau.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libkms.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/liborc-0.4.so.0 is not a symbolic link

I try build Qt with KMS. This is a big problem because "/sbin/ldconfig.real: /usr/lib/libkms.so.1 is not a symbolic link"
I need bring back KMS to my Ubuntu 18 server. How I can solve it?
Screenshot from 2021-04-23 01-23-48

I also can make sudo /sbin/ldconfig to get this long errors list...

Can't launch chromium on Orange Pi Zero 2 Debian XFCE 3.0.0

Hello! I use image Orangepizero2_3.0.0_debian_bullseye_desktop_xfce_linux5.16.17 and I cant run chromium. I install it, but it not launch at all. If I launch chromium in terminal I see this output:

orangepi@orangepizero2:~$ chromium 
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2777:2777:0518/215116.453094:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2777:2815:0518/215116.481654:ERROR:zygote_host_impl_linux.cc(262)] Failed to adjust OOM score of renderer with pid 2842: Permission denied (13)
[2777:2777:0518/215116.962688:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=6
[2777:2843:0518/215116.973937:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[2777:2843:0518/215116.983793:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2777:2843:0518/215116.991157:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
*** stack smashing detected ***: terminated
[2777:2777:0518/215117.039239:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2777:2777:0518/215117.114073:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2777:2777:0518/215117.306994:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=6
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
[2777:2777:0518/215117.377913:ERROR:gpu_process_host.cc(974)] GPU process exited unexpectedly: exit_code=6
[2777:2777:0518/215117.378058:FATAL:gpu_data_manager_impl_private.cc(447)] GPU process isn't usable. Goodbye.
Trace/breakpoint trap

I launch chromium with argument --disable-gpu, --disable-gpu-driver-bug-workarounds, --disable-features=UseChromeOSDirectVideoDecoder , but it not help and I saw same log.
Also I try to install mesa-vdpau-drivers, libvdpau-va-gl1, va-driver-all libva2, libva-glx2 and I have same issue.
Also I try to update graphics drivers like mesa and OpenGL components from sid repository, but it not help.
On Orangepizero2_2.2.0_ubuntu_focal_desktop_linux4.9.170 image chromium browser installed by default and works.
Please help to solve this issue. Thank you!

I want to modify source code and compile,what should I do?

I want to make some changes in the source code,So I modify the config file:config-example.conf ,like below.
But after I excute the build.sh.it says something is wrong.like the kernel has not been compiled.

`# Read build script documentation https://docs.armbian.com/Developer-Guide_Build-Options/

for detailed explanation of these options and for additional options not listed here

KERNEL_ONLY="yes" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt
SOURCE_COMPILE="yes"
KERNEL_CONFIGURE="" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt
KERNEL_CLEAN="yes"
FORCE_CHECKOUT="no"
CLEAN_LEVEL="make,debs,oldcache" # comma-separated list of clean targets: "make" = make clean for selected kernel and u-boot,
IGNORE_UPDATES="yes"
# "debs" = delete packages in "./output/debs" for current branch and family,
# "alldebs" = delete all packages in "./output/debs", "images" = delete "./output/images",
# "cache" = delete "./output/cache", "sources" = delete "./sources"
# "oldcache" = remove old cached rootfs except for the newest 8 files

REPOSITORY_INSTALL="" # comma-separated list of core modules which will be installed from repository
# "u-boot", "kernel", "bsp", "armbian-config", "armbian-firmware"
# leave empty to build from sources or use local cache

DEST_LANG="en_US.UTF-8" # sl_SI.UTF-8, en_US.UTF-8

advanced

EXTERNAL_NEW="prebuilt" # compile and install or install prebuilt additional packages
INSTALL_HEADERS="" # install kernel headers package
LIB_TAG="master" # change to "branchname" to use any branch currently available.
USE_TORRENT="yes" # use torrent network for faster toolchain and cache download
DOWNLOAD_MIRROR="" # set to "china" to use mirrors.tuna.tsinghua.edu.cn
CARD_DEVICE="" # device name /dev/sdx of your SD card to burn directly to the card when done
`

Error on Installing base system

Good day!, I'm having trouble compiling orangepi-one image in which an error occur on Installing base system attached below is the screenshot of the error thanks!. Btw I'm running on Ubuntu 18.04.

image

gstreamer only for Desktop?

Hello.

I build OS for server, not Desktop. I have got OrangePi 4B. I use
./build.sh BOARD=orangepi4 BRANCH=legacy BUILD_OPT=image RELEASE=focal BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes COMPRESS_OUTPUTIMAGE=img OFFLINE_WORK=yes OPI_USERNAME=a OPI_PWD=0 CREATE_PATCHES=yes SERIALCON=none

But build script try to add some of gstreamer. There are a lot of errors while building:
[ .... ] Installing [ orangepi-firmware_2.2.2_all.deb ]
cp: cannot create regular file '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/share/sounds/alsa/': No such file or directory
cp: cannot stat '/home/a/Documents/XunlongA/external/cache/sources/rk3399_gst_xserver_libs/gstreamer/focal_build/etc/iqfiles': No such file or directory
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/bin/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/include/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/lib/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/share/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/bin/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/include/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/lib/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/share/'
Try 'cp --help' for more information.
cp: missing destination file operand after '/home/a/Documents/XunlongA/.tmp/rootfs-legacy-orangepi4-focal-no-yes/usr/libexec/'
Try 'cp --help' for more information.
[ o.k. ] Calling image customization script [ customize-image.sh ]

May be Xunlong should check no only
if [[ $BOARD == orangepi4 ]]; then
But also
if [[ $BUILD_DESKTOP == no ]]; then
?

if [[ $BOARD == orangepi4 ]]; then

R1 Plus LTS fan controller

I'm not sure if this is the right place for this, or even if you consider it a bug, but:

Should the PWM fan interface be enabled by default in the build? From the schematic, the fan interface is on PWM2, but the device tree configuration here is

pwm2: pwm@ff1b0020 {
compatible = "rockchip,rk3328-pwm";
reg = <0x0 0xff1b0020 0x0 0x10>;
clocks = <&cru 60>, <&cru 214>;
clock-names = "pwm", "pclk";
pinctrl-names = "default";
pinctrl-0 = <&pwm2_pin>;
#pwm-cells = <3>;
status = "disabled";
};

Changing the status to "okay" makes the pwm device appear in /sys, although I have not yet succeeded in getting a fan to actually run when connected to the board.

multiple errors !!!

log.txt

lot of errors
no dp on the usbc port ?
no i2c2 ?
fusb302 errors ?
dmc errors ?
dptx.bin trouble ?

just see the log

No aw859a-wifi.service

“For AW859A driver source was include in Allwinner H616 Orange Pi Zero2 BSP, you can get it from orangepi-build repository",linux-sunxi.org said.But there is no any wifi driver for aw859a so that the armbian for orangepi zero 2 cant activate wifi.

How to build ds1307 module for orange pi 5?

Hi,

I need rtc-ds1307 driver. So I downloaded linux-5.10.110 kernel source code and get the config with command

cp -v /boot/config-$(uname -r) .config

and edited the config file and set these lines:

CONFIG_RTC_DRV_DS1307=m
CONFIG_RTC_DRV_DS1307_CENTURY=y

Then used make and make modules to get the rtc-ds1307.ko. But when I try to insert the module using this command

insmod rtc-ds1307.ko

I get

insmod: ERROR: could not insert module rtc-ds1307.ko: Invalid module format.

and when running:

modprobe rtc-ds1307

I get:

modprobe: ERROR: could not insert 'rtc_ds1307': Exec format error

What is the problem and how can I solve it?

spi_busnum_to_master is not exported

i see no symbol spi_busnum_to_master being exported as well <linux/spi/spi.h> does not have :
extern struct spi_master *spi_busnum_to_master(u16 busnum);
If i manually add that declaration, build fails a bit later with

  MODPOST /home/orangepi/driver/Module.symvers
ERROR: modpost: "spi_busnum_to_master" [/home/orangepi/driver/spissd1306.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:134: /home/orangepi/driver/Module.symvers] Error 1
make[2]: *** Deleting file '/home/orangepi/driver/Module.symvers'
make[1]: *** [Makefile:1763: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.16.17-sun50iw9'
make: *** [Makefile:8: all] Error 2

the code im trying to build works on other platforms, in fact it is a part of tutorial:
https://github.com/Embetronicx/Tutorials/tree/master/Linux/Device_Driver/SPI_Driver/SPI-driver-example-protocol-driver

[opi 4 lts] Kernel availablity for Armbian?

Hi,
I'm trying to get a non-gui Linux installation going, unfortunately Orangepi seems to bundle Xfce and Armbian doesn't have a driver for the wifi.

Am I able to just install the kernel? If so, how may I get it?

Orange pi zero 2

Hi,

Im a batocera contributor and we have implemented orange zero 2 support but we are currently stuck on startup on the graphics part (panfrost).
https://github.com/apritzel/linux/commits/h616-v5
I wanted to know if there has been any progress on this point on your side.
Because this is something that was not yet implemented in the sources.

Best Regards

关于orangepi 4B的支持

在next分支有rk3399芯片的orangepi 4 lts 的 focal版本支持,请问能不能添加orangepi 4B 的 focal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.