Turl 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
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 248 seconds]
<smaeul> KotCzarny: yes, should be, unless the secure fuse is set. at least it works that way on a64/h5
dev1990_ has joined #linux-sunxi
jstein has quit [Remote host closed the connection]
dev1990 has quit [Ping timeout: 252 seconds]
fkluknav has quit [Ping timeout: 252 seconds]
gnufan has quit [Ping timeout: 252 seconds]
DonkeyHotei has quit [Read error: Connection reset by peer]
DonkeyHotei has joined #linux-sunxi
<DonkeyHotei> banana pi apparently has new a33 boards
ninolein has quit [Ping timeout: 265 seconds]
ninolein has joined #linux-sunxi
gnufan has joined #linux-sunxi
kaspter has joined #linux-sunxi
skiboy has joined #linux-sunxi
popolon has quit [Quit: WeeChat 2.0.1]
nixdork has quit [Quit: EliteBNC free bnc service - http://elitebnc.org/]
kloczek has joined #linux-sunxi
nixdork has joined #linux-sunxi
dh1tw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtf has quit [Ping timeout: 248 seconds]
kever has joined #linux-sunxi
jtf has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
tllim has joined #linux-sunxi
chomwitt has quit [Ping timeout: 265 seconds]
<smaeul> from the Linux driver patchset:
<smaeul> "Let me begin admitting that we are introducing yet another protocol to achieve same things as many existing protocols like ARM SCPI, TI SCI, QCOM RPM, Nvidia Tegra BPMP, and so on."
<smaeul> "This specification is to standardise and avoid (any further) fragmentation in the design of such interface by various vendors."
<smaeul> right here is the embodiment of https://xkcd.com/927/
gfa has quit [Quit: WeeChat 1.0.1]
nuuuciano__ has joined #linux-sunxi
nuuuciano_ has quit [Ping timeout: 240 seconds]
victhor has quit [Ping timeout: 252 seconds]
<anarsoul> smaeul: haha
nuuuciano__ has quit [Remote host closed the connection]
nuuuciano has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 252 seconds]
premoboss has quit [Remote host closed the connection]
hipboi has joined #linux-sunxi
hardfalcon1 has quit [Ping timeout: 252 seconds]
DonkeyHotei has quit [Remote host closed the connection]
danielg4 has joined #linux-sunxi
danielg4 is now known as DonkeyHotei
gnufan has quit [Ping timeout: 252 seconds]
TheSeven has quit [Ping timeout: 265 seconds]
gnufan has joined #linux-sunxi
kloczek has quit [Quit: kloczek]
<wens> lol
_whitelogger has joined #linux-sunxi
IgorPec has joined #linux-sunxi
TheSeven has joined #linux-sunxi
reinforce has joined #linux-sunxi
f0xx has joined #linux-sunxi
ocean1100 has joined #linux-sunxi
loganissb has joined #linux-sunxi
<ocean1100> hello?
<loganissb> S'up?
ocean1100 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
loganissb has quit [Client Quit]
ocean1100 has joined #linux-sunxi
<ocean1100> Ive met a matter that I cant use dvp camera on v3s
hardfalcon has joined #linux-sunxi
kloczek has joined #linux-sunxi
f0xx has quit [Ping timeout: 264 seconds]
hipboi has quit [Quit: This computer has gone to sleep]
hardfalcon1 has joined #linux-sunxi
hardfalcon has quit [Ping timeout: 272 seconds]
hipboi has joined #linux-sunxi
dave0x6d has quit [Quit: Connection closed for inactivity]
tllim has quit [Read error: Connection reset by peer]
tllim has joined #linux-sunxi
tl_lim has joined #linux-sunxi
<KotCzarny> smaeul: thing is, i have an arm-linux executable that loads and boots arisc blob
<KotCzarny> which works, but somehow i fail at setting mem contents in the blob (hacky config without msgbox)
<KotCzarny> in another news, anyone wants arm binary that does fake shutdown that turns off almost all soc subsystems and waits for gpio or ir button to wake
tllim has quit [Ping timeout: 272 seconds]
<KotCzarny> power draw is down to 40mA in that mode
<KotCzarny> probably i should hunt down more clocks/regs
tl_lim has quit [Read error: Connection reset by peer]
<anarsoul> KotCzarny: what soc?
<KotCzarny> h3
<KotCzarny> but can be modified for any arisc capable one
<anarsoul> so does it mean working suspend on mainline kernel?
<KotCzarny> not suspend, it's emulating 'poweroff' functionality
<anarsoul> oh, I see
<KotCzarny> it can be modified to restore clocks, but again, might be tricky with mainline atf
<anarsoul> so why not to cut power using axp?
<KotCzarny> H3
<KotCzarny> ;)
hardfalcon has joined #linux-sunxi
hardfalcon1 has quit [Ping timeout: 256 seconds]
<KotCzarny> for suspend i suspect one could try modifying atf to set/unset supesuspend flag on some hw event
<KotCzarny> *supersuspend
chlorine has joined #linux-sunxi
chlorine has quit [Ping timeout: 248 seconds]
hardfalcon has quit [Ping timeout: 248 seconds]
Putti has joined #linux-sunxi
nuuuciano has quit [Ping timeout: 252 seconds]
<smaeul> KotCzarny: what do you mean "setting mem contents in the blob"?
<smaeul> like you're trying to modify the arisc binary from arm?
<smaeul> while it's running or something?
<smaeul> and by blob do you mean aw's blob or something you made?
<KotCzarny> no, i wrote arisc program, compiled it, then i'm adding it as a blob to arm-linux binary, which then loads and boots arisc
<KotCzarny> i write the blob from linux at 0x40000 (48kB)
<KotCzarny> i've also written test code to write 1 word at every kB in the arm-linux loader, but then when i read that mem from arisc it doesnt seem to show written values
<KotCzarny> fw works, so it's not a problem with writing mem
<KotCzarny> maybe arisc program does something to available mem
<smaeul> and you're aware that 0x40000-0x50000 is mapped to 0x00000-0x10000 in arisc address space?
<KotCzarny> oh.
<KotCzarny> figures.
<KotCzarny> big thanks!
<smaeul> because the reset vector / exception vectors have to be at zero :)
<KotCzarny> is there some arisc docs?
<smaeul> see memory map in https://linux-sunxi.org/AR100
<KotCzarny> pity i didnt ask you yesterday, lost few hours trying to make it work
<smaeul> what kind of docs are you looking for? https://openrisc.io/or1k.html is the manual for the architecture, handles exceptions/timer/SPRs pretty well
<KotCzarny> well, any allwinner specification/gotchas
<smaeul> the source code for their blob is in an encrypted tarball in the sdk :P
<smaeul> there's not really any docs about the arisc itself
<smaeul> https://github.com/skristiansson/ar100-info exists, but its method of detecting instructions doesn't catch broken ones
<smaeul> nothing really relevant unless you're doing assembly
<smaeul> one thing: to get the best code size (and this is what allwinner does), you have to use the original gcc 3.4 openrisc port: http://archive.tcltk.co.kr/files/misc/or32/crosschain/sites/www.meansoffreedom.com/index.html
fkluknav has joined #linux-sunxi
<smaeul> but if you're not short on space, the newer or1k-gcc works fine
<KotCzarny> yeah, using 5.3.0
hardfalcon has joined #linux-sunxi
fkluknav has quit [Ping timeout: 248 seconds]
IgorPec has quit [Ping timeout: 252 seconds]
IgorPec has joined #linux-sunxi
IgorPec has quit [Ping timeout: 248 seconds]
chlorine_ has joined #linux-sunxi
quard has quit [Quit: WeeChat 1.9.1]
Putti has quit [Remote host closed the connection]
SP7RT has quit [Ping timeout: 248 seconds]
kloczek has quit [Quit: kloczek]
kaspter has quit [Quit: kaspter]
kever has quit [Ping timeout: 256 seconds]
chlorine has joined #linux-sunxi
chlorine_ has quit [Ping timeout: 240 seconds]
chlorine has quit [Ping timeout: 248 seconds]
<KotCzarny> hmm
<KotCzarny> smaeul: weird as it is, writing to 48kB-4 works as expected, but for -8 and -12 i get a 0
Nyuutwo is now known as Nyuu
<KotCzarny> since what i'm doing is a hack, do you know how is arisc program started? does it clean mem or doing anything weird?
yann has joined #linux-sunxi
luoyi has joined #linux-sunxi
<KotCzarny> hmm, something writes to that area
<KotCzarny> could be gcc allocates ram from the end
<KotCzarny> last 256bytes of mem is used for something, stack?
AndroUser2 has joined #linux-sunxi
<AndroUser2> Hi all
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
AndroUser2 is now known as boltthriwer
victhor has joined #linux-sunxi
boltthriwer is now known as boltthrower
victhor has quit [Remote host closed the connection]
victhor has joined #linux-sunxi
<buZz> does H3 have DMA for SPI?
<ocean1100> anyone use dvp camera on v3s ?
Hao has joined #linux-sunxi
<lurchi__> buZz: since 4.12, but some parts are only fixed in 4.15
chlorine has joined #linux-sunxi
scream has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
chlorine_ has quit [Remote host closed the connection]
chlorine_ has joined #linux-sunxi
chlorin__ has joined #linux-sunxi
chlorine has quit [Read error: Connection reset by peer]
BenG has joined #linux-sunxi
BenG is now known as Guest94473
BenG83 has quit [Ping timeout: 240 seconds]
chlorine has joined #linux-sunxi
chlorine_ has quit [Ping timeout: 264 seconds]
chlorin__ has quit [Read error: Connection reset by peer]
dh1tw has joined #linux-sunxi
skiboy has quit [Quit: Leaving]
Guest94473 is now known as BenG83_
scream has quit [Remote host closed the connection]
BenG83 has joined #linux-sunxi
dave0x6d has joined #linux-sunxi
<boltthrower> Quick question can you install nethunter on Samsung galaxy s8
<KotCzarny> wrong channel?
<boltthrower> Ok thanks
Hao has quit [Ping timeout: 256 seconds]
kloczek has joined #linux-sunxi
hipboi has quit [Quit: This computer has gone to sleep]
hardfalcon has quit [Ping timeout: 265 seconds]
chlorine has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
hipboi has joined #linux-sunxi
hardfalcon has joined #linux-sunxi
luoyi has quit [Ping timeout: 260 seconds]
chlorine has quit [Remote host closed the connection]
luutifa has joined #linux-sunxi
<luutifa> Anybody familiar with H5 willing to walk me through a bit how to build and set up a kernel for Orange Pi Prime (H5, and kernel for Gentoo). Like patching HDMI support (or using the armbian repos) and configuring the device tree and U-boot stuff? I know it's a lot to ask but because I'm not too experienced with how it works this deep under the hood, it's kinda what I have to do...
chlorine has joined #linux-sunxi
f0xx has joined #linux-sunxi
chlorine has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
akaWolf has quit [Quit: leaving]
akaWolf has joined #linux-sunxi
kaspter has joined #linux-sunxi
boltthrower has quit [Ping timeout: 268 seconds]
akaWolf has quit [Quit: leaving]
akaWolf has joined #linux-sunxi
akaWolf has quit [Client Quit]
boltthrower has joined #linux-sunxi
hipboi has quit [Quit: This computer has gone to sleep]
akaWolf has joined #linux-sunxi
BenG83_ has quit [Quit: Leaving]
chlorine has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
qeed has quit [Quit: Leaving]
boltthrower has quit [Ping timeout: 248 seconds]
elros_ has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
skiboy has joined #linux-sunxi
my123 has quit [Ping timeout: 248 seconds]
chlorine has quit [Remote host closed the connection]
petr has quit [Ping timeout: 265 seconds]
dave0x6d has quit [Quit: Connection closed for inactivity]
reinforce has quit [Quit: Leaving.]
petr has joined #linux-sunxi
chlorine has joined #linux-sunxi
popolon has joined #linux-sunxi
dh1tw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aalm has quit [Ping timeout: 268 seconds]
chlorine_ has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
Poeticide is now known as Poeticode
reinforce has joined #linux-sunxi
my123 has joined #linux-sunxi
my123 has quit [Changing host]
my123 has joined #linux-sunxi
xes has joined #linux-sunxi
elros_ has quit [Quit: Communi 3.5.0 - http://communi.github.com]
chlorine_ has quit [Ping timeout: 264 seconds]
<smaeul> // set stack top
<smaeul> l.ori r1,r0,0xbffc
<smaeul> This actually leaves the top 4 bytes unused, because all stack access on or1k happens *below* the stack pointer, not *at* the stack pointer
<KotCzarny> mmmm, asm
<smaeul> r1 is the stack pointer
<KotCzarny> my brain can't grok the asm, too much pointers to remember at once
<smaeul> add `-Wl,-Map,arisc-fw.map` to your linker command line
<smaeul> that will tell you where in memory all of your functions/globals are
<KotCzarny> can i just arbitrarily lower that stack top?
<smaeul> the stack location isn't controlled by gcc though, it has to be set in asm, but that's arbitrary
<KotCzarny> in case i would need few bytes for more config?
<smaeul> yes, as long as you don't overlap anything
<smaeul> which you shouldn't use more than a couple hundred bytes of stack
<smaeul> look at the map file (generated by that option above) to find the end of your program data
nashpa has quit [Ping timeout: 264 seconds]
<KotCzarny> umkay, while you are here, i cant toggle PA15, do i have to turn on some gate/de-assert some reset line?
<KotCzarny> PL10 is ok, but it's on different bank
<smaeul> so even dropping it to 0x8000 should be fine (I just built https://github.com/Icenowy/h3-arisc-shutdown, and it ends at 0x538c)
nashpa has joined #linux-sunxi
<smaeul> you have to turn on the main port i/o controller, yes
<smaeul> port L is on the R_PIO instead of the normal one
<KotCzarny> hooray, another obscure magic numbers hunt
<KotCzarny> :)
<KotCzarny> one nice thing i've added is dumping current regs on ir button
<smaeul> #define CLK_BUS_PIO 54
<KotCzarny> so i can quickly check which bits are toggled already
<smaeul> (from Linux source)
<KotCzarny> what is base for that clk?
<KotCzarny> s/clk/reg/
<smaeul> bit 5 in gating register 2
<smaeul> in the main ccu
<KotCzarny> BUS_CLK_GATING_REG2 from pdf? (CCU_BASE+0x0068)
<KotCzarny> BUS_CLK_GATING_REG2: 0x00000100 (0000 0000 0000 0000 0000 0001 0000 0000)
scream has joined #linux-sunxi
<KotCzarny> umkay, seems i dont have it enabled
nuuuciano has joined #linux-sunxi
hardfalcon has quit [Ping timeout: 252 seconds]
hardfalcon has joined #linux-sunxi
kelvan has quit [Remote host closed the connection]
kelvan has joined #linux-sunxi
<KotCzarny> thanks again smaeul, i've found a bug from my earlier function that overwrote that register, now i have red led too for signalling :)
hardfalcon has quit [Ping timeout: 265 seconds]
nuuuciano has quit [Ping timeout: 240 seconds]
tllim has joined #linux-sunxi
hardfalcon has joined #linux-sunxi
f0xx has quit [Ping timeout: 248 seconds]
nuuuciano has joined #linux-sunxi
elros_ has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 265 seconds]
Putti has joined #linux-sunxi
bonbons has joined #linux-sunxi
Ntemis has joined #linux-sunxi
kloczek has quit [Ping timeout: 265 seconds]
IgorPec has quit [Quit: Nettalk6 - www.ntalk.de]
IgorPec has joined #linux-sunxi
gnufan has quit [Ping timeout: 265 seconds]
Ntemis has quit [Remote host closed the connection]
gnufan has joined #linux-sunxi
gnufan has quit [Ping timeout: 264 seconds]
tl_lim has quit [Ping timeout: 265 seconds]
CC0422 has joined #linux-sunxi
gnufan has joined #linux-sunxi
tl_lim has joined #linux-sunxi
hardfalcon has quit [Ping timeout: 248 seconds]
aalm has joined #linux-sunxi
vagrantc has joined #linux-sunxi
GrimKriegor has quit [Read error: Connection reset by peer]
gnufan has quit [Ping timeout: 265 seconds]
tl_lim has quit [Ping timeout: 265 seconds]
my123 has quit [Ping timeout: 260 seconds]
tl_lim has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
GrimKriegor has joined #linux-sunxi
gnufan has joined #linux-sunxi
anarsoul has quit [Remote host closed the connection]
dave0x6d has joined #linux-sunxi
hardfalcon has joined #linux-sunxi
hardfalcon has quit [Ping timeout: 265 seconds]
kloczek has joined #linux-sunxi
CC0422 has quit [Quit: -a- IRC for Android 2.1.38]
vagrantc has quit [Quit: leaving]
scream has quit [Remote host closed the connection]
akaizen has quit [Quit: Textual IRC Client: www.textualapp.com]
akaizen has joined #linux-sunxi
kloczek has quit [Ping timeout: 265 seconds]
TheSeven has quit [Ping timeout: 265 seconds]
TheSeven has joined #linux-sunxi
dh1tw has joined #linux-sunxi
chomwitt has joined #linux-sunxi
fkluknav has joined #linux-sunxi
vagrantc has joined #linux-sunxi
tl_lim has quit [Ping timeout: 265 seconds]
tl_lim has joined #linux-sunxi
fkluknav has quit [Ping timeout: 265 seconds]
lioka has quit [Quit: leaving]
reinforce has quit [Quit: Leaving.]
swiftgeek has quit [Ping timeout: 264 seconds]
swiftgeek has joined #linux-sunxi
dev1990_ has quit [Quit: Konversation terminated!]
dev1990_ has joined #linux-sunxi
dev1990_ has quit [Client Quit]
dev1990_ has joined #linux-sunxi
<DonkeyHotei> mirko: you mentioned you have an orange pi zero?
dev1990_ is now known as dev1990
dev1990_ has joined #linux-sunxi
dev1990 has quit [Client Quit]
dev1990_ has quit [Client Quit]
dev1990 has joined #linux-sunxi
anarsoul has joined #linux-sunxi
dh1tw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mirko> DonkeyHotei: ack
<BenG83> anyone attending 34c3 congress?
<DonkeyHotei> mirko: does it do anything in usb gadget mode?
gnufan has quit [Quit: Leaving.]
tl_lim has quit [Read error: Connection reset by peer]
tl_lim has joined #linux-sunxi
elros_ has quit [Quit: Communi 3.5.0 - http://communi.github.com]
tl_lim has quit [Ping timeout: 265 seconds]
tl_lim has joined #linux-sunxi
hardfalcon has joined #linux-sunxi
yann has quit [Ping timeout: 260 seconds]
Putti has quit [Ping timeout: 256 seconds]
merlin1991 has joined #linux-sunxi
IgorPec has quit [Ping timeout: 248 seconds]
ocean1100_ has joined #linux-sunxi
ocean1100 has quit [Ping timeout: 248 seconds]
<merlin1991> I've converted sun7i-a20-olinuxino-lime.dts to use axp209.dtsi instead of the partial axp209 node, now I've enabled and tested ac_power_supply and battery_power_supply but I'm not so sure about usb_power_supply
<merlin1991> what would be correct tree to get those changes into mainline?
hardfalcon has quit [Ping timeout: 256 seconds]
BenG83 has quit [Ping timeout: 264 seconds]
tl_lim has quit [Ping timeout: 265 seconds]
tl_lim has joined #linux-sunxi
BenG83 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]