LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Rock PI 4 RK3399 (aarch64) (https://www.linuxquestions.org/questions/slackware-arm-108/rock-pi-4-rk3399-aarch64-4175647951/)

sndwvs 02-09-2019 10:14 AM

Rock PI 4 RK3399 (aarch64)
 
information board:

sndwvs 02-12-2019 01:54 PM

not tested on the board, but should work

slack-current-aarch64-miniroot_01Feb19-4.4.174-rock_pi_4-build-20190212.img.xz
slack-current-aarch64-miniroot_01Feb19-4.4.174-rock_pi_4-build-20190212.img.xz.md5

sndwvs 03-05-2019 12:43 PM

update images sdcard
kernel 4.20.13

boot tested

install:
xzcat slarm64-current-*-base-rootfs-*-build-*.img.xz > /dev/mmcblk0

slarm64-current-aarch64-base-rootfs-24Feb19-4.20.13-rock_pi_4-build-20190303.img.xz
slarm64-current-aarch64-base-rootfs-24Feb19-4.20.13-rock_pi_4-build-20190303.img.xz.md5

sndwvs 03-10-2019 06:27 AM

radxa legacy kernel 4.4.154

README.TXT

images for sdcard minimum and with xfce desktop
slarm64-current-aarch64-base-rootfs-24Feb19-4.4.154-rock_pi_4-build-20190310.img.xz
slarm64-current-aarch64-base-rootfs-24Feb19-4.4.154-rock_pi_4-build-20190310.img.xz.md5
slarm64-current-aarch64-xfce-rootfs-24Feb19-4.4.154-rock_pi_4-build-20190310.img.xz
slarm64-current-aarch64-xfce-rootfs-24Feb19-4.4.154-rock_pi_4-build-20190310.img.xz.md5

sndwvs 03-10-2019 01:52 PM

updated kernel (separately) 4.4.176

sndwvs 06-28-2019 06:33 PM

update:
- kernel 4.4.184
- update all packages Fri Jun 28 18:44:41 UTC 2019

slarm64-current-aarch64-base-rootfs-15Jun19-4.4.184-rock_pi_4-build-20190628.img.xz
slarm64-current-aarch64-base-rootfs-15Jun19-4.4.184-rock_pi_4-build-20190628.img.xz.md5

slarm64-current-aarch64-xfce-rootfs-15Jun19-4.4.184-rock_pi_4-build-20190628.img.xz
slarm64-current-aarch64-xfce-rootfs-15Jun19-4.4.184-rock_pi_4-build-20190628.img.xz.md5

sndwvs 09-21-2019 10:26 AM

update:

* kernel 4.4.194
* update rootfs image 21 Sep 19
* update all packages Sat Sep 21 14:59:55 UTC 2019

slarm64-current-aarch64-base-rootfs-21Sep19-4.4.194-rock_pi_4-build-20190921.img.xz
slarm64-current-aarch64-base-rootfs-21Sep19-4.4.194-rock_pi_4-build-20190921.img.xz.md5

slarm64-current-aarch64-xfce-rootfs-21Sep19-4.4.194-rock_pi_4-build-20190921.img.xz
slarm64-current-aarch64-xfce-rootfs-21Sep19-4.4.194-rock_pi_4-build-20190921.img.xz.md5

sndwvs 10-19-2019 06:33 PM

update:
slarm64-current-aarch64-base-rootfs-14Oct19-4.4.196-rock_pi_4-build-20191018.img.xz
slarm64-current-aarch64-base-rootfs-14Oct19-4.4.196-rock_pi_4-build-20191018.img.xz.md5

slarm64-current-aarch64-xfce-rootfs-14Oct19-4.4.196-rock_pi_4-build-20191018.img.xz
slarm64-current-aarch64-xfce-rootfs-14Oct19-4.4.196-rock_pi_4-build-20191018.img.xz.md5

aaditya 11-28-2019 12:41 AM

I recently got a Rock Pi 4, and tried out slarm64-current-aarch64-xfce.
Blown away by how simply it worked! Thanks for giving us Slackware and non systemd!

Some suggestions/queries/notes:

* NetworkManager was installed but nm-applet was not working.
Code:

nm-applet: error while loading shared libraries: libnm-glib.0
Maybe it needs a recompile?

* A graphical text editor is needed. Could gvim work? I personally use mousepad but thats not available in base Slackware.
* /etc/rc.d/rc.ntpd is missing. Is it by design? Edit- Its present but disabled. My error.
* Thunar file manager is showing mount points like pts, shm, proc, sys. I am not sure why its happening and how to fix it. Edit - See reply.
* Sound via HDMI not working. Need to check how to fix. Edit- See reply
* Dragging windows was quite slow. Need to check how to improve it. Edit- See reply.

Thanks again for your work.

aaditya 11-28-2019 01:35 AM

HDMI audio
 
1 Attachment(s)
I will start some notes here. If needed these can be moved to the Slackware or Radxa wiki.

Setting up audio

The default output is from the 3.5 mm audio jack. Whats confusing is the both 3.5 mm jack and HDMI outputs have the same name in Pavucontrol [TODO: can it be fixed?]

To output sound via HDMI, change the output of the running program to the second output via Pavucontrol (Playback tab).

To make HDMI as default, set it as fallback from Pavucontrol Output devices tab.

sndwvs 11-28-2019 03:51 AM

2 Attachment(s)
Quote:

Originally Posted by aaditya (Post 6062616)
I recently got a Rock Pi 4, and tried out slarm64-current-aarch64-xfce.
Blown away by how simply it worked! Thanks for giving us Slackware and non systemd!

Some suggestions/queries/notes:

* NetworkManager was installed but nm-applet was not working.
Code:

nm-applet: error while loading shared libraries: libnm-glib.0
Maybe it needs a recompile?

* A graphical text editor is needed. Could gvim work? I personally use mousepad but thats not available in base Slackware.
* /etc/rc.d/rc.ntpd is missing. Is it by design? Edit- Its present but disabled. My error.
* Thunar file manager is showing mount points like pts, shm, proc, sys. I am not sure why its happening and how to fix it.
* Sound via HDMI not working. Need to check how to fix. Edit- See reply
* Dragging windows was quite slow. Need to check how to improve it.

* NetworkManager was installed but nm-applet was not working.
need install (fixed in the collector)
n/ModemManager-1.12.0-aarch64-1
l/gcr-3.34.0-aarch64-1


* A graphical text editor is needed. Could gvim work? I personally use mousepad but thats not available in base Slackware.
can I assemble any i use medit, geany

Thunar file manager is showing mount points like pts, shm, proc, sys. I am not sure why its happening and how to fix it.
Attachment 31973

* Sound via HDMI not working. Need to check how to fix.
set to analog output by default

* Dragging windows was quite slow. Need to check how to improve it.
xfce configured for fast window movement,
To do this, go to settings > window manager (optional) > effects > enable effects
Attachment 31972

aaditya 11-28-2019 06:02 AM

Quote:

Originally Posted by sndwvs (Post 6062672)
* NetworkManager was installed but nm-applet was not working.
need install (fixed in the collector)
n/ModemManager-1.12.0-aarch64-1
l/gcr-3.34.0-aarch64-1

Oh, I didnt realize. After installing the above packages, along with
Code:

n/libndp
for /etc/rc.d/rc.networkmanager
NetworkManager daemon and nm-applet worked.


Quote:

Originally Posted by sndwvs (Post 6062672)
* A graphical text editor is needed. Could gvim work? I personally use mousepad but thats not available in base Slackware.
can I assemble any i use medit, geany

Nice, I like geany too. But I can seem to find it via Slackpkg:

Code:

bash-5.0# slackpkg search geany

Looking for geany in package list. Please wait... DONE

No package name matches the pattern.

Edit- Fetching manually and installing via installpkg worked.


Quote:

Originally Posted by sndwvs (Post 6062672)
* Dragging windows was quite slow. Need to check how to improve it.
xfce configured for fast window movement,
To do this, go to settings > window manager (optional) > effects > enable effects
Attachment 31972

Nice, enabling composting fixed the window drag issue.

Thanks sndwvs for your kind help and work!

sndwvs 11-28-2019 06:31 AM

aaditya, thanks

I added the package n/libndp to the assembly

aaditya 11-28-2019 12:04 PM

Thanks sndwvs!

NetworkManager is ok now, but wifi does not work.

Find this is dmesg:
Code:

[ 1343.541605] wl_run_escan: LEGACY_SCAN sync ID: 40, bssidx: 0
[ 1343.602894] dhd_stop: Enter ffffffc0f0837000
[ 1343.603067] dhd_set_mcast_list_handler: interface info not available/down
[ 1343.607273] CFGP2P-ERROR) wl_cfgp2p_disable_discovery :  do nothing, not initialized
[ 1343.608606] CFGP2P-ERROR) wl_cfgp2p_deinit_priv : In
[ 1343.612019] dhd_tcpack_suppress_set: TCP ACK Suppress mode 1 -> mode 0
[ 1343.612060] wl_android_wifi_off in 1
[ 1343.612068] wl_android_wifi_off in 2: g_wifi_on=1, on_failure=1
[ 1343.612542] dhd_dbg_detach_pkt_monitor, 2204
[ 1343.612552] dhd_bus_devreset: == Power OFF ==
[ 1343.612750] dhd_txglom_enable: enable 0
[ 1343.612759] dhd_conf_set_txglom_params: txglom_mode=copy
[ 1343.612765] dhd_conf_set_txglom_params: txglomsize=0, deferred_tx_len=0
[ 1343.612772] dhd_conf_set_txglom_params: txinrx_thres=128, dhd_txminmax=-1
[ 1343.612778] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=-1
[ 1343.612785] dhd_bus_devreset:  WLAN OFF DONE
[ 1343.612927] wifi_platform_set_power = 0
[ 1343.612935] ======== PULL WL_REG_ON(-1) LOW! ========
[ 1343.612942] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 1343.612967] [WLAN_RFKILL]: wifi shut off power.
[ 1343.612973] wl_android_wifi_off out
[ 1343.612980] wl_ext_iapsta_dettach_netdev: ifidx=0
[ 1343.613018] dhd_stop: Exit
[ 1343.614570] dhd_set_mac_addr_handler: interface info not available/down
[ 1343.715903] dhd_open: Enter ffffffc0f0837000
[ 1343.715926] dhd_open : no mutex held. set lock
[ 1343.716044]
              Dongle Host Driver, version 1.579.77.41.10 (r)
[ 1343.716099] wl_ext_iapsta_attach_netdev: ifidx=0, bssidx=0
[ 1343.716110] wl_android_wifi_on in 1
[ 1343.716121] wl_android_wifi_on in 2: g_wifi_on=0
[ 1343.716133] wifi_platform_set_power = 1
[ 1343.716143] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 1343.716154] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 1343.716165] [WLAN_RFKILL]: wifi turn on power. -1
[ 1344.020103] sdio_reset_comm():
[ 1344.036371] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 1344.056100] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[ 1344.112763] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1344.116079] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1344.119282] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1344.125134] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1344.132605] mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[ 1344.238956] mmc_host mmc2: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
[ 1344.492442] dwmmc_rockchip fe310000.dwmmc: Successfully tuned phase to 226
[ 1344.492490] sdioh_start: set sd_f2_blocksize 256
[ 1344.492755]
             
              dhd_bus_devreset: == WLAN ON ==
[ 1344.492826] F1 signature read @0x18000000=0x15294345
[ 1344.495231] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[ 1344.495657] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 1344.495707] dhd_bus_set_default_min_res_mask: Unhandled chip id
[ 1344.495836] dhd_os_open_image: /lib/firmware/rkwifi/config.txt (204 bytes) open success
[ 1344.495877] dhd_conf_read_others: ccode = ALL
[ 1344.495923] dhd_conf_read_others: regrev = 0
[ 1344.495932] dhd_conf_read_sdio_params: dhd_doflow = 1
[ 1344.495940] dhd_conf_read_others: srl = 15
[ 1344.495947] dhd_conf_read_others: lrl = 15
[ 1344.495967] Final fw_path=/lib/firmware/rkwifi/fw_bcm43456c5_ag.bin
[ 1344.495972] Final nv_path=/lib/firmware/rkwifi/nvram_ap6256.txt
[ 1344.495976] Final clm_path=/lib/firmware/rkwifi/clm.blob
[ 1344.495981] Final conf_path=/lib/firmware/rkwifi/config.txt
[ 1344.497775] dhd_os_open_image: /lib/firmware/rkwifi/fw_bcm43456c5_ag.bin (482927 bytes) open success
[ 1344.537507] dhd_os_open_image: /lib/firmware/rkwifi/nvram_ap6256.txt (2099 bytes) open success
[ 1344.537543] NVRAM version: AP6256_NVRAM_V1.1_08252017
[ 1344.537953] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 1344.614096] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 1344.614572] dhd_get_memdump_info: File [/data/misc/wifi/.memdump.info] doesn't exist
[ 1344.614581] dhd_get_memdump_info: MEMDUMP ENABLED = 2
[ 1344.624285] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 1
[ 1344.625551] dhd_apply_default_clm: Ignore clm file /lib/firmware/rkwifi/clm.blob
[ 1344.630111] Firmware up: op_mode=0x0005, MAC=6c:21:a2:14:d9:2a
[ 1344.654515]  Driver: 1.579.77.41.10 (r)
                Firmware: wl0: Jun 16 2017 12:38:26 version 7.45.96.2 (66c4e21@sh-git) (r) FWID 01-1813af84
                CLM: 9.2.9
[ 1344.654958] dhd_txglom_enable: enable 1
[ 1344.654965] dhd_conf_set_txglom_params: txglom_mode=copy
[ 1344.654970] dhd_conf_set_txglom_params: txglomsize=36, deferred_tx_len=0
[ 1344.654988] dhd_conf_set_txglom_params: txinrx_thres=128, dhd_txminmax=-1
[ 1344.654993] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=-1
[ 1344.655002] dhd_conf_get_disable_proptx: fw_proptx=1, disable_proptx=-1
[ 1344.656363] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
[ 1344.658604] dhd_pno_init: Support Android Location Service
[ 1344.678802] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 1344.679518] rtt_do_get_ioctl: failed to send getbuf proxd iovar (CMD ID : 1), status=-23
[ 1344.679540] dhd_rtt_init : FTM is not supported
[ 1344.679546] dhd_preinit_ioctls: SensorHub diabled 0
[ 1344.681069] dhd_preinit_ioctls failed to set ShubHub disable
[ 1344.684065] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 1344.684483] dhd_conf_set_country: set country ALL, revision 0
[ 1344.685140] CONFIG-ERROR) dhd_conf_set_bufiovar: country setting failed -2
[ 1344.685726] Country code: US (US/0)
[ 1344.692095] CONFIG-ERROR) dhd_conf_set_intiovar: txbf setting failed -23
[ 1344.692545] wl_android_wifi_on: Success
[ 1344.750880] dhd_open : the lock is released.
[ 1344.750893] dhd_open: Exit ret=0
[ 1344.753233] dhd_set_mac_addr_handler: MACID is overwritten
[ 1344.772469] wl_run_escan: LEGACY_SCAN sync ID: 41, bssidx: 0

Maybe it needs some specific driver or settings. inxi shows the following info:
Code:

bash-5.0# inxi -nz
Network:  Device-1: rk3399-gmac driver: rk_gmac_dwmac
          IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
          Device-2: wlan-platdata driver: wlan_platdata
          IF-ID-1: wlan0 state: dormant mac: <filter>

Will check default Radxa and Armbian images and try to find out what they use.

sndwvs 11-28-2019 12:09 PM

need to see

checked everything works
simple setup:
1. configure rc.inet1.conf
Code:

IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=DARKSTAR
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="nl80211"
#WLAN_WPAWAIT[4]=30

2. configure wpa_supplicant.conf
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root

network={
        ssid="name of your point"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="very secret passphrase"
}

3. connection automatically after reboot or manual
Code:

/etc/rc.d/rc.inet1 start_wlan0


All times are GMT -5. The time now is 11:31 PM.