rellla 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 - *only registered users can talk*
Andy-D has quit [Quit: Alive/Dead]
NeuroScr has quit [Quit: NeuroScr]
pmp-p has quit [Ping timeout: 265 seconds]
NeuroScr has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
tl_lim has quit [Read error: Connection reset by peer]
luke-jr has joined #linux-sunxi
jernej has joined #linux-sunxi
<luke-jr> Does the A64 have any "hidden" CPU cores that can't be running open source software, like the RasPi's ThreadX core, or Intel ME, etc?
<tuxd3v> it should have ar100
<megi> it's not hidden and can run FOSS
<tuxd3v> it his used for something?
<tuxd3v> like thermal control, andso on?
<megi> no, it's just disabled by default
<megi> if you run mainline Linux
<tuxd3v> the dvfs, and temeprature and so on would be nice to run on it :)
<megi> why?
Mangy_Dog has quit [Ping timeout: 240 seconds]
<tuxd3v> its his purpose
<megi> but why? :) if ARM CPUs run they can manage themselves
<tuxd3v> I am thinking.. what should be the toolchain that suports it?
<megi> if not, there's not muc heat
<megi> gcc9 or1k
<tuxd3v> gcc9 has this as a target?
<megi> yes
<tuxd3v> or is a specific version of gcc9?
<megi> no, mainline
<tuxd3v> nice
<megi> it was added in 9.0
<tuxd3v> I am wondering if ARM cross toolchains 9.x wouold support it :)
<megi> no
<tuxd3v> wouold -> would
<tuxd3v> so we need to build first the cross tollchain for it..
<megi> yes, or use a prebuilt one
<megi> they're available on github
<megi> I build it myself
ganbold has joined #linux-sunxi
<tuxd3v> can we use that bynary blob with mainline kernels?
<tuxd3v> I beliebe not?!
<megi> no
ChriChri_ has joined #linux-sunxi
<tuxd3v> does you know if something interesting was ported to 5.4.13 for H6?
<megi> from when?
<tuxd3v> i found a lot of things arm related but not for H6, unless maaybe for the stmac driver..
<tuxd3v> since 5.4.12 :)
<tuxd3v> or 11
ChriChri has quit [Ping timeout: 272 seconds]
ChriChri_ is now known as ChriChri
<megi> no idea, random fixes :)
<megi> I mostly follow just major version changes
NeuroScr_ has joined #linux-sunxi
NeuroScr has quit [Ping timeout: 272 seconds]
NeuroScr_ is now known as NeuroScr
anarsoul|2 has joined #linux-sunxi
anarsoul has quit [Ping timeout: 272 seconds]
TRS-80 has quit [Ping timeout: 265 seconds]
willmore has quit [Ping timeout: 260 seconds]
TRS-80 has joined #linux-sunxi
willmore has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
<luke-jr> is there a good SoC with wifi, 4x relays (or GPIOs to drive relays), a smallish/thin case + display available, AIOs, camera input, and the capability to decode 1080p in realtime?
<luke-jr> SBC*
cnxsoft has quit [Remote host closed the connection]
<smaeul> luke-jr: what specifically do you mean by decoding 1080p? from a camera? or h.264? or something else?
<luke-jr> smaeul: ideally anything I could be expected to throw at mpv
<smaeul> luke-jr: sure, but what is the source of the video -- network? CSI bus? storage?
<smaeul> sunxi SoCs have a hardware video decoder: https://linux-sunxi.org/Cedrus
<luke-jr> it would be nice to sshfs-mount my NAS, but with a decent sized microSD I could preload I guess
NeuroScr has quit [Quit: NeuroScr]
<luke-jr> is Cedrus working today? (my current projector system is a Novena which apparently never ended up getting its hardware acceleration working in the same kernel as HDMI audio..)
<smaeul> luke-jr: cedrus is supported on A64 as of Linux 5.0: https://linux-sunxi.org/Sunxi-Cedrus#SoC_Support
<smaeul> I haven't personally used it. others may be able to tell you how well it works
<luke-jr> ok, so Gentoo it is :P
cnxsoft has joined #linux-sunxi
<luke-jr> hmm "Another lead is to use the Xv extension of the X11 API, that fits the bill for using the Display Engine hardware to accelerate these operations, but this interface is quite old now and increasingly deprecated. It also only allows sub-optimal use cases, with one video at a time."
<luke-jr> didn't know Xv was deprecated, it seems to be the most reliable :x
<tuxd3v> CONFIG_PHY_SUN9I_USB
<tuxd3v> doesn't apply to H6 right?
<smaeul> tuxd3v: nope, sun9i is A80 only
<tuxd3v> smaeul, thanks :)
gaston1980 has quit [Quit: Konversation terminated!]
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
NeuroScr has joined #linux-sunxi
megi has quit [Ping timeout: 272 seconds]
JohnDoe_71Rus has joined #linux-sunxi
aloo_shu has quit [Quit: WeeChat 2.5]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 265 seconds]
anarsoul|2 is now known as anarsoul
ganbold_ has joined #linux-sunxi
ganbold has quit [Ping timeout: 240 seconds]
selfbg has joined #linux-sunxi
ldevulder_ has joined #linux-sunxi
ldevulder__ has quit [Ping timeout: 268 seconds]
fl_0 has quit [Quit: STRG + Q]
bjne has joined #linux-sunxi
fl_0 has joined #linux-sunxi
bjne has quit [Ping timeout: 272 seconds]
NeuroScr has quit [Quit: NeuroScr]
ldevulder_ is now known as ldevulder
montjoie has quit [Quit: leaving]
matthias_bgg has joined #linux-sunxi
tnovotny has joined #linux-sunxi
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-sunxi
hehopmajieh has quit [Quit: Leaving]
vagrantc has quit [Quit: leaving]
bjne has joined #linux-sunxi
yann has quit [Ping timeout: 265 seconds]
TRS-80 has quit [Quit: WeeChat 2.3]
florian_kc has joined #linux-sunxi
florian_kc is now known as florian
AneoX has joined #linux-sunxi
yann has joined #linux-sunxi
montjoie has joined #linux-sunxi
Danct12__ has quit [Remote host closed the connection]
Danct12_ has joined #linux-sunxi
megi has joined #linux-sunxi
AneoX has quit [Ping timeout: 240 seconds]
AneoX has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
dddddd has joined #linux-sunxi
NeuroScr has quit [Quit: NeuroScr]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
duracrisis has quit [Excess Flood]
duracrisis has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 258 seconds]
sunshavi has quit [Ping timeout: 258 seconds]
matthias_bgg has joined #linux-sunxi
dddddd has quit [Ping timeout: 240 seconds]
deesix has quit [Ping timeout: 258 seconds]
deesix has joined #linux-sunxi
marvs has quit [Ping timeout: 248 seconds]
marvs has joined #linux-sunxi
djakov has quit [Ping timeout: 252 seconds]
dddddd has joined #linux-sunxi
djakov has joined #linux-sunxi
sunshavi has joined #linux-sunxi
tuxillo has quit [Remote host closed the connection]
tuxillo has joined #linux-sunxi
tllim has joined #linux-sunxi
jstein has joined #linux-sunxi
AneoX has quit [Ping timeout: 265 seconds]
AneoX has joined #linux-sunxi
alexxy has quit [Ping timeout: 258 seconds]
alexxy has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
<KotCzarny> bit offtopic but funny: https://twitter.com/jxxf/status/1219009308438024200
<Mangy_Dog> :o
<Mangy_Dog> i must admit
AneoX has quit [Ping timeout: 258 seconds]
AneoX has joined #linux-sunxi
reinforce has joined #linux-sunxi
jstein has quit [Ping timeout: 265 seconds]
jstein has joined #linux-sunxi
pmp-p has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
lurchi_ is now known as lurchi__
cnxsoft has quit [Quit: cnxsoft]
chewitt has joined #linux-sunxi
tuxd3v has quit [Quit: Leaving]
selfbg has quit [Remote host closed the connection]
pmp-p has quit [Ping timeout: 268 seconds]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
uKibab has quit [Read error: Connection reset by peer]
AneoX has quit [Ping timeout: 265 seconds]
uKibab has joined #linux-sunxi
AneoX has joined #linux-sunxi
hramrach has quit [Ping timeout: 252 seconds]
bjne has quit [Ping timeout: 258 seconds]
hramrach has joined #linux-sunxi
DrFrankensteinUK has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
DrFrankensteinUK has joined #linux-sunxi
merbanan has quit [Ping timeout: 260 seconds]
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 260 seconds]
merbanan has joined #linux-sunxi
florian has quit [Quit: Leaving]
maccraft123 has joined #linux-sunxi
<maccraft123> hi, does anyone know how to set up nand on cubieboard2?
<maccraft123> i can't interact with /dev/mtd{0-5} devices
<maccraft123> fdisk doesn't detect geometry of these devices
<maccraft123> i can't format them as ext
<maccraft123> ext4*
<bbrezillon> maccraft123: an MTD device is not a block device
<mru> you can't use ext4 on raw nand
<mru> use ubifs
mauz555 has joined #linux-sunxi
<bbrezillon> you can't use any of the regular/block FS on a raw NAND
<bbrezillon> mru: exactly
<maccraft123> can linux boot from mtd?
<bbrezillon> maccraft123: but I wonder how you ended up with MTD devices exposed
<maccraft123> bbrezillon: ask armbian devs lol
<bbrezillon> are you sure those are NAND partitions?
<bbrezillon> cat /sys/class/mtd/mtdX/type
<maccraft123> bbrezillon: all mlc-nand
<mru> mlc, ugh
<bbrezillon> maccraft123: can you point me to the kernel sources?
AneoX_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<karlp> plenty of /dev/mtd devices on openwrt for instance...
<bbrezillon> karlp: it's fine if those are backed by SLC NANDs
<mru> last I checked, mainline linux didn't support mlc nand
<bbrezillon> nope, though mraynal is working on an SLC emulation on top of MLC NANDs
<maccraft123> i can't seem to find sources, i downloaded desktop image from https://www.armbian.com/cubieboard-2/
<maccraft123> uname -a tell me Linux cubie2 5.3.9-sunxi #19.11.3 SMP Mon Nov 18 18:49:43 CET 2019 armv7l armv7l armv7l GNU/Linux
<bbrezillon> maccraft123: it's probably a bad idea to use the NAND, unless you know what you're doing :)
<karlp> bbrezillon: just referring to your query about how one can have mtd devices exposed.
<karlp> (honestly, how would you _not_ have the mtd devs if you have mtd devices?)
<maccraft123> bbrezillon: it probably runs this https://github.com/linux-sunxi/linux-sunxi with https://bpaste.net/WPLA config
<maccraft123> bbrezillon: what's the worst thing that could happen?
<maccraft123> also
<maccraft123> i paid for whole board
<maccraft123> im gonna use whole board
<karlp> wat?
<bbrezillon> karlp: no, I meant those are usually not exposed on sunxi platforms, because they are MLC NANDs, and Linux does not support MLC yet
<KotCzarny> lol
yann has quit [Ping timeout: 265 seconds]
<mru> yet, haha
<karlp> wasn't it more that it was removed?
<bbrezillon> karlp: it's never been reliably supported
<karlp> (I mean, I know it didn't _work_ welle nough)
<bbrezillon> karlp: well, didn't work well is an euphemism
<maccraft123> bbrezillon: is data loss the worst thing that could happen when im using mtd with mlc nand?
pmp-p has joined #linux-sunxi
<bbrezillon> maccraft123: yes
<maccraft123> ok
<maccraft123> i'm in
<mru> it probably won't be what causes trump to be re-elected
<mru> but data loss is pretty much a given
<maccraft123> something is on nand already
<mru> look up "read disturb"
<mraynal> bbrezillon: we know the OpenWRT community reverted the 'no MLC' patch right after we introduced it in Linux
<bbrezillon> read disturb, write disturb and most importantly page pairing
<bbrezillon> none of this is taken care of
<mru> pairing only matters when writing
<mraynal> maccraft123: you can play with it, but just because it seems to work, it does not mean it actually does
<maccraft123> mraynal: around when it will be usable?
<mru> if it has been written properly, you'll be able to read it a few times
<mru> maybe even many times
<mraynal> maccraft123: 5.7
<bbrezillon> sure, if you use it as a RO FS, that should be okay
<mru> as soon as the chips are no longer made
<maccraft123> mraynal: okay
<mru> then all gadgets will have the next type of storage which won't be supported
<mru> until it has become obsolete
<mru> etc
<mraynal> maccraft123: I plan to merge the patches in nand/next at v5.6-rc1
<maccraft123> i will be back
<bbrezillon> maccraft123: you'll probably have to add some code for your NAND chip
<maccraft123> mraynal: and it will work well enough to be able to not use sd card or hdd?
<mru> mraynal: nice
<bbrezillon> (page pairing description and read-retry implementation)
<mraynal> bbrezillon: are you sure? writing blindly will not take into account pairing, so you'll probably corrupt your data very quickly
<bbrezillon> mraynal: if blocks are entirely programmed, and never written again, that should work
<bbrezillon> at least for some time
<mraynal> ok
<bbrezillon> then you have read disturb kicking in, and you're screwed
<karlp> mraynal: so there's actually progress on mlc-nand now? that's good to hear.
<bbrezillon> karlp, mru: it's just SLC emulation on top of MLC, so you'll end up with half the capacity
<mraynal> karlp: I'm taking over bbrezillon's work
<bbrezillon> but that's better than nothing
<mraynal> indeed
paulk-leonov has quit [Excess Flood]
* karlp sighs
<mru> guess we'll keep using emmc then
paulk-leonov has joined #linux-sunxi
<mraynal> paulk-leonov: quiting with an "excess flood" message while we are talking about MTD is not fair ;)
<mraynal> mru: emmc means hidding the truth :) it does not serve exactly the same purpose
<KotCzarny> or actually leaving the dirty work to controller's firmware
<mru> emmc serves the purpose of shipping product
<KotCzarny> and not screwing over it ourselves
<mraynal> but for huge storages (compared to what an SLC NAND can provide), then yes, emmc is probably the way to go. and it is probably faster as chips are parallellized inside
<mraynal> For those who have read at least once in their life manufacturer code, it's hard to trust firmwars
<mru> well, right now the choice is between that and not being able to sell anything
<mru> and I need to get paid somehow
TRS-80 has joined #linux-sunxi
<mraynal> or using SLC if you don't need hundreds of MB. that's why I'm telling it does not serve the same purpose
<mru> we do need hundreds of MB
<mraynal> -> emmc
<mru> good, we agree
<karlp> what's the roadmap look like? is mcl/tlc nand _ever_ expected to be supported by linux or is this still a "no, not happening" worldview?
<mraynal> tlc: I would say never, ever
<maccraft123> qlc: no
<karlp> so the roadmap remains "nand is an aberration, use emmc" then.
<mraynal> mlc: not impossible, but very likely to never happen because 1/ bbrezillon works on other topics now and I don't have the background to take over plain MLC support and 2/ vendors do not share the pairing schemes
mauz555 has quit []
mauz555 has joined #linux-sunxi
maccraft123 has quit [Quit: oiuwqfeiufjoa;we]
maccraft123 has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
sunilmohan has quit [Ping timeout: 268 seconds]
sunilmohan has joined #linux-sunxi
sunilmohan has joined #linux-sunxi
sunilmohan has quit [Changing host]
pmp-p has quit [Ping timeout: 265 seconds]
ric96 has quit [Ping timeout: 265 seconds]
ccaione has quit [Read error: Connection reset by peer]
ccaione has joined #linux-sunxi
ric96 has joined #linux-sunxi
yann has joined #linux-sunxi
netlynx has joined #linux-sunxi
mauz555 has quit []
mauz555 has joined #linux-sunxi
montjoie has quit [Ping timeout: 265 seconds]
montjoie has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 265 seconds]
mauz555 has quit []
aloo_shu has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
protoCall7 has joined #linux-sunxi
protoCall7 has quit [Quit: protoCall7]
Danct12_ has quit [Quit: Quitting - Huong Tram IRC Client 1.22]
reinforce has quit [Quit: Leaving.]
bjne has joined #linux-sunxi
bjne has quit [Ping timeout: 240 seconds]
rzerres has quit [Ping timeout: 245 seconds]
mauz555 has joined #linux-sunxi
rzerres has joined #linux-sunxi
angelo__ has joined #linux-sunxi
<angelo__> hi. Can a H3 boot from a parallel NOR ?
<angelo__> my understaing from ds is no. but have no experience with H3
florian has joined #linux-sunxi
lkcl has quit [Ping timeout: 268 seconds]
<karlp> it can from serial nor, if you're planing your own things...
putti_ has joined #linux-sunxi
Putti has quit [Ping timeout: 265 seconds]
putti_ has quit [Client Quit]
Putti has joined #linux-sunxi
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 272 seconds]
TRS-80 has quit [Quit: WeeChat 2.3]
pmp-p has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
\\Mr_C\\ has quit [Excess Flood]
\\Mr_C\\ has joined #linux-sunxi
\\Mr_C\\ has quit [Client Quit]
\\Mr_C\\ has joined #linux-sunxi
ldevulder__ has joined #linux-sunxi
maccraft123 has quit [Ping timeout: 268 seconds]
NeuroScr has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 268 seconds]
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-sunxi
lurchi__ is now known as lurchi_
damex has quit [Remote host closed the connection]
damex has joined #linux-sunxi
<megi> jernej: looks like you're pretty far with the rotation engine driver. is it useable yet?
<jernej> megi: yes, from about an hour ago
<jernej> I just have to add checks for hw limitations (various alignment)
<jernej> but if you consider them yourself, it's useable already
<megi> do you think it can be massaged to rotate 2B per pixel non-planar formats?
<megi> like YUYV or RGB565?
<jernej> well, RGB565 is not directly mentioned in register descriptions, but it is in test scenario and it's also included in driver header
<jernej> so that one should be doable
<jernej> I'm not sure for YUYV, let me check
<megi> YUYV shares some values across pixels so that may be harder
<jernej> header and driver both mentions TR_FORMAT_YUV422_I_YUYV
<megi> nice
<jernej> so yeah, probably it could be done
Danct12_ has joined #linux-sunxi
<megi> it would be very useful fo rotating camera frames for live preview on display (on PinePhone)
lurchi_ is now known as lurchi__
<jernej> just note that HW expects addresses and pitches to be 16 byte aligned
<megi> ok
<jernej> oh, and any YUV input format is converted to yuv420p output
<megi> have to check if DRM sun4i driver can accept that for the video layer
<jernej> DE2 supports it, yes
<megi> yeah, very nice :)
<jernej> it would be strange if it wouldn't
<megi> the driver also already supports planar formats
rex_victor has quit [Ping timeout: 260 seconds]