Real-Time Kernel with Orange Pi 4 LTS

More
24 Nov 2024 11:25 - 24 Nov 2024 12:51 #315165 by royka
When you activate too many overlays they can interfere with each other, because some pins have multiple functions. Some can also cause extra interrupts, so remove everything that you don't need and isolcpus should be placed after extraargs:
verbosity=1
bootlogo=true
console=both
fdtfile=rockchip/rk3399-orangepi-4-lts.dtb
rootdev=UUID=a703d82e-8d61-4266-8b54-c10361d608ca
rootfstype=ext4
extraargs=isolcpus=2-5
overlay_prefix=rockchip
overlays=rk3399-opp-2ghz rk3399-spi-spidev rk3399-uhs
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
​​​​​​​
Last edit: 24 Nov 2024 12:51 by royka.

Please Log in or Create an account to join the conversation.

More
25 Nov 2024 07:07 #315220 by Hossein74Majidi

When you activate too many overlays they can interfere with each other, because some pins have multiple functions. Some can also cause extra interrupts, so remove everything that you don't need and isolcpus should be placed after extraargs:
verbosity=1
bootlogo=true
console=both
fdtfile=rockchip/rk3399-orangepi-4-lts.dtb
rootdev=UUID=a703d82e-8d61-4266-8b54-c10361d608ca
rootfstype=ext4
extraargs=isolcpus=2-5
overlay_prefix=rockchip
overlays=rk3399-opp-2ghz rk3399-spi-spidev rk3399-uhs
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

Aha I see, I tested what you said. The latency got better and it's 31.8 us, is it goo enough yet?
The spi it's not found yet. I've enabled it in armbina-config menu but still there's no spidev in /boot/ directory.
just to be clear, here is my /boot/ directory:
root@orangepi4-lts:~# ls /dev/
autofs           gpiochip2    log           mmcblk0boot1  snd     tty20  tty37  tty53   ttyS1    vcs5   vcsu7
block            gpiochip3    loop0         mmcblk0p1     stderr  tty21  tty38  tty54   ttyS2    vcs6   vga_arbiter
btrfs-control    gpiochip4    loop1         mmcblk0rpmb   stdin   tty22  tty39  tty55   ttyS3    vcs7   vhci
bus              hidraw0      loop2         mqueue        stdout  tty23  tty4   tty56   ttyS4    vcsa   vhost-net
cec0             hidraw1      loop3         net           tty     tty24  tty40  tty57   ttyS5    vcsa1  video0
char             hidraw2      loop4         null          tty0    tty25  tty41  tty58   ttyS6    vcsa2  video1
console          hidraw3      loop5         port          tty1    tty26  tty42  tty59   ttyS7    vcsa3  video2
cpu_dma_latency  hugepages    loop6         ppp           tty10   tty27  tty43  tty6    uhid     vcsa4  video3
cuse             i2c-0        loop7         psaux         tty11   tty28  tty44  tty60   uinput   vcsa5  video-dec0
disk             i2c-1        loop-control  ptmx          tty12   tty29  tty45  tty61   uleds    vcsa6  video-dec2
dri              i2c-3        mapper        pts           tty13   tty3   tty46  tty62   urandom  vcsa7  watchdog
ecryptfs         i2c-4        media0        random        tty14   tty30  tty47  tty63   usb      vcsu   watchdog0
fb0              i2c-7        media1        rfkill        tty15   tty31  tty48  tty7    v4l      vcsu1  wcn_op
fd               iio:device0  media-dec0    rtc           tty16   tty32  tty49  tty8    vcs      vcsu2  zero
full             initctl      media-dec1    rtc0          tty17   tty33  tty5   tty9    vcs1     vcsu3
fuse             input        mem           shm           tty18   tty34  tty50  ttyBT0  vcs2     vcsu4
gpiochip0        kmsg         mmcblk0       slog_wcn0     tty19   tty35  tty51  ttyBT1  vcs3     vcsu5
gpiochip1        kvm          mmcblk0boot0  slog_wcn1     tty2    tty36  tty52  ttyS0   vcs4     vcsu6

and as you said, this is the content of my armbianEnv.txt:
verbosity=1
bootlogo=true
console=both
fdtfile=rockchip/rk3399-orangepi-4-lts.dtb
rootdev=UUID=a703d82e-8d61-4266-8b54-c10361d608ca
rootfstype=ext4
extraargs=isolcpus=2-5
overlay_prefix=rockchip
overlays=rk3399-opp-2ghz rk3399-spi-spidev rk3399-uhs
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u


btw, during latency test and glxgears, the board has many lags and works so slow. is it normal? 
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.181 seconds
Powered by Kunena Forum