Yes, I wrote it specifically for FreeBSD, since it does not have the built-in fan control like Linux.
I’m not sure your LAN message is related to the PWM fan controller at all. It’s possible the Edge-V Pro has a different pwm device. For example, on my RockPro64 board, I had to modify the script to use /dev/pwm/pwmc1.0 instead of /dev/pwm/pwmc0.0.
Try ls -l /dev/pwm/ and then use the pwm command to iterate through the various devices and see which is controlling the fan.
Edit: Oh, I see your update now. I’m not sure why you aren’t seeing /dev/pwm/ - does “dmesg | grep -i pwm” show anything? Perhaps your DTB is not accurate because you’re using the Edge-V Pro?
Yeah, I think there’s something up with your DTB that isn’t right. I don’t know if there’s an rk3399-khadas-edge-pro.dtb (there isn’t on my system, but I haven’t updated in awhile). My output has the devices correctly detected:
Clock: pclk_rkpwm_pmu, parent: pclk_pmu_src(0), freq: 48000000
Clock: clk_vop0_pwm_c, parent: vpll(0), freq: 4000000
Clock: clk_vop1_pwm_c, parent: vpll(0), freq: 4000000
Clock: clk_vop1_pwm, parent: clk_vop1_pwm_c(0), freq: 4000000
Clock: clk_vop0_pwm, parent: clk_vop0_pwm_c(0), freq: 4000000
Processing 1 pin-config node(s) in pinctrl-0 for pwm@ff420000
Processing 1 pin-config node(s) in pinctrl-0 for pwm@ff420020
pwm0: <Rockchip PWM> mem 0xff420000-0xff42000f on ofwbus0
pwmbus0: <OFW PWM bus> on pwm0
pwmc0: <PWM Control> channel 0 on pwmbus0
ofwbus0: <pwm@ff420010> mem 0xff420010-0xff42001f disabled compat rockchip,rk3399-pwm (no driver attached)
pwm1: <Rockchip PWM> mem 0xff420020-0xff42002f on ofwbus0
pwmbus1: <OFW PWM bus> on pwm1
pwmc1: <PWM Control> channel 0 on pwmbus1
ofwbus0: <pwm@ff420030> mem 0xff420030-0xff42003f disabled compat rockchip,rk3399-pwm (no driver attached)
ofwbus0: <vdd-log> compat pwm-regulator (no driver attached)
ofwbus0: <pwm-fan> compat pwm-fan (no driver attached)
Yes also I am trying to find the network issue.
I cannot find the reason for lan not getting IP. Must be something similar related to Lan driver in the dtb
Maybe @hyphop can advice something? Is there any difference between Edge-V Basic & Pro in terms of Lan and Pwm-Fan ?
You don’t perhaps know how to auto enable the fan on Edge-V but using the 4.4 kernel without using any scripts? I want to enable the fan for LibreELEC and the 4.4 kernel is the only one supporting all the video codecs correctly until support is merged into mainline which might only be finished in a year’s time.
Nice this works fine.
The new FreeBSD splash screen is wonderful.
@SleepWalker I am doing stress test on this image and I am putting alot of stress on the cpu using the stress app and I see the temperature is always around 46-47 Degree C. I see that only 4 cores are being shown on hop
I see that you have added pwmfan control and it works. Either you have dropped the cpu frequency or have done some amazing thermal script. As I am aware that Rk3399 get hot alot when all cpu’s are under stress.
Well done guys, @SleepWalker I have a small question,
what would it take to port this to Amlogic boards?
I was reading on the BSD forums that some were able to port it for themselves for the S912 but no one had a successful build,So what is the feasibility of getting Unix to work on the VIMs, What do we need that’s missing ?