LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-09-2019, 10:14 AM   #1
sndwvs
Member
 
Registered: Aug 2014
Posts: 942

Rep: Reputation: Disabled
Rock PI 4 RK3399 (aarch64)


information board:

Last edited by sndwvs; 02-09-2019 at 11:25 AM.
 
Old 03-05-2019, 12:43 PM   #3
sndwvs
Member
 
Registered: Aug 2014
Posts: 942

Original Poster
Rep: Reputation: Disabled
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

Last edited by sndwvs; 03-05-2019 at 12:44 PM.
 
Old 03-10-2019, 01:52 PM   #5
sndwvs
Member
 
Registered: Aug 2014
Posts: 942

Original Poster
Rep: Reputation: Disabled
updated kernel (separately) 4.4.176
 
Old 11-28-2019, 12:41 AM   #9
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 268
Blog Entries: 2

Rep: Reputation: 83
Smile

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.

Last edited by aaditya; 12-01-2019 at 12:41 AM. Reason: add update for thunar issue
 
Old 11-28-2019, 01:35 AM   #10
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 268
Blog Entries: 2

Rep: Reputation: 83
HDMI audio

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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-11-28_12-59-07.png
Views:	20
Size:	46.3 KB
ID:	31970  

Last edited by aaditya; 11-28-2019 at 02:00 AM. Reason: add how to set hdmi as default
 
Old 11-28-2019, 03:51 AM   #11
sndwvs
Member
 
Registered: Aug 2014
Posts: 942

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aaditya View Post
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.
Click image for larger version

Name:	Screenshot_2013-01-18_09-00-35.png
Views:	25
Size:	55.4 KB
ID:	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
Click image for larger version

Name:	Screenshot_2013-01-18_08-53-44.png
Views:	25
Size:	58.3 KB
ID:	31972
 
1 members found this post helpful.
Old 11-28-2019, 06:02 AM   #12
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 268
Blog Entries: 2

Rep: Reputation: 83
Thumbs up

Quote:
Originally Posted by sndwvs View Post
* 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 View Post
* 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 View Post
* 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!

Last edited by aaditya; 11-28-2019 at 06:13 AM. Reason: geany install instructions
 
Old 11-28-2019, 06:31 AM   #13
sndwvs
Member
 
Registered: Aug 2014
Posts: 942

Original Poster
Rep: Reputation: Disabled
aaditya, thanks

I added the package n/libndp to the assembly
 
1 members found this post helpful.
Old 11-28-2019, 12:04 PM   #14
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 268
Blog Entries: 2

Rep: Reputation: 83
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.
 
Old 11-28-2019, 12:09 PM   #15
sndwvs
Member
 
Registered: Aug 2014
Posts: 942

Original Poster
Rep: Reputation: Disabled
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

Last edited by sndwvs; 11-28-2019 at 12:49 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ROCKPro64 RK3399 (aarch64) sndwvs Slackware - ARM 32 05-03-2021 03:19 AM
Video : RecalBox on the Rock Pi 4 (and other RK3399 boards) NicoD SBC Linux - Embedded & Single-board computer 2 02-01-2019 08:05 AM
ROCK-esque "distro", but not ROCK? piete Linux - Distributions 5 08-21-2006 04:41 PM
Rock Linux -- does it rock ?? rolando Linux - Distributions 2 10-10-2004 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration