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*
gumblex has quit [Quit: ZNC 1.8.1+deb1 - https://znc.in]
gumblex has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 240 seconds]
asdf28 has quit [Ping timeout: 240 seconds]
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 240 seconds]
ChriChri_ is now known as ChriChri
iyzsong has quit [Read error: Connection reset by peer]
iyzsong has joined #linux-sunxi
kaspter has joined #linux-sunxi
lkcl has quit [Ping timeout: 256 seconds]
lkcl has joined #linux-sunxi
lurchi_ is now known as lurchi__
random_yanek has quit [Ping timeout: 272 seconds]
random_yanek has joined #linux-sunxi
kaspter has quit [Ping timeout: 265 seconds]
kaspter has joined #linux-sunxi
victhor has quit [Ping timeout: 246 seconds]
<wens> FYI for rk3328, which has two DWMACs, they are using the presence of 'phy-is-integrated' in the PHY node to differentiate between the two
<wens> since one is designed to be connected to an external PHY, and the other is tied to an internal PHY
<wens> not sure if that helps
<wens> they aren't using syscons with cells though
tuxillo has quit [Ping timeout: 256 seconds]
cnxsoft1 has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 256 seconds]
camus is now known as kaspter
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Remote host closed the connection]
camus is now known as kaspter
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 256 seconds]
kaspter has quit [Ping timeout: 240 seconds]
camus has joined #linux-sunxi
camus is now known as kaspter
clementp[m] has quit [Ping timeout: 268 seconds]
clementp[m] has joined #linux-sunxi
AneoX has joined #linux-sunxi
jelly-home is now known as jelly
reinforce has joined #linux-sunxi
eduardas has joined #linux-sunxi
apritzel has joined #linux-sunxi
eduardas has quit [Quit: Konversation terminated!]
tmlind has quit [Quit: leaving]
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
apritzel has quit [Ping timeout: 272 seconds]
tmlind has joined #linux-sunxi
cmeerw has joined #linux-sunxi
cmeerw has quit [Ping timeout: 264 seconds]
Craphunzio has joined #linux-sunxi
xes has quit [Ping timeout: 246 seconds]
xes has joined #linux-sunxi
asdf28 has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 264 seconds]
camus is now known as kaspter
AneoX has quit [Ping timeout: 260 seconds]
t3st3r has quit [Remote host closed the connection]
AneoX has joined #linux-sunxi
t3st3r has joined #linux-sunxi
<plaes> Craphunzio: wow, that's an excellent start :)
tuxillo has joined #linux-sunxi
<plaes> it seems that video output goes through the FPGA (lattice)
<plaes> Lattice ECP3 can be actually developed using open source FPGA toolchain (yosys + nextpnr + ...)
matthias_bgg has quit [Read error: Connection reset by peer]
<Werner> Bummer. h616-v2-pre does not want to work for me. Did I made a mistake at porting to Armbian? https://paste.debian.net/1176315/ https://github.com/armbian/build/tree/update-h616
laurentC has joined #linux-sunxi
<Werner> Applied and built against megi's orangepi-5.10 branch though
<diego71> Craphunzio: good job indeed, the photo of the board is quite low res, but it looks it have a serial port, probably near the vga port
cmeerw has joined #linux-sunxi
<plaes> diego71: ...and JTAG for FPGA
apritzel has joined #linux-sunxi
ldevulder_ has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
Craphunzio has quit [Quit: Leaving]
Craphunzio has joined #linux-sunxi
<Craphunzio> Thankx plaes and diego71, good morning everybody. I am going to take a few more pics today. Also I tried to fill in the "Images" section by uploading the content of the boot partition of the two images I got, but the wiki does not allow me to upload files other than pictures and patches.
ldevulder has quit [Ping timeout: 246 seconds]
<apritzel> Craphunzio: this section is just for *links* to images
lkcl has quit [Ping timeout: 264 seconds]
laurentC has quit [Remote host closed the connection]
tuxd3v has quit [Ping timeout: 256 seconds]
cmeerw has quit [Ping timeout: 258 seconds]
ldevulder_ is now known as ldevulder
laurentC has joined #linux-sunxi
<Craphunzio> apritzel deal. Going to put links then, and some better pictures.
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
laurentC has quit [Quit: Leaving.]
laurentC has joined #linux-sunxi
t3st3rV2 has joined #linux-sunxi
lkcl has joined #linux-sunxi
t3st3r is now known as Guest70603
t3st3rV2 is now known as t3st3r
Guest70603 has quit [Ping timeout: 240 seconds]
<Craphunzio> gasp, I am saving some edits but the browser is "waiting for linux-sunxi.org..." since a while... hope not to have to retype that :panic:
tnovotny has joined #linux-sunxi
laurentC has left #linux-sunxi [#linux-sunxi]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 246 seconds]
camus is now known as kaspter
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
cyrozap has quit [Remote host closed the connection]
victhor has joined #linux-sunxi
<Craphunzio> plaes how did you find that the lattice is likely used for HDMI out?
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
<Craphunzio> What puzzles me the most is the price of that chip compared to the A13. 40 times more! "only" for HDMI output?
<Craphunzio> In the while I uploaded moar pics. Better pic of the PCB front, a new one of its rear, a zoom over the UART pin candidates. https://linux-sunxi.org/Sg.Gme.R3.95h5a_tw#Adding_a_serial_port_.28voids_warranty.29
<KotCzarny> maybe they got good price on that chip
<Craphunzio> aren't there any specialized chips for HDMI output though? But indeed that must have been a good deal overall for _sure_
<Craphunzio> For what matters identifying the UART pins, unfortunately measuring resistance between GND and VCC on those candidates is paradoxically difficult. I get different readings if I swap the probes (!!) and if I change multimeter as well, for a total of four different readings!
<diego71> Craphunzio: it's powerful enough that can be used to emulate retro hw
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
<Craphunzio> diego71 indeed, but I'm confident it is not used for that, and the CPU is used instead.
<Craphunzio> there are very few systems that are used to reproduce retro hardware so far. And the original image on that SD card uses MAME, which is a CPU emulator.
<KotCzarny> maybe they also do some postprocessing on it, who knows
<Craphunzio> * I mean there are very few FPGA system for retro simulation lol. There is a billion of CPU based alternatives
<Craphunzio> do you have any clue about why I get very different RESISTANCE readings across two points of the powered off board according to the device I use and the orientation of the probes (that for resistance, makes no sense?) The multimeters have been tested against known resistors and they work just fine and accurately with them
<Craphunzio> I think there __might__ be some capacitors that still need to discharge and that may get in the way somehow
<Craphunzio> is that possible?
<plaes> A13 does not have HDMI output
<plaes> and lines from ECP3 go straight to HDMI output
<diego71> Craphunzio: yes is normal if there is some capacitors, you need to wait for capacitor to be fully charged before having a useful reading about pure resistance
<paulk-leonov> hi
<paulk-leonov> does anyone know of the layout of axp209 register 0x81 ?
<paulk-leonov> some BSP calls it BOOT_POWER20_VOUT_MONITOR
<paulk-leonov> I suspect it has to do with over-current limitsd
<paulk-leonov> ah it's in the axp152 datasheet
<Craphunzio> thanks plaes your knowledge is amazing.
<paulk-leonov> also AXP288
<Craphunzio> thanks diego71, I tried to discharge the capacitors but I have not been able to.
Mangy_Dog has joined #linux-sunxi
<diego71> discharging is not a solution, because when you tried to measure the resistance your meter it will charge them again, and you measure also the resistance of the capacitor
<apritzel> Craphunzio: you are probably not measuring purely ohmic resistances
<apritzel> Craphunzio: why do you actually care about measuring those pins? They are clearly labelled, and I would just try out which one carries the debug UART
<Craphunzio> apritzel: well, to learn something in the process. I am following along an youtube tutorial series and that suggests to measure resistance that way to identify potential candidates (especially when they are NOT labeled although that is not my case) https://www.youtube.com/watch?v=6_Q663YkyXE
<Craphunzio> can't wait for the darn adaptor to reach the inbox, but it could take days or even weeks :-(
<Craphunzio> (cause I'm a cheapskate and I ordered from china lol)
<diego71> usb ttl serial adapter, i suppose
<Craphunzio> yep
<Craphunzio> it's actually THREE adapters lol cause I didn't know which one would work better. all three of them cost 1/5 of a single one on Amazon
<Craphunzio> *all together
<apritzel> Craphunzio: ebay.it gives me offers of around 3 EUR incl. shipping, from Italy
<Craphunzio> crap, I did not consider ebay :-(.
<KotCzarny> never enough of those little buggers
<KotCzarny> having more than one is useful
<Craphunzio> which one would you recommend?
<apritzel> for 115200 bps doesn't matter, really
<KotCzarny> some say the 'not fake ones' have crystal on board
<MoeIcenowy> jernej: when will you send out H616 U-Boot patches?
<MoeIcenowy> I did some V831 work on top of your H616 work on GitHub
<apritzel> MoeIcenowy: that's a Cortex-A7, right? how did "letting a 32-bit build use CONFIG_SUN50I_H6_GEN" work out for you?
<apritzel> were there any hidden assumptions about arm64?
<MoeIcenowy> apritzel: I moved FIT-related options to H6/H616
<MoeIcenowy> using FIT is the biggest assumption
<apritzel> right, makes sense
<MoeIcenowy> but other than this, few
<MoeIcenowy> and for CCU PLL configuration, V831 is more close to H616 than H6
<MoeIcenowy> BTW I hope this option to be renamed CONFIG_SUNXI_GEN_SUN50I_H6
<MoeIcenowy> because we have CONFIG_SUNXI_GEN_SUN[46]I
<apritzel> yeah, please feel free to reply to jernej's patch once he posts that
<MoeIcenowy> BTW the V831 DRAM controller seems to be mostly similar to our sunxi_dw one, but the mctl_com part is similar to H6
<MoeIcenowy> and there are some magics that are known by REing boot0
<apritzel> they are really eager to try all possible combinations of COM, CTL and PHY ;-)
<MoeIcenowy> well this one is CTL+PHY combo
<MoeIcenowy> but at least we got 3 situations now for 3 chips
<MoeIcenowy> (maybe V831 selects to use old controller because of it expects legacy memory (DDR2)
<apritzel> good point
<apritzel> eventually we might think of modularising the DRAM controller code, so that a chip can mix and match COM, CTL and PHY code
<MoeIcenowy> well, this is a big work
<apritzel> indeed ;-)
<MoeIcenowy> and sometimes operations interleaves
JohnDoe_71Rus has joined #linux-sunxi
<Craphunzio> guys. While I am waiting for the USB-to-Serial adaptor, is there any way I could reverse-engineer the boot partitions I got so to discover more about how that kernel is built and how to build mine (and the userspace tools too) accordingly?
victhor has quit [Ping timeout: 240 seconds]
shailangsa has quit []
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #linux-sunxi
faruk has quit [Quit: Leaving]
AneoX has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
eduardas has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
<plaes> Craphunzio: google for binwalk
eduardas has quit [Quit: Konversation terminated!]
nashpa has quit [Ping timeout: 260 seconds]
eduardas has joined #linux-sunxi
nashpa has joined #linux-sunxi
mripard_ has quit [Quit: leaving]
\\Mr_C\\ has joined #linux-sunxi
victhor has joined #linux-sunxi
chewitt has quit [Quit: Adios!]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
lurchi_ has quit [Quit: Konversation terminated!]
lurchi_ has joined #linux-sunxi
paulk-leonov has quit [Ping timeout: 246 seconds]
paulk-leonov has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
shailangsa has joined #linux-sunxi
chewitt has joined #linux-sunxi
<Tooniis> I've added a touchscreen node to the q8-tablet dts: https://gitlab.com/Tooniis/linux/-/commit/03c032241b2b7344aab6813579a8abc9dadb76c1
<Tooniis> do I need to do anything else before submitting a patch?
<Tooniis> It needs firmware which I extracted from the stock kernel module binary, should I submit that to linux-firmware too?
t3st3rV2 has joined #linux-sunxi
t3st3r has quit [Remote host closed the connection]
jstein has joined #linux-sunxi
hanetzer- has joined #linux-sunxi
Craphunzio has quit [Ping timeout: 256 seconds]
hanetzer has quit [Ping timeout: 246 seconds]
matthias_bgg has quit [Quit: Leaving]
t3st3rV2 is now known as t3st3r
cmeerw has joined #linux-sunxi
cyrozap has joined #linux-sunxi
laurentC has joined #linux-sunxi
eduardas has quit [Quit: Konversation terminated!]
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
Craphunzio has joined #linux-sunxi
<Craphunzio> Ehm, back to this morning. Does the fact that the FPGA is likely used for HDMI output relevant to me? Should I use this information to build a kernel or the way the video output is processed is transparent to the building process? Thanks!
<apritzel> Craphunzio: we don't know if this "HDMI bridge" is really transparent, or needs some spoon-feeding first to get going
<apritzel> but for the build process this would be mostly irrelevant
<Craphunzio> ok. Thank you. Her, what would that spoon-feeding be eventually?
<apritzel> dunno, could be anything
<jernej> MoeIcenowy: I plan to send patches once Linux DT patches are acked
<apritzel> jernej: not sure you should really wait for that, though
<jernej> apritzel: DM clock driver depends on bindings
<apritzel> I mean we have a lot to review already, and for now can ignore the details of the DT (in the first post, at least)
<apritzel> yes, there are bigger fishes to fry
<apritzel> jernej: this is what I came up with for the 2nd EMAC clock register: https://github.com/apritzel/linux/commit/7fbc65bff67b
<apritzel> EMAC0 could stay compatible to the A64 one, EMAC1 would use syscon = <&syscon 1>, to use offset 0x34
<jernej> apritzel: to be honest, it looks ok, but I would like to hear opinion of other maintainers
<apritzel> sure, I expect some discussion on that ;-)
<apritzel> I think I will make a cut here and send out v2 tonight (new issues and patches keep creeping in ...)
lurchi_ has quit [Read error: Connection reset by peer]
lurchi__ has joined #linux-sunxi
gnarface has quit [Ping timeout: 256 seconds]
lurchi__ has quit [Ping timeout: 260 seconds]
cmeerw has quit [Ping timeout: 268 seconds]
cmeerw has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
jelly has quit [Remote host closed the connection]
jelly-home has joined #linux-sunxi
cmeerw has quit [Ping timeout: 258 seconds]
cmeerw has joined #linux-sunxi
jelly-home is now known as jelly
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
gnarface has joined #linux-sunxi
gnarface has quit [Ping timeout: 260 seconds]
gnarface has joined #linux-sunxi
vagrantc has joined #linux-sunxi
tnovotny has quit [Ping timeout: 260 seconds]
netlynx has quit [Quit: Ex-Chat]
laurentC has quit [Quit: Leaving.]
lurchi__ has quit [Ping timeout: 246 seconds]
tuxd3v has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
iyzsong has quit [Read error: Connection reset by peer]
iyzsong has joined #linux-sunxi
asdf28 has quit [Ping timeout: 256 seconds]
lurchi__ has quit [Ping timeout: 240 seconds]
BorgCuba has joined #linux-sunxi
t3st3r has quit [Remote host closed the connection]
t3st3r has joined #linux-sunxi
popolon has joined #linux-sunxi
bantu has quit [Quit: bantu]
lurchi__ has joined #linux-sunxi
bantu has joined #linux-sunxi
cmeerw has quit [Ping timeout: 258 seconds]
popolon has quit [Quit: WeeChat 3.0]
<smaeul> btw we also need FIT support on 32-bit chips for loading crust for system suspend
<smaeul> I have WIP patches here: https://github.com/smaeul/u-boot/commits/h3
<smaeul> there's a lot of duplication because the boot process is so different. It would be easier if U-Boot secure monitor was built as a separate image...
tuxd3v has quit [Remote host closed the connection]
bantu has quit [Quit: bantu]
<apritzel> smaeul: you mean the SPL?
bantu has joined #linux-sunxi
<apritzel> smaeul: or the PSCI runtime part?
<smaeul> apritzel: the PSCI runtime part, that's currently memcpy()d to SRAM
<apritzel> right
<apritzel> I probably don't make many friends with that, but TF-A supports ARMv7 as well, Rockchip uses that for their 32-bit RK3288 SoC
<smaeul> H3 SRAM A2 is only 32k, so fitting TF-A in 16k...
<smaeul> apritzel: you're right, it is a possible option
<smaeul> I have suspend on H3 working except for one thing: I cannot write the CPU0 hotplug flag register
<smaeul> I verified that NBROM is reading 0x1f01dac, but that location seems to be RAZ/WI
<apritzel> writing from the ARISC?
<smaeul> yes, or from u-boot either one
<smaeul> is there any other way to keep BROM from running when I turn CPU0 on?
<apritzel> does the BSP stack support suspend on the H3, and does it actually use the ARISC for that?
<smaeul> yes, and yes, and the blob appears to load an eGON image into SRAM A1 and use the super standby path (which is later in the BROM) to boot it
<apritzel> I see, but it doesn't use the CPU hotplug mechanism at all?
<apritzel> maybe they screwed it up on the H3, and are using super standby as a workaround?
<smaeul> I don't think it lets you do CPU0 hotplug (nor does mainline). for other CPUs hotplug works fine
<apritzel> so the H3 defines hotplug registers for each core, and the BROM checks them?
<smaeul> no, the logic is "if mpidr != CPU0, goto hotplug; if CPU0 hotplug flag == 0xfa50392f, goto hotplug; goto normal_boot"