<buZz>
usually best to first find support , and -then- buy a SBC :)
<pmpp>
yeah my 2 fist opipc have spent one year in the drawer
<R0b0t1>
buZz: see that is what I've been trying to do. I have some RPis, but I detest the SoC used on them
<R0b0t1>
First ones taught my my lesson, they were from hardkernel.
<buZz>
R0b0t1: RPI support is pretty nonexistant aswell :P but at least many people with problems :)
<R0b0t1>
Since then Hardkernel has really good support and code in mainline. I'd like to think it had to do with me berating the owner but they were probably going that direction anyway.
<R0b0t1>
But they only do closed boards
<buZz>
nonmainlined socs usually arent that popular long
<R0b0t1>
That is why I am here
<R0b0t1>
Allwinner seemed popular, also it is not bootlocked by default
<buZz>
\o welcome
mavkhimenia has joined #linux-sunxi
nots has quit [Quit: Page closed]
mavkhimenia has quit [Ping timeout: 252 seconds]
skiboy has joined #linux-sunxi
<R0b0t1>
pmpp: On your H5 board how do you actually connect to something else? With an A to A cable? How many separate controllers are on the device?
<pmpp>
libre computer board use A<=>A the dual role is the top left of the 4 controller, opi use musb
<pmpp>
i use a micro usb female to usb A male adapter to have less cables around
<R0b0t1>
I see
<R0b0t1>
Does only one support dual mode?
<pmpp>
indeed
<R0b0t1>
I suppose that makes sense
<pmpp>
hmm not sure for dual role, i was thinking otg/fel better ask lvrp16 for that
<R0b0t1>
Sorry, I just meant having a controller that supported one or the other
<R0b0t1>
Not necessarily both at once
<lvrp16>
the top left can do dual role
<lvrp16>
you can use a type a to type a
<lvrp16>
on the all-h3-cc board. microusb is for power only.
<buZz>
i wished this 'nanopi neo core2' had its OTG on pins aswell
<lvrp16>
you can use it to connect to a computer and use allwinner tools to flash it.
<buZz>
instead of just the rest of usb ports :(
<R0b0t1>
lvrp16: Which one, the dual role USB port or the micro USB power port?
<lvrp16>
the type a on the top left is connected to the otg usb pins.
<lvrp16>
microusb on the board is power only. data pins are not connected.
<lvrp16>
schematics are on the product page and you can see how it is hooked up.
<lvrp16>
libre computer boards all have otg exposed on type a and the emmc modules come with type a to type a cables.
<R0b0t1>
lvrp16: So are there two controllers one of which is dual role or is there one controller per USB populated USB port?
<R0b0t1>
Oh clever
<R0b0t1>
s/USB//
<lvrp16>
h2 h3 h5 have 3 usb controllers and 1 otg controller
<lvrp16>
so on the libre computer board, the otg controller is exposed as type a
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
<anarsoul>
can't get tcon0 working on a64 on 4.17-rc5 :(
<anarsoul>
it complains [ 5.604100] [drm:drm_mode_prune_invalid] Not using 1366x768 mode: CLOCK_LOW
<anarsoul>
if I comment out check in sun4i_rgb_mode_valid() it just hangs
<anarsoul>
btw clock doesn't differ much - 72296296 vs requested 72300000
<anarsoul>
icenowy[m]: any ideas why?
rexxster has quit [Remote host closed the connection]
IgorPec has joined #linux-sunxi
qeed has quit [Quit: Leaving]
<anarsoul>
something must be wrong with clocks...
montjoie has joined #linux-sunxi
SP7RT has quit [Read error: Connection reset by peer]
mpmc_znc has joined #linux-sunxi
mpmc has quit [Ping timeout: 265 seconds]
lurchi__ has quit [Read error: Connection reset by peer]
lurchi_ has joined #linux-sunxi
lurchi_ is now known as lurchi__
paulliu has joined #linux-sunxi
nuuuciano_ has quit [Ping timeout: 245 seconds]
JohnDoe_71Rus has joined #linux-sunxi
Putti has joined #linux-sunxi
reinforce has joined #linux-sunxi
mpmc_znc is now known as mpmc
f0xx has joined #linux-sunxi
imcsk8 has quit [Read error: Connection reset by peer]
imcsk8 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 252 seconds]
ernestask has joined #linux-sunxi
tom_nov has joined #linux-sunxi
hlauer has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
msimpson has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 245 seconds]
cnxsoft has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 245 seconds]
clemens3 has joined #linux-sunxi
dev1990_ has joined #linux-sunxi
dev1990 has quit [Ping timeout: 240 seconds]
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 240 seconds]
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein
[Awaxx] has quit [Quit: "NOWAY"]
Mr__Anderson has joined #linux-sunxi
elros has joined #linux-sunxi
[Infuze] has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 245 seconds]
JohnDoe_71Rus has joined #linux-sunxi
f0xx has quit [Ping timeout: 252 seconds]
cnxsoft has quit [Ping timeout: 252 seconds]
lkcl has joined #linux-sunxi
goofie has quit [Ping timeout: 260 seconds]
matthias_bgg has joined #linux-sunxi
f0xx has joined #linux-sunxi
skiboy has quit [Remote host closed the connection]
elros has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
wens has quit [Ping timeout: 265 seconds]
wens has joined #linux-sunxi
msimpson has quit [Quit: Leaving]
Andy-D has quit [Ping timeout: 260 seconds]
kaspter has quit [Quit: kaspter]
airwind has joined #linux-sunxi
BenG83 has joined #linux-sunxi
kaspter has joined #linux-sunxi
msimpson has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
chomwitt has joined #linux-sunxi
BenG83 has quit [Remote host closed the connection]
BenG83 has joined #linux-sunxi
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-sunxi
argulp has joined #linux-sunxi
goofie has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 260 seconds]
naggety has joined #linux-sunxi
dddddd has joined #linux-sunxi
BenG83 has quit [Remote host closed the connection]
BenG83 has joined #linux-sunxi
<naggety>
Hi all. You may want to know that I'm working to mainline the drivers for analog camera input (TV decoder).
lurchi__ is now known as lurchi_
<naggety>
I'm getting some guidance from developers of V4L2 and it is going quite well.
<naggety>
This TV decoder is present in the A20, I don't know in which other SoC it is present
<mripard>
and you ideally, that would be great to write a page with your findings and how to operate that device
<mripard>
it's been poorly documented
<naggety>
I know. The only "documentation" I found is the driver itself
fkluknav_ has joined #linux-sunxi
<naggety>
The only way I know to operate the device is using standard V4L2 calls to the driver. But I don't know if it works with other SoC than the A20, maybe the registers are not the same...
<naggety>
I have a problem that I hope you can help me a bit. It is related to kernel 3.4 and disp driver. I know they're not supported, but until we can migrate our product to mainline kernel (we need cameras and VPU) we need to use this version, and I hope it is an easy question.
<naggety>
The demo program that I used to test the cameras uses the disp driver, but after porting the driver to videobuf2 framework this program doesn't work
<naggety>
It works fine with gstreamer and ffmpeg, though
<naggety>
The demo program seems to get the video frames OK from the driver, because if I write them to disk instead to the framebuffer, I can play it later with a video player
<naggety>
So I think my problem is with calls to disp driver
<naggety>
How I should pass the address in the call to DISP_CMD_VIDEO_SET_FB? I used to pass the mmap offset and it worked, but now it doesn't
mavkhimenia has joined #linux-sunxi
BenG83 has joined #linux-sunxi
<naggety>
I didn't find so much documentation about this, if there is any, please tell me
<naggety>
specifically, I didn't find how to fill the address in __disp_video_fb_t struct
lurchi_ is now known as lurchi__
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 264 seconds]
rexxster has joined #linux-sunxi
qeed has joined #linux-sunxi
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
IgorPec has quit [Ping timeout: 256 seconds]
mavkhimenia has joined #linux-sunxi
BenG83 has quit [Remote host closed the connection]
airwind has quit [Quit: Lost sanity]
LargePrime has quit [Ping timeout: 260 seconds]
egbert has quit [Ping timeout: 256 seconds]
elros has joined #linux-sunxi
IgorPec has joined #linux-sunxi
rexxster has quit [Remote host closed the connection]
mavkhimenia has quit [Remote host closed the connection]
mavkhimenia has joined #linux-sunxi
mavkhime_ has joined #linux-sunxi
mavkhimenia has quit [Read error: Connection reset by peer]
afaerber has quit [Quit: Leaving]
fkluknav_ has quit [Ping timeout: 260 seconds]
d_ed has quit [Changing host]
d_ed has joined #linux-sunxi
mavkhime_ has quit [Remote host closed the connection]
fkluknav_ has joined #linux-sunxi
afaerber has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
mavkhimenia has quit [Remote host closed the connection]
dlan has quit [Ping timeout: 245 seconds]
ixnus has joined #linux-sunxi
<ixnus>
There was a talk about the TVIN here some time ago with links
<ixnus>
please search the log
ixnus has quit [Client Quit]
<mripard>
naggety: I'm not sure there's a lot of people knowledgeable about the 3.4 kernel for the A20 and its disp interface
dlan has joined #linux-sunxi
Putti has quit [Quit: Leaving]
Putti has joined #linux-sunxi
<naggety>
ixnus: work on tv decoder driver is going well, my question is about disp driver
mavkhimenia has joined #linux-sunxi
<naggety>
mripard: I understand. Let's see if someone can help
<naggety>
I don't know if I can invest more work into the driver if I don't solve this disp problem, we need our product to stay working...
<naggety>
:(
cnxsoft has quit [Quit: cnxsoft]
SP7RT has joined #linux-sunxi
f0xx has quit [Ping timeout: 252 seconds]
jstein has quit [Quit: quit]
<naggety>
I'll read the logs if someone can give me a clue, thanks!
naggety has quit [Quit: Konversation terminated!]
Putti has quit [Ping timeout: 252 seconds]
chrisf_ has joined #linux-sunxi
chrisf_ has quit [Client Quit]
fkluknav_ has quit [Ping timeout: 260 seconds]
JohnDoe1 has joined #linux-sunxi
<jernej>
mripard: naggety: TVIN HW is explained in R40 manual register wise
mavkhimenia has quit [Remote host closed the connection]
mavkhimenia has joined #linux-sunxi
fkluknav_ has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
msimpson has quit [Read error: Connection reset by peer]
f0xx has joined #linux-sunxi
msimpson has joined #linux-sunxi
LargePrime has joined #linux-sunxi
<ElBarto>
mripard: sorry for the prefix, I forgot 'allwinner :' right ?
msimpson has quit [Read error: Connection reset by peer]
mavkhime_ has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
mavkhimenia has quit [Ping timeout: 248 seconds]
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
GrimKriegor has quit [Read error: Connection reset by peer]
matthias_bgg has quit [Read error: Connection reset by peer]
GrimKriegor has joined #linux-sunxi
clemens3 has quit [Ping timeout: 256 seconds]
fkluknav_ has quit [Ping timeout: 248 seconds]
f0xx has quit [Ping timeout: 252 seconds]
reinforce has joined #linux-sunxi
fkluknav_ has joined #linux-sunxi
argulp has quit [Ping timeout: 245 seconds]
nuuuciano_ has joined #linux-sunxi
f0xx has joined #linux-sunxi
hlauer has quit [Ping timeout: 245 seconds]
ernestask has quit [Quit: ernestask]
\\Mr_C\\ has joined #linux-sunxi
mavkhime_ has quit [Remote host closed the connection]
fkluknav_ has quit [Ping timeout: 240 seconds]
fkluknav_ has joined #linux-sunxi
elros has quit [Remote host closed the connection]
d3r3k has joined #linux-sunxi
clemens3 has joined #linux-sunxi
vagrantc has joined #linux-sunxi
Andy-D has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 248 seconds]
fkluknav_ has quit [Ping timeout: 260 seconds]
anarsoul|2 has joined #linux-sunxi
diego71_ has joined #linux-sunxi
diego71 has quit [Ping timeout: 252 seconds]
f0xx has quit [Ping timeout: 252 seconds]
nuuuciano_ has quit [Ping timeout: 252 seconds]
nuuuciano_ has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
<anarsoul|2>
jernej: hey, have you tried to get tcon0 working on a64 on 4.17-rcs?
<jernej>
anarsoul|2: no, I never work with TCON0/LCDs
<anarsoul|2>
I see
<jernej>
my first plan is to make HDMI work on all DE2/DE3 SoCs :)
<anarsoul|2>
it just hangs for me after modesetting :\
<anarsoul|2>
no backtrace or anything
<jernej>
well, as you said, it's probably clock related
<jernej>
90% display related issues are
<anarsoul|2>
how do you usually debug issues like this?
<jernej>
check /sys/kernel/debug/clk/clk_summary
<anarsoul|2>
I don't get to this point
<jernej>
ah, ok
<anarsoul|2>
it just silently hangs
<jernej>
in that case, I usually put printk() with wanted frequencly before clk_set_rate() call
<jernej>
and after that, another printk() with clk_get_rate() with real frequency
<jernej>
you also have to make sure that clocks are enabled
<jernej>
additional possible issue in sun4i-drm is that someone wants to set locked clock
<jernej>
clk_set_rate() will return success, but clk_get_rate() will report old value
<jernej>
anyway, printk() and serial console are your friends
<anarsoul|2>
ok
<anarsoul|2>
will try to spend another 3-4h tonight :)
<jernej>
anarsoul|2: Try to comment out clock locking/unlocking mechanism
<jernej>
that would be my first guess
<jernej>
you can find it in tcon code
Putti has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
<mripard>
ElBarto: yep, and arm64 is lowercase
nots has joined #linux-sunxi
<mripard>
anarsoul|2: there's a deadlock in printk (iirc) if you have the framebuffer console and there's a panic in the DRM probe
<mripard>
there's a module parameter to disable the locking, let me get it
<ElBarto>
mripard: ah ok, the previous commit to h5 had arm64 uppercase hence why I added it
<mripard>
anarsoul|2: fb.lockless_register_fb=1
mavkhimenia has quit [Ping timeout: 268 seconds]
BenG83 has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
<ElBarto>
mripard: ah and it was also missing allwinner, I guess I choose the wrong commit to take as an example :)
<mripard>
ElBarto: we're not catching all of them :)
<mripard>
and usually wens does a much better job than I do at it
<ElBarto>
yeah sure, also I'm pretty sure that I already did good commit title, I'm just looking for some excuses
d3r3k has quit [Quit: Connection closed for inactivity]
adj_ has quit [Ping timeout: 252 seconds]
tllim has joined #linux-sunxi
<anarsoul|2>
mripard: yes, I have framebuffer console. Was printk deadlock addressed in never 4.17-rcs?
<anarsoul|2>
mripard: what's interesting - it works with HDMI, but not with LCD
<anarsoul|2>
mripard: thanks, will try it tonight.
<jernej>
anarsoul|2: you are getting that on pinebook, right?
<anarsoul|2>
jernej: pinebook and pine64 lts
<anarsoul|2>
well, LCD only on pinebook
<jernej>
so, on pinebook there is also anx(something) bridge
<anarsoul|2>
jernej: right
<jernej>
could it be that it is part of the issue?
<anarsoul|2>
jernej: probably
<anarsoul|2>
will check, thanks for the hint
victhor has joined #linux-sunxi
<jernej>
I guess someone else would complain if TCON0/LCD configuration would be broken on officially supported SoCs
<anarsoul|2>
yeah, and A64 isn't supported officially :)
<anarsoul|2>
mripard: are there any plans to make rate check in sun4i_rgb_mode_valid() less strict?
<jernej>
but I doubt there is any real difference in TCON0/LCD registers
Andy-D has quit [Quit: Alive/Dead]
<anarsoul|2>
jernej: right, probably a bug in anx6345 driver
R0b0t1 has quit [Ping timeout: 245 seconds]
Andy-D has joined #linux-sunxi
R0b0t1 has joined #linux-sunxi
Andy-D has quit [Client Quit]
Andy-D has joined #linux-sunxi
<jernej>
anarsoul|2: I took a quick look at bridge driver and there doesn't seems to be any critical. Except if this code changed in some subtle way betwen 4.14 and now
<jernej>
*critical code
<anarsoul|2>
jernej: I'll try fb.lockless_register_fb=1 tonight to see if it's indeed a panic in this driver
<anarsoul|2>
can't try atm, I don't have pinebook with me
<jernej>
ok
tom_nov has quit [Quit: Leaving]
anarsoul|3 has joined #linux-sunxi
anarsoul|2 has quit [Ping timeout: 264 seconds]
nuuuciano_ has quit [Ping timeout: 248 seconds]
pmpp has quit [Disconnected by services]
pmpp_ has joined #linux-sunxi
pmpp_ is now known as pmpp
f0xx has quit [Ping timeout: 252 seconds]
IgorPec has quit [Ping timeout: 245 seconds]
paulliu has quit [Quit: Leaving.]
lkcl has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
LargePrime has quit [Ping timeout: 260 seconds]
mavkhimenia has quit [Ping timeout: 252 seconds]
matthias_bgg has joined #linux-sunxi
LargePrime has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 245 seconds]
matthias_bgg has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
egbert has joined #linux-sunxi
xerpi has quit [Quit: Leaving]
matthias_bgg has quit [Ping timeout: 245 seconds]
d3r3k has joined #linux-sunxi
SP7RT has quit [Read error: Connection reset by peer]
egbert has quit [Ping timeout: 248 seconds]
hlauer has quit [Ping timeout: 252 seconds]
BenG83 has quit [Quit: Leaving]
Putti has quit [Ping timeout: 252 seconds]
lurchi__ is now known as lurchi_
Mr__Anderson has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
rexxster has joined #linux-sunxi
Andy-D_ has joined #linux-sunxi
Andy-D has quit [Ping timeout: 260 seconds]
mavkhimenia has joined #linux-sunxi
fkluknav_ has quit [Ping timeout: 252 seconds]
mavkhimenia has quit [Ping timeout: 252 seconds]
dlan has quit [Ping timeout: 245 seconds]
dlan has joined #linux-sunxi
nuuuciano has quit [Read error: Connection reset by peer]
nuuuciano has joined #linux-sunxi
nuuuciano has quit [Read error: Connection reset by peer]