Turl changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi
TheSeven has joined #linux-sunxi
physis has quit [Remote host closed the connection]
physis has joined #linux-sunxi
Andy-D has quit [Ping timeout: 256 seconds]
physis has quit [Remote host closed the connection]
naobsd has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.1.1]
physis has joined #linux-sunxi
physis has quit [Remote host closed the connection]
joedj has quit [Ping timeout: 250 seconds]
joedj has joined #linux-sunxi
vetkat has quit [Ping timeout: 250 seconds]
gianMOD has joined #linux-sunxi
TJvV has quit [Ping timeout: 250 seconds]
TJvV has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
quitte has quit [Ping timeout: 244 seconds]
quitte has joined #linux-sunxi
vetkat has joined #linux-sunxi
vetkat has joined #linux-sunxi
physis has joined #linux-sunxi
Renard has quit [Remote host closed the connection]
physis has quit [Remote host closed the connection]
naobsd has quit [Quit: naobsd]
Wizzup has quit [Ping timeout: 245 seconds]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
Wizzup has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
kaspter has joined #linux-sunxi
FDCX_ has quit [Ping timeout: 272 seconds]
orly_owl_ has joined #linux-sunxi
orly_owl has quit [Ping timeout: 252 seconds]
orly_owl_ is now known as orly_owl
orly_owl has joined #linux-sunxi
orly_owl has quit [Changing host]
orly_owl has quit [Quit: leaving]
orly_owl has joined #linux-sunxi
naobsd has joined #linux-sunxi
TheSeven has quit [Ping timeout: 256 seconds]
FreezingCold has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
orly_owl has quit [Quit: leaving]
p1u3sch1_ has joined #linux-sunxi
p1u3sch1 has quit [Ping timeout: 250 seconds]
LinuxBot has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
orly_owl has joined #linux-sunxi
steev has quit [Ping timeout: 252 seconds]
Tartarus has quit [Ping timeout: 272 seconds]
jjardon has quit [Ping timeout: 252 seconds]
jjardon has joined #linux-sunxi
Tartarus has joined #linux-sunxi
cubeast has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
mauro_ has quit [Remote host closed the connection]
mauro_ has joined #linux-sunxi
sehraf has joined #linux-sunxi
mauro_ has quit [Remote host closed the connection]
mauro_ has joined #linux-sunxi
mauro_ has joined #linux-sunxi
gianMOD has joined #linux-sunxi
awe00 has joined #linux-sunxi
naobsd has joined #linux-sunxi
kaspter has quit [Ping timeout: 250 seconds]
massi_ has joined #linux-sunxi
enrico_ has joined #linux-sunxi
imcsk8 has quit [Quit: Reconnecting]
imcsk8 has joined #linux-sunxi
jinzo has joined #linux-sunxi
sillysnowflake has joined #linux-sunxi
kaspter has joined #linux-sunxi
Renard has joined #linux-sunxi
interrobangd has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
<arete74> ~/quit
arete74 has quit [Quit: leaving]
interrobangd has quit [Quit: Leaving]
gianMOD has quit []
Thanatos has joined #linux-sunxi
Xaros has quit [Ping timeout: 245 seconds]
premoboss has quit [Remote host closed the connection]
Xaros has joined #linux-sunxi
Thanatos has quit [Ping timeout: 265 seconds]
arete74 has joined #linux-sunxi
Thanatos has joined #linux-sunxi
Xaros has quit [Read error: Connection reset by peer]
Thanatos is now known as Black_Horseman
Black_Horseman has quit [Changing host]
Black_Horseman has joined #linux-sunxi
arete74 has quit [Quit: Lost terminal]
silentcreek has joined #linux-sunxi
arete74 has joined #linux-sunxi
<silentcreek> Hey guys! I compiled mainline kernel 4.0.0-rc6 for my Banana Pi and got it running. Now I have a few questions, especially regarding the differences to the older sunxi-3.4 kernel that I used before.
<silentcreek> 1) Does anyone know how to read the temperature (be it CPU/SOC temp or the PMU temp)?
<silentcreek> I tried "cat /sys/devices/virtual/thermal/thermal_zone0/temp" but that only give me an invalid argument
<silentcreek> The previous code I used to get the temperature on the old sunxi-4.4 kernel doesn't work anymore.
<silentcreek> However, since the cpufreq patches mention thermal zones for thermal throttling, I assume it must be possible to read a temperature somehow.
<silentcreek> 2) Likewise, is it possible to read the voltage and current from the PMU so one can calculate the power consumption?
<silentcreek> 3) During boot, I get two kind of error messages: First, about "missing clock-frequency property" on cpu0 and cpu1, and second, "cpu cpu0: running cpufreq without cooling device: -38".
<silentcreek> I assume they are normal and can be ignored? Is that correct?
<silentcreek> 4).With the old 3.4 kernel, I could manipulate the cpu scaling properties, like minimum frequency and maximum frequency. Is that no longer possible with the mainline kernel?
<silentcreek> I tried to set the minimum frquency to 600MHz with "echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq". But that doesn't seem to have an effect.
<silentcreek> The CPU frequency doesn't go below 712MHz. The scaling itself does work, though. When under load, the frequency goes up to 960MHz.
<Froolap> I don't even know how to poll the clock freq of the different cpu..... I just see one cpu running 600
sillysnowflake has quit [Ping timeout: 272 seconds]
<silentcreek> I can pull the frequency with "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq"
<silentcreek> Depending on the load, that gives me different values.
<Froolap> cool,. thanks
<silentcreek> Ok, I just noticed something. The sun7i-a20.dtsi file does define several operating points for cpufreq but has non for 600MHz. I will try the next lower value of 528MHz.
<silentcreek> Ok, question 4 is solved. It works when using the operating points layed out in the dtsi. If I do "echo 528000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" (and for cpu1) then the scaling goes from 528-960MHz, depending on the load.
<Froolap> why not just run at max all the time? let the computer idle faster
Black_Horseman has quit [Remote host closed the connection]
<mripard_> silentcreek: for 3) the first one is normal, the second one is not
<mripard_> and might explain your error on 1
<mripard_> and for 2, you should be able to find that info in debugfs
<silentcreek> @Froolap: Cuz it's unnecessary and let's the SoC run warmer. My box is running 24/7 but idling most of the time. So, having it go to the maximum frequency only when there is load, seems more reasonable to me.
<silentcreek> @Maxime: Thanks. Do you have an idea where that error comes from? Or how to solve it?
<Froolap> my box is running 24/7 also but seems slow even when it's not doing much....
<Froolap> I'm not sure if more than one cpu is ever doing anything.
<mripard_> silentcreek: presumably because something's missing from your configuration
<mripard_> silentcreek: you should check for CONFIG_THERMAL and related options
<mripard_> maybe they've not all been enabled in our defconfig
<silentcreek> Maybe, I should mention: I'm using the official kernel sources from kernel org, but compiled with this configuration (using the silentoldconfig target): https://raw.githubusercontent.com/igorpecovnik/lib/next/config/linux-sunxi-next.config
<silentcreek> I tried sunxi_defconfig and multi_v7_defconfig before, but with these, I couldn't get ethernet working.
<NiteHawk> hi silentcreek. i've been experimenting a bit with 4.0-rc6 on BPi / A20 myself
<NiteHawk> the "/cpus/cpu@<n> missing clock-frequency property" seems to be normal
<NiteHawk> "running cpufreq without cooling device" is new to me, i don't find that in my dmesg
<mripard_> silentcreek: you shouldn't have any issue with the ethernet
<mripard_> did you find the option that fix things for you?
<silentcreek> @Maxime, I will check how the THERMAL options with sunxi_defconfig and Igor Pecovnik's config for 3.19 differ. Maybe there is the problem.
<NiteHawk> http://lpaste.net/130086 is the output of frequency settings with the mainline .dtsi
<NiteHawk> i agree: sunxi_defconfig should set up the ethernet just fine
<silentcreek> @Maxime, no, I haven't found the source for the ethernet problem yet. I just changed the sunxi_defconfig target last night to the oldconfig by Igor and then it worked. The rootfs was the same. U-Boot as well (2015.04-rc4).
<silentcreek> I was also confused, because I compiled kernel 3.19 with the sunxi_defconfig before, and that worked well, as far as I remember. But for 4.0.0-rc4 to -rc6 I didn't have any luck.
<Froolap> NiteHawk: do you have video/hdmi working on you bpi?
<silentcreek> Yes, I do.
<NiteHawk> i did a quick check with the "simple fb" provided by current u-boot. that worked just fine
<NiteHawk> (on hdmi)
<silentcreek> What worked fine?
<silentcreek> @Froolap: sorry. Just saw the message wasn't intended for me.
<mripard_> silentcreek: I was more interested in the "ethernet doesn't work", but yeah, yous hould check your config.
<Froolap> maybe i'll give it another try, thanks
<Froolap> silent, if you got video working on a banana, I'm glad to hear of it. I've not been able to get that working
<NiteHawk> Froolap: i've been using lemaker's 3.4 kernel before and it seemed to have no problem with video (hdmi output) either
<silentcreek> Yeah, I have to revisit that again. I have the idea that ethernet came up, cuz I could see that my router assigned an ip to the Banana Pi, but I could not ping the machine and the machine itself also did not have internet access (syslog contained messages that it cound not find the hosts for the ntp servers).
leviathancn has joined #linux-sunxi
<NiteHawk> Froolap: mainline kernel currently doesn't seem to support any 'native' driver and/or mode switching, just the "simple fb" approach to access whatever u-boot set up before
<Froolap> I don't trust lemaker, it seemed compromised to me....
<Froolap> I don't know what simple fb is... fb = facebook to me. lol
<silentcreek> @Froolap: If by hdmi you mean simple framebuffer for console output, then yes. If you use the multi_V7_defconfig target, it's enabled by default.
<NiteHawk> CONFIG_FB=y and CONFIG_FB_SIMPLE=y, optionally CONFIG_FRAMEBUFFER_CONSOLE=y -- see http://linux-sunxi.org/Mainline_Kernel_Howto#simplefb
sillysnowflake has joined #linux-sunxi
<Froolap> I don't know the details of what's involved in video.... I was hoping to plug in a hdmi monitor and have desktop.... and sorry, I did not intend to hijack the conversation.....
<NiteHawk> Froolap: did you try one of the prebuilt images with a gui-oriented distro like lubuntu? it should come with all you need...
<Froolap> I tried the lemaker fedora package, was seeing a bunch of stuff in the log during boot that I didn't like, yum installs of something that was blanked, nano edits of log files and purge of all user history files and yum logs.
<NiteHawk> silentcreek: i've started with sunxi_defconfig and added a few options on top of that. worked just fine for me. one thing that puzzled me a bit was initialization of the secondary core (CPU1) - due to a mistake i made with PSCI
<silentcreek> @Maxime: I will try to run more tests and recompile with sunxi_defconfig and multi_v7_defconfig tonight. Is there anything in particular, I can look out for with regards to ethernet? I should mention though, that I don't have a serial console yet, I just use the hdmi output with simple frambuffer.
<Froolap> I was thinking maybe install the lemaker image, leave the fat partition alone and then write the fedora-arm to the ext4 partition and see what happens
<NiteHawk> silentcreek: CONFIG_SUN4I_EMAC=y should be all you need
<silentcreek> Ok, thanks everyone for the info. I will do more testing tonight. Gotta go now. If someone wants to comment more on my questions, please do so. I will check the chat logs later. Enjoy the Easter holidays!
silentcreek has left #linux-sunxi [#linux-sunxi]
<mripard_> NiteHawk: we've not been using the EMAC for quite some time on the A20 board
kaspter has quit [Ping timeout: 256 seconds]
<NiteHawk> mripard_: ? it's the only config option under "Ethernet driver support" i found in 4.0-rc6
<NiteHawk> or is CONFIG_NET_VENDOR_ALLWINNER alone sufficient?
<alexxy> hi all
<alexxy> does cubietruck can work as AP using mainline kernel?
<mripard_> NiteHawk: it's CONFIG_STMMMAC_PLATFORM
<NiteHawk> mripard_: which seems absent from my .config? o.O
<NiteHawk> ah - one surplus M ;) nevermind
<NiteHawk> (CONFIG_STMMAC_PLATFORM is set)
naobsd has quit [Quit: naobsd]
<NiteHawk> mripard_: that corresponds to "STMicroelectronics devices", "STMicroelectronics 10/100/1000 Ethernet driver", "STMMAC Platform bus support" - is that one used across all allwinner platforms now?
sillysnowflake has quit [Ping timeout: 255 seconds]
ricardocrudo has quit [Ping timeout: 246 seconds]
<mripard_> NiteHawk: not all of them, but most of them
<mripard_> sun6i and later
<NiteHawk> i see. thanks
sillysnowflake has joined #linux-sunxi
popolon has joined #linux-sunxi
Andy-D has joined #linux-sunxi
nove has joined #linux-sunxi
Renard has quit [Remote host closed the connection]
nabblet has quit [Quit: Lost terminal]
cubeast has quit [Quit: Leaving]
ricardocrudo has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
lucaswang has joined #linux-sunxi
physis has joined #linux-sunxi
mrnuke has quit [Remote host closed the connection]
mrnuke has joined #linux-sunxi
mauro_ has quit [Ping timeout: 272 seconds]
dlan has quit [Ping timeout: 244 seconds]
blsd has quit [Quit: Leaving]
dlan has joined #linux-sunxi
dlan has joined #linux-sunxi
sillysnowflake has quit [Ping timeout: 252 seconds]
mnr has joined #linux-sunxi
steeve has quit [Remote host closed the connection]
sillysnowflake has joined #linux-sunxi
Renard has joined #linux-sunxi
sillysnowflake has quit [Ping timeout: 244 seconds]
naobsd has joined #linux-sunxi
leviathancn has quit [Ping timeout: 246 seconds]
reinforce has quit [Quit: Leaving.]
leviathancn has joined #linux-sunxi
physis has quit [Remote host closed the connection]
sillysnowflake has joined #linux-sunxi
leviathancn has quit [Ping timeout: 250 seconds]
ganbold_ has quit [Remote host closed the connection]
naobsd has quit [Quit: naobsd]
naobsd has joined #linux-sunxi
mauro_ has joined #linux-sunxi
gzamboni has quit [Ping timeout: 256 seconds]
<ccaione> /wi2
lucaswang has quit [Ping timeout: 265 seconds]
Renard has quit [Ping timeout: 264 seconds]
gzamboni has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
dev1990 has joined #linux-sunxi
Netlynx has joined #linux-sunxi
reinforce has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 245 seconds]
ricardocrudo has joined #linux-sunxi
domidumont has quit [Ping timeout: 246 seconds]
enrico_ has quit [Quit: Bye]
steeve has joined #linux-sunxi
awe00 has quit [Ping timeout: 248 seconds]
awe00 has joined #linux-sunxi
FreezingCold has joined #linux-sunxi
Andy-D has quit [Ping timeout: 264 seconds]
mauro_ has quit [Ping timeout: 250 seconds]
Renard has joined #linux-sunxi
massi_ has quit [Quit: Leaving]
awe00 has quit [Ping timeout: 272 seconds]
diego_r has quit [Quit: Konversation terminated!]
mauro_ has joined #linux-sunxi
Froolad has joined #linux-sunxi
Froolap has quit [Ping timeout: 248 seconds]
Night-Shade has quit [Read error: Connection reset by peer]
Night-Shade has joined #linux-sunxi
aballier has quit [Quit: leaving]
steeve has quit [Remote host closed the connection]
dev1990 has quit [Quit: Konversation terminated!]
nove has quit [Quit: nove]
Froolad has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Andy-D has joined #linux-sunxi
Froolap has joined #linux-sunxi
Netlynx has quit [Quit: Leaving]
interrobangd has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 272 seconds]
iamfrankenstein has joined #linux-sunxi
physis has joined #linux-sunxi
diego71_ has quit [Ping timeout: 256 seconds]
paulk-collins has joined #linux-sunxi
<plaes> mripard_: I'm getting blank screen (backlit works though) with latest for-next kernel on Gemei G9
<plaes> I can see the earlyprintk messages, but then screen goes blank
diego71 has joined #linux-sunxi
awe00 has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
steeve has joined #linux-sunxi
heffer has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
jinzo has left #linux-sunxi ["Leaving"]
<mripard_> plaes: what's your configuration? do you even have something using the framebuffer in the system you're booting ?
<plaes> yes
<mripard_> what?
<plaes> it boots fine with 3.19.0-rc4+ kernel
<plaes> I'll try to do another build to reduce possibility of PEBKAC
<plaes> it's A10 / Gemei G9
heffer has joined #linux-sunxi
<plaes> weird.. it hangs after "Starting kernel"
<mripard_> did you update your dt?
<plaes> hmm.. actually no, it responds to ctrl+alt+del
<plaes> I can boot with newer dtb and older kernel
<mripard_> no
<Wizzup> plaes: serial settings correct?
<plaes> # CONFIG_FRAMEBUFFER_CONSOLE is not set
<mripard_> keep the dtb and kernel in sync
<plaes> this ^ ?
mauro_ has quit [Ping timeout: 256 seconds]
<mripard_> if you don't have CONFIG_FRAMEBUFFER_CONSOLE and nothing in your system actually displaying something, yeah, you won't see anything
<mripard_> but I already asked you that question, and you told me that you had something.
<plaes> um.. could you please repeat that question?
<plaes> Gemei G9 is tablet, if you asked whether this machine has any display
sillysnowflake_ has joined #linux-sunxi
<mripard_> no.
<mripard_> "do you even have something using the framebuffer in the system you're booting ?"
<mripard_> that was the question
<mripard_> and you replied "yes"
<mripard_> so, if not FRAMEBUFFER_CONSOLE, what is?
<plaes> ok, fixed it :S
<plaes> PEBKAC
<plaes> sorry for troubles
<TheLinuxBug> lol
<plaes> it was CONFIG_FRAMEBUFFER_CONSOLE
sillysnowflake has quit [Ping timeout: 252 seconds]
<plaes> but I don't understand the question :(
<plaes> proper way to handle axp209 in dts is now to '#include "axp209.dtsi"' after setting up axp209 node with only reg and interrupts?
domidumont has quit [Ping timeout: 246 seconds]
<plaes> hrm the #include "axp209" way kills display :S
<plaes> oh well, enough headscratching for today
Renard has quit [Quit: Renard]
<mripard_> plaes: most likely because the display regulator is shut down
faisal has joined #linux-sunxi
Renard has joined #linux-sunxi
<plaes> which one is the preferred way?
<plaes> #include axp209 or the way it's done currently:
ricardocrudo has joined #linux-sunxi
<mripard_> it's not used for the same thing
<plaes> ok, so if the device has battery I should go with the #include way?
<mripard_> the latter only defines the AXP, without the regulators, only to use its other functions, like the power enable key
<plaes> ok
<mripard_> the former defines the regulators, and expect the board to tell how it is actually wired
Andy-D has quit [Read error: Connection reset by peer]
<mripard_> if the board fails to do that, it will shut down the regulators at the end of the boot
<mripard_> which will kill the system
<plaes> ok, thanks for explanations
bonbons has joined #linux-sunxi
Andy-D has joined #linux-sunxi
premoboss has joined #linux-sunxi
gianMOD has joined #linux-sunxi
ikeeki has joined #linux-sunxi
<ikeeki> Hi, ssvb: I've compiled a smplayer version mpv and mplayer compatible wich uses your vdpau; you can put any window in front of it without decreasing framerate, even at 1080p60. Thanks.
ikeeki has quit [Quit: Saliendo]
iamfrankenstein has joined #linux-sunxi
mnr has quit [Quit: leaving]
ricardocrudo has quit [Ping timeout: 264 seconds]
ricardocrudo has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
sehraf has quit [Quit: www.miranda-fusion.de ... be part of it...]
ricardocrudo has quit [Ping timeout: 264 seconds]
ricardocrudo has joined #linux-sunxi
ricardocrudo_ has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 256 seconds]
paulk-collins has quit [Ping timeout: 250 seconds]
ricardocrudo_ has quit [Ping timeout: 252 seconds]
ricardocrudo_ has joined #linux-sunxi
ricardocrudo_ has quit [Ping timeout: 244 seconds]
Froolap has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Froolap has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
gianMOD has quit [Remote host closed the connection]
naobsd has quit [Quit: naobsd]
iamfrankenstein has joined #linux-sunxi
buZz has quit [Quit: Reconnecting]
buZz_ has joined #linux-sunxi
buZz_ is now known as buZz
iamfrankenstein1 has joined #linux-sunxi
wigyori has quit [Ping timeout: 250 seconds]
wigyori has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 256 seconds]
physis has quit [Remote host closed the connection]
interrobangd has quit [Quit: Leaving]
awe00 has quit [Ping timeout: 250 seconds]
gianMOD has joined #linux-sunxi
bonbons has quit [Quit: Leaving]
Andy-D has quit [Ping timeout: 264 seconds]
gianMOD_ has joined #linux-sunxi
gianMOD has quit [Ping timeout: 264 seconds]