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
IRCFrEAK has joined #linux-sunxi
IRCFrEAK has left #linux-sunxi [#linux-sunxi]
BenG83_PB has quit [Remote host closed the connection]
swiftgeek has joined #linux-sunxi
<swiftgeek> is mtest from uboot working continuously or is it supposed to end at some point in time?
BenG83_PB has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
<ssvb> beeble: the only problem with dm is that it is gradually creeping into the SPL and increasing the code size
swiftgeek has quit [Quit: WeeChat 1.7]
swiftgeek has joined #linux-sunxi
chomwitt has quit [Ping timeout: 268 seconds]
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 240 seconds]
swiftgeek has quit [Quit: WeeChat 1.7]
swiftgeek has joined #linux-sunxi
jernej has quit [Ping timeout: 255 seconds]
paulk-collins has quit [Quit: Leaving]
Ntemis has joined #linux-sunxi
BenG83 has quit [Quit: Leaving]
apritzel has quit [Ping timeout: 255 seconds]
cnxsoft has joined #linux-sunxi
swiftgeek has quit [Ping timeout: 255 seconds]
ganbold has joined #linux-sunxi
<wens> MoeIcenowy: yes it can work without OOB interrupt
ninolein_ has joined #linux-sunxi
ninolein has quit [Ping timeout: 268 seconds]
<wens> MoeIcenowy: SDIO supports inband interrupts
<wens> and the oob interrupt for the brcmfmac binding is optional
<MoeIcenowy> wens: yes I misread the source code
<MoeIcenowy> but when someday we have properly interrupt-controller support for axp-gpio, should we add the OOB interrupt back?
<MoeIcenowy> (I don't think such a interrupt via an I2C device is proper
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
<wens> the driver also has to support it
<wens> i don't think it does for all chips
<wens> so you really have to test it
<wens> I2C?
<wens> what has I2C have to do with it?
<MoeIcenowy> AXP221s is an I2C device
<MoeIcenowy> after you got the interrupt on NMI
<wens> oh
<MoeIcenowy> it's still needed to check with AXP221s to get which interrupt is it
<wens> well, it's doable :)
<wens> the irqchip core handles chained interrupts for you
<MoeIcenowy> but I doubt whether it's worth
<wens> no need to sweat it
<wens> maybe they ran out of pins with EINT?
<wens> iirc R40 has only 1 bank of EINT
<wens> and i think someone said PI EINTs don't work on the A20
<MoeIcenowy> there's still unsed PH pins
<wens> iirc not all PH pins have EINT?
<MoeIcenowy> and they even used PH2{0,1,2} for LEDs
<wens> or maybe its just a routing issue
<wens> who knows
<MoeIcenowy> the unused PH pins do have EINT
<MoeIcenowy> maybe routing issue
Ntemis has quit [Remote host closed the connection]
victhor has quit [Ping timeout: 260 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
dr1337 has joined #linux-sunxi
lkcl has joined #linux-sunxi
pg12 has quit [Ping timeout: 260 seconds]
pg12 has joined #linux-sunxi
terra854 has joined #linux-sunxi
techping has joined #linux-sunxi
ErwinH has joined #linux-sunxi
ErwinH has quit [Ping timeout: 260 seconds]
techping has quit [Remote host closed the connection]
techping has joined #linux-sunxi
techping has quit [Remote host closed the connection]
lkcl has quit [Ping timeout: 255 seconds]
JohnDoe_71Rus has joined #linux-sunxi
[7] has quit [Ping timeout: 240 seconds]
TheSeven has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
lurchi_ has quit [Read error: Connection reset by peer]
reinforce has joined #linux-sunxi
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
jernej has quit [Read error: Connection reset by peer]
jernej_ has joined #linux-sunxi
lkcl has joined #linux-sunxi
jernej_ has quit [Read error: Connection reset by peer]
jernej_ has joined #linux-sunxi
jernej has joined #linux-sunxi
vishnup has quit [Ping timeout: 268 seconds]
jernej_ has quit [Ping timeout: 255 seconds]
f0xx has joined #linux-sunxi
jernej has quit [Ping timeout: 255 seconds]
clonak_ has quit [Ping timeout: 240 seconds]
orly_owl has quit [Ping timeout: 240 seconds]
IgorPec has joined #linux-sunxi
massi has joined #linux-sunxi
leviathan has joined #linux-sunxi
IgorPec has quit [Ping timeout: 260 seconds]
clonak has joined #linux-sunxi
msevwork has joined #linux-sunxi
IgorPec4 has joined #linux-sunxi
orly_owl has joined #linux-sunxi
techping has joined #linux-sunxi
lemonzest has joined #linux-sunxi
nemunaire has joined #linux-sunxi
dr1337 has quit [Quit: Page closed]
IgorPec4 has quit [Ping timeout: 260 seconds]
chlorine has joined #linux-sunxi
IgorPec has joined #linux-sunxi
techping has quit [Ping timeout: 260 seconds]
techping has joined #linux-sunxi
huawei has joined #linux-sunxi
f0xx has quit [Ping timeout: 260 seconds]
Gerwin_J has joined #linux-sunxi
BenG83_PB has quit [Quit: Leaving]
chlorine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IgorPec4 has joined #linux-sunxi
tkaiser has joined #linux-sunxi
<tkaiser> Has anyone here looked into pin-to-pin compatibility of H5 and H3?
f0xx has joined #linux-sunxi
<tkaiser> BPi folks claim it would be possible to exchange them (on the only board out there where the vendor forgot voltage regulation and the SoC will be fed with 1.3V all the time): http://forum.banana-pi.org/t/bpi-m2-module-with-allwinner-h2-h5-chip-design/2907
zunway_ has joined #linux-sunxi
huawei has quit [Ping timeout: 240 seconds]
pietrushnic has quit [Ping timeout: 260 seconds]
IgorPec4 has quit [Ping timeout: 268 seconds]
f0xx has quit [Ping timeout: 260 seconds]
f0xx has joined #linux-sunxi
pietrushnic has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 240 seconds]
zunway__ has joined #linux-sunxi
cnxsoft1 is now known as cnxsoft
tkaiser has quit [Ping timeout: 260 seconds]
Andy-D has quit [Ping timeout: 268 seconds]
zunway_ has quit [Ping timeout: 260 seconds]
leviathan has quit [Remote host closed the connection]
florianH has joined #linux-sunxi
tkaiser has joined #linux-sunxi
interrobangd has joined #linux-sunxi
IgorPec4 has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Client Quit]
dave0x6d has quit [Quit: Connection closed for inactivity]
paulk-collins has joined #linux-sunxi
ganbold has quit [Ping timeout: 260 seconds]
IgorPec4 has quit [Ping timeout: 240 seconds]
<MoeIcenowy> tkaiser: in the schematics it's 1.2V, but ...
<MoeIcenowy> and the pin exchange ability is anaylzed on linux-sunxi.org/H5
<tkaiser> MoeIcenowy: Schematics are wrong (confirmed by themselve)
<MoeIcenowy> yes...
<rellla> MoeIcenowy: scary movie is over :p
<MoeIcenowy> Thanks...
pg12 has quit [Ping timeout: 240 seconds]
pg12 has joined #linux-sunxi
chlorine has joined #linux-sunxi
fkluknav has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
leviathancn has joined #linux-sunxi
chlorine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
afaerber has joined #linux-sunxi
wzyy2 has quit [Ping timeout: 268 seconds]
techping has quit [Remote host closed the connection]
cajg_ has joined #linux-sunxi
cajg has quit [Ping timeout: 260 seconds]
zunway__ is now known as zunway
wzyy2 has joined #linux-sunxi
zunway has quit [Ping timeout: 240 seconds]
lkcl has quit [Remote host closed the connection]
lkcl has joined #linux-sunxi
matthias_bgg_ has joined #linux-sunxi
indy has quit [Ping timeout: 260 seconds]
chlorine has joined #linux-sunxi
cubietruck_user has joined #linux-sunxi
<cubietruck_user> Hi has someone enabled successfully CVBS on cubietruck with sun4i-drm ?
chlorine has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swiftgeek1 has joined #linux-sunxi
BenG83 has joined #linux-sunxi
<oliv3r> Hey, anybody looked at the exten pin of the AXP209 and the olinuxino lime2?
<oliv3r> i'm adding it as a AXP_DESC_SW to the regulator, but i'm a bit puzzled
chlorine has joined #linux-sunxi
chlorine has quit [Client Quit]
chlorine has joined #linux-sunxi
chlorine has quit [Client Quit]
chlorine has joined #linux-sunxi
BenG83_PB has joined #linux-sunxi
victhor has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
chlorine has quit [Quit: Textual IRC Client: www.textualapp.com]
chlorine_ has quit [Client Quit]
chlorine has joined #linux-sunxi
shadeslayer has joined #linux-sunxi
<shadeslayer> \o
BenG83 has quit [Ping timeout: 260 seconds]
<wens> oliv3r: what does it drive?
IgorPec has quit [Quit: Nettalk6 - www.ntalk.de]
IgorPec has joined #linux-sunxi
<shadeslayer> Hi, Could someone tell me which uboot file to flash for the pine64 from the multitude of files I get
<MoeIcenowy> what version are you trying?
<shadeslayer> git master
<shadeslayer> find says I don't have anything called u-boot-sunxi-with-spl.bin
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<MoeIcenowy> currently git master lacks ATF support.
<MoeIcenowy> you may try https://github.com/apritzel/u-boot branch sunxi64-beta
<shadeslayer> oh that's ok, I don't need the ethernet bits
<shadeslayer> I will be booting via the microsd card
<shadeslayer> just not sure which file to flash to the microsd card though and what offset
<MoeIcenowy> ATF support is necessary now
<shadeslayer> oh :(
<shadeslayer> ok
<shadeslayer> let me try that then
<shadeslayer> MoeIcenowy: where do I need to put the bl131.bin?
<MoeIcenowy> I think it's bl31.bin
<shadeslayer> I get FATAL ERROR: Couldn't open "bl31.bin": No such file or directory
<shadeslayer> right :)
<shadeslayer> where do I need to put that in the source tree?
<MoeIcenowy> put it right under your source code
<shadeslayer> ok
<oliv3r> wens: on the lime2, it turns the 3.3 and 5V power on/off
<MoeIcenowy> oliv3r: is it an GPIO?
<oliv3r> we ran into a problem here, that some combinations (gcc/kernel/module) not sure what it is, turns off the ext-en pin of the PMIC on reboot (it always does on power off)
<oliv3r> MoeIcenowy: no, but yes
indy has joined #linux-sunxi
<oliv3r> it behaves like one I guess, but only output
<MoeIcenowy> an axp gpio?
<oliv3r> but the axp manual calls it 'ext-en' and its in the table of dc-dc and ldo on/off
<MoeIcenowy> oh...
<oliv3r> bit 0
<oliv3r> but you can configure the output voltage like a gpio
<oliv3r> so its not, but it it it is?
chlorine_ has joined #linux-sunxi
<oliv3r> anyway, the lime's use it to switch an external LDO on/off (the 3.3V ldo)
chlorine_ has quit [Read error: Connection reset by peer]
<oliv3r> and the 1.8V ldo (I said 5V before, i was mistaken)
chlorine_ has joined #linux-sunxi
chlorine has quit [Read error: No route to host]
<shadeslayer> MoeIcenowy: ok done, still no u-boot-with-spl.bin
<oliv3r> actually, not and, only the 3.3V ldo
<MoeIcenowy> shadeslayer: flash spl/sunxi-spl.bin to 8K position of SD
<MoeIcenowy> then flash u-boot.itb to 40K
<shadeslayer> spl: could not find mmc device. error: -19
<shadeslayer> huh
<shadeslayer> I guess that works then :)
<oliv3r> ah it IS the 5V + 3.3V but the 5V only when powered via IPSOUT; anyhow, the 3.3V is the most critical voltage here :)
<shadeslayer> MoeIcenowy: from where can I start writing the partition table?
Ntemis has joined #linux-sunxi
<MoeIcenowy> partition table: of course it's in MBR ;-)
<shadeslayer> sure, but from where can I start a partition? how much space needs to be left before the first partition :)
<MoeIcenowy> 1MiB
<shadeslayer> thanks :)
<MoeIcenowy> but modern partitioners all reserve the 1MiB
<MoeIcenowy> so don't worry
<MoeIcenowy> you can check your hdd and usually the first partition start at 2048 sector -- 2048 * 512 = 1048576
<MoeIcenowy> on PC without the 1MiB GRUB cannot be installed ;-)
<buZz> for flash memory, 1MB alignments usually isnt what you want
<MoeIcenowy> buZz: ?
<oliv3r> buZz: but that depends ont he (e)MMC device used, and if they do have those high priority blocks and what size
<shadeslayer> and ... nothing
<shadeslayer> huh
<oliv3r> as not all devices work with 4MiB blocks
<oliv3r> etc etc
<shadeslayer> doesn't even tell me it can't find partitions
<shadeslayer> just ... nothing on UART
<MoeIcenowy> shadeslayer: SPL do not find partitions
<oliv3r> SPL doesn't know how to read partitions, so i'm not supprised
<MoeIcenowy> SPL only knows to read next level bootloader from 40KB position
<oliv3r> make sure to flash u-boot-sunxi-with-spl.bin
<buZz> oliv3r: yeah probably, its still something to be aware about
<oliv3r> (or flash both at the correct location
<oliv3r> buZz: oh i do agree with you; but it thus 'hugely depends'
<buZz> i wouldnt be suprised if eMMC would be 4mb sized
<shadeslayer> oliv3r: there is no u-boot-sunxi-with-spl.bin
<wens> oliv3r: sounds like a bug
<MoeIcenowy> shadeslayer: what you got?:
<oliv3r> i'd be supprised if standard mmc cards have these hp blocks; emmc I would expect to have them, but then it should be clearly in the datasheet
<MoeIcenowy> after Trying to boot from MMC1, nothing is continued?
<MoeIcenowy> how is your bl31.bin being built?
<oliv3r> wens: it is a hardware bug :)
<oliv3r> wens: ipsout -> ext-end -> 3.3V
<shadeslayer> MoeIcenowy: right, so I flashed : sudo dd if=u-boot.itb of=/dev/mmcblk0 bs=1k seek=40K conv=fsync
<shadeslayer> udo dd if=spl/sunxi-spl.bin of=/dev/mmcblk0 bs=1k seek=8K conv=fsync
<shadeslayer> make PLAT=sun50iw1p1 DEBUG=1 bl31
<oliv3r> wens: the 3.3V is then used as the IO voltage for the SoC; which in turn supplies the pull-up voltage for i2c
<shadeslayer> from the allwinner branch
<wens> it's like a gpio, but it should be linked to main power
<wens> no reason you should have to toggle it
<oliv3r> wens: if the 3.3V gets killed during reboot; u-boot is unable to bring up the board as it cannot communicate iwth the PMIC
<oliv3r> wens: well right now, ext-en is undefined
lkcl has quit [Ping timeout: 260 seconds]
<oliv3r> wens: so i figured i first add it as an always on regulator, no harm in doing that
<oliv3r> wens: and it's only the lime that has this odd use of it
<MoeIcenowy> shadeslayer: I think you added bonus "K", right?
<oliv3r> wens: but i'm having a hard time to reliably reproduce it (it depends on the build/gcc or something I haven't fully grasped yet)
swiftgeek1 is now known as swiftglitch
<MoeIcenowy> shadeslayer: nothing is displayed on UART at all? even no SPL banner?
<oliv3r> wens: anyway, i did find that it's not the AXP_POWER_OFF that gets called, so it's not a reboot call that walks some strange path
<MoeIcenowy> SPL banner is something like "U-Boot 2017.01-rc1-xxxxxx (Feb 16 2017 - 01:58:04 +0800) Allwinner Technology"
<MoeIcenowy> oh no it's not SPL banner
<MoeIcenowy> it's U-Boot banner
<MoeIcenowy> SPL banner is "U-Boot SPL 2017.01-rc1-xxx (Feb 16 2017 - 01:58:04)"
<oliv3r> wens: My next step was to get a binary with the bug, and trace out the i2c-0 data, see how it gets powered off; via the pin itself, or via a full pmic shutdown
<shadeslayer> MoeIcenowy: flashing without the K just gives me a CPU reset on UART
<shadeslayer>
<MoeIcenowy> please flashing without the bonus K.
<MoeIcenowy> flash with it just puts your binary at wrong position
<shadeslayer> that's what I did
<shadeslayer> sudo dd if=spl/sunxi-spl.bin of=/dev/mmcblk0 bs=1k seek=8 conv=fsync
<MoeIcenowy> this command for SPL is right
interrobangd has quit [Read error: Connection reset by peer]
<MoeIcenowy> then replace spl/sunxi-spl.bin with u-boot.itb, replace seek=8 with seek=40
<shadeslayer> yes, and for uboot : sudo dd if=u-boot.itb of=/dev/mmcblk0 bs=1k seek=40 conv=fsync
<wens> oliv3r: other boards also use it like this
<shadeslayer> I get this now https://paste.kde.org/pgvxfzale
<wens> but as i said, it should be default on (or high)
<MoeIcenowy> shadeslayer: please give a full log, not only the error part
cptG has joined #linux-sunxi
<shadeslayer> oh
<shadeslayer> MoeIcenowy: I was hoping it would drop into a u-boot shell
<jelle> 15
<MoeIcenowy> shadeslayer: what you give me is only a hang info
<MoeIcenowy> not helpful at all.
<shadeslayer> right I think its because the partition isn't formatted
<shadeslayer> hm, same thing after formatting it
<MoeIcenowy> apritzel: ^
cptG_ has quit [Ping timeout: 240 seconds]
* shadeslayer away for lunch
<shadeslayer> MoeIcenowy: is he even in this channel? :P
<MoeIcenowy> oh he's not here...
<MoeIcenowy> hope that he can see this
<shadeslayer> :)
<oliv3r> wens: ah, ok. well i think it's a hardware bug tbh. U-boot should always be able to bring a board up. If some OS, for whatever reason disables ext-en and reboots, u-boot can never bring the board back up, because it can't talk to the axp anymore
<oliv3r> wens: yeah so my first thought was to properly define the ext-en switch, and not leave it completly undefined
chlorine_ has quit [Remote host closed the connection]
tkaiser has quit [Quit: jIRCii - http://www.oldschoolirc.com]
<wens> oliv3r: well if you can't talk to the pmic, then you're not going to be able to bring it back anyway, even if you define exten
<MoeIcenowy> oliv3r: maybe this situation should be reported to Olimex
<oliv3r> wens: exactly, HW bug :p a board should have a tiny ldo to supply the 3.3v for the i2c bus
<oliv3r> MoeIcenowy: i have :) they trying to understand the problem however :)
komunista has joined #linux-sunxi
chlorine has joined #linux-sunxi
<wens> you should figure out why its getting disabled
<oliv3r> but to fix it in software, which we only can do for linux really
<oliv3r> wens: i agree
<wens> it's bit 0 of register 0x12
<oliv3r> but in my path to figuring it out, I figured it might as well be defined
<oliv3r> wens: yeah, or, the power_off bit of er
<beeble> what axp are you talking about? because most are used with RSB that is push-pull
<oliv3r> axp209
<oliv3r> which is still quite a common axp :)
<oliv3r> and doesn't have rsb
<oliv3r> but erm the other is bit7 of reg32
chomwitt has joined #linux-sunxi
<beeble> i see
<wens> oliv3r: that's the "power off" switch
<oliv3r> wens: yeah, i first thought it would be in that call; but alas
<oliv3r> anyhow, first i have to reproduce my setup for 5 weeks ago
<oliv3r> and I don't even know if u-boot is involved in any way
cnxsoft has quit [Remote host closed the connection]
chlorine has quit [Remote host closed the connection]
<oliv3r> before my holiday I spend most of the time pinpointing the problem (scope/multi-meter on pins to see why i was only getting a few letters of the SPL)
chlorine_ has joined #linux-sunxi
chlorine_ has quit [Remote host closed the connection]
yann-kaelig has joined #linux-sunxi
<shadeslayer> so, another question, when booting off a microsd card, what file does uboot read? because I put a boot.cmd in the first partition
<shadeslayer> and it doesn't seem to read that and starts poking the network
<BenG83_PB> uEnv.txt
<shadeslayer> doesn't seem to pick that up to
chlorine has joined #linux-sunxi
BenG83_PB has quit [Remote host closed the connection]
Pepe has quit [Read error: Connection reset by peer]
chlorine has quit []
Pepe has joined #linux-sunxi
BenG83_PB has joined #linux-sunxi
<shadeslayer> BenG83_PB: any ideas?
<MoeIcenowy> shadeslayer: boot.scr
<MoeIcenowy> a translated format from boot.cmd
<shadeslayer> oh ok
<shadeslayer> MoeIcenowy: would it search in /boot/ ?
<MoeIcenowy> I don't know...
<MoeIcenowy> I usually put boot.scr directly at the root of my first VFAT partition
<shadeslayer> ok :)
<MoeIcenowy> mkimage -C none -A arm -T script -d boot.cmd boot.scr # the command that convert boot.cmd to boot.scr
<MoeIcenowy> P.S. How do you finally solved the exception in SPL?
reinforce has quit [Quit: Leaving.]
JohnDoe_71Rus has joined #linux-sunxi
fl_0 has quit [Ping timeout: 240 seconds]
reinforce has joined #linux-sunxi
<shadeslayer> MoeIcenowy: I didn't, I used the boot0 method
<shadeslayer> boot0 + uboot 2017.03 rc
fl_0 has joined #linux-sunxi
BenG83_PB has quit [Quit: Leaving]
iamfrankenstein has joined #linux-sunxi
BenG83 has joined #linux-sunxi
matthias_bgg has quit [Quit: Leaving]
dave0x6d has joined #linux-sunxi
vinimac has joined #linux-sunxi
vishnup has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
msevwork has quit [Quit: Leaving]
LargePrime has quit [Ping timeout: 255 seconds]
<shadeslayer> MoeIcenowy: what's the kernel from sunxi that I should use for the Pine64 ?
<shadeslayer> for some reason booting with setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rw doesn't work
Pepe has quit [Read error: Connection reset by peer]
<MoeIcenowy> at least you should use linux-next or 4.11-rc
Pepe has joined #linux-sunxi
<ssvb> jemk: about the TOC0 header, how many of its data structures are required by the BROM? also is the bootloader code initially started in the 32-bit mode too?
<MoeIcenowy> jernej, mripard, wens: I think I should push some simplefb nodes dt patches for DE2 before real support landing in mainline U-Boot...
<MoeIcenowy> as it's kind of binding of usable graphics hardware...
lemonzest has quit [Quit: Leaving]
LargePrime has joined #linux-sunxi
leviathancn has quit [Ping timeout: 240 seconds]
swiftglitch has quit [Ping timeout: 268 seconds]
leviathancn has joined #linux-sunxi
fkluknav has quit [Ping timeout: 240 seconds]
akaizen has quit [Ping timeout: 276 seconds]
<jemk> ssvb: 32-bit mode, yes. the header field names are from debug information from their creation tool, so i don't know exactly what they mean.
<jemk> ssvb: the main magic and the ids are what the brom is using to detect the toc0 and distinguish the code/certificate
netlynx has joined #linux-sunxi
<ssvb> jemk: thanks, we could experiment with it a bit and update the wiki page
leviathancn has quit [Read error: Connection reset by peer]
<ssvb> jemk: I can finally solder an UART header to my Jide Remix Mini box PCB and play with it a bit :-)
<jemk> ssvb: offset and length are obviously used, and the run address is used to copy the code to. all other fields i don't know
IgorPec has quit [Ping timeout: 240 seconds]
<ssvb> too bad that it is not backwards compatible with the eGON.BT0 header
<ssvb> WTF were they thinking?
<jemk> ssvb: the strangest thing i wonder about is, why the hell did they use non-standard asn.1 encoded certificates and then ignore everything except the crucial parts, instead of just using some fixed length binary structures? (they expect fitting lengths in asn.1 anyways)
<willmore> beeble, FWIW as of last November sigrok supports protocol decoding for dual-SPI on FLASH.
IgorPec has joined #linux-sunxi
<ssvb> jem: would it make sense for board manufacturers to actually blow this efuse before selling the A64 boards? is it possible to write the private key there later if needed?
fkluknav has joined #linux-sunxi
<ssvb> if we end up having some boards in the wild booting only eGON.BT0 bootloaders, and the others booting only TOC0, then it's a freaking mess
<jemk> ssvb: i think keys can still be written, and if there isn't any lock bit they even can be 'deletet' again by writing them to all ones
<jemk> making it useless in terms of true secure boot
leviathancn has joined #linux-sunxi
<jemk> ssvb: and it increases boot time before spl quite a bit, so probably not the best idea to enable it all the time
leviathancn has quit [Client Quit]
<ssvb> how big is this boot time increase?
<ssvb> in fact, I was actually thinking about maybe making a bootable SD card image for sunxi-tools, which could be used to blow this efuse to "fix" nonconforming boards
<ssvb> then U-Boot could only care about supporting just TOC0
IgorPec has quit [Ping timeout: 240 seconds]
Andy-D has joined #linux-sunxi
leviathancn has joined #linux-sunxi
<jemk> i haven't measured the time, so add a might increase ;)
<ssvb> btw, can we maybe change the boot order via efuse (prefer SPI over MMC)? this would be a nice feature
<ssvb> of course if they implemented something like this in the BROM
<jemk> i don't think so, there are some efuse bits switching things (like software sha256 instead of ce), but the bootorder look fixed
fkluknav has quit [Ping timeout: 260 seconds]
<jemk> also, fel only is non-secure, which can be switched by smc, but i didn't succeed in returning back to fel after that switch, which could make our fel uboot a bit hard
<ssvb> so a signed bootloader is the right way to ensure booting it from eMMC/SPI and a measure to safeguard against rogue bootloaders on SD cards
<MoeIcenowy> ssvb: I don't think keeping in secure mode a good opinion
cubietruck_user has quit [Quit: Page closed]
<ssvb> jemk: but FEL boot still works fine if we have a 32-bit SPL running in non-secure mode, right?
<jemk> yes, as long as spl doesn't access secure-only things
<ssvb> 64-bit SPL brings us nothing other than code size problems
<ssvb> which secure things would that be? reading SID?
<ssvb> can we still access PMIC and initialize DRAM?
<jemk> sid, sram a2, smta, maybe some r_*, ...
<jemk> dram works, since i only tried on h3 -> no idea about pmic
<MoeIcenowy> r_rsb is defaultly non-secure
<MoeIcenowy> but can be switch to secure
<ssvb> FEL boot only needs DRAM to load data into it, switching to the secure mode can be done right after that
<ssvb> but we really need to access PMIC before initializing DRAM if we care about reliability on the Pine64 board
<jemk> we can always do a switch to secure and switch back before returning if we would need it i think
<ssvb> but you are saying that FEL is broken after switching back?
<ssvb> well, maybe we can try to fix/workaround this
<jemk> not if switching back, only if returning in secure mode
<ssvb> ok
<ssvb> does secure peripheral access toggling only work after booting via TOC0?
f0xx has quit [Ping timeout: 240 seconds]
<jemk> it works as soon as the secure fuse is burned, from storage and in fel, without the fuse it doesn't work
<jemk> i haven't found anything the brom would do to make it work, so maybe it really is the fuse
akaizen has joined #linux-sunxi
<MoeIcenowy> jemk: do you have the sBROM dump and compared with normal BROM?
<jemk> MoeIcenowy: its completely different and much bigger (~35KiB) and doesn't contain fel code
chlorine has joined #linux-sunxi
<jemk> the switch back to the normal brom for fel
<ssvb> I guess, MoeIcenowy probably means that the sBROM could toggle some magic bits in some HW registers to make the secure peripherals work properly
reinforce has joined #linux-sunxi
<ssvb> and this could make the difference that we are observing
<ssvb> do we have a comparison of a complete dump of all HW registers between eGON.BT0 and TOC0 boot?
BenG83 has quit [Quit: Leaving]
<jemk> they write to a lot of sysctrl bits, i tried some, but they didn't have the desired effect, most look more like some debugging, counting upwards after each step, setting bits depending on taken branches and so on
<jemk> didn't try dumping more than sysctrl yet
vinimac has quit [Quit: Saindo]
nove has joined #linux-sunxi
LargePrime has quit [Ping timeout: 260 seconds]
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
jernej has quit [Read error: Connection reset by peer]
jernej has joined #linux-sunxi
jernej_ has joined #linux-sunxi
jernej has quit [Ping timeout: 268 seconds]
LargePrime has joined #linux-sunxi
swiftglitch has joined #linux-sunxi
jernej_ has quit [Quit: Konversation terminated!]
simosx has joined #linux-sunxi
jernej_ has joined #linux-sunxi
jernej has joined #linux-sunxi
<jernej> MoeIcenowy: Why would you like to push simplefb patches? There will be no simplefb with DM video driver
jernej_ has quit [Ping timeout: 260 seconds]
jernej has quit [Quit: Konversation terminated!]
jernej has joined #linux-sunxi
<ssvb> jernej: will efifb be used instead?
<jernej> ssvb: I'm not really sure how everything works, but that's the idea. Is there any other platform which uses simplefb?
<jernej> anyway, I would prefer that DE2 bits are included in DT before I write driver, but this obviously won't happen
<ssvb> jernej: is there anything that you need from the DT that can't be derived from the SoC type? other than the LCD type and resolution.
<jernej> ssvb: No, but there is a lot of different details for different SoCs
popolon has quit [Ping timeout: 255 seconds]
<jernej> ssvb: For example, H5 and H3 doesn't have TCON1 gating/reset, but A64 and A83T do
<jernej> ssvb: similary, HDMI is on TCON0 for A series, but on TCON1 for H series
<jernej> ssvb: which leds to pretty ugly ifdefs
<jernej> ssvb: Maybe I will try with platform data with DM, at least until DT bits land
<jernej> ssvb: So there will be ifdefs only on one place
massi has quit [Remote host closed the connection]
f0xx has joined #linux-sunxi
BenG83_PB has joined #linux-sunxi
<ssvb> jernej: you can avoid ugly ifdefs if you use the IS_ENABLED macro - http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/mtd/spi/sunxi_spi_spl.c;h=a24c115174177792b3bb65c1d21f30076859bf94;hb=HEAD#l165
<ssvb> and in fact this macro can be then easily replaced with a runtime check for the SoC ID just like in https://github.com/linux-sunxi/sunxi-tools/blob/master/uart0-helloworld-sdboot.c
<ssvb> yes, I know that many people are in favor of exposing all the guts in the device tree
<jernej> I think I will stick with original plan, because in theory it should be easier to migrate to DT later on
<ssvb> but as you see it yourself, it introduces extra dependencies and slows down the progress
<jernej> basically what I need to to is to differentiate between A and H series
<ssvb> also exposing too many unnecessary details in the DT make it much harder to have a stable DT ABI
<jernej> those DT bits will be needed for Linux driver anyway
<ssvb> it's up to you how you do it
<jernej> yes, but invoking DM driver means either by DT or by hand with special structs which gets in special sections, so platform data doesn't add much
<jernej> ah, how should I say it
<jernej> DM driver can be invoked by DT or by hand
chlorine has quit [Remote host closed the connection]
<jernej> and that "by hand" can't be done in code
<jernej> so ifdefs are only way till DT bits land
IgorPec has joined #linux-sunxi
IgorPec has quit [Client Quit]
wzyy2 has quit [Ping timeout: 255 seconds]
IgorPec has joined #linux-sunxi
<jernej> ssvb: by hand means using U_BOOT_DEVICE() macro
leviathancn has quit [Remote host closed the connection]
yann-kaelig has quit [Quit: Leaving]
swiftglitch has quit [Read error: Connection reset by peer]
vishnup has quit [Ping timeout: 255 seconds]
swiftglitch has joined #linux-sunxi
BenG83_PB has quit [Remote host closed the connection]
wzyy2 has joined #linux-sunxi
BenG83_PB has joined #linux-sunxi
wzyy2 has quit [Read error: Connection reset by peer]
swiftgeek2 has joined #linux-sunxi
igraltist has quit [Read error: Connection reset by peer]
igraltist has joined #linux-sunxi
swiftglitch has quit [Ping timeout: 255 seconds]
swiftgeek2 is now known as swiftglitch
Andy-D has quit [Ping timeout: 260 seconds]
afaerber has quit [Quit: Leaving]
wzyy2 has joined #linux-sunxi
igraltis1 has joined #linux-sunxi
igraltist has quit [Ping timeout: 260 seconds]
wzyy2 has quit [Read error: Connection reset by peer]
chlorine has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
netlynx has quit [Quit: Ex-Chat]
wzyy2 has quit [Read error: Connection reset by peer]
igraltist has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
igraltis1 has quit [Ping timeout: 240 seconds]
wzyy2 has quit [Read error: Connection reset by peer]
<nove> Why is this keeping saying with the meaning that the driver for the video engine can't be done because of not yet ready kernel driver framework? (for this type of stateless hardware)
<nove> The base needed is only the V4L2 memory to memory codec api, and this already exists in mainline kernel even before kernel version 3.0, as it is used by the imx6 mfc(their vpu)
swiftglitch has quit [Ping timeout: 268 seconds]
<nove> There are various ways that this could be done.
<nove> 1. There is the problem of parsing bitstreams in kernel space, but that could be ignored, it will not be accepted in mainline, but could be out-of-tree.
egbert has quit [Ping timeout: 268 seconds]
<nove> 2. Doing the parsing in userspace, and abuse of the controls to pass the parsed metadata into the kernel driver. Which has a recent example of the case for st-delta video decoder.
IgorPec has quit [Ping timeout: 260 seconds]
<nove> And here its the userspace libv4l2 plugin -> http://www.spinics.net/lists/linux-media/msg110773.html
<nove> 3. Wait for the V4L2 request api to be add to kernel.
afaerber has joined #linux-sunxi
<nove> But only having the driver is useless, and will not instantly solve evrything.
<nove> There is also need the drivers for the rest of the hardware, (for sound, for display, and all), if the intentions is to watch videos.
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<nove> And of course, the userside, the media applications most have this support, for this new api, to be able to use "hardware acceleration"
<nove> It is not only a video engine driver.
leviathan has joined #linux-sunxi
* nove is talking alone, to give reply to things said some days ago.
stnd has quit [Ping timeout: 260 seconds]
<rellla> nove: what would you suggest how to start/continue?
<nove> In 2 days, in ELC2017 there will be presentation about the state of V4L2 apis, specialty for stateless hardware
<rellla> saw that, from pinchartl
<nove> Let's see what is said there, maybe will be given some information, in which will be possible to _estimate_ how long time is need for the request api to be added,
<nove> If is something within one year, then maybe waiting is provable better, (wait some more is no difference)
<nove> If not, then the option 2, do the same as for the st-delta video decoder
xes has quit [Read error: Connection reset by peer]
xes has joined #linux-sunxi
<rellla> lets see, if there is told something new...
leviathan has quit [Read error: No route to host]
terra854 has quit [Quit: Connection closed for inactivity]
leviathan has joined #linux-sunxi
Nyuutwo has quit [Ping timeout: 276 seconds]
leviathan has quit [Read error: Connection reset by peer]
reinforce has quit [Quit: Leaving.]
leviathan has joined #linux-sunxi
leviathan has quit [Remote host closed the connection]
leviathan has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
\\Mr_C\\ has quit [Quit: .]
wzyy2 has quit [Read error: Connection reset by peer]
Gerwin_J_ has joined #linux-sunxi
Gerwin_J has quit [Ping timeout: 260 seconds]
Gerwin_J_ is now known as Gerwin_J
phipli has joined #linux-sunxi
f0xx has quit [Ping timeout: 268 seconds]
wzyy2 has joined #linux-sunxi
nove has quit [Quit: nove]
bcruise has joined #linux-sunxi
<bcruise> greetings
<bcruise> does anyone know what "sayeye" is for?
<bcruise> i see it is somekind of a service, usually found in allwinner android sources
phipli has quit [Ping timeout: 240 seconds]
apritzel has joined #linux-sunxi
IgorPec has joined #linux-sunxi
swiftgeek1 has joined #linux-sunxi
swiftgeek1 is now known as swiftglitch
wzyy2 has quit [Read error: Connection reset by peer]
egbert has joined #linux-sunxi
wzyy2 has joined #linux-sunxi
<apritzel> shadeslayer: still around?
<shadeslayer> yus ssup
<apritzel> did you get the Pine64 boot sorted?
* apritzel only made it half way through the backlog
<shadeslayer> apritzel: not with the SPL :)
<shadeslayer> it works just fine with boot0
<apritzel> so did you see error -19?
<shadeslayer> this is from your(?) pine64-beta branch IIRC
<shadeslayer> I'll need to check the logs :)
<apritzel> and you are using the sunxi64-beta branch
<shadeslayer> yes
<shadeslayer> I think so
<shadeslayer> I've built too many uboots today to recall properly :P
<shadeslayer> yes, sunxi64-beta :)
<apritzel> alright, the SPL seems to be fine then
wzyy2 has quit [Read error: Connection reset by peer]
<apritzel> can you try the allwinner-stable branch for the ATF
<apritzel> and you did build it with "make PLAT=sun50iw1p1 DEBUG=1 bl31" ?
<shadeslayer> I can, let me grab another microsd card
<shadeslayer> apritzel: yes
<apritzel> shadeslayer: which compiler are you using?
<shadeslayer> the one from debian
<shadeslayer> some release of gcc-6, moment
IgorPec has quit [Ping timeout: 260 seconds]
<shadeslayer> gcc version 6.3.0 20170124 (Debian 6.3.0-5)
<shadeslayer> apritzel: http://sprunge.us/hTOg
<apritzel> yeah that's fine then
<apritzel> let me retrace your steps, just a sec ...
<shadeslayer> apritzel: same thing really
<shadeslayer> note that I have no partition table on this right now, but I think that shouldn't be a issue?
<apritzel> partition table is not needed
<shadeslayer> cool
<shadeslayer> 00000000deadbeef
<shadeslayer> that does not look good :P
longsleep has quit [Remote host closed the connection]
andoma has quit [Remote host closed the connection]
Rondom has quit [Remote host closed the connection]
andoma has joined #linux-sunxi
longsleep has joined #linux-sunxi
Rondom has joined #linux-sunxi
leviathan has quit [Remote host closed the connection]
wzyy2 has joined #linux-sunxi
<apritzel> OK, works for me
<apritzel> have you made "make distclean" everywhere
<apritzel> ?
<shadeslayer> I started out with a git clean -dfx everywhere
<shadeslayer> would the microsd card type make a difference?
<shadeslayer> uhs vs non-uhs
<apritzel> hard to believe
vagrantc has joined #linux-sunxi
<apritzel> especially ATF is sensitive to old build artifacts, and the dependency resolution is not very good
<apritzel> so build the ATF first (make distclean before), then copy build/sun50iw1p1/debug/bl31.bin to the U-Boot directory
<shadeslayer> I'll try again
<apritzel> I have a symlink for that, makes things easier
<apritzel> then in U-Boot: make distclean && make pine64_plus_defconfig
<vagrantc> there's no cpufreq driver... not sure how to check the speed
<vagrantc> so, running pine64+ with linux-next and u-boot 2016.11, i'm wondering if the CPUs are running at some slow default speed
<apritzel> make -j5 -s
<apritzel> vagrantc: i'ts 816 MHz, probably
<vagrantc> so slower than the 1.2GHz advertised, but not crazy slow
<apritzel> vagrantc: the "1.2 GHz" are a bit, umh, bold statement
<vagrantc> sure
* vagrantc had a different board that went from 500MHz to 1.8GHz once cpufreq was supported
<vagrantc> which is a world of difference
<apritzel> shadeslayer: then: cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin
<apritzel> shadeslayer: and copy that to the SD: dd if=u-boot-sunxi-with-spl.bin of=/dev/sdx bs=1k seek=8
<shadeslayer> nope same thing
<shadeslayer> apritzel: I can upload my uboot if you want
<shadeslayer> so you can have a look
wzyy2 has quit [Read error: Connection reset by peer]
<apritzel> let me upload my build, just a sec
<shadeslayer> ok
<shadeslayer> yeah that seems to boot fine :S
<apritzel> your ATF is smaller
<shadeslayer> I'm using the allwinner-stable branch btw
<shadeslayer> 32 build/sun50iw1p1/debug/bl31.bin
<apritzel> is that aa75c8da415158a94b82a430b2b40000778e851f
<apritzel> 32776 Bytes for me
<shadeslayer> is that md5?
<apritzel> the git hash
<shadeslayer> ah
<apritzel> git checkout ....
<shadeslayer> yes
<shadeslayer> thats correct
<apritzel> do you have DEBUG=1 on the command line?
<shadeslayer> make PLAT=sun50iw1p1 DEBUG=1 bl31
<apritzel> (haven't tried for ages without it)
<shadeslayer> is what I called
<apritzel> right
Andy-D has joined #linux-sunxi
<apritzel> CROSS_COMPILE is properly set, I assume
vagrantc has quit [Quit: leaving]
<beeble> apritzel: build it yesterday without debug. so should work fine
<shadeslayer> yup
<shadeslayer> export CROSS_COMPILE=aarch64-linux-gnu-
<apritzel> shadeslayer: and you did "make distclean" before?
<shadeslayer> yus
<shadeslayer> I even did a git clean -dfx
<shadeslayer> let me try one last time
popolon has joined #linux-sunxi
<shadeslayer> and it works now :S
<shadeslayer> no wait
<shadeslayer> U-Boot 2017.03-rc1-00248-g0feee04 (Feb 21 2017 - 23:09:33 +0100) Allwinner Technology < that build time looks too old
<beeble> apritzel: just a thought. could it be a dtc issue? i remember that debian has a old dtc and there a dependecies to a newer one. does your script check the version?
<shadeslayer> idk, seems to be working now :S
<beeble> ok, nvm then
<apritzel> beeble: I don't use dtc directly, that goes via mkimage
<shadeslayer> apritzel: I think it's using the firmware you gave me
<shadeslayer> and not the one I built
<shadeslayer> let me zero out the card a bit
<apritzel> yeah, that build time is from my build
<apritzel> and my build server has a wrong time zone, as I just see ...
<shadeslayer> and ... nothing :S
<shadeslayer> I zero'd out the first 2 GB of the card
<shadeslayer> and then flashed my build
<shadeslayer> and I get nothing
wzyy2 has joined #linux-sunxi
<shadeslayer> well anyway, for my needs I need DRM, which means spending time on the mainline uboot is a bit pointless right now :P
<shadeslayer> which also means trying to figure out why the bsp kernel isn't giving me all of the dts files :(
Nyuutwo has joined #linux-sunxi
<apritzel> shadeslayer: you can extract my version of bl31.bin: dd if=pine64-firmware.bin of=bl31.bin bs=1 skip=444700 count=32776
<apritzel> then put that file into the U-Boot directory and rebuild
<shadeslayer> apritzel: oh btw, would you know the equivalent call of https://github.com/mdrjr/c2_mali_ddx/blob/master/src/mali_def.h#L76 for the pine64
swiftglitch has quit [Ping timeout: 260 seconds]
<shadeslayer> apritzel: giving it a shot
<shadeslayer> oooh
<apritzel> shadeslayer: can you dump your build of build/sun50iw1p1/debug/bl31/bl31.elf somewhere?
<shadeslayer> apritzel: with your spl + my self uboot I have the reset again
<shadeslayer> apritzel: sure
<apritzel> it looks like you are executing bogus code
Nyuutwo has quit [Ping timeout: 240 seconds]
<apritzel> thanks
<shadeslayer> yw
simosx has quit [Quit: Yakkety Bye!]
<shadeslayer> apritzel: though it's potentially a issue in u-boot? because after using your extracted spl, I get the reset again
vagrantc has joined #linux-sunxi
<shadeslayer> apritzel: http://sprunge.us/gHbi < with your spl and self built uboot
<shadeslayer> U-Boot SPL 2017.03-rc1-00248-g0feee04ddd (Feb 21 2017 - 23:56:14)
<shadeslayer> so the build time is correct there
<shadeslayer> gosh, I should head to bed
<apritzel> the SPL is somehow loading the wrong code
<apritzel> could of course be a bug in my FIT loader as well
vickycq has quit [Ping timeout: 245 seconds]
<apritzel> but your ATF build is different: you have .got and .got.plt sections, I don't
<shadeslayer> oh
<shadeslayer> apritzel: that might be because debian's gcc compiles with PIE
<shadeslayer> and other hardening measures
<shadeslayer> perhaps that's the reason?
<apritzel> possibly, but actually the ATF build should disable these features
<apritzel> my compiler is self-compiled, also only stage1 at this point
<shadeslayer> that might explain why even with your SPL my uboot doesn't work :)
<apritzel> shadeslayer: is your compiler a normal Debian build? apt-get'ed?
<shadeslayer> yes
<shadeslayer> totally pristine
wzyy2 has quit [Read error: Connection reset by peer]
<apritzel> as another test (if you still got some breath), can you try u-boot.img instead of u-boot.itb?
<shadeslayer> just cat it as well?
<apritzel> that is the old U-Boot image format, so no ATF
<apritzel> yes
<shadeslayer> give me 10 mins
<shadeslayer> apritzel: same thing
<shadeslayer> now I'm off to sleep :)
<shadeslayer> night night
<apritzel> cu
wzyy2 has joined #linux-sunxi
vickycq has joined #linux-sunxi
lkcl has joined #linux-sunxi
paulk-collins has quit [Quit: Leaving]
oliv3r has quit [Ping timeout: 260 seconds]
wzyy2 has quit [Ping timeout: 240 seconds]