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*
warpme_ has quit [Quit: Connection closed for inactivity]
Mangy_Dog has quit [Remote host closed the connection]
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
yann has quit [Ping timeout: 265 seconds]
apritzel has quit [Ping timeout: 246 seconds]
cnxsoft has joined #linux-sunxi
lurchi__ is now known as lurchi_
kaspter has joined #linux-sunxi
ec0 has left #linux-sunxi ["WeeChat 3.0"]
jstein has quit [Ping timeout: 256 seconds]
lurchi_ is now known as lurchi__
gaston1980 has quit [Quit: Konversation terminated!]
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 246 seconds]
ChriChri_ is now known as ChriChri
ats_ has quit [Ping timeout: 272 seconds]
TheSeven has quit [Ping timeout: 258 seconds]
TheSeven has joined #linux-sunxi
asdf28 has joined #linux-sunxi
gediz0x539 has joined #linux-sunxi
xes has quit [Ping timeout: 240 seconds]
xes has joined #linux-sunxi
chewitt has quit [Quit: Adios!]
lurchi_ has joined #linux-sunxi
daregap has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 272 seconds]
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
lkcl has quit [Ping timeout: 256 seconds]
apritzel has joined #linux-sunxi
cmeerw has joined #linux-sunxi
lkcl has joined #linux-sunxi
apritzel has quit [Ping timeout: 260 seconds]
cmeerw has quit [Ping timeout: 258 seconds]
ldevulder__ is now known as ldevulder
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-sunxi
gnarface has quit [Quit: Leaving]
AneoX has joined #linux-sunxi
Naaka is now known as Nakaori
JohnDoe_71Rus has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 265 seconds]
camus is now known as kaspter
yann has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 264 seconds]
camus is now known as kaspter
atsampson has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
gnarface has joined #linux-sunxi
<mirko> using kernel + kodi + ffmpeg on h6 (opi3) working fine (with some patches from libreelec applied), is it possible to easily use v4l2loopback to "mirror" hw-decoded video (played by kodi) to another v4l2 device as described in https://theterminallife.com/using-ffmpeg-and-v4l2-loopback-to-play-youtube-videos-as-a-webcam/ and if not, what's the deal breaker?
apritzel has joined #linux-sunxi
hlauer has joined #linux-sunxi
asdf28 has quit [Ping timeout: 246 seconds]
<hlauer> How is the axp20x_battery kernel module meant to be used? I'm trying to get battery values with the axp209 pmic
chewitt has joined #linux-sunxi
pmp-p has quit [Quit: pmp-p]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 246 seconds]
camus is now known as kaspter
warpme_ has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
pmp-p has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
nashpa has quit [Ping timeout: 260 seconds]
nashpa_ has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 260 seconds]
<bauen1> nice, i now find this nice patch https://lists.denx.de/pipermail/u-boot/2020-October/431195.html that does exactly what i've now reimplemented lol
cnxsoft1 has quit [Ping timeout: 256 seconds]
<plaes> \o/ :D
<plaes> regarding my performance woes with a64-olinuxino.. now that I managed to get Lima to work, some of the heavy-lifting is now handled by GPU and device is a lot more stable
<plaes> power consumption is ~5.5W (5.5V / 1A)
<libv> so it was not the gpu doing something untowards
<plaes> previously it peaked up to 1.2A
<libv> so you would need to limit all core power draw in some way
<plaes> it seems like that
<libv> which in itself is a cool finding
<libv> and something worth fixing
random_yanek has quit [Ping timeout: 268 seconds]
random_yanek has joined #linux-sunxi
random_yanek has quit [Client Quit]
random_yanek has joined #linux-sunxi
Wizzup_ has quit [Ping timeout: 260 seconds]
Wizzup has joined #linux-sunxi
<wens> hlauer: /sys/class/power/supply/axp20x-battery/ ?
<wens> it has a sysfs interface, like other power supply devices/drivers
<hlauer> after modprobe -v axp20x_battery that directory didn't exists... Need I more modules to load?
<plaes> hah.. finally it rebooted :)
<wens> hlauer: it also needs to be enabled in your device tree
<hlauer> Oh, good to know. Do you have an example?
<hlauer> ...of a devicetree entry
<plaes> lime2 should have it
<plaes> commit 5f49c38a80b94fc27ecd91f0e50949c3525688f1
<plaes> arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
asdf28 has joined #linux-sunxi
jstein has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 240 seconds]
kaspter has quit [Quit: kaspter]
victhor has joined #linux-sunxi
kaspter has joined #linux-sunxi
<hlauer> thx for the example, will try
_whitelogger has joined #linux-sunxi
<plaes> does a64 support some kind of internal thermal values?
hlauer has quit [Ping timeout: 258 seconds]
victhor has quit [Read error: Connection reset by peer]
victhor has joined #linux-sunxi
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger_ has joined #linux-sunxi
lvrp16 has joined #linux-sunxi
chewitt has quit [Quit: Zzz..]
iamfrankenstein has joined #linux-sunxi
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
hlauer has joined #linux-sunxi
chewitt has joined #linux-sunxi
lkcl has joined #linux-sunxi
<wens> plaes: you mean calibration data from the efuses? AFAIK there isn't any
<mirko> plaes: how stable is lima currently? i did't try for quite some time, since my main target currently is h6 which uses panfrost
cmeerw has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
The_Loko has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 246 seconds]
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
<plaes> wens: yes, something like that..
<plaes> mirko: for simple use-cases seems to work
vagrantc has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
iamfrankenstein has quit [Ping timeout: 260 seconds]
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 256 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.1, revision: 5.0.1+git-7433-0df9f22f2, build type: debug, sources date: 20160102, built on: 2019-12-08 19:19:20 UTC 5.0.1+git-7433-0df9f22f2 http://www.kvirc.net/]
<plaes> hmm.. is the HP-DET (Headphone detect) signal handling missing in the sun50i-codec-analog.c (for a64)?
<libv> plaes: one of that in sun4i-codec either
<libv> none even
<libv> at least for the gpio based detection, which requires a socket with the extra "pinnage"
<Ashleee> smaeul, another 2 days and no clocks have jumped on the a64! Got uff something like 17x A64 devices running 24/7 :)
<plaes> libv: yeah, a64-olinuxino has that kind of jack
<libv> plaes: did olimex add code to its own tree?
<libv> for fosdem we want 1hp, 2mics, and 4 XLRs
<libv> the 3.5mm ones are all easy to source
<libv> for the XLRs, only the microphone direction sockets can be found with such a built in switch
<libv> only from amphenol, and they never made a comparable opposite one
<libv> i forgot which direction is which, XLR likes to be gendered, for no reason
<libv> well, apart from making it more foolproof
<plaes> nothing in Olimex overlays repo at least..
<libv> so i needed to go and test whether the eints worked as intended, and from alsa drivers, before finalizing our hw design
<libv> we prefer to know what is inserted where, especially with the myriad of audio connections we need to have
warpme_ has quit [Quit: Connection closed for inactivity]
<libv> :)))))))
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 268 seconds]
<bauen1> if the chip doesn't melt, then the temperature is fine /s
<KotCzarny> what if it melts world around it ?
<bauen1> it seems that i can actually get the spl to do the most important buisness completely in sram, the stack and bss section aren't that big
<bauen1> KotCzarny: the chip is fine, so i don't see a problem here
<apritzel> bauen1: how big is the SPL then?
<bauen1> apritzel: 61456 spl/u-boot-spl-nodtb.bin
ScrumpyJack has quit [Quit: Eat more sushi]
<bauen1> plus `288 dts/dt-spl.dtb` and maybe 1-2kb overhead from the toc0
ScrumpyJack has joined #linux-sunxi
<bauen1> but i think the spl is still loading the u-boot fit image into dram, which is bad
<bauen1> it is a nice ~700kb, so some size reduction is necessary before i can think about puttint that into sram
<apritzel> bauen1: ???
<apritzel> bauen1: the whole point of the SPL is to enable DRAM, so that it can load the actual U-Boot
<apritzel> bauen1: I think we switched the way the FIT image is created, from external to embedded
<bauen1> apritzel: i don't care about u-boot being in dram, i just don't want secure-world stuff touching dram without integrity checks / encryption
<apritzel> originally the FDT part of the FIT image was pretty small, and the payloads were located *after* the end of this DTB blob
<apritzel> now the payloads are directly in the properties, which makes the actual DTB blob as big as the whole image
<apritzel> bauen1: (if that was your concern)
<bauen1> 724
<bauen1> ops
<bauen1> yes, u-boot makes up about 565kb of the entire fit, so if i can move that out of the way in some form that would be awesome
<plaes> fun.. arm64 defconfig:
<plaes> # CONFIG_SND_SUN50I_CODEC_ANALOG is not set
<plaes> # CONFIG_SUN50I_IOMMU is not set
<plaes> and also # CONFIG_PHY_SUN50I_USB3 is not set
<bauen1> why does u-boot have any form of support for the IOMMU ?
<plaes> this is linux defconfig
<bauen1> apritzel: i suppose i'm kind of (ab)using spl as better boot rom that supports proper signature checks
<apritzel> bauen1: I understand that part, but still not sure what your concern is
<apritzel> I mean you can load and verify everything from the SPL, and then only continue if all checks pass
<bauen1> apritzel: you mean of keeping everything in SRAM or still using the SPL ?
<apritzel> I mean the SPL is the loader in our case, so you load the various images, into wherever they need to go (DRAM or SRAM), and verify them, with SPL code
<apritzel> and then at the very end you jump to the entry point of the next image (TF-A in our case)
<apritzel> if any of the checks fail, you stop with an error message
<bauen1> apritzel: thanks for reminding me, i need to check if it copies first and then verifies or the other way around
<apritzel> plaes: that's correct, that's defconfig for the kernel, not the config a user would use on a production system
<bauen1> apritzel: i don't want to have the image in dram being modified after it has been verified but before it's being copied and jumped to
<apritzel> plaes: because the *distributions* should provide a well balanced and tested config
<plaes> ah.. ok
<apritzel> bauen1: but there is no code other than your SPL running, and you just checked that every component is trustworthy, before jumping away to the next image
<plaes> apritzel: although, i2s for sunxi is enabled ;)
<apritzel> plaes: well, it is enabled what people sent patches for
<plaes> should I send the patch for CONFIG_SND_SUN50I_CODEC_ANALOG=m ?
<apritzel> plaes: so defconfig is meant to be some sane (more or less basic) config that all developers can test against, and that should at least boot on some common machines, without requiring modules for the essential part
warpme_ has joined #linux-sunxi
<apritzel> otherwise you have the issue that every developer tests a different config, and this becomes a hassle to coordinate and verify
<bauen1> apritzel: i assume that the attacker can modify/read dram with very low cost, but accessing sram is a bit harder
<apritzel> bauen1: are you sure you are not too paranoid here? If you are worried that people can attack and intercept a BGAed DRAM, then I am not sure using an Allwinner chip is the right solution to begin with ...
<bauen1> apritzel: yes i am too paranoid, but it's fun and risc-v isn't quite in my price range yet
<bauen1> there
<bauen1> *there's always the 5$ wrench crypto bypass
netlynx has quit [Quit: Ex-Chat]
<apritzel> not sure why the ISA would make a difference, but I was more thinking about SoCs actually properly designed for security, I think NXP has a good reputation here, for instance
<bauen1> also removing bga chips doesn't strike me as very complicated, soldering on an fpga connector or something like that might be (https://youtu.be/zdvvk0NdAy0?t=218)
<bauen1> apritzel: i would love to have a "secure" system containing only libre open source components, but currently i'm a bit on a budget so i might as well experiment with some cheaper chips and see how far i get
<bauen1> though i must say that the arm isa is also very appealing
<apritzel> sure, starting easy makes sense, but I am not sure this level of physical access is reasonable to protect against then
<bauen1> but yes, generally it's a bit of a pointless exercise
<bauen1> apritzel: i've defined my threat model to have sort-of physical access but with some pretty big restrictions on what you can do to the SoC itself, which does make it rather pointless
<bauen1> at the end of the day it's all a matter of how much money or wrenches the attacker has
<bauen1> a tiny bit of power glitching will probably get you past the SBROMs certificate check too
asdf28 has quit [Ping timeout: 268 seconds]
<apritzel> mmh, I would think a threat model is there to draw clear boundaries on what's possible, and power glitching is surely quite a difference from unsoldering and intercepting DRAM
* apritzel just sees how much difficulty we already have to properly *setup* the DRAM controller for normal operation ;-)
<bauen1> lol
<bauen1> apritzel: including physical access in a threat model is quite difficult due to how many things you could potentially do
<apritzel> I totally agree, but I would still say limited time physical access (being able to hook something into the power supply while the guy in on the loo) is different from being able to pull out the tools needed to unsolder BGAs ...
<bauen1> ah i see
<bauen1> but even for power glitching you want to be as close to the target to make things more reliable
<apritzel> but in general I am too much of an engineer to think about attacking things, I'd rather make them work ;-)
jstein has quit [Quit: quit]
<bauen1> ugh, the spc on the h6 is kind of weird, i think i've found the register responsible to set the secure / non-secure mode, but i can't get it to work reliably and i also can't find the exact bit responsible
<bauen1> huh, this is funny, the more often i rebuild uboot, the larger the resulting binary seems to get :D
<bauen1> u-boot really is the best
hlauer has quit [Ping timeout: 265 seconds]
juri_ has quit [Ping timeout: 265 seconds]
juri_ has joined #linux-sunxi
cmeerw has quit [Ping timeout: 258 seconds]
The_Loko has quit [Quit: Leaving]
Mangy_Dog has quit [Remote host closed the connection]