Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RK3328 Kernel

Featured Replies

Hi,

 

I would like to thank to Tony for doing Armbian for Tinker Board. It is very appreciate.

 

I think that Tinker Board will have big success and Armbian for its, too.

 

Many thanks again.

 

 

 

Nice, been having a bash at various edits trying to get this far. 

 

Thankyou for your efforts. Its the first time ive had all the LEDs working apart from red ;)

Just to be in picture. When will be Wifi support for Armbian available?

 

The kernel sources for Tinker Board 1.4 are available, and there fore DTS with Wifi config should be available.

 

Or is problem somewhere else?

 

Thanks.

 

 

First good job everyone.

This is the first time see the LEDs :D. What version should compile? dev better ?

I have some problems installing openmediavault (erros with nfs-common, and others) .I am very happy with your work. Continue.

 

Sorry 4my english.

 

 

5 hours ago, trax69 said:

 

This is the first time see the LEDs :D. What version should compile? dev better ?

 

Right now only the default works, I haven't gotten the device tree into the dev kernel yet.  Transplanting the compiled device tree from the default into the dev is a messy patch just to see it work.

OK, after patching the Rockchip-wlan Kconfig and Makefiles, and updating the driver, then adding a fix found in a patch on the rockchip-linux site, I have functional WiFi. 

 

So, a silly question, but where is the config saved to after I make kernel config changes?  That's all I need to get a patch submitted.

 

[edit]  oof, just yanked the resulting patch out of the folder, it's 10 MB. :o  Soooo, what should I do with that?  I'll see if there's a smarter way to replace the driver...

 

[edit2]  The driver in the miqi distro is v4.3.9 (Sep. 2014) I'm not sure finding the patches will help given the advanced age and huge differences.

2 hours ago, TonyMac32 said:

So, a silly question, but where is the config saved to after I make kernel config changes?  That's all I need to get a patch submitted.

 

KERNEL_SOURCE/.config -> copy out to lib/config/kernel/linux-rockchip-default.config

 

2 hours ago, TonyMac32 said:

oof, just yanked the resulting patch out of the folder, it's 10 MB. :o  Soooo, what should I do with that?  I'll see if there's a smarter way to replace the driver...


Check if there is not something too much. 1-2MB is normal.

17 minutes ago, Igor said:

 

KERNEL_SOURCE/.config -> copy out to lib/config/kernel/linux-rockchip-default.config
 

Thanks Igor!

 

17 minutes ago, Igor said:

Check if there is not something too much. 1-2MB is normal.

 

 

I went through and don't see a way to shrink it down, there have been multiple revisions.  Versions I've been able to find include 4.3.16, 4.4.0, and 4.4.1.  It looks like a major rewrite took place at 4.4.0, the version in Tinker OS.

The v4.4.0 commit I found shows 335 changed files https://github.com/anthonywong/rtl8723bs/commit/25e88f984ad93891f39822debbe86b2bc9f8035b

Edit: Already done, no testing needed any more!

 

Can any of those MiQi or Tinkerboard owners please check the relevant temperature sensors in idle and when generating some load to get a clue whether this commit needs a correction (exchanging occurences of /sys/class/thermal/thermal_zone1 and /sys/class/thermal/thermal_zone2):

#!/bin/bash
sensors=$(find /sys -name temp)
while true ; do 
	for sensor in ${sensors} ; do 
		echo -e "${sensor%/*}/$(cat ${sensor%/*}/type): $(cat ${sensor})"
	done
	echo ""
	sleep 5
done

 

22 hours ago, tkaiser said:

Can any of those MiQi or Tinkerboard owners please check the relevant temperature sensors in idle and when generating some load

Really no one? This will cost you a minute of your life only. Please just open 1 shell and let the above script run and in another one start 

for i in 1 2 3 4 ; do stress -c $(( $i * 2 )) -t 15 ; done

And then the output from first script on an online pasteboard service or here in code blocks would be fine to finish the temperature source stuff for all boards we currently support.

Edited by tkaiser
Testing done

nick@tinkerboard:~/Desktop$ sudo ./temp.txt 
cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 56818
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 56818

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 57272
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 55454

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 56363
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 55000

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 56363
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 55454

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 62916
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 59090

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 62500
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 60416

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 66153
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 62500

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 68461
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 64166

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 68846
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 65384

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 69615
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 66153

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 68846
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 66153

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 68846
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 66538

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 69230
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 65384

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 70416
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 66923

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 70416
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 67307

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 65384
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 63750

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 64166
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 63333

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 62500
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 62083

cat: /sys/devices/virtual/thermal/thermal_zone0/temp: Invalid argument
/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 62500
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 60833

 

Hopefully I've done this correctly - if preferred I can paste to GitHub - I have an account where I update markdown files. No programming skills I'm afraid. If there are more tests listed somewhere that need running I'm willing to try, but am often away for periods of weeks.

For first script the output is :

 

/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 51666
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 50833

 

/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 50416
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 50833

 

/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 

/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 51250
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 50416

 

/sys/devices/virtual/thermal/thermal_zone0/reserve_thermal: 
/sys/devices/virtual/thermal/thermal_zone1/cpu_thermal: 50833
/sys/devices/virtual/thermal/thermal_zone2/gpu_thermal: 50000

 

for thermal_zone0/temp  there is output that there is Invalid argument.

 

 

For second script ther is output:

 

stress: info: [2436] dispatching hogs: 2 cpu, 0 io, 0 vm, 0 hdd
stress: info: [2436] successful run completed in 15s
stress: info: [2439] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
stress: info: [2439] successful run completed in 15s
stress: info: [2449] dispatching hogs: 6 cpu, 0 io, 0 vm, 0 hdd
stress: info: [2449] successful run completed in 15s
stress: info: [2460] dispatching hogs: 8 cpu, 0 io, 0 vm, 0 hdd
stress: info: [2460] successful run completed in 15s
 

 

 

 

 

 

 

I probably should have found this topic before posting my own... but is there any reason CONFIG_DNOTIFY is not set for the rockchip config? It is for pretty much every other kernel config. I think it is stopping nfs-common from starting.

2 hours ago, chrisf said:

I probably should have found this topic before posting my own... but is there any reason CONFIG_DNOTIFY is not set for the rockchip config? It is for pretty much every other kernel config. I think it is stopping nfs-common from starting.

 

You're right

Quote

 

Note: some of the options below are required for NFS root, some for NFS mounting and some for NFS serving.
 

chromeos/config/armel/config.flavour.chromeos-tegra2:
CONFIG_USB_NET_AX8817X=y

chromeos/config/config.common.chromeos:
+CONFIG_DNOTIFY=y
+CONFIG_DNS_RESOLVER=y
+CONFIG_LOCKD=y
+CONFIG_LOCKD_V4=y
+CONFIG_NETWORK_FILESYSTEMS=y
+CONFIG_NFSD=m
+CONFIG_NFSD_V3=y
+CONFIG_NFSD_V4=y
+CONFIG_NFS_COMMON=y
+CONFIG_NFS_FS=y
+CONFIG_NFS_USE_KERNEL_DNS=y
+CONFIG_NFS_V3=y
+CONFIG_NFS_V4=y
+CONFIG_ROOT_NFS=y
+CONFIG_RPCSEC_GSS_KRB5=y
+CONFIG_SUNRPC=y
+CONFIG_SUNRPC_GSS=y
+CONFIG_USB_USBNET=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y

 

Maybe that's why i can't install openmediavault.
On 18/4/2017 at 5:07 AM, Igor said:


Can you provide an exact list what should be enabled in kernel configuration or better - login to Github and adjust config accordingly?

I edited the file on local linux-rockchip-default.config and work perfctly

 

whit this config
 

Quote

 

+CONFIG_DNOTIFY=y
+CONFIG_DNS_RESOLVER=y
+CONFIG_LOCKD=y
+CONFIG_LOCKD_V4=y
+CONFIG_NETWORK_FILESYSTEMS=y
+CONFIG_NFSD=m
+CONFIG_NFSD_V3=y
+CONFIG_NFSD_V4=y
+CONFIG_NFS_COMMON=y
+CONFIG_NFS_FS=y
+CONFIG_NFS_USE_KERNEL_DNS=y
+CONFIG_NFS_V3=y
+CONFIG_NFS_V4=y
+CONFIG_ROOT_NFS=y
+CONFIG_RPCSEC_GSS_KRB5=y
+CONFIG_SUNRPC=y
+CONFIG_SUNRPC_GSS=y
+CONFIG_USB_USBNET=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y

 

NFS is work !!

Sin título.png

On 21.4.2017 at 2:14 AM, trax69 said:

Maybe that's why i can't install openmediavault.

 

Now that this is fixed in default config you should be aware that Armbian's build system can be used to generate optimized OMV images: 

 

What's still missing is IRQ redistribution but so far I've not seen anyone posting output of 'sudo armbianmonitor -u', right?

@TonyMac32sent me output from armbianmonitor so I added IRQ distribution routine for MiQi and Tinkerboard and also built an optimized OMV image (just for fun -- default logon credentials are admin/root with pwd 'openmediavault'): http://kaiser-edv.de/tmp/NumpU8/

 

Background information: http://forum.openmediavault.org/index.php/Thread/17855-Building-OMV-automatically-for-a-bunch-of-different-ARM-dev-boards/

Internal discussion: https://forum.armbian.com/index.php?/topic/3953-preview-generate-omv-images-for-sbc-with-armbian/

 

5 hours ago, tkaiser said:

 

Now that this is fixed in default config you should be aware that Armbian's build system can be used to generate optimized OMV images: 

 

What's still missing is IRQ redistribution but so far I've not seen anyone posting output of 'sudo armbianmonitor -u', right?

http://sprunge.us/NdMK . Here you have. Sorry for not making the changes in github  of NFS . It was too late.

 

I think there is a problem with reboots. Sometimes it starts correctly after "Shutdown -r now" and others not. I'm looking for why.

 

1 hour ago, trax69 said:

Thanks but @TonyMac32already provided me with the necessary bits in the meantime :)

 

Since you're using OMV you should update your image with latest tweaks (IRQ affinity and 'special' OMV settings) or maybe simply give the optimized OMV image I built a few hours ago a try: OMV_3_0_72_Tinkerboard_4.4.63.7z (root password here is 'openmediavault' and will not be changed automatically on first login!)

 

BTW: it seems there's something wrong regarding 'dwc2_hsotg:usb1'. This is generating an awful lot of IRQs according to your and Tony's debug output.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.