Jump to content

RK3328 Kernel


Peba

Recommended Posts

U-Boot SPL 2017.05-rc1-armbian (Apr 17 2017 - 00:30:20)


U-Boot 2017.05-rc1-armbian (Apr 17 2017 - 00:30:20 -0400)

Model: Tinker-RK3288
DRAM:  2 GiB
MMC:   dwmmc@ff0c0000: 1

 

 

It works!  Figured I'd give it a look.  Will update.

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
 

 

 

 

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

@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/

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

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