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*
Gerwin_J has joined #linux-sunxi
Rafael1980 has quit [Quit: Konversation terminated!]
Gerwin_J has quit [Quit: Gerwin_J]
BenG83 has quit [Quit: Leaving]
Gerwin_J has joined #linux-sunxi
Gerwin_J has quit [Client Quit]
anarsoul|2 has quit [Ping timeout: 244 seconds]
kever has quit [Ping timeout: 245 seconds]
kever has joined #linux-sunxi
popolon has quit [Quit: WeeChat 2.3]
kever has quit [Ping timeout: 250 seconds]
kever has joined #linux-sunxi
nashpa_ has quit [Ping timeout: 245 seconds]
nashpa has joined #linux-sunxi
ian_l has joined #linux-sunxi
ian_l has quit [Quit: Page closed]
ian_l has joined #linux-sunxi
<ian_l> Hey, Happy Holidays
<ian_l> I can't easily tell from the wiki, have people had success running their own custom boot0s?
_whitelogger has joined #linux-sunxi
ian_l has quit [Ping timeout: 256 seconds]
lurchi__ has joined #linux-sunxi
<catphish> ian_l come back and i'll tell you all about boot0
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
ian_l has joined #linux-sunxi
ian_l has quit [Client Quit]
ian_l has joined #linux-sunxi
<ian_l> ayy I'm back baybee
<anarsoul> catphish: ^^
<catphish> ian_l: hello :)
<ian_l> Happy holidays!
<catphish> ian_l: the very short answer to your question is yes
<ian_l> I got a little H8 dev board before x-mas and have been hacking away at it
<ian_l> Fun times
sunshavi has quit [Ping timeout: 240 seconds]
<catphish> ian_l: the slightly longer answer is: it's pretty easy to get code running, but mostly useless unless you want to use it as a simple MCU, or write your own DRAM init code, which is much harder than it souns
<catphish> i'm writing bare metal on h3, but i use u-boot's SPL (boot0) because i couldn't work out how to initialize the dram, everything else is (comparably) quite easy
<ian_l> DRAM does seem hard lol
<ian_l> catphish: are there docs for DRAM modules?
<catphish> it's not the modules that are the problem, they're pretty standard, it's the dram controller in the allwinner you need to figure out
<catphish> afaik the best source of information is the u-boot source code
<catphish> but it's non-trivial
sunshavi has joined #linux-sunxi
<ian_l> And they don't have any documentation for it in any of their user manuals?
<catphish> not that i know of, but it may be documented in 3rd party manuals that i'm not aware of, enough of it is publicly known to figure it out, but there's no docs to hod your hand
<ian_l> reeeee.
<ian_l> I guess I need to find a regular plain-jane dram controller
<ian_l> that has good documentation
<ian_l> And figure how one is supposed to work
<ian_l> Would you happen to know of one that is well-documented?
GrimKriegor has quit [Quit: oh bai bai bai]
<ian_l> For example
GrimKriegor has joined #linux-sunxi
<ian_l> Is there a reference ARM board like the CoreTiles with a documented DRAM controller?
<ian_l> like for example the pl341 that I just learned about by looking up what I asked
<catphish> i'm afraid i have no idea
<catphish> i only looked at the h3 dram controller
<catphish> and didnt get far
<catphish> on the plus side, my sprite rendering engine works nicely now: https://www.youtube.com/watch?v=Tt0u0dBuJKk
<ian_l> Looks skillful
<ian_l> This is what I found
<ian_l> Probably a good place to get an idea of how a dram controller functions
<catphish> yep, that's a reasonable example if you want to get an idea of the theory
<ian_l> These ARM boyz are pretty good
<catphish> on the other hand, you could just give up and use u-boot :)
<ian_l> boring
<ian_l> !!
<catphish> but good luck, i hope you fare better than me
<catphish> i have working bare metal code for the gpio, serial and graphics now
<catphish> tomorrow i will be attacking USB
<ian_l> the gpio stuff is a mess holy shit
<ian_l> the H8 has 2 clusters of 4 cpus
<catphish> GPIO is utterly trivial
<ian_l> the example code gives me a headache though
<catphish> one register to configure the port, one to write the value
<ian_l> they do everything possible to obfuscate which registers are actually being written to
<ian_l> just shift everything by magic numbers
<catphish> i don't know if the h8 is any different to the h3, but here's my gpio implementation: https://github.com/catphish/allwinner-bare-metal/blob/master/ports.c along with https://github.com/catphish/allwinner-bare-metal/blob/master/ports.h
<ian_l> h8 has no port A, but a port B at 0x24
<ian_l> here's a question
<ian_l> when you clock up the cpus to higher frequencies
<ian_l> does the voltage scaling get automatically adjusted?
<catphish> not that i know of, your board likely has an external power supply you need to control
<catphish> what board is it?
<ian_l> pcduino8 uno
<ian_l> I saw it for cheap on amazon
<ian_l> 8 cores arm devboard for $40cad
<ian_l> hard to beat
<catphish> that's not in the list :( not many H8 boards are, it's probably not getting much attention
<ian_l> are there any restrictions to using the secure sram?
<ian_l> (SRAM B)
yangxuan has joined #linux-sunxi
<catphish> ian_l: actually i have no idea, probably not by default
<ian_l> yeah
<ian_l> I figured I would have to look @ that
<ian_l> but I'm not sure how its connected
<ian_l> this PMIC
<catphish> though i don't see cpu voltage regulation in there
<catphish> so not sure
<catphish> i always start in the u-boot code, it tends to know what hardware the boards have
<catphish> and how to initialize it
<catphish> also, that is one seriously low budget pcb
<ian_l> I know right
<ian_l> it's great
<catphish> compare with http://linuxgizmos.com/files/orangepi_one_top.jpg - a $10-15 board
<catphish> that doesn't looks like it's about to fall apart :)
<ian_l> yeah they wanted to make it compatible with arduino hats
<ian_l> so it's a bit of a dogs breakfast
<ian_l> but 8 cores though
<catphish> i see
<ian_l> think of all the crappy multicore code you could write with 8 cores
<ian_l> alright
<ian_l> apparently dc2 -> cluster 0, dc3 -> cluster 1
<catphish> my graphics engine can pretty much fill up a core with its crappy software rendering, but cann't see myself using 8
<ian_l> and the ax818 has some serial data line for controlling it
<ian_l> connected to PL0/1
<catphish> and now i sleep
<catphish> good luck :)
<ian_l> Alright, good night
<ian_l> It was a fun chat
ian_l has quit [Quit: Page closed]
yangxuan has quit [Remote host closed the connection]
yangxuan has joined #linux-sunxi
yangxuan has quit [Client Quit]
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #linux-sunxi
victhor has quit [Remote host closed the connection]
[7] has quit [Disconnected by services]
TheSeven has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 250 seconds]
merlin1991 has quit [Remote host closed the connection]
kelvan has quit [Remote host closed the connection]
kelvan has joined #linux-sunxi
merlin1991 has joined #linux-sunxi
TheSeven has quit [Ping timeout: 250 seconds]
TheSeven has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
reinforce has joined #linux-sunxi
_whitelogger_ has joined #linux-sunxi
_whitelogger has quit [Ping timeout: 250 seconds]
<KotCzarny> catphish: there is a reason people should look for support level particular soc has
<KotCzarny> even if it has brazillion of cores
<KotCzarny> without software it's a doorstep
tl_lim has quit [Read error: Connection reset by peer]
foxx_ has joined #linux-sunxi
nuuuciano__ has joined #linux-sunxi
nuuuciano_ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #linux-sunxi
reinforce has quit [Ping timeout: 250 seconds]
reinforce has joined #linux-sunxi
aballier has quit [Ping timeout: 250 seconds]
aballier has joined #linux-sunxi
kevans91 has quit [Ping timeout: 250 seconds]
IgorPec has joined #linux-sunxi
Putti has joined #linux-sunxi
IgorPec has quit [Ping timeout: 250 seconds]
IgorPec has joined #linux-sunxi
Net147 has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
freemangordon has joined #linux-sunxi
<catphish> KotCzarny: well indeed, though linux is always supported in some manner at least
kever has quit [Quit: No Ping reply in 180 seconds.]
kever has joined #linux-sunxi
BenG83 has joined #linux-sunxi
aalm has quit [Ping timeout: 250 seconds]
aalm has joined #linux-sunxi
<plaes> "supported" by BSP :)
<plaes> and sometimes BSP does lots of hacks, for example H6 and PCIe
<jernej> plaes: IIRC someone said that H6 PCIe issue is not really an issue on one of the BSD variant. So I guess it depends how kernel is designed.
<plaes> oh
<jernej> but yes, they have to put some hacks in place for Linux.
<BenG83> NetBSD has kind of working PCIe
<BenG83> it's still wip
dev1990 has quit [Quit: Konversation terminated!]
clemens3 has joined #linux-sunxi
victhor has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
dddddd has joined #linux-sunxi
kever has quit [Quit: No Ping reply in 180 seconds.]
kever has joined #linux-sunxi
rej has quit [Quit: Obviously a major malfunction.]
rej has joined #linux-sunxi
MoeIcenowy has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
MoeIcenowy has joined #linux-sunxi
lkcl has quit [Ping timeout: 246 seconds]
Gerwin_J has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
JohnDoe_71Rus has joined #linux-sunxi
ganbold has quit [Quit: Leaving]
ganbold has joined #linux-sunxi
<catphish> BSP?
<catphish> my video output works nicely now, got a USB gamepad today so going to try to tackle OHCI
<plaes> catphish: BSP - board support package
<catphish> so those sometimes contain blobs and nastiness?
<plaes> yes
<catphish> how unpleasant :)
<KotCzarny> bsp - blobs & sleazy programming
<catphish> jernej: random side question, as you know HDMI much better than me, do you happen to know if it's possible to disable whatever negotiation HDMI does and just have it transmit blindly? it seems to me that despite setting all the parameters, it will still only work if there's a display connected during the init process
lurchi_ is now known as lurchi__
clemens3_ has joined #linux-sunxi
clemens3 has quit [Ping timeout: 250 seconds]
lurchi__ is now known as lurchi_
Rafael1980 has joined #linux-sunxi
IgorPec has joined #linux-sunxi
reinforce has joined #linux-sunxi
<jernej> catphish: I didn't try anything like that myself, but I think it should be possible. But now that I think about it, there is one parameter which gets calibrated when monitor is connected.
<jernej> I'm not sure how important it is to get it right...
<catphish> it's not hugely important, i was just hoping to improve startup times by removing unnecessary negotiation
<catphish> right now there's quite a long period (3 seconds maybe) between initializing the hdmi, and it fully negotiating with the display and showing a picture, not a huge problem, just a mild annoyance
Gerwin_J has quit [Quit: Gerwin_J]
lurchi_ has quit [Ping timeout: 240 seconds]
lurchi_ has joined #linux-sunxi
Putti has quit [Ping timeout: 246 seconds]
<BenG83> [ 0.062711] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
<BenG83> [ 1.246187] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PB10
<BenG83> trying to add some leds to my dts
<BenG83> &pio {
<BenG83> pins = "PB10","PB11","PB12","PB13";
<BenG83> leds_flash: led_pins {
<BenG83> function = "gpio_out";
<BenG83> };
<BenG83> };
<BenG83> where are those pins defined?
<plaes> this is old syntax
<plaes> oh wait
<BenG83> just copied that from another board dts more or less and changed it
<BenG83> I just want to set those pins as GPIO out
<BenG83> I have a led section then like
<BenG83> leds {
<BenG83> compatible = "gpio-leds";
<BenG83> pinctrl-0 = <&leds_flash>;
<BenG83> pinctrl-names = "default";
<BenG83> ...
<plaes> according to v3s oinctrl there's no P10 pin
<BenG83> PB10?
<plaes> bank B goes up to 9
<BenG83> heh
<BenG83> gotcha
<plaes> indeed :)
<BenG83> I actually have an S3
<BenG83> which is V3s in a different package
<BenG83> apparently S3 has some more pins on PB
<plaes> okay.. :)
<plaes> fun
<BenG83> that's the first difference I noticed
<BenG83> guess it's time to actually add S3 support
<plaes> when did you buy this one?
<BenG83> S3 will replaced V3s
<BenG83> it's on Pine's CUBE board
<BenG83> it's basically V3s in a BGA package
<BenG83> apparently it has some port port pins
<BenG83> just compared the other ports
<BenG83> the locations are the same as V3s
<BenG83> it just has some more physical pins available on some ports
<plaes> yeah, saw that
<BenG83> Pine Cube is basically a S3 camera board/dev kit
<BenG83> most stuff works out of the box with the V3s driver support
<BenG83> just writing a board dts for it
lkcl has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
Nyuutwo has quit [Read error: No route to host]
Nyuutwo has joined #linux-sunxi
aballier has quit [Ping timeout: 240 seconds]
xerpi has joined #linux-sunxi
kever has quit [Quit: No Ping reply in 180 seconds.]
aballier has joined #linux-sunxi
kever has joined #linux-sunxi
AneoX has joined #linux-sunxi
IgorPec has joined #linux-sunxi
willmore has quit [Ping timeout: 250 seconds]
<catphish> is there a good way to debug allwinner socs? jtag? i'm not very familiar with on chip debugging at all
<plaes> so far for me it's printf + serial
<plaes> although, some people have managed to get jtag going
<catphish> i use printf+serial, it works, but it feels a bit silly sometimes
dev1990 has joined #linux-sunxi
<BenG83> for bare-metal jtag probably makes sense
kaspter has quit [Read error: Connection reset by peer]
<catphish> i've never actually used a jtag, i should learn how it works
AneoX_ has joined #linux-sunxi
kaspter has joined #linux-sunxi
AneoX has quit [Ping timeout: 250 seconds]
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 246 seconds]
clemens3_ has quit [Remote host closed the connection]
longsleep has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
longsleep has joined #linux-sunxi
ian_l has joined #linux-sunxi
<ian_l> Don't you need a special dongle for JTAG?
tllim has joined #linux-sunxi
<catphish> you certainly need a jtag interface device, so yeah
<BenG83> check what openocd supports
<BenG83> *openocd
<anarsoul> anything with ft2232 will do
<BenG83> err catphish
<catphish> BenG83: cool, thanks, i'll take a look
<BenG83> I mostly used FT232H based interfaces
<catphish> so how does one use it, are there some dedicated (or shared) pins that can always take control of the device?
<catphish> so, one can use one sunxi to debug another, thats cool
<catphish> or just about any mcu?
<ian_l> Whats the newest allwinner chip?
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
<ian_l> Does allwinner have any Cortex A-15 chips?
<BenG83> A80 I think?
<BenG83> 'newest' is probably H6
random_yanek has quit [Ping timeout: 250 seconds]
<beeble> yes A80, but EOL
<BenG83> A80 was not very popular
<catphish> i didn't know ac97 wasn't supported
<catphish> no hdmi audio either, that seems odd
<catphish> glad to see h3 is well loved
<ian_l> Blerg, it's hard to get SBCs in canada
<fALSO> import from chiba
<fALSO> china
<catphish> ian_l: china
<fALSO> is where most of them are made
<catphish> pay for dhl delivery, it won't take too long
<fALSO> aliexpress
<fALSO> etc
anarsoul has quit [Ping timeout: 240 seconds]
<ian_l> huh
<ian_l> maybe will try
<ian_l> I want something with an H3/6
<catphish> buy an orange pi from china
<catphish> "orange pi one", very cheap h3
<catphish> or there are some slightly better versions, see the list at http://linux-sunxi.org/Table_of_Allwinner_based_boards
random_yanek has joined #linux-sunxi
<catphish> https://www.aliexpress.com/item/Orange-Pi-One-ubuntu-linux-and-android-mini-PC-Beyond-and-Compatible-with-Raspberry-Pi-2/32603308880.html?spm=2114.search0104.3.1.5d6d34a9qI1Mx2&ws_ab_test=searchweb0_0,searchweb201602_2_10065_10068_10130_10547_319_317_10548_10696_10192_10190_453_10084_454_10083_10618_10307_10820_10301_10821_538_10303_537_536_10059_10884_10887_100031_321_322_10103,searchweb201603_6,ppcSwitch_0&algo_expid=0ce4d4cc-cb1c-4957-af
<catphish> 9c-cf2877a137c4-0&algo_pvid=0ce4d4cc-cb1c-4957-af9c-cf2877a137c4
<catphish> buy a couple, pay for dhl shipping :)
<catphish> give one to a boyfriend
<fALSO> is this normal?
<fALSO> [ 10.706138] sun4i-codec 1c22c00.codec: ASoC: codec-analog@1f015c0 not registered
<fALSO> [ 10.720601] sun4i-codec 1c22c00.codec: Failed to register our card
<fALSO> i have a bunch of those on dmesg, and alsamixer doesnt seem to work
<fALSO> just noticed that now
<aalm> no, hacking on arm soc and having a boyfriend is not normal, but ok np. :]
<fALSO> ahh it seems that the audio isnt yet supported
<ian_l> If I had a girlfriend I would throw sbcs in her face for days
<fALSO> =)
<catphish> my wife is surprisingly disinterested in hacking SoCs :(
<miasma> hmm have they updated the product images? those look quite good
<catphish> the prange pis?
<miasma> yea
<miasma> some models used to have one crappy low res pic
<catphish> oh, ok, i guess they took new photos then
<catphish> they look great now
<miasma> the situation is a lot better overall now :) when I bought my first opi pc, there was no support at all. it didn't even boot
<jernej> fALSO: Analog audio on H3 work just fine with 4.20 (maybe also with earlier kernels, idk). Do you have CONFIG_SND_SUN8I_CODEC_ANALOG=y in config?
<fALSO> maybe not
<fALSO> going to check it out jernej !
Mr__Anderson has joined #linux-sunxi
<ian_l> So how does the uh, CPUS entry register work if you change the VBASE?
<catphish> do the allwinners have 2 sound cores? i see "ac97" and "audio codec"
<ian_l> I've done some RE on the boot rom
<ian_l> but I guess the assume that you're still using the high vectors
<catphish> ian_l: you got any code running on your board yet?
<ian_l> Yeah
<ian_l> I have uart, and can unleash cores from both clusters
<catphish> cool
<catphish> one thing i haven't worked out yet is how to boot additional cores
<catphish> i guess it's just a matter of powering them on, and issuing an interrupt
<ian_l> yeah its a bit strange
<catphish> but haven't tried yet, wanted to attack USB first
<ian_l> if you're using the high vectors (0xffff0000)
<ian_l> I think they might get put into WFE mode
<ian_l> WFI*
<ian_l> and which point you can put a pointer in 0x01f01da4 to their entry point
<ian_l> but I just switched the vector base, so I believe they follow the reset vector
<catphish> i'll try to wake one at some point and see where it starts executing
<ian_l> My current plan of attack is:
<ian_l> 1. Try to get the DRAM controller up and running properly
<ian_l> 2. Write some code like prime95/lima-memtester
<ian_l> 3. Try to figure out how fast my h8 can go without fucking up
<fALSO> jernej, you rule! once again. it worked :-)
Putti has joined #linux-sunxi
NeuroScr has joined #linux-sunxi
ian_l has quit [Quit: Page closed]
<plaes> karlp: \o/ your issue has been fixed
<plaes> well, merged :)
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
foxx_ has quit [Ping timeout: 268 seconds]
Rafael1980 has quit [Ping timeout: 240 seconds]
nashpa has quit [Ping timeout: 250 seconds]
Rafael1980 has joined #linux-sunxi
Rafael1980 has quit [Ping timeout: 268 seconds]
* karlp cheers
nashpa has joined #linux-sunxi
anarsoul has joined #linux-sunxi
xerpi has quit [Ping timeout: 244 seconds]
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 240 seconds]
xerpi has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
NeuroScr has quit [Quit: NeuroScr]
NeuroScr has joined #linux-sunxi
lkcl has quit [Ping timeout: 246 seconds]
lkcl has joined #linux-sunxi
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 245 seconds]
IgorPec has quit [Ping timeout: 250 seconds]
apritzel_ has joined #linux-sunxi
ian_l has joined #linux-sunxi
ian_l has quit [Client Quit]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
reinforce has quit [Quit: Leaving.]
xerpi has quit [Remote host closed the connection]
xerpi has joined #linux-sunxi
anarsoul has quit [Remote host closed the connection]
anarsoul has joined #linux-sunxi
Net147 has quit [Ping timeout: 246 seconds]