Jump to content

CSC Armbian for RK3318/RK3328 TV box boards


jock

Recommended Posts

2 hours ago, jock said:

Yep GPU performance is not so good, expecially with the opensource Lima driver and mesa code which is not optimized as well as the closed source binary blob.

About the resolution issue, I guess that 1920x1200 is not a so common resolution; it's a matter of internal timings that are multiplied and divided to derive the various clocks to get the various resolutions.

Often these timings are adjusted to accomodate some resolutions, but break others. I'm no expert at all in this matter and never dig into personally so can't say anything more precise about :(

Had no time lately to look into libreelec patches, maybe there is something useful there.

GPU performance are Better with old kernel?

1920x1200 Is tipical of fullhd monitors in 16:10 but we Remember that our boxs are TV box, so....

 

I detected that screen goes off for an invalid EDID received from DVI monitor. If i start the box with a TV, after that i can connect the monitor with full HD 16:9 that Is good. But i would get around that problem without connecting any device, possible??

(maybe configurino a fallback in Xorg? I'm not Expert of Xorg and sessione) 🤣

Link to comment
Share on other sites

39 minutes ago, nerdherd96 said:

GPU performance are Better with old kernel?

Not with old kernel, but with proprietary Mali + proprietary opengl driver indeed are. Nonetheless the proprietary driver is somehow buggy and often it causes graphical issues and even crashes.

It is indeed possible to run the proprietary things on mainline kernel though, but you need to compile the kernel driver yourself and install the opengl mali libraries manually

 

42 minutes ago, nerdherd96 said:

1920x1200 Is tipical of fullhd monitors in 16:10 but we Remember that our boxs are TV box, so....

You're right, but it is possible that the timings are not perfect because nobody checked on such resolution.

52 minutes ago, nerdherd96 said:

I detected that screen goes off for an invalid EDID received from DVI monitor. If i start the box with a TV, after that i can connect the monitor with full HD 16:9 that Is good. But i would get around that problem without connecting any device, possible??

You can inspect the edid installing edid-decode package and running:

edid-decode < /sys/class/drm/card0/card0-HDMI-A-1/edid

Paste the result of the command here, along with Xorg.0.log, maybe someone may help you out. Actually I'm now aware of possible bugs for edid retrieval in rockchip64 architecture.

 

 

Link to comment
Share on other sites

25 minutes ago, jock said:

Not with old kernel, but with proprietary Mali + proprietary opengl driver indeed are. Nonetheless the proprietary driver is somehow buggy and often it causes graphical issues and even crashes.

It is indeed possible to run the proprietary things on mainline kernel though, but you need to compile the kernel driver yourself and install the opengl mali libraries manually

I Will try, thanks!

 

25 minutes ago, jock said:

Paste the result of the command here, along with Xorg.0.log, maybe someone may help you out. Actually I'm now aware of possible bugs for edid retrieval in rockchip64 architecture.

as soon as I have time I do it!

Link to comment
Share on other sites

@jock - just an idea regarding the low ui performance with mali: maybe something like "xrandr --output HDMI-1 --mode 1920x1080 --panning 1280x720 --scale 0.6666x0.6666" (to scale 1920x1080 down) or "xrandr --output HDMI-1 --mode 1920x1200 --panning 1280x800 --scale 0.6666x0.6666" (to scale 1920x1200 down) or similar commands for other resolutions might help to bring the on screen resolutions into more managable regions for the little gpu and mem bw? at least i noticed that smaller resolution monitors were working quite a bit better) ... just an idea ...

Link to comment
Share on other sites

4 hours ago, hexdump said:

@jock - just an idea regarding the low ui performance with mali: maybe something like "xrandr --output HDMI-1 --mode 1920x1080 --panning 1280x720 --scale 0.6666x0.6666" (to scale 1920x1080 down) or "xrandr --output HDMI-1 --mode 1920x1200 --panning 1280x800 --scale 0.6666x0.6666" (to scale 1920x1200 down) or similar commands for other resolutions might help to bring the on screen resolutions into more managable regions for the little gpu and mem bw? at least i noticed that smaller resolution monitors were working quite a bit better) ... just an idea ...

Also disabling the windows compositor from System -> Window Manager Tweaks will indeed give less pressure over the GPU and a bit better desktop experience

Link to comment
Share on other sites

Thanks jock for this post. I was able to unbrick my device. I now have successfully installed Armbian on my device and loves its performance by following this post.

 

My device is called Ninkbox N1 Max RK3318. I was trying to look for a firmware suitable for my device but I am unable to find the exact one. I tried asking support from their main website but to no avail. So I tried installing different firmware on my device with almost the same chips until I ended up bricking the device. Unfortunately I already bricked the device before landing into this post so I was not able to backup my original firmware. For some unfortunate twist of fate I also have those BGA chips with no exposed pins. Upon further examination there are two round copper at the back of the board where the BGA chip sits. After burning the image on an SD card I tried shorting the round coppers with a piece of staple wire and it gave me the Multiboot window.

 

I am writing this for those other people who may have the same device as mine and is looking to setup Armbian or probably trying to unbrick their device.

 

This is my EMMC Chip

https://drive.google.com/file/d/1J5E8OGBUOV_sdQ0VF0glIt4t6yhRKxrr/view?usp=sharing

 

The picture of my device

https://drive.google.com/file/d/1J2Ha8nUhA5hhXne_vqHdyzLBOlxCWcMV/view?usp=sharing

 

The round copper at the back of the board to short

https://drive.google.com/file/d/1J-X_9Y4jKr8u87lEosGkBmtpwjdxGsFb/view?usp=sharing

 

My device desktop after successful install

https://drive.google.com/file/d/1J5hkfP7A4U5r6xO7P9Zgv8ArpjUmZJ0g/view?usp=sharing

 

Link to comment
Share on other sites

4 hours ago, enigmasphinx said:

After burning the image on an SD card I tried shorting the round coppers with a piece of staple wire and it gave me the Multiboot window.

Very cool you found those two pads with the eMMC clock pin with ease! Often manufacturers provide such "hidden" debug and test points on the boards (like the serial uart) but it's a matter of experience, knowledge and luck to find them. ;)

 

Could you please post a couple of photos of the whole front and back of the board?

The original device would been very helpful to understand if your board has somehow different led/wifi internal wiring, but I understand you lost the original firmware, so it's up to someone else who has the very same board to provide that.

Link to comment
Share on other sites

@jock had to wait for 24 hrs to reply to your post. I will try the other images when I have the time and play around with it.

 

Here are the pics:

 

https://drive.google.com/file/d/1JGB3Ihnp1kKlnuh6fkCftuHMoj0aInjD/view?usp=drivesdk

 

https://drive.google.com/file/d/1JImmtinhNfkJxE8qCE_0q9afLQHg3sRL/view?usp=drivesdk

Link to comment
Share on other sites

10 hours ago, kruzer said:

@Dragao how to root this box with Magisk?

Well, I downloaded a zip with magisk apk and a magisk patched image. Made sure I could run unverified apps

enabled developer mode 

install the apk

and flash boot with the magisk image

 

After reboot run and update magisk app and root is enabled.

 

Although I read on the internet that Magisk is not changing the boot I am not sure if this is true as you are replace boot with the given image.....

Link to comment
Share on other sites

Hi!.

 

I've managed to install armbian "Debian Buster minimal - mainline kernel" on a really cheap rk3318 (4GB/64GB) and it works perfectly.

 

I can run docker instances inside, you have done a really great job!!! congrats.

 

I've installed armbian in internal storage as there is described in the first post but my installation lacks of armbian-config and rk3318-config

 

I've installed armbian-config from apt but I can't find rk3318-config.

 

Which package I've should install to get rk3318-config?

 

Thanks

Link to comment
Share on other sites

11 hours ago, elbuit said:

Hi!.

 

I've managed to install armbian "Debian Buster minimal - mainline kernel" on a really cheap rk3318 (4GB/64GB) and it works perfectly.

 

I can run docker instances inside, you have done a really great job!!! congrats.

 

I've installed armbian in internal storage as there is described in the first post but my installation lacks of armbian-config and rk3318-config

 

I've installed armbian-config from apt but I can't find rk3318-config.

 

Which package I've should install to get rk3318-config?

 

Thanks

 

Thanks for reporting!

 

rk3318-config script should have been integrated into the image, but I checked and you're right, it's not there!

I have to check why the script has not been included in debian image, but in the meantime you can download it from here , give the execution rights and execute it.

 

Could you please post photos of the board?

Thanks!

 

 

 

 

Link to comment
Share on other sites

On 6/4/2021 at 10:02 AM, jock said:

 

Thanks for reporting!

 

rk3318-config script should have been integrated into the image, but I checked and you're right, it's not there!

I have to check why the script has not been included in debian image, but in the meantime you can download it from here , give the execution rights and execute it.

 

Could you please post photos of the board?

Thanks!

 

Hi @jock and  thanks for your help.

 

I've disassembled the box and attach some pictures of the internals tanix tvbox.

Is quite really small and tagged as TX8-H.

 

There are some pins next to microSD-card reader marked as GND, RX, TX and VCC so they seem to be a UART port, I'll try this deeper later.

WIFI and bluetooth chip is a AP6255.

 

Let me know if you need some additional info.

 

Thanks!

 

edit:

I've tested wifi and it works.

And docker also works!!!!!

 

lshw

Quote

rk3318                      
    description: Computer
    product: Rockchip RK3318 BOX
    serial: 1d2a2b0823d3264d
    width: 64 bits
    capabilities: smp cp15_barrier setend swp tagged_addr_disabled
  *-core
       description: Motherboard
       physical id: 0
     *-cpu:0
          description: CPU
          product: cpu
          physical id: 0
          bus info: cpu@0
          size: 408MHz
          capacity: 1296MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-cpu:1
          description: CPU
          product: cpu
          physical id: 1
          bus info: cpu@1
          size: 408MHz
          capacity: 1296MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-cpu:2
          description: CPU
          product: cpu
          physical id: 2
          bus info: cpu@2
          size: 408MHz
          capacity: 1296MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-cpu:3
          description: CPU
          product: cpu
          physical id: 3
          bus info: cpu@3
          size: 408MHz
          capacity: 1296MHz
          capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid cpufreq
     *-cpu:4 DISABLED
          description: CPU
          product: idle-states
          physical id: 4
          bus info: cpu@4
     *-cpu:5 DISABLED
          description: CPU
          product: l2-cache0
          physical id: 5
          bus info: cpu@5
     *-memory
          description: System memory
          physical id: 6
          size: 3975MiB
  *-usbhost:0
       product: DWC OTG Controller
       vendor: Linux 5.10.41-rockchip64 dwc2_hsotg
       physical id: 2
       bus info: usb@1
       logical name: usb1
       version: 5.10
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
  *-usbhost:1
       product: EHCI Host Controller
       vendor: Linux 5.10.41-rockchip64 ehci_hcd
       physical id: 3
       bus info: usb@2
       logical name: usb2
       version: 5.10
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
  *-usbhost:2
       product: Generic Platform OHCI controller
       vendor: Linux 5.10.41-rockchip64 ohci_hcd
       physical id: 4
       bus info: usb@3
       logical name: usb3
       version: 5.10
       capabilities: usb-1.10
       configuration: driver=hub slots=1 speed=12Mbit/s
  *-usbhost:3
       product: xHCI Host Controller
       vendor: Linux 5.10.41-rockchip64 xhci-hcd
       physical id: 5
       bus info: usb@4
       logical name: usb4
       version: 5.10
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
  *-usbhost:4
       product: xHCI Host Controller
       vendor: Linux 5.10.41-rockchip64 xhci-hcd
       physical id: 1
       bus info: usb@5
       logical name: usb5
       version: 5.10
       capabilities: usb-3.00
       configuration: driver=hub slots=1 speed=5000Mbit/s
  *-network:0
       description: Ethernet interface
       physical id: 6
       logical name: eth0
       serial: 1e:24:ae:ea:5c:af
       size: 100Mbit/s
       capacity: 100Mbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=Jan_2016 duplex=full ip=192.168.100.5 link=yes multicast=yes port=twisted pair speed=100Mbit/s
  *-network:1
       description: Wireless interface
       physical id: 7
       logical name: wlan0
       serial: d4:12:43:16:93:73
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=brcmfmac driverversion=7.45.154 firmware=01-4fbe0b04 ip=192.168.100.125 multicast=yes wireless=IEEE 802.11
  *-network:2
       description: Ethernet interface
       physical id: 8
       logical name: docker0
       serial: 02:42:a8:25:03:90
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes

 

dmesg

Quote

root@rk3318:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.41-rockchip64 (root@armbianbuild) (aarch64-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0, GNU ld (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321) #trunk SMP PREEMPT Sun May 30 16:09:59 UTC 2021
[    0.000000] Machine model: Rockchip RK3318 BOX
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000feffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xfe7c0100-0xfe7c1fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000feffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000feffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000feffffff]
[    0.000000] On node 0 totalpages: 1043968
[    0.000000]   DMA zone: 16312 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 1043968 pages, LIFO batch:63
[    0.000000] cma: Reserved 128 MiB at 0x00000000f2000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 32 pages/cpu s94040 r8192 d28840 u131072
[    0.000000] pcpu-alloc: s94040 r8192 d28840 u131072 alloc=32*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1027656
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=UUID=7fca5a67-cb2b-4b23-983b-6637e9a1e0a7 rootwait rootfstype=ext4 console=ttyS2,1500000 console=tty1 consoleblank=0 loglevel=1 ubootpart=135cc133-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 3923752K/4175872K available (14848K kernel code, 2632K rwdata, 5976K rodata, 4352K init, 580K bss, 121048K reserved, 131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]     Trampoline variant of Tasks RCU enabled.
[    0.000000]     Rude variant of Tasks RCU enabled.
[    0.000000]     Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x698/0x850 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000910] Console: colour dummy device 80x25
[    0.000965] printk: console [tty1] enabled
[    0.001133] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.001157] pid_max: default: 32768 minimum: 301
[    0.001349] LSM: Security Framework initializing
[    0.001412] Yama: becoming mindful.
[    0.001588] AppArmor: AppArmor initialized
[    0.001713] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001759] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.005450] rcu: Hierarchical SRCU implementation.
[    0.008670] EFI services will not be available.
[    0.009398] smp: Bringing up secondary CPUs ...
[    0.010539] Detected VIPT I-cache on CPU1
[    0.010647] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.011991] Detected VIPT I-cache on CPU2
[    0.012086] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.013551] Detected VIPT I-cache on CPU3
[    0.013645] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.013885] smp: Brought up 1 node, 4 CPUs
[    0.013903] SMP: Total of 4 processors activated.
[    0.013917] CPU features: detected: 32-bit EL0 Support
[    0.013928] CPU features: detected: CRC32 instructions
[    0.013941] CPU features: detected: 32-bit EL1 Support
[    0.034692] CPU: All CPU(s) started at EL2
[    0.034764] alternatives: patching kernel code
[    0.038680] devtmpfs: initialized
[    0.061208] Registered cp15_barrier emulation handler
[    0.061238] Registered setend emulation handler
[    0.061672] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.061730] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.068588] pinctrl core: initialized pinctrl subsystem
[    0.069877] DMI not present or invalid.
[    0.070887] NET: Registered protocol family 16
[    0.074822] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[    0.075768] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.077525] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.077734] audit: initializing netlink subsys (disabled)
[    0.078239] audit: type=2000 audit(0.076:1): state=initialized audit_enabled=0 res=1
[    0.079877] thermal_sys: Registered thermal governor 'fair_share'
[    0.079890] thermal_sys: Registered thermal governor 'bang_bang'
[    0.079900] thermal_sys: Registered thermal governor 'step_wise'
[    0.079910] thermal_sys: Registered thermal governor 'user_space'
[    0.080427] cpuidle: using governor menu
[    0.081045] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.081252] ASID allocator initialised with 65536 entries
[    0.083372] Serial: AMBA PL011 UART driver
[    0.157527] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.157549] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.157565] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.157579] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.164693] cryptd: max_cpu_qlen set to 1000
[    0.245703] raid6: neonx8   gen()  1054 MB/s
[    0.313858] raid6: neonx8   xor()   780 MB/s
[    0.382024] raid6: neonx4   gen()  1075 MB/s
[    0.450186] raid6: neonx4   xor()   774 MB/s
[    0.518366] raid6: neonx2   gen()  1014 MB/s
[    0.586529] raid6: neonx2   xor()   713 MB/s
[    0.654683] raid6: neonx1   gen()   885 MB/s
[    0.722847] raid6: neonx1   xor()   610 MB/s
[    0.790995] raid6: int64x8  gen()   754 MB/s
[    0.859175] raid6: int64x8  xor()   392 MB/s
[    0.927355] raid6: int64x4  gen()   827 MB/s
[    0.995540] raid6: int64x4  xor()   424 MB/s
[    1.063746] raid6: int64x2  gen()   707 MB/s
[    1.131898] raid6: int64x2  xor()   373 MB/s
[    1.200111] raid6: int64x1  gen()   526 MB/s
[    1.268299] raid6: int64x1  xor()   274 MB/s
[    1.268312] raid6: using algorithm neonx4 gen() 1075 MB/s
[    1.268320] raid6: .... xor() 774 MB/s, rmw enabled
[    1.268332] raid6: using neon recovery algorithm
[    1.272176] vcc_sd: supplied by vccio_3v3
[    1.273286] vcc_host_vbus: supplied by vcc_sys
[    1.274314] vcc_otg_vbus: supplied by vcc_sys
[    1.275155] iommu: Default domain type: Translated
[    1.278980] vgaarb: loaded
[    1.279941] SCSI subsystem initialized
[    1.280510] libata version 3.00 loaded.
[    1.281004] usbcore: registered new interface driver usbfs
[    1.281081] usbcore: registered new interface driver hub
[    1.281160] usbcore: registered new device driver usb
[    1.282035] pps_core: LinuxPPS API ver. 1 registered
[    1.282044] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.282076] PTP clock support registered
[    1.282439] EDAC MC: Ver: 3.0.0
[    1.284869] NetLabel: Initializing
[    1.284887] NetLabel:  domain hash size = 128
[    1.284896] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    1.285057] NetLabel:  unlabeled traffic allowed by default
[    1.286016] clocksource: Switched to clocksource arch_sys_counter
[    1.525159] VFS: Disk quotas dquot_6.6.0
[    1.525295] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.527030] AppArmor: AppArmor Filesystem Enabled
[    1.541955] NET: Registered protocol family 2
[    1.542428] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    1.546891] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    1.547222] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    1.547854] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    1.548610] TCP: Hash tables configured (established 32768 bind 32768)
[    1.548994] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.549189] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.549697] NET: Registered protocol family 1
[    1.549750] NET: Registered protocol family 44
[    1.549775] PCI: CLS 0 bytes, default 64
[    1.550325] Trying to unpack rootfs image as initramfs...
[    2.785360] Freeing initrd memory: 11776K
[    2.787461] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    2.788368] kvm [1]: IPA Size Limit: 40 bits
[    2.790890] kvm [1]: vgic interrupt IRQ9
[    2.791149] kvm [1]: Hyp mode initialized successfully
[    2.805403] Initialise system trusted keyrings
[    2.805478] Key type blacklist registered
[    2.805914] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    2.818116] zbud: loaded
[    2.821317] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.822840] fuse: init (API version 7.32)
[    2.825322] integrity: Platform Keyring initialized
[    2.896100] xor: measuring software checksum speed
[    2.904242]    8regs           :  1220 MB/sec
[    2.911300]    32regs          :  1402 MB/sec
[    2.920334]    arm64_neon      :  1093 MB/sec
[    2.920347] xor: using function: 32regs (1402 MB/sec)
[    2.920371] Key type asymmetric registered
[    2.920382] Asymmetric key parser 'x509' registered
[    2.920486] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    2.920781] io scheduler mq-deadline registered
[    2.920794] io scheduler kyber registered
[    2.921076] io scheduler bfq registered
[    2.929442] rockchip-u3phy ff470000.usb3-phy: vbus_drv is not assigned
[    2.932337] rockchip-u3phy ff470000.usb3-phy: Rockchip u3phy initialized successfully
[    2.952297] dma-pl330 ff1f0000.dmac: Loaded driver for PL330 DMAC-241330
[    2.952320] dma-pl330 ff1f0000.dmac:     DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    2.960474] vdd_arm: supplied by regulator-dummy
[    2.961446] vdd_log: supplied by regulator-dummy
[    2.963571] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    2.969105] ff110000.serial: ttyS0 at MMIO 0xff110000 (irq = 23, base_baud = 1500000) is a 16550A
[    2.971280] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 24, base_baud = 1500000) is a 16550A
[    2.971557] printk: console [ttyS2] enabled
[    2.973487] Serial: AMBA driver
[    2.998192] loop: module loaded
[    3.005764] libphy: Fixed MDIO Bus: probed
[    3.006937] tun: Universal TUN/TAP device driver, 1.6
[    3.008466] thunder_xcv, ver 1.0
[    3.008570] thunder_bgx, ver 1.0
[    3.008654] nicpf, ver 1.0
[    3.009876] e1000e: Intel(R) PRO/1000 Network Driver
[    3.009886] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    3.009973] igb: Intel(R) Gigabit Ethernet Network Driver
[    3.009981] igb: Copyright (c) 2007-2014 Intel Corporation.
[    3.010107] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    3.010115] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    3.010497] sky2: driver version 1.30
[    3.011569] VFIO - User Level meta-driver version: 0.3
[    3.016844] dwc2 ff580000.usb: supply vusb_d not found, using dummy regulator
[    3.017135] dwc2 ff580000.usb: supply vusb_a not found, using dummy regulator
[    3.030274] dwc2 ff580000.usb: DWC OTG Controller
[    3.030325] dwc2 ff580000.usb: new USB bus registered, assigned bus number 1
[    3.030393] dwc2 ff580000.usb: irq 49, io mem 0xff580000
[    3.030767] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.030780] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.030796] usb usb1: Product: DWC OTG Controller
[    3.030810] usb usb1: Manufacturer: Linux 5.10.41-rockchip64 dwc2_hsotg
[    3.030822] usb usb1: SerialNumber: ff580000.usb
[    3.031860] hub 1-0:1.0: USB hub found
[    3.031923] hub 1-0:1.0: 1 port detected
[    3.034231] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.034289] ehci-pci: EHCI PCI platform driver
[    3.034382] ehci-platform: EHCI generic platform driver
[    3.037264] ehci-platform ff5c0000.usb: EHCI Host Controller
[    3.037309] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus number 2
[    3.037606] ehci-platform ff5c0000.usb: irq 50, io mem 0xff5c0000
[    3.050029] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
[    3.050525] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.050543] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.050558] usb usb2: Product: EHCI Host Controller
[    3.050571] usb usb2: Manufacturer: Linux 5.10.41-rockchip64 ehci_hcd
[    3.050585] usb usb2: SerialNumber: ff5c0000.usb
[    3.051546] hub 2-0:1.0: USB hub found
[    3.051614] hub 2-0:1.0: 1 port detected
[    3.052611] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.052664] ohci-pci: OHCI PCI platform driver
[    3.052767] ohci-platform: OHCI generic platform driver
[    3.053595] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
[    3.053631] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus number 3
[    3.053877] ohci-platform ff5d0000.usb: irq 51, io mem 0xff5d0000
[    3.114417] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    3.114436] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.114449] usb usb3: Product: Generic Platform OHCI controller
[    3.114462] usb usb3: Manufacturer: Linux 5.10.41-rockchip64 ohci_hcd
[    3.114476] usb usb3: SerialNumber: ff5d0000.usb
[    3.115450] hub 3-0:1.0: USB hub found
[    3.115537] hub 3-0:1.0: 1 port detected
[    3.117731] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.117776] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 4
[    3.118169] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
[    3.118280] xhci-hcd xhci-hcd.0.auto: irq 57, io mem 0xff600000
[    3.119104] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.119122] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.119135] usb usb4: Product: xHCI Host Controller
[    3.119148] usb usb4: Manufacturer: Linux 5.10.41-rockchip64 xhci-hcd
[    3.119162] usb usb4: SerialNumber: xhci-hcd.0.auto
[    3.120132] hub 4-0:1.0: USB hub found
[    3.120197] hub 4-0:1.0: 1 port detected
[    3.120804] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.120837] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 5
[    3.120870] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    3.121012] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.121273] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    3.121288] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.121299] usb usb5: Product: xHCI Host Controller
[    3.121312] usb usb5: Manufacturer: Linux 5.10.41-rockchip64 xhci-hcd
[    3.121325] usb usb5: SerialNumber: xhci-hcd.0.auto
[    3.122395] hub 5-0:1.0: USB hub found
[    3.122460] hub 5-0:1.0: 1 port detected
[    3.123387] usbcore: registered new interface driver usb-storage
[    3.126538] mousedev: PS/2 mouse device common for all mice
[    3.128521] i2c /dev entries driver
[    3.133205] dw_wdt ff1a0000.watchdog: No valid TOPs array specified
[    3.137285] sdhci: Secure Digital Host Controller Interface driver
[    3.137300] sdhci: Copyright(c) Pierre Ossman
[    3.137350] Synopsys Designware Multimedia Card Interface Driver
[    3.138830] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.139613] dwmmc_rockchip ff500000.mmc: IDMAC supports 32-bit address mode.
[    3.139620] dwmmc_rockchip ff510000.mmc: IDMAC supports 32-bit address mode.
[    3.139672] dwmmc_rockchip ff510000.mmc: Using internal DMA controller.
[    3.139677] dwmmc_rockchip ff500000.mmc: Using internal DMA controller.
[    3.139697] dwmmc_rockchip ff500000.mmc: Version ID is 270a
[    3.139702] dwmmc_rockchip ff510000.mmc: Version ID is 270a
[    3.139833] dwmmc_rockchip ff510000.mmc: DW MMC controller at irq 46,32 bit host data width,256 deep fifo
[    3.139895] dwmmc_rockchip ff500000.mmc: DW MMC controller at irq 45,32 bit host data width,256 deep fifo
[    3.140387] dwmmc_rockchip ff510000.mmc: allocated mmc-pwrseq
[    3.140409] mmc_host mmc1: card is non-removable.
[    3.140556] dwmmc_rockchip ff500000.mmc: Got CD GPIO
[    3.140885] dwmmc_rockchip ff520000.mmc: IDMAC supports 32-bit address mode.
[    3.140948] dwmmc_rockchip ff520000.mmc: Using internal DMA controller.
[    3.140967] dwmmc_rockchip ff520000.mmc: Version ID is 270a
[    3.141087] dwmmc_rockchip ff520000.mmc: DW MMC controller at irq 47,32 bit host data width,256 deep fifo
[    3.142084] mmc_host mmc2: card is non-removable.
[    3.142488] ledtrig-cpu: registered to indicate activity on CPUs
[    3.143863] hid: raw HID events driver (C) Jiri Kosina
[    3.144124] usbcore: registered new interface driver usbhid
[    3.144133] usbhid: USB HID core driver
[    3.152156] drop_monitor: Initializing network drop monitor service
[    3.153336] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.153509] NET: Registered protocol family 10
[    3.153555] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.155064] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.196135] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    3.197783] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.199409] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.202293] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    3.205868] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[    3.224098] Segment Routing with IPv6
[    3.224290] NET: Registered protocol family 17
[    3.224582] 8021q: 802.1Q VLAN Support v1.8
[    3.224689] Key type dns_resolver registered
[    3.225762] registered taskstats version 1
[    3.225787] Loading compiled-in X.509 certificates
[    3.231953] Loaded X.509 cert 'Build time autogenerated kernel key: d510bb33798a27b51e57f9bfe2cdd3aac6300af8'
[    3.237772] zswap: loaded using pool zstd/z3fold
[    3.238886] Key type ._fscrypt registered
[    3.238904] Key type .fscrypt registered
[    3.238913] Key type fscrypt-provisioning registered
[    3.243316] Btrfs loaded, crc32c=crc32c-generic
[    3.250212] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[    3.251530] mmc2: new high speed MMC card at address 0001
[    3.253532] mmcblk2: mmc2:0001 ISOCOM 57.6 GiB
[    3.254814] mmcblk2boot0: mmc2:0001 ISOCOM partition 1 4.00 MiB
[    3.255987] mmcblk2boot1: mmc2:0001 ISOCOM partition 2 4.00 MiB
[    3.256400] mmcblk2rpmb: mmc2:0001 ISOCOM partition 3 4.00 MiB, chardev (243:0)
[    3.257250] random: fast init done
[    3.260044] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    3.263901] mmc1: new high speed SDIO card at address 0001
[    3.284747] Key type encrypted registered
[    3.284792] AppArmor: AppArmor sha1 policy hashing enabled
[    3.285235]  mmcblk2: p1
[    3.345655] of_cfs_init
[    3.345733] of_cfs_init: OK
[    3.351146] Freeing unused kernel memory: 4352K
[    3.358197] Run /init as init process
[    3.358213]   with arguments:
[    3.358223]     /init
[    3.358233]   with environment:
[    3.358243]     HOME=/
[    3.358251]     TERM=linux
[    3.358259]     ubootpart=135cc133-01
[    3.358269]     cgroup_enable=memory
[    3.358277]     cgroup_memory=1
[    4.131693] input: adc-keys as /devices/platform/adc-keys/input/input0
[    4.181133] gpio-syscon ff100000.syscon:grf-gpio: can't read the data register offset!
[    4.328713] rk_gmac-dwmac ff550000.ethernet: IRQ eth_wake_irq not found
[    4.328742] rk_gmac-dwmac ff550000.ethernet: IRQ eth_lpi not found
[    4.328992] rk_gmac-dwmac ff550000.ethernet: PTP uses main clock
[    4.329566] rk_gmac-dwmac ff550000.ethernet: clock input or output? (output).
[    4.329728] rk_gmac-dwmac ff550000.ethernet: TX delay(0x30).
[    4.329743] rk_gmac-dwmac ff550000.ethernet: RX delay(0x10).
[    4.329794] rk_gmac-dwmac ff550000.ethernet: integrated PHY? (yes).
[    4.329964] rk_gmac-dwmac ff550000.ethernet: cannot get clock clk_mac_refout
[    4.330057] rk_gmac-dwmac ff550000.ethernet: cannot get clock clk_mac_speed
[    4.335181] rk_gmac-dwmac ff550000.ethernet: init for RMII
[    4.378651] rk_gmac-dwmac ff550000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[    4.378684] rk_gmac-dwmac ff550000.ethernet:     DWMAC1000
[    4.378698] rk_gmac-dwmac ff550000.ethernet: DMA HW capability register supported
[    4.378709] rk_gmac-dwmac ff550000.ethernet: RX Checksum Offload Engine supported
[    4.378720] rk_gmac-dwmac ff550000.ethernet: COE Type 2
[    4.378730] rk_gmac-dwmac ff550000.ethernet: TX Checksum insertion supported
[    4.378740] rk_gmac-dwmac ff550000.ethernet: Wake-Up On Lan supported
[    4.378995] rk_gmac-dwmac ff550000.ethernet: Normal descriptors
[    4.379013] rk_gmac-dwmac ff550000.ethernet: Ring mode enabled
[    4.379024] rk_gmac-dwmac ff550000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    4.380401] libphy: stmmac: probed
[    4.681390] EXT4-fs (mmcblk2p1): mounted filesystem with writeback data mode. Opts: (null)
[    5.433260] systemd[1]: System time before build time, advancing clock.
[    5.458614] systemd[1]: Inserted module 'autofs4'
[    5.527175] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    5.528601] systemd[1]: Detected architecture arm64.
[    5.558370] systemd[1]: Set hostname to <rk3318>.
[    5.818804] dw-apb-uart ff130000.serial: forbid DMA for kernel console
[    6.399387] random: systemd: uninitialized urandom read (16 bytes read)
[    6.414713] random: systemd: uninitialized urandom read (16 bytes read)
[    6.415299] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    6.416695] random: systemd: uninitialized urandom read (16 bytes read)
[    6.421934] systemd[1]: Created slice User and Session Slice.
[    6.422801] systemd[1]: Reached target Slices.
[    6.430681] systemd[1]: Created slice system-getty.slice.
[    6.432901] systemd[1]: Listening on Journal Audit Socket.
[    6.437601] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    6.439711] systemd[1]: Listening on Syslog Socket.
[    6.653974] EXT4-fs (mmcblk2p1): re-mounted. Opts: commit=600,errors=remount-ro
[    7.778651] zram: Added device: zram0
[    7.780053] zram: Added device: zram1
[    7.784599] zram: Added device: zram2
[    8.034708] zram0: detected capacity change from 0 to 2084327424
[    8.264333] mc: Linux media interface: v0.10
[    8.309538] videodev: Linux video capture interface: v2.00
[    8.319137] lima ff300000.gpu: gp - mali450 version major 0 minor 0
[    8.319205] lima ff300000.gpu: pp0 - mali450 version major 0 minor 0
[    8.319257] lima ff300000.gpu: pp1 - mali450 version major 0 minor 0
[    8.319317] lima ff300000.gpu: l2 cache 8K, 4-way, 64byte cache line, 128bit external bus
[    8.319326] lima ff300000.gpu: l2 cache 64K, 4-way, 64byte cache line, 128bit external bus
[    8.339267] lima ff300000.gpu: bus rate = 491520000
[    8.339288] lima ff300000.gpu: mod rate = 491520000
[    8.392564] [drm] Initialized lima 1.1.0 20191231 for ff300000.gpu on minor 0
[    8.435162] Registered IR keymap rc-empty
[    8.435452] rc rc0: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0
[    8.435882] rc rc0: lirc_dev: driver gpio_ir_recv registered at minor = 0, raw IR receiver, no transmitter
[    8.436174] input: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0/input1
[    8.477330] rk3328-codec ff410000.codec: spk_depop_time use default value.
[    8.515793] hantro_vpu: module is from the staging directory, the quality is unknown, you have been warned.
[    8.518815] hantro-vpu ff350000.video-codec: Adding to iommu group 2
[    8.521089] hantro-vpu ff350000.video-codec: registered rockchip,rk3328-vpu-dec as /dev/video0
[    8.664764] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.674829] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.676154] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    8.676184] cfg80211: failed to load regulatory.db
[    8.742783] brcmfmac: F1 signature read @0x18000000=0x15264345
[    8.754275] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    8.754930] usbcore: registered new interface driver brcmfmac
[    8.777255] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.rockchip,rk3318-box.txt failed with error -2
[    8.992045] rockchip-vop ff370000.vop: Adding to iommu group 4
[    9.044433] Bluetooth: Core ver 2.22
[    9.044748] NET: Registered protocol family 31
[    9.044769] Bluetooth: HCI device and connection manager initialized
[    9.044804] Bluetooth: HCI socket layer initialized
[    9.044817] Bluetooth: L2CAP socket layer initialized
[    9.044890] Bluetooth: SCO socket layer initialized
[    9.109652] rockchip-drm display-subsystem: bound ff370000.vop (ops vop_component_ops [rockchipdrm])
[    9.110653] dwhdmi-rockchip ff3c0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (inno_dw_hdmi_phy2)
[    9.115758] Adding 2035472k swap on /dev/zram0.  Priority:5 extents:1 across:2035472k SSFS
[    9.118878] dwhdmi-rockchip ff3c0000.hdmi: registered DesignWare HDMI I2C bus driver
[    9.120296] rockchip-drm display-subsystem: bound ff3c0000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm])
[    9.125065] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    9.126954] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 1
[    9.154383] Registered IR keymap rc-cec
[    9.154647] rc rc1: dw_hdmi as /devices/platform/ff3c0000.hdmi/rc/rc1
[    9.154875] input: dw_hdmi as /devices/platform/ff3c0000.hdmi/rc/rc1/input2
[    9.194650] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    9.210169] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    9.383178] zram1: detected capacity change from 0 to 52428800
[   10.146327] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[   11.459887] systemd[1]: Started Armbian ZRAM config.
[   11.468386] systemd[1]: Starting Armbian memory supported logging...
[   11.569241] EXT4-fs (zram1): mounted filesystem without journal. Opts: discard
[   11.569297] ext4 filesystem being mounted at /var/log supports timestamps until 2038 (0x7fffffff)
[   14.294123] systemd[1]: systemd-rfkill.service: Succeeded.
[   14.816935] systemd[1]: Started Armbian memory supported logging.
[   14.827374] systemd[1]: Starting Journal Service...
[   15.058637] systemd[1]: Started Journal Service.
[   15.119838] systemd-journald[601]: Received request to flush runtime journal from PID 1
[   18.154190] random: crng init done
[   18.154226] random: 7 urandom warning(s) missed due to ratelimiting
[   18.952639] rk_gmac-dwmac ff550000.ethernet eth0: PHY [stmmac-1:00] driver [Rockchip integrated EPHY] (irq=POLL)
[   18.978210] rk_gmac-dwmac ff550000.ethernet eth0: No Safety Features support found
[   18.978261] rk_gmac-dwmac ff550000.ethernet eth0: PTP not supported by HW
[   18.980494] rk_gmac-dwmac ff550000.ethernet eth0: configuring for phy/rmii link mode
[   21.027022] rk_gmac-dwmac ff550000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   21.027124] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   21.987561] aufs 5.10-20210517
[   22.942218] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   22.957769] Bridge firewalling registered
[   25.331912] Initializing XFRM netlink socket
[  786.333371] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  835.282978] cgroup: cgroup: disabling cgroup2 socket matching due to net_prio or net_cls activation

 

photo_2021-06-05_09-49-16.jpg

photo_2021-06-05_09-49-40.jpg

photo_2021-06-05_09-49-11.jpg

photo_2021-06-05_09-56-40.jpg

Link to comment
Share on other sites

@elbuit cool, thanks!

Your board has a nice ap6255 wifi chip, looks life a fully fledged awesome board!

 

The original dtb is always welcome, as usual if you feel that something is not working as expected report here and we will see what can be done (I suspect bluetooth is the worst offender :rolleyes: )

Link to comment
Share on other sites

3 minutes ago, jock said:

@elbuit cool, thanks!

Your board has a nice ap6255 wifi chip, looks life a fully fledged awesome board!

 

The original dtb is always welcome, as usual if you feel that something is not working as expected report here and we will see what can be done (I suspect bluetooth is the worst offender :rolleyes: )

Well, it costs me only 25€ in amazon, really cheap.

by the way, where can I get the dtb file?

It came with an android 9 version.

 

Thanks for your job and help, It's really useful.

 

Link to comment
Share on other sites

ok,

 

So I really done it this time..

 

I bricked the unbirckable... 

 

My rk3318 is not doing anything anymore.. 

I cannot boot from SD (MULTITOOL) and I cannot do a firmware restore (via usb with the button in audio port) 

 

As this device supposed to be unbrickable... is there anything else I can do ? 

 

 

Link to comment
Share on other sites

Tested on H96 Max + RK3328 4G / 64G.

 

Quote

Burnen the Multitool on  SD-card

Downloaded Buster legacy kernel 4.4.213 and cp to sdcard

No DTB change needed to boot form Multitool

Made backup of Androide (restore works to)

Burned Buster legacy to flash from Multitool

After first boot (removed sdcard /power off /on)

sudo apt install armbian-config

sudo armbian-config and installed xfce-destop

sudo apt install media-buster-legacy-rk3328 --install-recommends

Ethernet : OK

WIFI : no  ( can see wifinet but unable to connect after typing password)

Hardware accelerated Kodi : OK  even 4K!!

Chromium youtube  Hardware accelerated :NO       full-screen (Compositor off)

 

Great work jock! & JMCC

Link to comment
Share on other sites

Good day!
I tried to install different images on H96MAX. Everyone is working.
But there is no analog audio device on buster legacy. And on the buster current I can not install the media framework.
I don't have enough knowledge to transfer the analog sound section of rk3318-box.dtb from one image to another. 
Can anyone help?

Link to comment
Share on other sites

On 6/17/2021 at 2:02 AM, avlev said:

Good day!
I tried to install different images on H96MAX. Everyone is working.
But there is no analog audio device on buster legacy. And on the buster current I can not install the media framework.
I don't have enough knowledge to transfer the analog sound section of rk3318-box.dtb from one image to another. 
Can anyone help?

Are you sure there is no audio device?

What does dmesg say? And aplay -L ?

Link to comment
Share on other sites

18.06.2021 в 13:50, jock сказал:

Are you sure there is no audio device?

What does dmesg say? And aplay -L ?

Armbian_21.05.0-trunk_Rk3318-box_buster_current

card 0: ANALOG [ANALOG], device 0: ff010000.i2s-rk3328-hifi ff410000.codec-0 [ff010000.i2s-rk3328-hifi ff410000.codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SPDIF [SPDIF], device 0: ff030000.spdif-dit-hifi dit-hifi-0 [ff030000.spdif-dit-hifi dit-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDMI], device 0: ff000000.i2s-i2s-hifi i2s-hifi-0 [ff000000.i2s-i2s-hifi i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

 

Armbian_21.05.0-trunk_Rk3318-box_buster_legacy

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDMI], device 0: ff000000.i2s-i2s-hifi i2s-hifi-0 [ff000000.i2s-i2s-hifi i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SPDIF [SPDIF], device 0: ff030000.spdif-dit-hifi dit-hifi-0 [ff030000.spdif-dit-hifi dit-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

I think there must be something like this in legacy dts

    analog-sound {
        compatible = "simple-audio-card";
        simple-audio-card,format = "i2s";
        simple-audio-card,mclk-fs = < 0x100 >;
        simple-audio-card,name = "ANALOG";
        status = "okay";
        phandle = < 0x7c >;

        simple-audio-card,cpu {
            sound-dai = < 0x07 >;
        };

        simple-audio-card,codec {
            sound-dai = < 0x08 >;
        };
    };

 

(this is a piece of current dst)

Link to comment
Share on other sites

18.06.2021 в 13:50, jock сказал:

Are you sure there is no audio device?

What does dmesg say? And aplay -L ?

Everything is working now with legacy dtb:

    i2s@ff010000 {
        compatible = "rockchip,rk3328-i2s\0rockchip,rk3066-i2s";
        reg = < 0x00 0xff010000 0x00 0x1000 >;
        interrupts = < 0x00 0x1b 0x04 >;
        clocks = < 0x02 0x2a 0x02 0x138 >;
        clock-names = "i2s_clk\0i2s_hclk";
        dmas = < 0x0c 0x0e 0x0c 0x0f >;
        dma-names = "tx\0rx";
        resets = < 0x02 0x21 0x02 0x24 >;
        reset-names = "reset-m\0reset-h";
        status = "okay";
        #sound-dai-cells = < 0x00 >;
        phandle = < 0x90 >;
    };

    i2s@ff020000 {
        compatible = "rockchip,rk3328-i2s\0rockchip,rk3066-i2s";
        reg = < 0x00 0xff020000 0x00 0x1000 >;
        interrupts = < 0x00 0x1c 0x04 >;
        clocks = < 0x02 0x2b 0x02 0x139 >;
        clock-names = "i2s_clk\0i2s_hclk";
        dmas = < 0x0c 0x00 0x0c 0x01 >;
        dma-names = "tx\0rx";
        resets = < 0x02 0x22 0x02 0x25 >;
        reset-names = "reset-m\0reset-h";
        pinctrl-names = "default\0sleep";
        pinctrl-0 = < 0x0d 0x0e 0x0f 0x10 0x11 0x12 >;
        pinctrl-1 = < 0x13 >;
        status = "disabled";
        phandle = < 0x9b >;
    };
    hdmi@ff3c0000 {
        compatible = "rockchip,rk3328-dw-hdmi";
        reg = < 0x00 0xff3c0000 0x00 0x20000 >;
        reg-io-width = < 0x04 >;
        interrupts = < 0x00 0x23 0x04 0x00 0x47 0x04 >;
        clocks = < 0x02 0xe7 0x02 0x46 0x02 0x1e 0x02 0x147 >;
        clock-names = "iahb\0isfr\0cec\0hclk_vio";
        phys = < 0x57 >;
        phy-names = "hdmi_phy";
        pinctrl-names = "default\0gpio";
        pinctrl-0 = < 0x58 0x59 0x5a >;
        pinctrl-1 = < 0x5b >;
        resets = < 0x02 0x8f 0x02 0x51 >;
        reset-names = "hdmi\0hdmiphy";
        rockchip,grf = < 0x1c >;
        status = "okay";
        #sound-dai-cells = < 0x00 >;
        ddc-i2c-scl-high-time-ns = < 0x2599 >;
        ddc-i2c-scl-low-time-ns = < 0x2710 >;
        phandle = < 0x93 >;

        ports {

            port {
                #address-cells = < 0x01 >;
                #size-cells = < 0x00 >;
                phandle = < 0xbd >;

                endpoint@0 {
                    reg = < 0x00 >;
                    remote-endpoint = < 0x5c >;
                    phandle = < 0x54 >;
                };
            };
        };
    };
    codec@ff410000 {
        compatible = "rockchip,rk3328-codec";
        reg = < 0x00 0xff410000 0x00 0x1000 >;
        rockchip,grf = < 0x1c >;
        clocks = < 0x02 0xeb 0x02 0x2a >;
        clock-names = "pclk\0mclk";
        status = "okay";
        #sound-dai-cells = < 0x00 >;
        phandle = < 0x91 >;
    };

    sound {
        compatible = "simple-audio-card";
        simple-audio-card,format = "i2s";
        simple-audio-card,mclk-fs = < 0x100 >;
        simple-audio-card,name = "rockchip-rk3328";

        simple-audio-card,cpu {
            sound-dai = < 0x90 >;
        };

        simple-audio-card,codec {
            sound-dai = < 0x91 >;
        };
    };

    hdmi-sound {
        compatible = "simple-audio-card";
        simple-audio-card,format = "i2s";
        simple-audio-card,mclk-fs = < 0x80 >;
        simple-audio-card,name = "rockchip-hdmi";

        simple-audio-card,cpu {
            sound-dai = < 0x92 >;
        };

        simple-audio-card,codec {
            sound-dai = < 0x93 >;
        };
    };
 

Link to comment
Share on other sites

@avlevglad you solved easily the problem. Legacy kernel received much less attention and indeed the audio codec part is missing in the dtb.

Legacy dtb requires a full refresh starting from the mainline dtb, but honestly it is becoming less important as multimedia things are progressing in the mainline kernel.

Link to comment
Share on other sites

8 часов назад, jock сказал:

@avlevglad you solved easily the problem. Legacy kernel received much less attention and indeed the audio codec part is missing in the dtb.

Legacy dtb requires a full refresh starting from the mainline dtb, but honestly it is becoming less important as multimedia things are progressing in the mainline kernel.

There are still problems. Analog audio works, but with the wrong bitrate. The sound is faster and several tones higher than necessary. I wouldn't use legacy, but I need a GPU-enabled gstreamer. And the rockchip multimedia framework only works on legacy.

Link to comment
Share on other sites

7 hours ago, avlev said:

There are still problems. Analog audio works, but with the wrong bitrate. The sound is faster and several tones higher than necessary. I wouldn't use legacy, but I need a GPU-enabled gstreamer. And the rockchip multimedia framework only works on legacy.

I didn't look into the nodes you added, but if you just did copy-and-paste from one dts to the other, it won't work that way because of the phandle references.

Link to comment
Share on other sites

2 часа назад, jock сказал:

I took nodes from a third-party dts and replaced the phandle numbers with those that were freed after removing the spdif. 

Everything is OK. Bitrate problems were due to my software (I'm porting a karaoke to h96max)

 

Link to comment
Share on other sites

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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines