Jump to content

Recommended Posts

Posted (edited)

What a rare thing I am. Maybe a trasgo, I don't know. Got chromium from apt and worked like a charm.

Edited by maka
Posted

I installed u-boot to eMMC, but found that there is no saveenv command, does anybody know why? 

 

Tried to compile u-boot myself but when I run make command in u-boot source I got following error: 

Image 'simple-bin' is missing external blobs and is non-functional: rockchip-tpl atf-bl31

/binman/simple-bin/mkimage/rockchip-tpl (rockchip-tpl):
   An external TPL is required to initialize DRAM. Get the external TPL
   binary and build with ROCKCHIP_TPL=/path/to/ddr.bin. One possible source
   for the external TPL binary is https://github.com/rockchip-linux/rkbin.

/binman/simple-bin/fit/images/@atf-SEQ/atf-bl31 (atf-bl31):
   See the documentation for your board. You may need to build ARM Trusted
   Firmware and build with BL31=/path/to/bl31.bin

Image 'simple-bin' is missing optional external blobs but is still functional: tee-os

/binman/simple-bin/fit/images/@tee-SEQ/tee-os (tee-os):
   See the documentation for your board. You may need to build Open Portable
   Trusted Execution Environment (OP-TEE) and build with TEE=/path/to/tee.bin

Image 'simple-bin-spi' is missing external blobs and is non-functional: rockchip-tpl

/binman/simple-bin-spi/mkimage/rockchip-tpl (rockchip-tpl):
   An external TPL is required to initialize DRAM. Get the external TPL
   binary and build with ROCKCHIP_TPL=/path/to/ddr.bin. One possible source
   for the external TPL binary is https://github.com/rockchip-linux/rkbin.

Some images are invalid
make: *** [Makefile:1126: .binman_stamp] Error 103

 

I got following binary files in the folder:

u-boot-dtb.bin  u-boot-nodtb.bin  u-boot-rockchip-spi.bin  u-boot-rockchip.bin  u-boot.bin

But none of them starts with bytes "RKNS" as in /usr/lib/linux-u-boot-edge-h96-tvbox-3566/u-boot-rockchip.bin . So I suspect that they are not the one I should burn to eMMC

Posted (edited)

Where did you read the u-boot building?

 

export BL31=../trusted-firmware-a/build/rk3568/release/bl31/bl31.elf [or]export BL31=../rkbin/bin/rk35/rk3568_bl31_v1.34.elf

export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.13.bin

make evb-rk3568_defconfig

make CROSS_COMPILE=aarch64-linux-gnu-

 

You have not done first and second step. This is an example for another board, an sbc better than your box, and the files you have to use is unknown. Don't use this ones or maybe you get a brick. You have been warned.

Edited by maka
Posted (edited)
  On 11/19/2024 at 6:11 AM, maka said:

Where did you read the u-boot building?

 

export BL31=../trusted-firmware-a/build/rk3568/release/bl31/bl31.elf [or]export BL31=../rkbin/bin/rk35/rk3568_bl31_v1.34.elf

export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.13.bin

make evb-rk3568_defconfig make

CROSS_COMPILE=aarch64-linux-gnu-

 

You have not done first and second step. This is an example for another board, an sbc better than your box, and the files you have to use is unknown. Don't use this ones or maybe you get a brick. You have been warned.

Expand  

You are right, I didn't do the first two steps. I got the base config from running "./compile.sh BOARD=h96-tvbox-3566 BRANCH=edge uboot-config". Then 'make menuconfig' and make. 

It's hard to find documentation for compile u-boot only. 

 

Will try your steps. But where do I find file rk3568_bl31_v1.34.elf and rk3568_ddr_1560MHz_v1.13.bin? I could find it in the source folder. 

Edited by DreamDreams
Posted

I found the binary files. On my system they have different version. 

 

I successfully compiled and burn new u-boot to my board. But saveenv is still missing. 

 

# grep SAVEENV .config
CONFIG_CMD_SAVEENV=y
CONFIG_SAVEENV=y

 

U-Boot 2024.07-armbian-2024.07-S3f77-P0000-H3f52-Vc494-Bda0a-R448a (Nov 19 2024 - 15:22:24 +0800)

Model: Generic RK3566/RK3568
DRAM:  8 GiB (effective 7.7 GiB)
Core:  251 devices, 25 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Generic RK3566/RK3568
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
Scanning for bootflows in all bootdevs
Seq  Method       State   Uclass    Part  Name                      Filename
---  -----------  ------  --------  ----  ------------------------  ----------------
Scanning global bootmeth 'efi_mgr':
Card did not respond to voltage select! : -110
No EFI system partition
No EFI system partition
Failed to persist EFI variables
No EFI system partition
Failed to persist EFI variables
No EFI system partition
Failed to persist EFI variables
  0  efi_mgr      ready   (none)       0  <NULL>                    
** Booting bootflow '<NULL>' with efi_mgr
Loading Boot0000 'mmc 0' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
Scanning bootdev 'mmc@fe2b0000.bootdev':
Card did not respond to voltage select! : -110
Scanning bootdev 'mmc@fe310000.bootdev':
Unknown uclass 'nvme' in label
Unknown uclass 'scsi' in label
No USB controllers found
No ethernet found.
No ethernet found.
No more bootdevs
---  -----------  ------  --------  ----  ------------------------  ----------------
(1 bootflow, 1 valid)
=> 
=> 
=> 
=> 
=> <INTERRUPT>
=> 
=> saveenv
Unknown command 'saveenv' - try 'help'

 

Posted

Another question, how can I determine whter my memory is capable of 1560MHz or 1056MHz? 

 

Below is u-boot output when reset. 

=> reset
resetting ...
DDR 2d653b3476 typ 24/01/20-15:04:19,fwver: v1.21
ln
LP4/4x derate en, other dram:1x trefi
SRX
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: 72ps, dqs1: -72ps, dqs2: -48ps, dqs3: -144ps, 
tdqss: cs1 dqs0: 72ps, dqs1: -72ps, dqs2: -24ps, dqs3: -144ps,

 

Posted

Now I'm very disapointed with this box. Comparing to my Firefly-rk3399, it has 2x memory, newer CPU/GPU, but performance is worse. 

 

glmark2-es2-wayland score: RK3399 1100, RK3566 500

ffmpeg -hwaccel drm -benchmark on same AVC/H264 video, RK3399 40X, RK3566 10X

 

And GUI smothiness is much worse than RK3399. I can feel the difference, and it is very obvious. 

Kernel version are both 6.12 mainline. 

Posted

Nothing rare in your review. You are comparing a high price rk3399 with a low one rk3566. The last makes a good job because is well supported and can move a Desktop for little money. With LXQT works wonderfull.

Posted
  On 11/21/2024 at 5:28 AM, maka said:

Nothing rare in your review. You are comparing a high price rk3399 with a low one rk3566. The last makes a good job because is well supported and can move a Desktop for little money. With LXQT works wonderfull.

Expand  

Is RK3399 more expansive? I was missled by my purchase price. And on paper, RK3399's Mali T860 is much weaker than RK3566's Mali G52. 

Posted

I'd like to try Joshua Riek's image, but not sure how. @Hqnicolas, your link in previous post is 404 now. 

 

I tried to boot kernel linux-image-vendor-rk35xx with rk3566-h96-tvbox.dtb but got instant kernel panic. 

Posted (edited)

Joshua ryek had to halt his project because of problems. I hope he is getting better know. His interest in rk3566 is   almost zero. Only help could change this.

 

RK3399's gpu Mali T860 MP4 is much more powerful than rk3566's Mali G52 2EE (MP1).

Edited by maka
Posted (edited)
  On 11/21/2024 at 5:53 AM, DreamDreams said:

'd like to try Joshua Riek's image, but not sure how. @Hqnicolas, your link in previous post is 404 now. 

Expand  

 

@DreamDreams

I remove it because the joshua project changed, and my patches become deprecated.....

you need to edit the patch file for orangepi3b to work with h96 max simple change the config for this: https://github.com/hqnicolas/ArmBoardBringUp

 

 

Clone the Joshua riek project on github.

 

remove patches from the .sh file that dont be compatible with h96max:
https://github.com/Joshua-Riek/ubuntu-rockchip/blob/main/config/boards/orangepi-3b.sh

 

take the dts file from armbian rk3566 h96 max and edit this patch below: 
https://github.com/Joshua-Riek/ubuntu-rockchip/blob/main/packages/u-boot-turing-rk3588/debian/patches/0005-board-rockchip-Add-Xunlong-Orange-Pi-3B.patch

 

now when you compile for Orange pi 3B it will compile for H96 max....

 

 

the trick for this 0005-board-rockchip-Add-Xunlong-Orange-Pi-3B.patch is that you need to count the number of lines that you are insert in the path and edit the line.
 

 

  Quote

 arch/arm/dts/Makefile                       |   1 +
 arch/arm/dts/rk3566-orangepi-3b-u-boot.dtsi |  24 +
 arch/arm/dts/rk3566-orangepi-3b.dts         | 869 ++++++++++++++++++++
 configs/orangepi-3b-rk3566_defconfig        | 114 +++
 doc/board/rockchip/rockchip.rst             |   1 +
 5 files changed, 1009 insertions(+)

Expand  

 

 

  Quote

diff --git a/configs/orangepi-3b-rk3566_defconfig b/configs/orangepi-3b-rk3566_defconfig
new file mode 100644
index 00000000000..5557d983f31
--- /dev/null
+++ b/configs/orangepi-3b-rk3566_defconfig
@@ -0,0 +1,114 @@

Expand  

 

you will need to enable / disable things on defconfig, use armbian defconfig as an exaple, (dont copy it) just compare and set it up

 

@DreamDreams after doing it you can feel like a real linux hacker because you will be.
 

Edited by Hqnicolas
Posted (edited)
  On 11/23/2024 at 9:08 PM, Hqnicolas said:

remove patches from the .sh file that dont be compatible with h96max:
https://github.com/Joshua-Riek/ubuntu-rockchip/blob/main/config/boards/orangepi-3b.sh

Expand  

This shell script doesn't have any patch in it.

 

  On 11/23/2024 at 9:08 PM, Hqnicolas said:
Expand  

Do you mean this dts patch file?

@Hqnicolas

Edited by DreamDreams
Posted

Another question, do we have to use Joshua Riek's u-boot? Should u-boot from Aribian just work? 

 

And the steps you mentioned above only affects u-boot right? What about kernel config and dts/dtb?

Posted
  On 11/27/2024 at 5:49 AM, DreamDreams said:

This shell script doesn't have any patch in it.

Expand  

I think you just need to remove the   # Enable bluetooth things
 

 

  On 11/27/2024 at 5:49 AM, DreamDreams said:

Do you mean this dts patch file?

Expand  

Yes! Just Do it!
 

 

  On 11/27/2024 at 6:03 AM, DreamDreams said:

Another question, do we have to use Joshua Riek's u-boot? Should u-boot from Aribian just work? 

Expand  

I think this Joshua patch file have a section that apply to the uboot and other section that apply to kernel 
and dont forgot to change the kernelconfig based on armbian

 

Posted
  On 12/5/2024 at 1:43 PM, paradigman said:

made with kernel 6.10 or 6.12?

Expand  


I'm going to take a break from college and my platform this month, maybe I should spend a week to update the google drive on this device
I have some pending things to do on vacation, but I would like to include tools made by other technicians @pocosparc can you hear that?

Posted (edited)
  On 11/18/2024 at 5:39 PM, maka said:

What a rare thing I am. Maybe a trasgo, I don't know. Got chromium from apt and worked like a charm.

Expand  


same here :love: after I include the armbian REPO into my device....

Edited by Hqnicolas
Posted (edited)
  On 11/28/2024 at 8:07 AM, maka said:

I have made your work and mend the file that I think you are reporting to work well (I am not sure because your reports are not traceable)

 

I hope you are lucky.

rk3566-box-demo_x96x6_24.dtb

Edited November 28 by maka

Expand  

 

Hi @maka, what's the magic ? i have the same problem but different device (h96max rk3566), i attached board picture and dmesg log and current dts

 

Board_Top_1000px.png.82bbd9a9b6d2ba4157100ea4b2c4d5c1.pngBoard_Bottom_1000px.png.f06d5a6d1dad333c973bb46e74c5b747.png

dmesg.txtFetching info...

rk3566-h96-tvbox.dts

Edited by Andre B
Posted
  Zitat

[   15.548252] rk2-crypto fe380000.crypto: Fallback for ecb-aes-rk2 is ecb-aes-ce
[   17.219785] rk_gmac-dwmac fe010000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   17.224400] rk_gmac-dwmac fe010000.ethernet end0: PHY [stmmac-0:00] driver [Generic PHY] (irq=POLL)
[   17.230833] dwmac4: Master AXI performs any burst length
[   17.230886] rk_gmac-dwmac fe010000.ethernet end0: No Safety Features support found
[   17.230929] rk_gmac-dwmac fe010000.ethernet end0: IEEE 1588-2008 Advanced Timestamp supported
[   17.231599] rk_gmac-dwmac fe010000.ethernet end0: registered PTP clock
[   17.269057] rk_gmac-dwmac fe010000.ethernet end0: configuring for phy/rgmii link mode
[   19.336647] rk_gmac-dwmac fe010000.ethernet end0: Link is Up - 100Mbps/Full - flow control rx/tx

Expand  

 

 

chip seems to be have driver support already.

 

discussed here

 

what says ip a?

Posted (edited)

since ethernet not working, i revert back to android, i also test different android firmware, with

8G-RK3566_userdebug_H96_Max_RK3566_11_20210421.2051.img ethernet is not working

RK3566_userdebug_H96_Max_RK3566_11_20221126.1220.img ethernet is working

 

here are dtb's that i extracted from working android's ethernet boot.img (there are 4 dtbs but the one is around 8mb so it doesn't upload)

01_dtbdump_rockchip,rk3566-evb3-DDR3-v10.dtb

03_dtbdump_rockchip,rk3566-evb3-DDR3-v10.dtb

04_dtbdump_rockchip,rk3566-evb3-DDR3-v10.dtb

and here's the converted version of last dtb 

04_dtbdump_rockchip,rk3566-evb3-DDR3-v10.dts

 

in android dtb android_eth.txt, ethernet alias is ethernet1 while on armbian dtb armbian_eth.txt, ethernet alias is ethernet0, could it be the cause ? i'm about to test it

 

android dtb ethernet

  Reveal hidden contents

armbian dtb ethernet

  Reveal hidden contents

 

Edited by Andre B
Posted

full androiod dmesg :

there's a line

[    0.833910] ********************************jl2101 test****************************************

 

  Reveal hidden contents

 

Posted (edited)

Hi @Vincenzoernst1, here's the ip a output

 

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: end1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d2:c2:c4:17:88:2f brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether f4:09:d8:80:37:2a brd ff:ff:ff:ff:ff:ff
    inet 192.168.96.107/24 brd 192.168.96.255 scope global dynamic noprefixroute wlan0
       valid_lft 41386sec preferred_lft 41386sec
    inet6 fd00::3dc0:70e2:e833:ff64/64 scope global temporary dynamic 
       valid_lft 602988sec preferred_lft 84035sec
    inet6 fd00::9a9c:ab02:8d24:7ee1/64 scope global mngtmpaddr noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::cde1:e0da:9797:f10b/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

 

sometimes ethernet says connected but don't gets an ip

 

and here's hwinfo output

hwinfo.txtFetching info...

 

Edited by Andre B
Posted

i revert ethernet1 to ethernet0 in dtb and added extra arg net.ifnames=0 in armbianEnv.txt and here's the new ip a output :

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d2:c2:c4:17:88:2e brd ff:ff:ff:ff:ff:ff
    altname end0
    inet6 fe80::d0c2:c4ff:fe17:882e/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether f4:09:d8:80:37:2a brd ff:ff:ff:ff:ff:ff
    inet 192.168.96.107/24 brd 192.168.96.255 scope global dynamic noprefixroute wlan0
       valid_lft 43192sec preferred_lft 43192sec
    inet6 fd00::772d:8941:d231:6a49/64 scope global temporary dynamic 
       valid_lft 604794sec preferred_lft 86143sec
    inet6 fd00::9aed:b2b3:c4e4:4c18/64 scope global mngtmpaddr noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::f410:d986:f27:4400/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

 

i dont know what i'm doing, i dont have enough knowledge on this, im just experimenting.

Posted (edited)

Screenshotfrom2024-12-2908-21-10.thumb.png.48586141e7c992f7b9239e7bde1bbc1c.png

 

dmesg says Link is up but those "Connection failed" notification keep appearing, and armbian never gets an ip from the router

Edited by Andre B

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines