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
khuey is now known as khuey|away
TheSeven has quit [Ping timeout: 268 seconds]
TheSeven has joined #linux-sunxi
JohnDoe4 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
Gerwin_J has joined #linux-sunxi
<wens> my pine64 is stuck in transit :/
apritzel has quit [Ping timeout: 244 seconds]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
ninolein_ has quit [Ping timeout: 250 seconds]
ninolein has joined #linux-sunxi
khuey|away is now known as khuey
cnxsoft has joined #linux-sunxi
<willmore> wens, so is my 3d printer. :(
<psychedup74> mine is stuck in nowhereland
tomboy64 has quit [Ping timeout: 268 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
tomboy64 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
tomboy64 has quit [Ping timeout: 276 seconds]
tomboy64 has joined #linux-sunxi
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
p1u3sch1 has quit [Ping timeout: 268 seconds]
p1u3sch1 has joined #linux-sunxi
reev has joined #linux-sunxi
khuey is now known as khuey|away
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
psychedup74 has quit [Quit: leaving]
IgorPec has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
<lennyraposo> howdy all
mossroy has joined #linux-sunxi
tomboy64 has quit [Ping timeout: 276 seconds]
ojn has quit [Ping timeout: 264 seconds]
tomboy64 has joined #linux-sunxi
ojn has joined #linux-sunxi
bamvor has quit [Ping timeout: 264 seconds]
Tartarus has quit [Ping timeout: 264 seconds]
nihcas has quit [Ping timeout: 264 seconds]
bamvor has joined #linux-sunxi
p1u3sch1 has quit [Ping timeout: 250 seconds]
pekka10 has quit [Ping timeout: 252 seconds]
p1u3sch1 has joined #linux-sunxi
jernej_ has joined #linux-sunxi
Tartarus has joined #linux-sunxi
premoboss has joined #linux-sunxi
pekka10 has joined #linux-sunxi
nihcas has joined #linux-sunxi
doppo has quit [Ping timeout: 260 seconds]
JohnDoe_71Rus has joined #linux-sunxi
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
mpmc has quit [Quit: ZNC 1.6.1+deb1+jessie0 - http://znc.in]
mpmc has joined #linux-sunxi
doppo has joined #linux-sunxi
diego_r has joined #linux-sunxi
IgorPec has quit [Ping timeout: 276 seconds]
oneinsect has joined #linux-sunxi
<oneinsect> KotCzarny:
<oneinsect> what are the default modules that needed to loaded
<oneinsect> lsmod shows no modules loaded by kernel
<oneinsect> for sound, i2c etc
doppo has quit [Ping timeout: 276 seconds]
ricardocrudo has joined #linux-sunxi
doppo has joined #linux-sunxi
Worf has joined #linux-sunxi
<speakman> oneinsect: did you get RTC running?
<oneinsect> i mean i connected it....
<oneinsect> it says
<oneinsect> * Setting system clock using the hardware clock [UTC] ...hwclock: ioctl 0x80247009 failed: Operation not permitted
<oneinsect> may be this is the issue
<oneinsect> [ 10.280964] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0 [ 10.557345] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
<oneinsect> i need to point ds3231 to a different address?
<oneinsect> echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
<oneinsect> rather
ricardocrudo has quit [Ping timeout: 276 seconds]
<plaes> KotCzarny: did you try v4 memtester on your opipc?
<oneinsect> echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
dlan has quit [Ping timeout: 276 seconds]
maz has quit [Remote host closed the connection]
<speakman> oneinsect: that's why I told you to remove the sunxi-rtc driver from the kernel
<oneinsect> indeed
<oneinsect> i will try that now
dlan has joined #linux-sunxi
dlan has quit [Changing host]
dlan has joined #linux-sunxi
maz has joined #linux-sunxi
doppo has quit [Ping timeout: 250 seconds]
doppo has joined #linux-sunxi
apritzel has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
doppo has quit [Ping timeout: 250 seconds]
enrico_ has joined #linux-sunxi
doppo has joined #linux-sunxi
doppo has quit [Ping timeout: 260 seconds]
doppo has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
doppo has quit [Ping timeout: 276 seconds]
Worf has quit [Quit: Konversation terminated!]
doppo has joined #linux-sunxi
IgorPec has joined #linux-sunxi
doppo has quit [Ping timeout: 260 seconds]
doppo has joined #linux-sunxi
doppo has quit [Ping timeout: 260 seconds]
sirblackheart has joined #linux-sunxi
doppo has joined #linux-sunxi
oliv3r has quit [Ping timeout: 244 seconds]
doppo has quit [Ping timeout: 276 seconds]
doppo has joined #linux-sunxi
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 244 seconds]
kaspter has joined #linux-sunxi
kaspter has quit [Remote host closed the connection]
<Amit_T> apritzel: Sorry to bother , Just wanted to check , would it be a good idea to debug EMAC for pine64 from u-boot ?
<apritzel> Amit_T: instead of leaving it broken? ;-)
<apritzel> if you want to debug your H3/A64 EMAC driver, I'd use an OPi at the moment
<Amit_T> apritzel : sorry didn't get you
<apritzel> with an internal PHY
<apritzel> once that works, try it on the Pine64
<Amit_T> apritzel: Ok I was thinking it would be bit more easy
<apritzel> debugging your driver from the very scratch on the Pine64 is probably not helpful at the moment
<Amit_T> Yes, thats the plan in my mind
<Amit_T> but for my driver I can able to send proper packet on wire from OPi to host
<Amit_T> its just receive path I have to debug
<apritzel> and back? send more packets? I think you still have work to do and I'd do it on the same platform that you know at least partially works
<apritzel> instead of creating a whole bunch of new problems and uncertainties with moving to the Pine64
pitelpan has quit [Ping timeout: 260 seconds]
<Amit_T> send more packets? , you mean to say from OPi to host again, right ?
IgorPec has quit [Ping timeout: 276 seconds]
<apritzel> well, you mentioned that you can send exactly _one_ packet the other day
<apritzel> I meant finish debugging and fixing on one platform
<Amit_T> ok, sure :)
<apritzel> once you can load a kernel via TFTP on the OPi, we can look at the Pine64
<Amit_T> hmm
<apritzel> if you are fed up with U-Boot, you can try to debug the Linux driver on the Pine64
<apritzel> it's in the a64-wip branch on my github
<Amit_T> ok
<Amit_T> I am trying to work it out on this weekend .
<Amit_T> Thanks for your time.
doppo has quit [Ping timeout: 250 seconds]
pitelpan has joined #linux-sunxi
doppo has joined #linux-sunxi
doppo has quit [Ping timeout: 268 seconds]
doppo has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
paulk-collins has quit [Quit: Leaving]
doppo has quit [Ping timeout: 250 seconds]
doppo has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 252 seconds]
cnxsoft1 is now known as cnxsoft
doppo has quit [Ping timeout: 250 seconds]
doppo has joined #linux-sunxi
<speakman> While we're at it; I need to add an i2c device which requires interupt pin. Stuck with the 3.4 kernel (without Device Tree) I don't really know how to achieve that in a proper way.
philippe_fouquet has joined #linux-sunxi
<oneinsect> hmm
<oneinsect> btw the legacy sometimes doesnt compile well with latest gcc
doppo has quit [Ping timeout: 250 seconds]
<speakman> No, it doesn't support gcc5 iirc
<oneinsect> even with some versions of gcc 4.8
doppo has joined #linux-sunxi
<oneinsect> it fails
<oneinsect> so i revert to 4.7 or older
cosm_ has joined #linux-sunxi
doppo has quit [Ping timeout: 250 seconds]
paulk-leonov has joined #linux-sunxi
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
zoobab has quit [Ping timeout: 260 seconds]
doppo has joined #linux-sunxi
<topi`> anyone with Orange Pi PC and the Xunlong Camera Module with 4.x kernel?
<topi`> the only way I got the camera to work, was to use Loboris's 3.4.x kernel image
<jelle> topi`: CSI support isn't mainlined yet
<topi`> but firmware loading (for a usb wifi adapter) doesn't work on that kernel
doppo has quit [Ping timeout: 276 seconds]
<topi`> I need to find the source code for that loboris kernel
<topi`> so that I can try to enable FW loading
lemonzest has joined #linux-sunxi
doppo has joined #linux-sunxi
doppo has quit [Ping timeout: 250 seconds]
fl_0 has quit [Ping timeout: 250 seconds]
fl_0 has joined #linux-sunxi
doppo has joined #linux-sunxi
reev has quit [Ping timeout: 260 seconds]
<philippe_fouquet> Hi
<philippe_fouquet> some body have try to use the kernel sunxi3.4 with android
<philippe_fouquet> I don't ion memory manager
Amit_T has quit [Ping timeout: 250 seconds]
doppo has quit [Ping timeout: 250 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tomboy64 has quit [Ping timeout: 250 seconds]
naraic has joined #linux-sunxi
doppo has joined #linux-sunxi
tomboy64 has joined #linux-sunxi
pitelpan has quit [Ping timeout: 276 seconds]
pitelpan has joined #linux-sunxi
doppo has quit [Ping timeout: 268 seconds]
Amit_T has joined #linux-sunxi
fathead has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 260 seconds]
<jelle> hmm seems h3 hdmi uses the same base addr http://linux-sunxi.org/DWC_HDMI_Controller
doppo has joined #linux-sunxi
lemonzest has quit [Ping timeout: 250 seconds]
tomboy64 has quit [Ping timeout: 260 seconds]
<plaes> yea
<jelle> currently working on porting francois's hdmi h3 driver to u-boot
tomboy64 has joined #linux-sunxi
oneinsect has quit [Ping timeout: 250 seconds]
<plaes> cool
<jelle> I wonder what the status of the h3 hdmi driver is for mainline for the kernel, but I guess everyone waits on the A10 driver to be merged
<plaes> IIRC, it had some licensing issues
<jelle> plaes: hmm howso?
<jelle> plaes: hmm don't see any license issues, more the issue that there are no docs
doppo has quit [Ping timeout: 276 seconds]
<wens> jelle: the driver was taken from h3/a64 bsp, which does not have proper license headers
<plaes> hmm
<wens> and it was not officially released by allwinner
<jelle> wens: oh I see
* jelle isn't really a license hero
<wens> so they could claim it was leaked or something
<jelle> damn that sucks
<plaes> I plan to push some clocks for a10/20 drm later this week
<wens> cool
<plaes> btw, how do you apply series from mailing lists? :P
<wens> i suppose if you had a cubietruck you could look into getting vga working?
<wens> use pwclient to do git-am from patchwork :
<wens> :)
<wens> keyboard is on the fritz...
<jelle> isn't the h3 ethernet situation the same then?
<plaes> nope, IIRC it's written from scratch
<jelle> ah ok
<jelle> so basically, never copy code from the BSP
<plaes> now if someone could figure out the glue layer for HDMI, one could use existing DesignWare controller
fl_0 has quit [Ping timeout: 276 seconds]
<wens> plaes: technically the structure looks more like stmmac :p
<plaes> hdmi?
<wens> but since most if not all the code was replaced, you could claim it as an original work?
<wens> h3 emac
<plaes> oh.. I was implying on HDMI controller (A64/H3
<plaes> )
kaspter has joined #linux-sunxi
<wens> i asked foxconn people to rely our requests
<wens> though don't get your hopes too high
<plaes> yea :S
fl_0 has joined #linux-sunxi
<ssvb> wens: leaked? wasn't the h3 bsp released by xunlong for their boards?
<wens> ssvb: yes, but are they allowed to?
<wens> and also, numerous files are missing license headers
<jelle> :-(
<ssvb> wens: well, somebody has the obligation to release the GPL kernel sources, otherwise no binary images can be distributed for the boards
<ssvb> wens: if Allwinner is unhappy about the h3 bsp "leak", then where is the DMCA takedown show? and if Allwinner is happy, then what's the problem?
fathead has quit [Quit: leaving]
<wens> the takedown show can always happer after the code is merged
<mripard> the released code has not been released under a GPL-compatible license
<wens> is there a license at all? seems more like someone just put up a tarball and that's it
<ssvb> wens: Either way, if anybody comes after me for distributing the h3 bsp kernel sources, I would blame the orange pi people :) See the commit message at https://github.com/ssvb/linux-sunxi/commit/4667449e8d5f04c2db73a242ef01525ea9799700
<mripard> wens: there is, "all rights reserved" is a license
<wens> hmm
<ssvb> mripard: yes, some files have GPL license notices, the others are "all rights reserved"
premoboss has quit [Quit: Sto andando via]
gzamboni has quit [Ping timeout: 260 seconds]
<apritzel> the nasty part is that I think Allwinner doesn't really care about all that Linux license stuff, but we can't use it anyway :-(
<jelle> seems HPD detection works \o/
<plaes> mripard: could you push your drm-v4 tree?
<plaes> or what's the best solution to push display clocks for A10/A20?
<wens> plaes: iirc clocks are already in mripard's sunxi/for-next?
<plaes> cool
lemonzest has joined #linux-sunxi
<plaes> yeah.. it's in sunxi-next \o/
gzamboni has joined #linux-sunxi
lemonzest has quit [Remote host closed the connection]
ChanServ has quit [*.net *.split]
IgorPec has joined #linux-sunxi
ChanServ has joined #linux-sunxi
<ssvb> apritzel: have you found a way to fix the SRAM C data corruption?
nove has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
<ssvb> apritzel: I mean the unstable part of it where you observed single byte errors in string constants
philippe_fouquet has quit [Remote host closed the connection]
reinforce has joined #linux-sunxi
jernej_ has quit [Ping timeout: 246 seconds]
reinforce has quit [Client Quit]
paulk-leonov has quit [Ping timeout: 240 seconds]
zuikis has joined #linux-sunxi
<KotCzarny> plaes: yes, and i've reported it here, though it might've got lost in the flood
<KotCzarny> in short, v4 made no difference
<KotCzarny> stable at 648, fails in 1-2mins at 672
Netlynx has joined #linux-sunxi
jernej_ has joined #linux-sunxi
sirblackheart has quit [Quit: sirblackheart]
luoyi has quit [Quit: Page closed]
iamfrankenstein has quit [Ping timeout: 252 seconds]
iamfrankenstein has joined #linux-sunxi
<apritzel> ssvb: no, but it's not a showstopper for me atm
<apritzel> ssvb: I either use DEBUG=0 and keep the whole ATF out of the faulty region or I load it entirely into SRAM A2
Gerwin_J has joined #linux-sunxi
khuey|away is now known as khuey
oneinsect has joined #linux-sunxi
<KotCzarny> oneinsect: i've built most things into the kernel
<KotCzarny> also, i'm using gcc 4.9.2
<oneinsect> which kernel? the one you gave me?
<KotCzarny> yes
<oneinsect> strangely after booting lsmod shows no modules
<oneinsect> loaded into kernel
<oneinsect> its kinda empty
<KotCzarny> what is your /lib/modules ?
<oneinsect> hold on
<KotCzarny> also as i said, all things that would be loaded as already builtin
<oneinsect> 3.4.39-02-lobo
<oneinsect> is that correct?
<KotCzarny> yes
<KotCzarny> ok, try: modprobe udf
<oneinsect> okie i havent booted yet...just got home...let me put things together
<KotCzarny> if it loads, then everything is fine and you are just dont need any modules
<oneinsect> alrite
<oneinsect> let me try
<oneinsect> right away
kaspter has quit [Ping timeout: 252 seconds]
<oneinsect> modprobe udf modprobe: module udf not found in modules.dep KotCzarny:
<oneinsect> may be i will need your full image?
<oneinsect> i thought my lobo modules files are the same that you have
<KotCzarny> can you pastebin: ls -l /lib/modules/3.4.39-02-lobo
<KotCzarny> modules pack is the same i'm using
<oneinsect> modprobe uvcvideo.ko modprobe: can't load module uvcvideo.ko (kernel/drivers/media/video/uvc/uvcvideo.ko): invalid module format
<oneinsect> yes let me paste
<oneinsect> pastebin
<KotCzarny> also, pastebin: modinfo uvcvideo (or udf)
<KotCzarny> and uname -a
<KotCzarny> you can put it all in one pastebin
<oneinsect> yes right away
<KotCzarny> and: modprobe -V
cosm_ has quit [Ping timeout: 240 seconds]
<oneinsect> capital v is unrecognized
<oneinsect> for modprobe
reinforce has joined #linux-sunxi
<KotCzarny> busybox module utils?
<oneinsect> yes busybox
<KotCzarny> maybe it's old
<KotCzarny> for a start try: rm /lib/modules/3.4.39-02-lobo/*.bin; depmod -a
<oneinsect> busybox --help BusyBox v1.24.1 (2015-12-16 08:00:31 GMT) multi-call binary. BusyBox is copyrighted by many authors between 1998-2015. Licensed under GPLv2. See source distribution for detailed copyright notices.
<oneinsect> yes
<KotCzarny> also, somehow your modules are built with preempt
<oneinsect> hmmm
<oneinsect> may be your modules will work?
<KotCzarny> but i've tarred my dir
<oneinsect> okie let me check
<KotCzarny> maybe i've changed some settings at some point
<oneinsect> great i have them
<oneinsect> what you gave
<oneinsect> i did not use them infact i used
<oneinsect> my own compiled ones
<oneinsect> may be thats the problem
<oneinsect> let me build a modloop
<oneinsect> based on your files
<KotCzarny> yes, yours are built with preempt
<KotCzarny> mine without
<oneinsect> do you have firmware folder?
<KotCzarny> yes
<KotCzarny> but only wifi chip firmware installed
<oneinsect> oooh
<oneinsect> probably then i dont need them
<oneinsect> may be later on
<oneinsect> let me first get this thing rolling
<oneinsect> okie repacking
<KotCzarny> but it's plain debian, so you can simply grab firmware package from jessie and unpack
<oneinsect> yes
<KotCzarny> vermagic: 3.4.39-02-lobo SMP mod_unload ARMv7 p2v8
<KotCzarny> mine ^
<KotCzarny> vermagic: 3.4.39-02-lobo SMP preempt mod_unload modversions ARMv7 p2v8
<KotCzarny> yours
<oneinsect> indeed
<KotCzarny> so your are built with rpeempt and modversions
<oneinsect> also nanopi m1 seems to consume around 1.5 watts
<oneinsect> not bad at all
<oneinsect> compared to raspberry pi
<oneinsect> 2
<oneinsect> or raspberry pi 3
<KotCzarny> yes, but put some load on it, and you will probably reach 5-10W
<oneinsect> oooh
<oneinsect> are you sure?
<KotCzarny> at least that's the case with opipc
<oneinsect> i only want to use 1 usb for camera, 1 usb for storage, and run ffmpeg or gstreamer
<oneinsect> do you think it will reach 5-10w??
<oneinsect> may be wifi
<KotCzarny> depends, just run it and observe temperature
<oneinsect> let me
apritzel has quit [Ping timeout: 244 seconds]
enrico_ has quit [Quit: Bye]
<oneinsect> okie made changes
<oneinsect> booting now
<KotCzarny> what changes?
<oneinsect> i have used your modules directory
<oneinsect> okie lsmod is still blank
<oneinsect> however
<oneinsect> modprobe udf works
<oneinsect> i now see
<oneinsect> udf 69183 0
<KotCzarny> yes
<oneinsect> this is great
<oneinsect> one issue though
<oneinsect> Setting system clock using the hardware clock [UTC] ...hwclock: ioctl 0x80247009 failed: Operation not permitted
<KotCzarny> yes, its builtin probably
<oneinsect> indeed
<oneinsect> i was advised before a few hours back
<oneinsect> to recompile without sunxi-rtc
<oneinsect> phew did not get time
<oneinsect> just landed home a while back
<KotCzarny> want me to rebuild or you will recompile yourself?
<oneinsect> if you have it setup
<oneinsect> also
<oneinsect> can you include
<oneinsect> the following
<KotCzarny> yes, as i said, my opipc builds it
<oneinsect> there are two i2c clocks from maxim
<oneinsect> namely
<KotCzarny> it takes a bit more than using i5 with crosscompiler but is nicer for lazy people like me
<oneinsect> hmmm
<oneinsect> I2C RTC drivers
<oneinsect> can you include
<oneinsect> CONFIG_RTC_DRV_DS3232=y
<oneinsect> and this
<oneinsect> CONFIG_RTC_DRV_DS1307
<oneinsect> and may be disable this one CONFIG_RTC_DRV_SUNXI=y?
<oneinsect> i dont know if thats the one
<oneinsect> there is another one called
<oneinsect> CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
<oneinsect> i think my adventure should end with this
<oneinsect> and i should be able to focus more on video encoding
<oneinsect> :-D
<oneinsect> btw
<oneinsect> if you have wireless drivers
<oneinsect> please include them
<oneinsect> i will eventually anyway need them
<KotCzarny> which ones?
<oneinsect> i want to run a hostspot
<oneinsect> which ones
<oneinsect> ah wait
avph has quit [Ping timeout: 250 seconds]
<oneinsect> RTL8188EU
<oneinsect> RTL8192C
<KotCzarny> both are included already
<oneinsect> iyes i am seeing you config now
<KotCzarny> also ralink****
<oneinsect> seems they are there
<oneinsect> why not # CONFIG_RT2500USB
<oneinsect> and RTL8189ES
<KotCzarny> because i've enabled only things i have
<oneinsect> okie
<oneinsect> no issues
<KotCzarny> added them
<KotCzarny> anything else?
<oneinsect> 3g usb dongle drivers?
<KotCzarny> which ones
<oneinsect> CONFIG_SW_USB_3G
<oneinsect> may be
<oneinsect> its not 3G dongle
<oneinsect> never mind
<oneinsect> these shoudl be great
<KotCzarny> often 3g cards show up as a simple /dev/ttyUSB*
<oneinsect> i wonder how 4.9 works for you and my cross compiler failes
<oneinsect> yes
<oneinsect> probably i will modem switch utility
<KotCzarny> because i dont use crosscompiler?
<oneinsect> aha
avph has joined #linux-sunxi
<oneinsect> we write a book and publish it
<KotCzarny> also i think there was some issue with legacy build system that i had to solve for native compiling
<oneinsect> should*
<oneinsect> hmmm
<KotCzarny> ie. trying to build some blob by using precompiled x86 binary
<KotCzarny> which means you should probably use x86 cross compiler instead of x64
<oneinsect> hmmm
<oneinsect> but everyone recommends x64-bit vm
<KotCzarny> or just install 32bit compatibility libs
<oneinsect> yes
<KotCzarny> dont remember the name of that binary tho, so i dont know if its the same issue
<KotCzarny> it will all be forgotten as soon h3 hits the mainline anyway
<oneinsect> indeed
avph has quit [Ping timeout: 250 seconds]
avph has joined #linux-sunxi
<oneinsect> looking there
<oneinsect> The power consumption is nothing unexpected. In idle, the board draws about 200mA.
<oneinsect> When running $ openssl speed -multi 4 rsa4096 the power consumption jumps up to about 450mA.
<KotCzarny> see tkaiser measurements
<oneinsect> hmmm
<KotCzarny> also, take note that opipc can change voltage at will, and your board will be stuck to some predefined values
<oneinsect> indeed
<oneinsect> that is true
<oneinsect> it has dynamic voltage scalling
<KotCzarny> kernel is inside modules dir, so move it somewhere
<oneinsect> yes
<oneinsect> moved it
<oneinsect> rebuilding
<oneinsect> my modloop etc
<KotCzarny> hmm
<KotCzarny> i may have overestimated power draw
Gerwin_J has quit [Quit: Gerwin_J]
<oneinsect> Setting system clock using the hardware clock [UTC] ...hwclock: can't open '/dev/misc/rtc': No such file or directory
<oneinsect> okie i have reached
<oneinsect> the command prompt
<oneinsect> let me see
<oneinsect> dmesg
<oneinsect> and see if it detected
<KotCzarny> lsmod/modprobe up to you
<oneinsect> any ds3231 rtc clock
apritzel has joined #linux-sunxi
<KotCzarny> built both as modules
<oneinsect> yes
<oneinsect> 1200 MHz: not exceeding 3.3W, 50°C above ambient temperature
<oneinsect> not bad
<KotCzarny> 50C above ambient means ~75C
<oneinsect> hmmm
apritzel has quit [Ping timeout: 244 seconds]
<oneinsect> lsmod shows i2c also
<oneinsect> great thanks KotCzarny:
<KotCzarny> :)
<oneinsect> i need to figure out how to check that error
<KotCzarny> which one?
<oneinsect> hwclock: can't open '/dev/misc/rtc': No such file or directory
<oneinsect> i mean it comes during boot
<oneinsect> but when i login and type hwclock
<oneinsect> root@allwinner:~# hwclock Wednesday 27 April 2016 11:36:40 PM IST -0.427454 seconds
<oneinsect> it works
<KotCzarny> that means something tries to open device before udev module loader runs
tomboy64 has quit [Ping timeout: 250 seconds]
<oneinsect> yes
<oneinsect> okie my bad lsmod is blank
<oneinsect> but never mind
<oneinsect> all built in
<KotCzarny> well, rtc devices are built as modules
edolnx has quit [Ping timeout: 268 seconds]
<oneinsect> yes
<oneinsect> what is twi
<oneinsect> ls -l /sys/bus/i2c/devices/i2c-* lrwxrwxrwx 1 root root 0 Jan 1 00:00 /sys/bus/i2c/devices/i2c-0 -> ../../../devices/platform/twi.0/i2c-0 lrwxrwxrwx 1 root root 0 Jan 1 00:00 /sys/bus/i2c/devices/i2c-1 -> ../../../devices/platform/twi.1/i2c-1
tomboy64 has joined #linux-sunxi
philippe_fouquet has joined #linux-sunxi
<oneinsect> hmmm
philippe_fouquet has quit [Remote host closed the connection]
<oneinsect> why isnt my rtc clock showing in dmesg
<oneinsect> dmesg | grep ds3231
<oneinsect> shows blank
<KotCzarny> is module loaded/loads?
<KotCzarny> modprobe rtc-ds3232
<oneinsect> okie let me enable auto loading of rtc_ds1307 rtc_ds3232
<oneinsect> and reboot
ricardocrudo has quit [Remote host closed the connection]
<KotCzarny> some modules might be quiet if they cant find the hardware too
<oneinsect> strange
<oneinsect> those modules autoload
<oneinsect> still it cannot find the rtc clock
<oneinsect> oh god
<oneinsect> save me
<KotCzarny> maybe there is something else to be done/loaded
<KotCzarny> ie. configure some gpio, power up things
<KotCzarny> cant help because i havent played with rtc addons
<oneinsect> no problem
<KotCzarny> but its linux, so check rpi docs/wiki/forums for hints which modules are required or if there is something to be done
<KotCzarny> also, are you sure it's ds3232?
<oneinsect> i am using ds3231
<oneinsect> should work
<KotCzarny> where do you have it connected?
<oneinsect> i have connected it to
<oneinsect> 1,3,5, and 9
<oneinsect> I2C0_SDA
<oneinsect> I2C0_SCL
<oneinsect> as nanopim1 doesnt really have any inbuilt rtc clock
<oneinsect> so i am guess it must pick up ds3231
edolnx has joined #linux-sunxi
<KotCzarny> um, 3232 != 3231?
<oneinsect> well 3231 works with echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
<oneinsect> however
<oneinsect> that directory itself doesnt exist
<KotCzarny> well, there is also ds3234 module
<oneinsect> okie works now
<oneinsect> 717.297967] rtc-ds1307 0-0068: SET TIME! [ 717.299969] rtc-ds1307 0-0068: rtc core: registered ds3231 as rtc0 [ 717.300170] i2c i2c-0: new_device: Instantiated device ds3231 at 0x68
<KotCzarny> which means those little buggers might have some differences
<oneinsect> kinda strange
Netlynx has quit [Quit: Leaving]
<KotCzarny> btw. when you are done, please add some info to sunxi wiki
<oneinsect> i will write a book on sunxi wiki
<oneinsect> if you dont mind
<KotCzarny> to this page
<oneinsect> aye aye captain!
<oneinsect> okie before i add anything
<oneinsect> one last thing
<oneinsect> i have to run this each time
<oneinsect> echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
<oneinsect> after logging in
<oneinsect> may be i will first check
<oneinsect> with a start script
<KotCzarny> that rtc page looks like a scratch notes anyway, so just add a paragraph of 'how i added ds3231 to nanopi'
<oneinsect> yes
iamfrankenstein has quit [Quit: iamfrankenstein]
<oneinsect> i will now in sometime
<oneinsect> let me register
paulk-collins has joined #linux-sunxi
<oneinsect> aah registration email is taking time
<oneinsect> linux-sunxi.org could not send your confirmation mail. Please check your email address for invalid characters. Mailer returned: Unknown error in PHP's mail() function.
<oneinsect> can someone please check why thats happening
<KotCzarny> using utf8 chars? or something weird?
<oneinsect> mine is a very simple email
<oneinsect> oneinsect@gmail.com
<KotCzarny> turl, libv, nitehawk ^
<KotCzarny> oneinsect, you shouldnt write emails on public irc channels
<oneinsect> oooh
<oneinsect> sorry i didnt know
<oneinsect> i will be hit by spam
<oneinsect> i guess
<KotCzarny> not that much, google filters spam quite well
<NiteHawk> oneinsect: that address is obviously valid, so i'm wondering if that error is misleading / covering up some other issue. we've been running out of (disk) space a few times on the server...
<oneinsect> hmmm
<NiteHawk> oneinsect: are you "Atlury"?
<oneinsect> yes sire
<oneinsect> i am
<NiteHawk> i've manually promoted your account, so you should be able to edit pages now even if that confirmation mail doesn't get through
<oneinsect> great
<oneinsect> thanks
<oneinsect> i will now write the i2c page
<oneinsect> NiteHawk:
<oneinsect> You do not have permission to edit this page, for the following reason: You must confirm your email address before editing pages
<NiteHawk> ok, thought that might happen... so that needs to be sorted out first. i don't have administrative permissions on the (mail) server, so that's something that only libv or turl might be able to handle
<oneinsect> alrite
<oneinsect> i will wait
<oneinsect> till tomorrow
<KotCzarny> did you test memory?
<oneinsect> memory?
<KotCzarny> im just curious if nanopi also have that stability problem
<oneinsect> it works for me
<oneinsect> i have kept on
<oneinsect> for a while now
<oneinsect> although i have put small heatsinks
<KotCzarny> tille both leds?
<oneinsect> tille?
<KotCzarny> s/tille/until/
<KotCzarny> it usually takes ~25-35 minutes
<oneinsect> okie its only 10 minutes
<oneinsect> i will put it to test
<oneinsect> for an hour
<KotCzarny> if it works, try upping the clock by 24 etc
<KotCzarny> you will know if you can overclock the memory on your board as a bonus
<oneinsect> i need to put larger heatsinks
<oneinsect> then it should be more cooler
<KotCzarny> i run mine without
<KotCzarny> but it's cool enough to not have to worry
<oneinsect> orange pi pc...yes you can i guess
<oneinsect> i am gonna now connect eth
<oneinsect> run ffmpeg
<oneinsect> and see what happens
<oneinsect> on load
<lvrp16> oneinsect what country are you based in?
<oneinsect> India
<oneinsect> KotCzarny: once approved, i will start writing the wiki
<oneinsect> for RTC to begin with
<oneinsect> for nanopi m1 first and later on orange pi pc
<KotCzarny> :)
<oneinsect> lvrp16: is everything okie?
<lvrp16> oneinsect: thought i would mail you a heatsink set but it's more efficient from China
<oneinsect> i will buy locally
<oneinsect> i mean why waste your money
<oneinsect> i should get them here somewhere
<KotCzarny> lvrp16: so you know if opi+2 has normal voltage regulator or some crippled one?
<lvrp16> i can send you one if you want
<lvrp16> i don't have any on hand....at work :( i can tell you later tonight
<lvrp16> KotCzarny, but if you would like a plus 2 or plus 2e, let me know
<KotCzarny> O.o
<KotCzarny> what is a plus 2e?
<lvrp16> 2e is without the handicapped usb hub and sata bridge
<lvrp16> 16gb emmc and cheap
<lvrp16> $35
<KotCzarny> im thinking about 2gb sbc, because 1gb is a bit too little for firefox desktop machine
<lvrp16> yeah odroid c2, opi+2e, and banana pi m3 are all pretty good
<KotCzarny> but thx for the info, is it some prototype?
<oneinsect> lvrp16: not yet..probably i want to first finish orange pi pc work
<lvrp16> i wish sinovoip released a 4gb banana pi m2
<KotCzarny> bpi m3 is a tad unsupported
<lvrp16> wens...get to work ;)
<lvrp16> s905 so cheap now...$29
<lvrp16> for 1gb
<KotCzarny> ahm, 2e is some fresh board
<oneinsect> s905 is getting mainline support i guess
<KotCzarny> lol, opi3 is coming
<jelle> oh really
<jelle> KotCzarny: link!
<KotCzarny> nope, just clicked old link
<KotCzarny> (looked fresh in google results tho)
<lvrp16> opi 3 is a lil way off
<KotCzarny> but 2e is really nice
<jelle> next one should be orange pi two ofcourse
<jelle> even less features then the one!
<KotCzarny> Accoring to Steven, the H64 based OPIs also in production. Hopefuly it will compete with the Pine64 board.
* jelle wonders if this will load
<jelle> oh nice
<jelle> but not so sure about the whole 64 bit mainlining situation
<jelle> orange pi lite lol
<lvrp16> pine64 is gigantic...
<KotCzarny> i wouldnt mind 4gb board
<lvrp16> am i the only one to notice that?
<lvrp16> it's like twice the size i thought it would be
<KotCzarny> and 2-4 real sata ports
<KotCzarny> :>
<KotCzarny> and some decent open sourcecd graphics
<jelle> KotCzarny: are you dreaming? :=)
<KotCzarny> jelle: yes! ;)
<KotCzarny> Orange Pi PC Plus will be 25$ .
<KotCzarny> Orange Pi Plus 2E will be 35$.
<KotCzarny> Orange Pi Lite will be 12$.
<jelle> oh well I have enough fun with the orange pi
<jelle> *orange pi pc
<plaes> is 4G possible with 32bit arm?
<ornitorrincos> jelle, !
cptG_ has joined #linux-sunxi
<KotCzarny> plaes, is it possible with a64?
<jelle> ornitorrincos: ;-) hey
<plaes> no idea
<plaes> depends on the memory controller :P
<lvrp16> a64 no, 3 gb max
<lvrp16> a31s could do 4gb i thought?
<lvrp16> rk33xx is really picking up steam
<KotCzarny> A72 architecture has native usb 3.0 and sata 3.0 support.
<KotCzarny> ooooh niiice
<lvrp16> a72???
cptG has quit [Ping timeout: 260 seconds]
<KotCzarny> just reading that thread
<lvrp16> how does it have usb 3.0 or sata 3.0?
<KotCzarny> but i dont see usb/sata mentioned
<lvrp16> guy's on crack
<lvrp16> oh he's talking about the nxp a72 chip...that's only going to cost a small fortune of $300 a chip
zuikis has left #linux-sunxi [#linux-sunxi]
<KotCzarny> rk3399 apparently has usb3/sata3
<KotCzarny> well, at least usb3
<lvrp16> rk3399 will be in every chromebook in 2h 2016
<lvrp16> google basically deemed rockchip the soc vendor of 2016
<KotCzarny> so i bet in a few months we will see
<lvrp16> someone should release a t880 gpu so we have opencl already
<KotCzarny> that nxp chip surely has nice set of features
<longsleep> sounds nice, you think it might be better than an intel i3 chromebook and similar price?
<KotCzarny> 10GbE
<lvrp16> i think the rk3399 will be the same as the i3 but cheaper
<longsleep> what about gpu?
<longsleep> chrome os works really nice with intel GPU
<lvrp16> longsleep: think $200 instead of $300
<longsleep> sounds awesome, if they make it right and add a good display, keyboard and touchpad we are talking
<longsleep> what about bootloader? coreboot ?
kz1_ has joined #linux-sunxi
kz1 has quit [Ping timeout: 244 seconds]
kz1_ is now known as kz1
<KotCzarny> good thing i didnt order opi+2 yet, that 2e thing is promising
<oneinsect> uptime 01:00:37 up 1:00, load average: 1.00, 1.00, 0.95
<oneinsect> KotCzarny:
<oneinsect> no issues till now
<KotCzarny> oneinsect, good
iamfrankenstein has joined #linux-sunxi
<longsleep> lvrp16: nice thanks - i might want to get one of those then
khuey is now known as khuey|away
<lvrp16> longsleep: i have rk3368 based tv boxes coming in next week, if you want one of those to play around with, let me know
<longsleep> lvrp16: running android?
<lvrp16> yes, i'm not sure if you can hack it yet since i don't have one in hand
<longsleep> lvrp16: mhm i have tried with some rk tv boxes from last year without much success
<longsleep> and i have no use for another android whatever box
<lvrp16> i will try to hack it and let you know
<oneinsect> Some but not all of the drivers for the RK3368 are in the mainline 4.4 kernel, maybe enough to do what I want (ethernet and serial console, don’t care about video at all) but I’m not sure
<longsleep> lvrp16: awesome - thanks
<oneinsect> good night folks
<oneinsect> will get some sleep
<lvrp16> good night oneinsect
jernej_ has quit [Quit: Konversation terminated!]
oneinsect has quit [Ping timeout: 250 seconds]
bananan00b has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
apritzel has joined #linux-sunxi
<bananan00b> Hi, I have trouble booting (https://github.com/ssvb/sunxi-bootsetup/releases) from by Banana Pi board. A few days ago someone here suggested attaching an UART adapter. I did so but the serial console stays black. Armbian works, but no serial console output, too. Any suggestions?
<KotCzarny> did you connect it right?
<naraic> bananan00b: is your adapter definitely working?
<naraic> try connecting tx and rx to form a loopback
<KotCzarny> black to gnd, white to tx(on board), green to rx(on board)
<naraic> and see if you recieve what you send in a serial console
<KotCzarny> red NOT CONNECTEd
<naraic> and what KotCzarny said :P
IgorPec has quit [Ping timeout: 260 seconds]
<bananan00b> Hmmm.. I have a separate cable, so colors are not meaningful.. But the adapter and board have pins named gnd txd and rxd, respectively.
<bananan00b> those are connected
<bananan00b> what do you mean by form a loopback?
<bananan00b> I just got this adapter deliver. Technically I have no idea wheter it works or not
<KotCzarny> remember that tx in adapter should connect to rx on board
<ssvb> be sure to connect the TX and RX pins correctly (the GND is rather obvious), if you connect them in the wrong order, then you obviously don't get a working console
<bananan00b> ah. That might be the reason
<bananan00b> I thought it
<bananan00b> was rx <--> rx and tx <--> tx ...
<KotCzarny> nope
<KotCzarny> logically there is no master/slave in serial pinout
<ssvb> BTW, where do you expect to see the serial console on your desktop pc? Are you running "screen /dev/ttyUSB0 115200"?
<KotCzarny> ssvb, most likely its just wrong cable order
<KotCzarny> and simple cat /dev/ttyUSB0 should work too
<KotCzarny> at least it works on my boxes
<bananan00b> Tried screen and cu. Both stay black. I am not even able to type anything.
<ssvb> KotCzarny: yes, but using wrong UART configuration can be a problem too (9600 instead of 115200)
<KotCzarny> yup
<bananan00b> Which is the correct one?
<KotCzarny> tx--rx and rx--tx and gnd--gnd
<KotCzarny> and never connect 3v3 or 5v
<KotCzarny> also, are you sure your adapter is using ttl voltages?
<bananan00b> No, I am not. How can I know?
<KotCzarny> multimeter?
<ssvb> bananan00b: do you have a link to some web page about your adapter?
<bananan00b> Yep. second pls
<KotCzarny> but as said above, check the connection and connection params
<bananan00b> Ok. I tried 'cu -l /dev/ttyUSB0 -s 9600' as well as 115200. In both cases it says 'Connected' but blocks (i.e. neither in- nor output). The connection is tx--rx, rx--tx and gnd--gnd ans stated above. My adapter is (http://www.amazon.de/Neuftech-TTL-Konverter-Modul-PL2303-Converter-Adapter-Modul/dp/B00QFDRPVI?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00)
<bananan00b> *german page
<KotCzarny> anything interesting in dmesg?
<bananan00b> Tells me about the adapter: idVendor and idProduct and ofc "pl2303 converter now attached to ttyUSB0"
<bananan00b> Should not make a big difference, should it?
<KotCzarny> do you have any other device you can test this adapter on?
<bananan00b> A raspberry. naraic said something about forming a loopback. Should it be possible to connect rx and tx of the adapter to "chat" with myself? Would be faster to test.
<KotCzarny> yes, that's what he meant
<bananan00b> K. I'check that. Give me a minute or two.
khuey|away is now known as khuey
<bananan00b> Same as when connecting to the board. "Connected." message shows up and then it seems like the terminal freezes. I dont get any output and can't type anything.
<KotCzarny> try different usb port? maybe different linux distro? livecd? even windows with putty
<KotCzarny> you can even boot armbian and test on device itself
afaerber has quit [Quit: Ex-Chat]
pitelpan has quit [Ping timeout: 260 seconds]
pulser_ is now known as pulser
pitelpan has joined #linux-sunxi
<bananan00b> Ok. On the Banana Pi board running armbian, I get some different results: "cu: Unsupported baud rate 9660" but 115200 connects me and I get anything printed in the serial console I pipe into /dev/ttyUSB0
<KotCzarny> so adapter works
<KotCzarny> the problem is your pc/linux then?
<bananan00b> Seems so. Do I need some special packages/kernel settings to use a serial console adapter?
<KotCzarny> nope
<KotCzarny> maybe some stupid app interferes with serial port?
<bananan00b> What do you mean?
<KotCzarny> remember networkmanager and what it does if one sets network interfaces in shell?
<KotCzarny> maybe there is something similar that 'manages' serial ports
mossroy has quit [Quit: Quitte]
<bananan00b> Ah. Might be. I'ver never used serial ports before so I am not aware of that. Do you have any hints?
<KotCzarny> nope
<KotCzarny> modemmanager maybe?
<bananan00b> Hmm.. not installed at all
<KotCzarny> did you try different usb port on pc?
<bananan00b> Yes. 3/4. Just to be sure, I check the 4th one.
<bananan00b> Does not work either
<KotCzarny> setserial?
<bananan00b> That is?
<bananan00b> Ok. can google it myself
<KotCzarny> command line to set serial ports
<cyrozap> bananan00b: Make sure you have hardware and software flow control disabled in your serial terminal software.
<cyrozap> And that you have the right permissions to access the /dev/ttyUSB0 device
<bananan00b> How do I do disable those? I'm trying to connect as root which I added to dialout so this should not be an issue.
<bananan00b> setserial /dev/ttyUSB1 gives me "/dev/ttyUSB1, UART: 16654, Port: 0x0000, IRQ: 0"
<KotCzarny> 1?
<bananan00b> Yep. I reattached it while cu was blocking 0 so it got assigned to 1
<KotCzarny> how old is your kernel?
<cyrozap> bananan00b: root can access everything, so there's no need to add it to any groups.
<cyrozap> bananan00b: And the instructions for screen are here: http://www.cyberciti.biz/faq/unix-linux-apple-osx-bsd-screen-set-baud-rate/
<bananan00b> Actually, cu seems to fall back to some other group. However it did not work before I added root to dialout
<KotCzarny> hmm
<KotCzarny> what if you just do cat /dev/ttyUSB0 or 1 and do something on the bpi?
<cyrozap> bananan00b: What? What distro are you using on your host PC?
<KotCzarny> another tool to configure tty lines is stty
<KotCzarny> maybe compare settings when connected to bpi via usb?
<KotCzarny> other than that, just try different distro on pc
<KotCzarny> even some livecd/usb
<KotCzarny> nite!
<bananan00b> Thx alot
<bananan00b> cyrozap: I'm running debian jessie, "screen /dev/ttyUSB0 9600,-ixon,-ixoff" is different in that way that 'echo msg >> /dev/ttyUSB0' does not block anymore. But I still don't get output nor can I write to the serial console
<cyrozap> And you're sure 9600 is the right baudrate?
<bananan00b> I am clueless
<apritzel> bananan00b: have you tried 115200? That's the usual baudrate.
<cyrozap> Ok, then try 115200 first (it's by far the most common), then 57600, 38400, and 19200.
<apritzel> Also does your serial adapter have LEDs on it? Mine has and whenever I press a key in screen, a green LED lights up
<apritzel> that is a good way to ensuring you are talking to the right thing
<bananan00b> Yep. Same behaviour. But no output on my serial console
kz1_ has joined #linux-sunxi
<bananan00b> The other baud rates give the same results
kz1 has quit [Ping timeout: 250 seconds]
kz1_ is now known as kz1
<bananan00b> Hmm.. interestingly cu does block the console and pipes to /dev/ttyUSB0 and does not cause the LED to trigger, while screen only blocks the console but LEDs work and piping does not block.
<bananan00b> Apparently the behaviour is independent of ixoff and ixon.
<cyrozap> Maybe try rebooting (to get rid of any of the temporary configuration changes you made), then try all those baud rates again. If it still isn't working, try using minicom instead. At least then I can help you better since it's what I use :)
<bananan00b> Ok. Ty. I think I'll also try KotCzarnys suggestion and show up again in case nothing works.
<bananan00b> Bye
bananan00b has quit [Quit: Page closed]
nove has quit [Quit: nove]
apritzel has quit [Ping timeout: 244 seconds]
apritzel has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
<juri_> documenting how to get the latest debian unstable with iscsi support onto my pcduino3 nano lite.
kz1 has quit [Ping timeout: 250 seconds]
tipo has joined #linux-sunxi
kz1_ has joined #linux-sunxi
pietrushnic has quit [Ping timeout: 244 seconds]
pietrushnic has joined #linux-sunxi
avph has quit [Ping timeout: 250 seconds]
avph has joined #linux-sunxi
avph has quit [Ping timeout: 250 seconds]
paulk-collins has quit [Quit: Leaving]
tipo has quit [Ping timeout: 244 seconds]