<MiladJ40>
i'm trying to design a allwinner a64 based module, i want to know if it supports android and if it is easy to port android on the device
jstein_ has joined #linux-sunxi
wzyy2 has quit [Ping timeout: 260 seconds]
jstein_ is now known as jstein
jstein has quit [Read error: Connection reset by peer]
<MiladJ40>
is there anybody to help?
komunista has joined #linux-sunxi
apritzel has quit [Ping timeout: 255 seconds]
sgteem has quit [Ping timeout: 260 seconds]
sgteem has joined #linux-sunxi
Bridgeman has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
MiladJ40 has quit [Quit: Page closed]
<Bridgeman>
How would it be possible to upgrade cubian with wheezy to jessy and newer kernel without reinstalling current services?
<Bridgeman>
Is that something you can help with?
Bridgeman has quit [Ping timeout: 260 seconds]
ErwinH_ has quit [Remote host closed the connection]
ErwinH has joined #linux-sunxi
<KotCzarny>
MiladJ40: see topic
<KotCzarny>
in short, this channel is about mainline linux
reinforce has joined #linux-sunxi
ErwinH has quit [Ping timeout: 255 seconds]
IgorPec has quit [Ping timeout: 260 seconds]
ErwinH has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
BenG83 has joined #linux-sunxi
ErwinH has quit [Remote host closed the connection]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
LargePrime has quit [Ping timeout: 260 seconds]
JohnDoe_71Rus has joined #linux-sunxi
lkcl has quit [Ping timeout: 255 seconds]
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
bonbons has joined #linux-sunxi
LargePrime has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 255 seconds]
Ntemis has joined #linux-sunxi
premoboss has quit [Ping timeout: 260 seconds]
tucker has joined #linux-sunxi
ErwinH has joined #linux-sunxi
IgorPec has joined #linux-sunxi
ErwinH has quit [Remote host closed the connection]
r1mikey has joined #linux-sunxi
<tucker>
Hey. Just wanted to report that I'm running 4.10 with dwmac ethernet (extracted from montjoies stmmac-sun8i-wip tree, internal phy) on my silly little H3 box. The dts is (for now) more or less a copy of the orangepi-pc dts.
ErwinH has joined #linux-sunxi
<tucker>
Now, what would be needed to have USB0 (the type-A OTG port) fully hooked up as O-/EHCI?
<tucker>
"The original driver wired it to OHCI/EHCI controller; however, as the code to use PHY0 as OHCI/EHCI is missing, it makes the PHY fully unusable." -MoeIcenowy on the list
lkcl has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
r1mikey_ has joined #linux-sunxi
r1mikey has quit [Read error: Connection reset by peer]
ErwinH has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
mzki has joined #linux-sunxi
r1mikey_ has quit [Ping timeout: 255 seconds]
Mr__Anderson has joined #linux-sunxi
ErwinH has quit [Ping timeout: 255 seconds]
<plaes_>
tucker: your own board?
BenG83_PB has quit [Quit: Leaving]
<tucker>
HYH-TBH3, documented in wiki (small anonymous box with only the words "Smart Android Box" printed on the underside)
<plaes_>
ah
plaes_ is now known as plaes
plaes has quit [Changing host]
plaes has joined #linux-sunxi
|Jeroen| has quit [Quit: dada]
<montjoie>
tucker: thanks for the report
<tucker>
montjoie: np.
premoboss has joined #linux-sunxi
<tucker>
The latest work to incorporate DE2 into preexisting DE code looks promising, just hoping for H3+HDMI support there soonish
<tucker>
MoeIcenowy: No rush. I gather that you started with V3 since it's a simpler version, and wens is currentlty changing things in the drm code as well.
jstein_ is now known as jstein
<Putti>
is it possible to connect to u-boot via usb cable like it is possible with FEL mode?
<Putti>
the u-boot command prompt, I mean.
popolon has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
<MoeIcenowy>
tucker: I mean the H3 usb things
<MoeIcenowy>
for DE2 HDMI support some work on dw-hdmi is waited
<MoeIcenowy>
they are being done by Renesas people
scream has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
Bridgeman has joined #linux-sunxi
vishnup has quit [Remote host closed the connection]
<Bridgeman>
Hello. Sorry to bother you again. I know this channel is for mainline kernel development. But where do I get best help if I want to upgrade my cubian with old 3.4.79 kernel to latest mainline and also upgrading distro to Debian Jessy?
jernej has joined #linux-sunxi
Putti has quit [Ping timeout: 240 seconds]
<Bridgeman>
The wiki is very confusing. I always get lost on the uboot part.
vishnup has joined #linux-sunxi
mozzwald_ is now known as mozzwald
LargePrime has quit [Ping timeout: 240 seconds]
<BenG83>
MoeIcenowy, does your PB tree support USB?
jstein has quit [Remote host closed the connection]
<MoeIcenowy>
BenG83: yes ;-)
<MoeIcenowy>
Bridgeman: mainline currently do not support NAND, so first get a SD ;-)
<BenG83>
then I screwed up the config maybe...
jstein_ has joined #linux-sunxi
<MoeIcenowy>
probe of USB failed with error 38...
<MoeIcenowy>
38 is ENOSYS...
<MoeIcenowy>
have you enabled sun4i usb phy support?
<Bridgeman>
MoeIcenowy: My Cubian is installed on SD-Card only and I suppose it boots from there. At least fdisk -l doesn't show something useful on /dev/nand
jstein_ is now known as jstein
<Bridgeman>
MoeIcenowy: The issue is, that I have installed Cubian like 2 years ago and now it is not maintained anymore and I need to switch to something with more future...
<MoeIcenowy>
Bridgeman: why don't you just re-install a armbian?
lkcl has joined #linux-sunxi
<BenG83>
sun4i?
<BenG83>
maybe I should not have removed all non A64 options ;P
<MoeIcenowy>
BenG83: usually we name drivers with the earliest SoC with a similar device
chlorine has quit [Remote host closed the connection]
<Bridgeman>
MoeIcenowy: Because it's nicely installed and running already some services (custom internet connection monitoring, boinc, AirPrint via Cups). I would like to avoid doing this work again.
<MoeIcenowy>
I think the Cubian system it self is not maintained
<MoeIcenowy>
and try to do your own kernel setup there is a bigger mess
LargePrime has joined #linux-sunxi
<TheLinuxBug>
Armbian is nice and they have most of the packages
<MoeIcenowy>
you will finally make yourself a distro vendor ;-)(
<MoeIcenowy>
s/(//
<Bridgeman>
MoeIcenowy, TheLinuxBug: Will try to find an upgrade path to armbian. Just didn't saw any help on their forums and wondering if not many more people have the same problem.
<MoeIcenowy>
yes most people just won't select Cubian
Putti has joined #linux-sunxi
<MoeIcenowy>
we do not believe systems by SBC vendors
<Bridgeman>
MoeIcenowy: It was a different case 2 years ago and if you start fresh you'll take the easiest and most obvious image. In my case it was Cubian.
<Bridgeman>
MoeIcenowy: But thanks for your help. Will try to work through it.
<TheLinuxBug>
um I am not sure what you mean by upgrade path
<TheLinuxBug>
I wouldn't even consider trying to upgrade Cubian in place
<TheLinuxBug>
I would simply burn the armbian image, install any services you need and copy over any specific configs and such you may need
<TheLinuxBug>
you will just waste a bunch of time
<MoeIcenowy>
yes
<BenG83>
MoeIcenowy, my PHY section only has
<BenG83>
CONFIG_PHY_SUN9I_USB=y
<MoeIcenowy>
ok CONFIG_PHY_SUN4I_USB is not set?
<BenG83>
no
<MoeIcenowy>
it may be the point ;-)
<MoeIcenowy>
there's even no CONFIG_PHY_SUN4I_USB ?!
<BenG83>
and I cant find it in the PHY drivers
leio has quit [Remote host closed the connection]
<MoeIcenowy>
maybe its some dependencies are not met
<BenG83>
arm defconfig has it
<BenG83>
arm64 defconfig not
<BenG83>
yeah I'll look what it depends on
<MoeIcenowy>
yes arm64 defconfig needs some update
<BenG83>
mmh so far anything else doesnt triggers BUG
* BenG83
goes to investigate
<MoeIcenowy>
how about just run apt update?
<BenG83>
that works
<BenG83>
just upgraded a couple things
|Jeroen| has quit [Quit: dada]
<BenG83>
can I set console=... bootarg to have output on simplefb?
<MoeIcenowy>
console=tty0 ;-)
<BenG83>
k
<Putti>
is simplefb the one that is outputted on the device's lcd (in case of a allwinner tablet)?
wzyy2 has joined #linux-sunxi
Bridgeman has quit [Quit: Page closed]
ErwinH has joined #linux-sunxi
<MoeIcenowy>
simplefb is in fact only a part of memory passed by U-Boot to Linux
<MoeIcenowy>
but U-Boot configured it as the output of LCD
wzyy2 has quit [Ping timeout: 260 seconds]
<Putti>
cool, so simplefb would output kernel's messages to lcd, right (as I have u-boot console showing on the lcd)?
<MoeIcenowy>
yes
<BenG83>
time for more coffee
<BenG83>
brb
<MoeIcenowy>
It's just like vesafb on x86 -- BIOS does the initialization, and the driver only knows that write something there can change the display content.
ErwinH has quit [Ping timeout: 260 seconds]
r1mikey has joined #linux-sunxi
<Putti>
MoeIcenowy, that is awesome. Thanks!
<MoeIcenowy>
In fact there's some solution that makes vesafb to use simplefb driver ;-)
r1mikey has quit [Ping timeout: 255 seconds]
wzyy2 has joined #linux-sunxi
deskwizard_ has quit [Remote host closed the connection]
deskwizard has joined #linux-sunxi
dave0x6d has quit [Quit: Connection closed for inactivity]
wzyy2 has quit [Ping timeout: 240 seconds]
lkcl has quit [Read error: Connection reset by peer]
<BenG83>
MoeIcenowy, I have now the same general config like you, but that didnt change things, I still get BUG: Bad page .... in various processes, could this be linked to the dual rank config for the DRAM?
lurchi__ is now known as lurchi_
<MoeIcenowy>
can you try to revert 49eb19f93ce557a596cca4cc25b84aa46f1b107a in u-boot?
wzyy2 has joined #linux-sunxi
<BenG83>
MoeIcenowy, ok
lurchi_ has quit [Ping timeout: 240 seconds]
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 260 seconds]
TheSeven has quit [Remote host closed the connection]
IgorPec has joined #linux-sunxi
wzyy2 has quit [Ping timeout: 255 seconds]
<BenG83>
MoeIcenowy, turning off the second rank fixed the crashes
<MoeIcenowy>
so maybe there's some problem in current rank detect code...
<BenG83>
doesnt have the Pine64 the same memory layout?
<MoeIcenowy>
jemk: do you have any thoughts about it?
<BenG83>
*have
<MoeIcenowy>
Pine64 uses 4*8bit chips
<MoeIcenowy>
but Pinebook uses 2*2*16bit chips
wzyy2 has joined #linux-sunxi
<MoeIcenowy>
oh yes the channels in DE2 mixer is just like the "pipe" in DE1 BE
beeble_ has quit [Remote host closed the connection]
<wens>
willmore: you mean MoeIcenowy is famous
TheSeven has joined #linux-sunxi
<MoeIcenowy>
in fact it's the first time for me to touch DRM/KMS driver development
TheSeven has quit [Remote host closed the connection]
swiftgeek has quit [Ping timeout: 268 seconds]
<jemk>
MoeIcenowy: dual rank seemed buggy, and since i didn't have the hardware to test it, i disabled it
<MoeIcenowy>
jernej: can layers in a single channel do alpha blending?
<TheLinuxBug>
hehe, did he give you a date? If not that could mean 20 years from now..they still 'will' do it... just not on any realistic timeframe ;p
<jernej>
hm, there is not much comments, but descriptive register names should help
<jernej>
MoeIcenowy: There is not much blending, if you have only one channel?
<jernej>
MoeIcenowy: Except maybe with background color
ErwinH has quit [Ping timeout: 260 seconds]
BenG83_PB has joined #linux-sunxi
<jernej>
MoeIcenowy: I'm afraid you are on your own here, I have specialized more for a crtcs
<MoeIcenowy>
?
<jernej>
HDMI, TV...
<jernej>
well, more or less only on hdmi
<MoeIcenowy>
I think HDMI and TV is only bridge over TCON's channel 1 ;-)
chlorine has quit [Remote host closed the connection]
<jernej>
oh, sorry, hdmi is in this case called only connector in Linux DRM speak
<MoeIcenowy>
P.S. you can do drivers for the bridges ;-)
<jernej>
I would love to write HDMI bridge, if you don't mind :)
<jernej>
I think that TV doesn't need a bridge
<jernej>
it is exactly the same IP block, only on a different addrsss
<jernej>
*address
<jernej>
CSC, which is needed to display something, is part of DE2
<MoeIcenowy>
oh I think I should buy a OPi Zero expansion board and a OPi's 3.5mm to TV cable
<MoeIcenowy>
but only buy these two things cost too little money and will lead to a shippment fee around or even more than the boards' value
<jelle>
oh even in china itself?
<MoeIcenowy>
jelle: yes
<MoeIcenowy>
the expansion board only costs ¥9.99
<MoeIcenowy>
but the shippment costs ¥10
<jelle>
ah same as here in europe
<MoeIcenowy>
¥10 is ~$1.6 US dollar
<jelle>
well worse even extension card is ~ 2 euro, shipping is 3,37 euro >_>
<MoeIcenowy>
or maybe I should buy the NAS expansion board? ;-)
<MoeIcenowy>
(or just ask Steven for one?
ErwinH has joined #linux-sunxi
<MoeIcenowy>
or maybe I can try to temporarily use jfm's bridge driver
<MoeIcenowy>
(for a final bridge driver we should do a modified dw-hdmi.c
mossroy has quit [Quit: Leaving]
<jernej>
I follow DRM maillist and it is interesting that there were two attempts already to add custom HDMI PHY
<jernej>
one from Renesas and one from Amlogic
<jernej>
it still didn't land
<jernej>
MoeIcenowy: If you use jfm driver for hdmi, then you are limited with resolutions
<MoeIcenowy>
he didn't fix this?!
<MoeIcenowy>
sorry to hear that.
lynxis_ is now known as lynxis
<jernej>
no, he didn't want to reuse dw-hdmi driver
<MoeIcenowy>
maybe it's the reason that he abandoned.
<MoeIcenowy>
but I think he should have fixed resolution issues in his own hdmi driver
<jernej>
he also argued something about reusing sun4i code, iirc
<MoeIcenowy>
yes his driver is difficult to co-exist with sun4i code
leviathan_ has joined #linux-sunxi
<jernej>
so, I did a bit of a research and wrote U-Boot HDMI driver, which seems the easiest approach
<MoeIcenowy>
and being denied by the DM wanters
<jernej>
I'm not against DM, I actually support it
<MoeIcenowy>
but it's currently different to do DM
<jernej>
I'm half way in my effort to support it
<jernej>
imo DM is very good attempt to avoid the mess we already have
leviathan has quit [Ping timeout: 240 seconds]
atsampson has quit [Ping timeout: 240 seconds]
atsampson has joined #linux-sunxi
<MoeIcenowy>
P.S. seems that TV code called codepath exported by TCON code...
<MoeIcenowy>
which means the TV code is binded with TCON code...
<MoeIcenowy>
jernej: do H3 have clocks for tcon1?
<jernej>
no
<MoeIcenowy>
so it have only bus gate clock, no lcd channel clock?
<jernej>
if you mean tcon, then yes
ErwinH has quit [Remote host closed the connection]
<jernej>
also, TVE block requires fixed clock set to 216 MHz
<jernej>
any other value doesn't produce any image
<jernej>
That's why default DE clock value on H3 and H5 is 432 MHZ
vagrantc has joined #linux-sunxi
r1mikey has joined #linux-sunxi
<MoeIcenowy>
what fixed clock?
<jernej>
I mean, TVE block requires clock source to be set to exactly 216 MHz
ErwinH has joined #linux-sunxi
<jernej>
and you have two possibilities, DE or PERIPH1 with divider
<MoeIcenowy>
how to set it?
<MoeIcenowy>
DE module clock?
<jernej>
BSP and my driver use PLL_DE set to 432MHz with divider 2, which is set in CCU TVE
r1mikey has quit [Ping timeout: 255 seconds]
<MoeIcenowy>
so you mean assigned-clocks = <&ccu CLK_TVE>; assigned-clock-rates = <216000000>; ?
<jernej>
what assigned-clocks mean?
netlynx has quit [Quit: Ex-Chat]
<MoeIcenowy>
assign a certain clock to a certain frequency
<MoeIcenowy>
but as CLK_TVE is not CLK_SET_PARENT_RATE, we should also assign <&de2_clocks CLK_MIXER1> to 432000000
<jernej>
then yes, I guess
ErwinH has quit [Ping timeout: 260 seconds]
chrishell has joined #linux-sunxi
<jernej>
wouldn't be better to set that flag?
<jernej>
but maybe 216 MHz is too low for de2
<MoeIcenowy>
yes
<MoeIcenowy>
so assign different clocks is the best way ;-)