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*
Putti has quit [Ping timeout: 268 seconds]
Guest0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<catphish> that vsync interrupt worked nicely in the end
tl_lim has joined #linux-sunxi
anarsoul|3 has joined #linux-sunxi
Asara_ has joined #linux-sunxi
dev1990_ has joined #linux-sunxi
tilpner_ has joined #linux-sunxi
arete74_ has joined #linux-sunxi
Mikey_ has joined #linux-sunxi
tilpner has quit [Disconnected by services]
tilpner_ is now known as tilpner
Asara has quit [Read error: Connection reset by peer]
tllim has quit [Remote host closed the connection]
dev1990 has quit [Ping timeout: 240 seconds]
martinayotte has quit [Ping timeout: 240 seconds]
fl_0 has quit [Ping timeout: 240 seconds]
arete74 has quit [Ping timeout: 240 seconds]
anarsoul|2 has quit [Ping timeout: 240 seconds]
MikeyG has quit [Ping timeout: 240 seconds]
martinayotte has joined #linux-sunxi
fl_0 has joined #linux-sunxi
Asara_ is now known as Asara
tl_lim has quit [Read error: Connection reset by peer]
Andy-D has quit [Ping timeout: 246 seconds]
lurchi_ is now known as lurchi__
anarsoul|3 has quit [Ping timeout: 244 seconds]
qeed has quit [Remote host closed the connection]
qeed has joined #linux-sunxi
Gerwin_J has quit [Ping timeout: 264 seconds]
dddddd has quit [Remote host closed the connection]
<tautologico> catphish: is there code available?
vagrantc has quit [Quit: leaving]
lurchi__ is now known as lurchi_
Guest0 has joined #linux-sunxi
Guest0 has quit [Quit: Textual IRC Client: www.textualapp.com]
Da_Coynul has joined #linux-sunxi
lurchi_ is now known as lurchi__
Da_Coynul has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
popolon has quit [Quit: WeeChat 2.3]
GrimKriegor has quit [Ping timeout: 250 seconds]
GrimKriegor has joined #linux-sunxi
merlin1991 has quit [Remote host closed the connection]
kelvan has quit [Remote host closed the connection]
merlin1991 has joined #linux-sunxi
kelvan has joined #linux-sunxi
tlwoerner has quit [Quit: Leaving]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 250 seconds]
tlwoerner has joined #linux-sunxi
nashpa has quit [Ping timeout: 250 seconds]
nashpa has joined #linux-sunxi
ruhe12 has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 250 seconds]
LargePrime has quit [Ping timeout: 268 seconds]
IgorPec has joined #linux-sunxi
Mandragor has joined #linux-sunxi
Mandragor_ has quit [Ping timeout: 250 seconds]
IgorPec has quit [Ping timeout: 250 seconds]
f0xx has joined #linux-sunxi
Mandragor_ has joined #linux-sunxi
Mandragor has quit [Ping timeout: 246 seconds]
reinforce has joined #linux-sunxi
netlynx has joined #linux-sunxi
clemens3 has joined #linux-sunxi
Mandragor has joined #linux-sunxi
Mandragor_ has quit [Ping timeout: 245 seconds]
Putti has joined #linux-sunxi
dddddd has joined #linux-sunxi
Mandragor has quit [Ping timeout: 246 seconds]
Mandragor has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
vagrantc has joined #linux-sunxi
BenG83 has joined #linux-sunxi
BenG83 has quit [Ping timeout: 250 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
Mandragor has quit [Ping timeout: 245 seconds]
Mandragor has joined #linux-sunxi
arete74_ has quit [Ping timeout: 244 seconds]
<quark_> anarsoul: wens: I suppose Lee wants to have mfd patch formatted this way https://pastebin.com/JG00ZJ4J or did I understand correctly?
Nemo_bis has joined #linux-sunxi
libv_ has joined #linux-sunxi
libv has quit [Ping timeout: 268 seconds]
yann has joined #linux-sunxi
BenG83 has joined #linux-sunxi
libv has joined #linux-sunxi
libv_ has quit [Ping timeout: 240 seconds]
libv_ has joined #linux-sunxi
libv has quit [Ping timeout: 240 seconds]
Andy-D has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
libv has joined #linux-sunxi
libv_ has quit [Ping timeout: 245 seconds]
dev1990_ has quit [Quit: Konversation terminated!]
Mandragor has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Mandragor has joined #linux-sunxi
<wens> I think so, yeah
<catphish> tautologico: don't know if it's useful, as it's not really linux related, but i will continue to pubish things :)
<quark_> wens: there is same kind of alignment issue with axp813_cells, but Lee didn't spot it
<quark_> what you think should I fix it? or just let someone else fix those alignments?
<quark_> alignment came from commit 6720328fc9cff4a2d8d7cbd6c71cd33958ccc0b3
<wens> I made a commit to re-align everything earlier today, along with re-ordering in yours
<wens> quark_: see this branch here: https://github.com/wens/linux/tree/axp-mfd-cleanup
Mr__Anderson has joined #linux-sunxi
<quark_> wens: nice. commit b99cec26bae2835a0374463570ea9ea26b034afa seems to fix all alignment issues in axp20x.c file
<quark_> so I don't need send new series of patches?
<wens> I can send them next week if you're busy
<quark_> I can do it too. So I can just add that b99cec26bae2835a0374463570ea9ea26b034afa to patch series and add my SOB to it?
<wens> yup
Da_Coynul has joined #linux-sunxi
<quark_> I'll do it later today. After I finish some rockpro64 stuff
popolon has joined #linux-sunxi
leviathanch has joined #linux-sunxi
Da_Coynul has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hkkl12 has joined #linux-sunxi
hkkl12 has quit [Remote host closed the connection]
GrimKriegor has quit [Read error: Connection reset by peer]
GrimKriegor has joined #linux-sunxi
catphish has quit [Quit: Leaving]
Putti has quit [Ping timeout: 250 seconds]
catphish has joined #linux-sunxi
nuuuciano has joined #linux-sunxi
<wens> qschulz: ^
Putti has joined #linux-sunxi
IgorPec has joined #linux-sunxi
dddddd has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
_whitelogger has joined #linux-sunxi
lurchi_ is now known as lurchi__
BenG83 has quit [Quit: Leaving]
juri_28 has joined #linux-sunxi
juri_28 has quit [Ping timeout: 244 seconds]
netlynx has quit [Quit: Ex-Chat]
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 245 seconds]
<wens> quark_: you don't need to resend everything, just the stuff that hasn't been merged
<quark_> wens: okey. so actually those two last ones
<quark_> I also misstyped my SOB in one of commits. should have read all the commits once more before sending
megi has joined #linux-sunxi
xand13 has joined #linux-sunxi
xand13 has quit [Remote host closed the connection]
random_yanek has quit [Ping timeout: 250 seconds]
<megi> wens: I already had working RGB565 support for CSI driver in the past. I ported it to the mainline driver. https://megous.com/git/linux/commit/?h=backports-4.20&id=93ce0536dcedb9ea998ecc3e1063e7f6663e4194
<megi> that's re the linux-sunxi wiki entry about your wip on this. it worked quite fine on A83T
random_yanek has joined #linux-sunxi
<Asara> :q
<Asara> woops :(
xcm24 has joined #linux-sunxi
xcm24 has quit [Remote host closed the connection]
lurchi__ is now known as lurchi_
paulk-leonov has quit [Ping timeout: 268 seconds]
paulk-leonov has joined #linux-sunxi
leviathanch has quit [Remote host closed the connection]
<catphish> someone ought to maintain a database of sunxi boards with chips and pricing, looking for cheap boards with multiple cpu cores, lots of chinese listings to wade through :)
<KotCzarny> just go to aliexpress?
<catphish> that's where i'm looking mostly
<catphish> but there are so many possible search terms
<catphish> like every possible allwiner chip
<vagrantc> at least many of the names are almost the same
<catphish> ah, not see orange pi before, those look delightfully cheap
<KotCzarny> lol?
<KotCzarny> btw. go to xunlong store
<KotCzarny> it's the source
<kilobyte> catphish: depends on use case, but indeed a simple list could be useful
<catphish> in my case, i basically want any board with a sunxi with the multiple cpu cores, wondering how cheap they go
<KotCzarny> 7usd+shipping for opi0 256MB
<kilobyte> "multiple cores" that's almost any
<catphish> well anything but A1x
<tautologico> yeah most are multicore
<KotCzarny> but that's hw, there is also price of support
<tautologico> orange pi zero is quadcore Cortex A7
<KotCzarny> for allwinner you are getting FREE COMMUNITY WORK
<catphish> ideal
<kilobyte> Frites were very cheap but after kickstarter ended they went up in price
<KotCzarny> otherwise it would be one of the worse choices
<tautologico> I bought a opi one instead of zero, can't remember the reason right now
<KotCzarny> tautologico: probably you needed hdmi
<tautologico> KotCzarny: yeah I think that was it
<kilobyte> KotCzarny: yeah but that "free community work" got the shit (mostly) done, unlike eg. Mediatek
<KotCzarny> kilobyte: yeah, and community is till getting shit from allwinner
<KotCzarny> *still
<kilobyte> right
<catphish> oh yeah, orange pi zero seems to be ideal
<KotCzarny> catphish: are you aware of linux-sunxi's list of boards?
<tautologico> I don't understand why... the community work makes their chips more useful for many applications
<KotCzarny> tautologico: language/managerial barrier?
<catphish> KotCzarny: no!! i just found it! http://linux-sunxi.org/Table_of_Allwinner_based_boards
<KotCzarny> yeah
<catphish> could use an "approx price" column, but ideal
<KotCzarny> it doesnt cover everything, but is a start for a new folks to select needed peripherials
<KotCzarny> i think licheepi is even cheaper
<catphish> ultimately i'd love to make my own, but probably not worth the work
<KotCzarny> ahm, no, it's single core
<catphish> orange pi zero looks perfect
<KotCzarny> keep in ming xr819 on opi0 is atrocious
<KotCzarny> *mind
Da_Coynul has joined #linux-sunxi
<catphish> that's ok, i don't need network :)
<kilobyte> the "needed peripherals" part often bites. I for example want a decent machine with video output on either dual-link DVI or DP (HDMI is no good). Not on any Allwinners I see, bought a RockPro64 that _claims_ to do it over USB C, so let's see if that'll work...
lkcl has quit [Read error: Connection reset by peer]
<catphish> for me, the only peripheral i'm interested in at the moment is hdmi at 1080p
<KotCzarny> then opi0 is not for you
<KotCzarny> it lacks hdmi
<KotCzarny> only cvbs
<kilobyte> right. Buy two monitors at 1080p, big-resolution monitors are not worth the effort. :/
<mru> I use two 2560x1440 monitors
<kilobyte> hey, there's that c-sky board for $6, it says it does 1080p well :p
<kilobyte> perhaps only 64MB ram, and an arch that only just hit mainline, but... :p
Da_Coynul has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<kilobyte> mru: there's a threshold between 2560x1440 and 2560x1600; older versions of HDMI handle the former fine but not the latter; the monitors I bought are old so they can't do new HDMI
Da_Coynul has joined #linux-sunxi
<mru> these ones require dual-link dvi
<mru> or displayport
Da_Coynul has quit [Client Quit]
<catphish> KotCzarny: oh, i didn't see it didn't have hdmi, that's somehing i will need :)
<kilobyte> mru: ... ok so you're on the same boat as me. Any hints in case that RockPro64 won't work?
<catphish> the list on the linux-sunxi wiki has the connectivity listed, so i'll browse :)
<KotCzarny> yeah, and you can always open particular board page
<mru> catphish: do you need ready to go system, or are you able/willing to make a carrier board for a SoM?
Da_Coynul has joined #linux-sunxi
<mru> if the latter, there are many more options
<catphish> orange pi one looks like it'd work, for $10
<catphish> mru: actually ultimately i'd prefer to make my own board, for now i'm just getting a feel for how cheap one can go
<catphish> it's unlikely my project will get that far, but i like to learn-ahead :)
<catphish> i make boards for stm32, but bga seems a bit much for me
<KotCzarny> catphish: if your device going to be idling much, you should consider ones with voltage regulation for cpu and working cpufreq
<catphish> is that not handled internally by the soc? :(
<mru> bga is annoying in that visual inspection is impossible
<catphish> i can just about solder qfn, but not sure i'm ready to solder a SoC :0
<mru> and you might need to go 6-layer (or more) to route all the signals
<catphish> indeed, again i've only done 2 layer boards
<mru> qfn is easy enough
<catphish> so this might be beyond me for now
<KotCzarny> nope, voltage regulation is done via external chip
<catphish> interesting
<KotCzarny> see pmu/vreg column
Da_Coynul has quit [Ping timeout: 272 seconds]
lurchi_ is now known as lurchi__
<KotCzarny> some board are permanently set to 1.3V (some bananas with H3)
<KotCzarny> which makes them require heatsink+fan for stable operation
<catphish> so orange pi one costs $10 + $5 shipping, it has a 1v1 or 1.3 selection
<KotCzarny> opipc costs few bucks more and has larger board and programmable voltage
lurchi__ is now known as lurchi_
<catphish> more ram too
<catphish> much better choice :)
<KotCzarny> and more usb ports
<KotCzarny> so you see, it boils down to requirements/target
xes_ has joined #linux-sunxi
<catphish> yeah indeed
lkcl has joined #linux-sunxi
<catphish> mru: where would one find modules you mentioned?
xes has quit [Ping timeout: 272 seconds]
dmnq has joined #linux-sunxi
<catphish> $15 for orange pi pc, so yeah, happy with that kinda pricing
<KotCzarny> need emmc?
<KotCzarny> its nice to have
<KotCzarny> or if you run baremetal os, you can choose board with spi chip soldered already
<karlp> there's not many options outside orangepi lineup, nanopi linuep and the coupleof bananapi lineups
<catphish> i like my lemaker, but it's a lot more expensive
<KotCzarny> a20 is expensive
<KotCzarny> for some weird reason
<mru> cubietech do some full boards and modules
<KotCzarny> catphish: also, you might consider just cannnibalizing some old tablet
<KotCzarny> you will get display and battery for free
<catphish> the H series chips seem better and cheaper weirdly
<catphish> (than the A20)
<catphish> how does one even boot the orange pi pc? it doesn't appear to have any internal or external non volatile memory
<KotCzarny> sdcard
<KotCzarny> all allwinner chips have boot sequence starting from sdcard
<catphish> oh, sorry, yeah , just spotted the sd card on the back
<mru> better is relative
<KotCzarny> i think its sdcard / emmc / nand / spi / usb(fel)
<catphish> soldered flash would be nice i guess, so then one upgrades to the pc+
<mru> we picked a20 for a recent project because it was a better fit
<catphish> yeah i'm just using fel for now
<catphish> hopefully the work i've done on the a20 DE will translate to the H3
<KotCzarny> a20 has g2d
<KotCzarny> h3 has no 2d accel
<plaes> no driver, though :)
<KotCzarny> :)
<catphish> i didn't see the point of g2d
<catphish> but i assume there is a point to it
<KotCzarny> he writes bare metal almost
<mru> a20 has canbus which was a requirement for us
<catphish> yeah i'm writing bare metal, right now using a simple framebuffer
<KotCzarny> also, you might be interested that h3 feature openrisc core
<catphish> not sure if this is a particularly good way to use the chip, but it works nicely
<KotCzarny> think of having microcontroller handy for rt work
<catphish> that's pretty cool, but also, meh
<KotCzarny> why meh? offloading polling is nice
Da_Coynul has joined #linux-sunxi
<catphish> my goals are not well defined right now, playing with graphics, vaguely aiming to make a simple games machine using gpio and hdmi
<KotCzarny> then grab any h3 based device and pop retropie or something
<KotCzarny> done
<KotCzarny> ;)
<catphish> nah
<catphish> installing an emulator doesn't really interest me
<catphish> using the hardware properly does though :)
<KotCzarny> if the system you plan needing to be mobile, you might consider A series
<KotCzarny> any h3 board is going to suck 300-500mA in idle
<catphish> well originally i was thinking a64 would be the ultimate target, i have an a64 tablet to hand
<catphish> i wasn't sure if mobile was important or not though, again, goals very vague, just playing
<KotCzarny> then grab opipc and roll with it
<KotCzarny> unless you prefere 64bit cores
<catphish> nah, no need
<catphish> my a20 is serving the purpose for now (because i have it lying around) but i think with a view to this being useful to anyone else, i will port to h3/h2+ soon and use the opipc
<catphish> thanks for the pointers
<catphish> for now i have to write a graphics engine :)
<catphish> is the openrisc core separate form the arm cpu core?
<catphish> if so, i suddenly understand the point!
IgorPec has quit [Ping timeout: 268 seconds]
LargePrime has joined #linux-sunxi
tllim has joined #linux-sunxi
lurchi_ is now known as lurchi__
GrimKriegor has quit [Read error: Connection reset by peer]
Da_Coynul has quit [Quit: Textual IRC Client: www.textualapp.com]
GrimKriegor has joined #linux-sunxi
<willmore> Asara, :q is the "surprised smoker" emoji
<catphish> lol
<Asara> sounds like me :)
<catphish> sounds like me, if i smoked, and anything still surprised me
f0xx has quit [Ping timeout: 246 seconds]
<KotCzarny> yes, separate and having access to almost everything
<KotCzarny> thats why i've said 'microcontroller bonus'
souther has quit [Ping timeout: 250 seconds]
<KotCzarny> they can even communicate (openrisc and arm cores)
<KotCzarny> bbl
<KotCzarny> initially openrisc core did lowlevel hw control and standby work
<catphish> so it's just a single, simpleish extra cpu core?
<plaes> also, buggy
<catphish> lol great
<KotCzarny> yup, but good enough for simple tasks
<KotCzarny> ie. i wrote wake on lan routine with it
<catphish> well that sounds useful, i'll have some little IO tasks to do in the background
<plaes> KotCzarny: can I see it?
souther has joined #linux-sunxi
Da_Coynul has joined #linux-sunxi
<catphish> gay, de2.0 seems to be nothing like de1
<karlp> whee, pure FEL boot is super nice.
<karlp> no more fel+ tftp
<catphish> i'm doing pure FEL, it's magic
<catphish> i just have to: "sunxi-fel -v uboot ../u-boot/u-boot-sunxi-with-spl.bin write 0x8000 myos.bin"
<catphish> dunno if it's any more complicate for linux
<megi> it isn't really except you also load u-boot
<plaes> karlp: you know about uenv.txt?
<karlp> yeah, was using that in the one before, to setup the tftp commands
<plaes> ok :)
<karlp> can I have a uenv.txt that just has the bootm command instead?
<catphish> i just built my boot command into my uboot build
<catphish> as the default command line
<karlp> the .scr gets _run_ while the uenv.txt gets merged with the existing environment
<plaes> I guess, I used it to flash u-boot and turn on the fastboot
<karlp> if uboot can already boot me, I don't really need it for anythign else anymore (yet)
<catphish> i'd like to learn how to boot directly at some point, uboot is mostly an unwelcome distraction for me
<karlp> well, that link I just pasted has using a uboot.scr thing to pass a script directly.
<karlp> you have to manually do a bootm 0x8000 or something?
<catphish> mine's all automated by CONFIG_BOOTCOMMAND="icache off; dcache off; go 0x8000"
<beeble> und you where wondering why you code is running so slow?
<beeble> *were
<catphish> no
<catphish> u-boot won't boot my code without the cache disabled, i don't know why :(
dmnq has quit [Remote host closed the connection]
<catphish> beeble: this is what happens if i don't disable the caches: https://paste.ubuntu.com/p/bYFmJgdF7D/
<catphish> nobody seems to know why
<catphish> but disabling it resolves the problem
<catphish> karlp: the problem with u-boot isn't serious, it's just that it seems like an unnecessary extra layer, and it configures a lot of hardware, meaning i can't really test my own init code because the work is already done
<beeble> depending on your timezone you might have some hours left to reinvent the wheel too
<beeble> today
<catphish> unfortunately the boot sector for sunxi seems pretty complicated
AneoX has joined #linux-sunxi
<catphish> so that can probably wait
AneoX_ has quit [Ping timeout: 246 seconds]
BenG83 has joined #linux-sunxi
Da_Coynul has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
megi has quit [Quit: WeeChat 2.3]
Da_Coynul has joined #linux-sunxi
Da_Coynul has quit [Client Quit]
dmnq has joined #linux-sunxi
a|3x has joined #linux-sunxi
nashpa has quit [Quit: Going away]
nashpa has joined #linux-sunxi
IgorPec has joined #linux-sunxi
lurchi__ is now known as lurchi_
IgorPec has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 244 seconds]
<smaeul> catphish: how much RAM do you need for your application (order of magnitude)?
<smaeul> if you need more than a few hundred KiB, then you need to turn on DRAM, which is the hard part of what u-boot does
<smaeul> if SRAM (that few hundred KiB) is enough, creating an image you can FEL boot directly is not so hard
<catphish> samueldr: that's good to know, i hadn't even considered that dram needed to be initialized! i do use it
reinforce has quit [Quit: Leaving.]
<smaeul> the other issue is that the boot ROM has a hard limit of 32 KiB for the first stage bootloader
<smaeul> so if you need more code/data than that, you have to either 1) implement a storage driver or 2) reuse the storage controller set up by the BROM
<smaeul> (for #2 that means if your first stage is FEL you have to return to FEL, or if your first stage is on SPI NOR your remaining data has to also be on SPI NOR, etc)
<smaeul> so U-Boot is split into two parts -- "U-Boot SPL" and "U-Boot Proper" -- and "U-Boot SPL" is the part that turns on DRAM while meeting all of the above requirements
<smaeul> whereas "U-Boot Proper" is the part that initializes all of the hardware you don't want
<catphish> that's interesting, so one has to (at a minimum) initialize dram, and load code from flash/eeprom into dram, and execute it
dmnq has quit [Remote host closed the connection]
dmnq has joined #linux-sunxi
dmnq has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
vagrantc has quit [Quit: leaving]
lurchi__ is now known as lurchi_
NeuroScr has quit [Ping timeout: 268 seconds]