saurabh post at 2021-1-4 21:44:03

Orange Pi Linux Opi Zero2 DTB issues

I downloaded the OrangePi Linux image for the Orange Pi Zero2 board from here. This image boots and works fine.

I noticed that the /boot/boot.cmd script is such that it does not actually load the DTB file for the Zero2 board. I need to make some changes to the DTB/DTS file for my project. But if I update the boot.cmd script and generate the new boot.scr such that it loads the DTB file using the FDT command, then the kernel stops booting.

Here are the FDT lines in the original boot.cmd
#load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
#fdt addr -c ${fdt_addr_r}
#fdt addr ${fdt_addr_r}
#fdt resize 65536
Here is what I have changed them to:
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb-4.9.170-sun50iw9/sunxi/sun50i-h616-orangepi-zero2.dtb
fdt addr -c ${fdt_addr_r} 0x40000
fdt addr ${fdt_addr_r} 0x40000       
fdt resize 0x10000






saurabh post at 2021-1-4 21:45:41

With this changed boot.scr/boot.cmd file, this is the output I see on the UART console. After this boot gets stuck. I have tried with different values of the FDT address, such as 0x10000, ${fdt_addr_r}, etc. Always the same result. Sometimes the display on HDMI becomes shaky but nothing else happens.

Hit any key to stop autoboot:  0
no mmc device at slot 1
card_caps:0x3000000a
host_caps:0x3000003f
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2318 bytes read in 8 ms (282.2 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
188 bytes read in 7 ms (25.4 KiB/s)
126435 bytes read in 16 ms (7.5 MiB/s)
8187924 bytes read in 355 ms (22 MiB/s)
23435336 bytes read in 992 ms (22.5 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    23435272 Bytes = 22.3 MiB
   Load Address: 41000000
   Entry Point:  41000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8187860 Bytes = 7.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 49831000, end 49ffffd4 ... OK
   reserving fdt memory region: addr=43000000 size=2f000
## Linux machid: 00000000, FDT addr: 43000000

Starting kernel ...

saurabh post at 2021-1-4 21:46:46

In the past I have used Armbian on the Orange Pi PC board. The boot.scr of Armbian always uses the DTB file from dtb/, so I have never faced this problem. I am able to include various settings, such as enabling OTG port, in the DTB files and DTBO overlays. But with this Linux image I am facing problems.

thanh_tan post at 2021-1-29 17:06:16

Hello,

Do you manage to install docker on the Ubuntu version from Xunlong?

I have tried Ubuntu/Debian but still get this error

Setting up docker-ce (5:19.03.14~3-0~debian-buster) ...
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Fri 2021-01-29 08:58:46 UTC; 71ms ago
   Docs: <a href="https://docs.docker.com" target="_blank">https://docs.docker.com</a>
Process: 3499 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 3499 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
docker-ce

Marlin_Donigan post at 2023-3-13 15:57:37

kunai earrings

Marlin_Donigan post at 2023-4-7 12:41:39

bubble slides

Marlin_Donigan post at 2023-4-8 11:28:14

butterfly locs

Marlin_Donigan post at 2023-5-3 12:12:00

crediblebh

arrangedig post at 2023-5-16 17:07:00

Very useful for me.
basket random

linnellaa post at 2023-6-6 16:15:28

Ensure that you are using the correct DTB file for your specific Orange Pi Zero2 board revision and the Linux distribution you are running magic tiles 3. DTB files can vary based on hardware revisions, so using an incorrect DTB can cause compatibility issues.
page: [1] 2 3 4 5
View full version: Orange Pi Linux Opi Zero2 DTB issues