ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
ftg has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
<smaeul> MoeIcenowy: there is a "secure mode" status register in the SID control, outside of the eFuse SRAM area
apritzel has quit [Ping timeout: 480 seconds]
<MoeIcenowy> smaeul: does it has a deterministic value?
<smaeul> 1 if secure, 0 if not
<smaeul> it was at SID + 0xa0 on earlier SoCs, but I think it may have moved
junari has joined #linux-sunxi
junari_ has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
junari__ has joined #linux-sunxi
junari__ is now known as junari
<junari> jernej: yes, device with LPDDR4, so now I get "Timeout initialising DRAM" in mctl_sys_init. I will watch the pseudocode in the ghidra
junari_ has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
junari has quit [Read error: No route to host]
junari has joined #linux-sunxi
freemangordon1 has joined #linux-sunxi
freemangordon has quit [Ping timeout: 480 seconds]
<cheetahpixie> I've discovered that parsing the fex really isn't that hard.
<cheetahpixie> and I'm still looking for what each line translates to. that's really all that's left.
dikiy has joined #linux-sunxi
dikiy has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
dikiy has joined #linux-sunxi
junari_ has quit [Read error: No route to host]
junari has joined #linux-sunxi
szemzoa_ has joined #linux-sunxi
szemzoa has quit [Read error: Connection reset by peer]
<cheetahpixie> yep. I have the parser part done.
<cheetahpixie> now I just need the translation details and I can do the rest.
<cheetahpixie> who said this would take me six months?
junari_ has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
dliviu has quit [Read error: No route to host]
dliviu has joined #linux-sunxi
junari__ has joined #linux-sunxi
rajkosto has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari__ has quit [Ping timeout: 480 seconds]
<libv> cheetahpixie: we have had a fex tool since 2012
<cheetahpixie> sunxi-babelfish?
<cheetahpixie> libv
<cheetahpixie> if you're talking about fex2bin/bin2fex, I'm looking to convert this to dts files.
<cheetahpixie> sunxi-babelfish does a translation to dtb files dynamically. I'm looking for a method to automatically translate fex files to usable dts files for automated builds elsewhere, which won't need to depend on any extra layers, such as sunxi-babelfish.
<cheetahpixie> if you already have a tool that does this conversion, I'd love to see it.
<cheetahpixie> and if you don't have such a converter to dts, I'm still going to need help and documentation on what goes where.
cnxsoft has quit []
JohnDoe_71Rus has joined #linux-sunxi
<libv> cheetahpixie: i do not know whether we have that
<libv> cheetahpixie: but that would fit in sunxi-tools/ as well
<libv> and i should have some time tonight to fix one issue with minima
<libv> and the search is not critical for a changeover
<libv> but so annoying that it will get fixed in future
rajkosto has quit [Quit: Leaving]
rajkosto has joined #linux-sunxi
rajkosto has quit []
rajkosto has joined #linux-sunxi
pmp-p is now known as Guest1367
pmp-p has joined #linux-sunxi
Rajko has joined #linux-sunxi
Guest1367 has quit [Ping timeout: 480 seconds]
rajkosto has quit [Ping timeout: 480 seconds]
<cheetahpixie> sure.
<cheetahpixie> don't see any fex to dts in the sunxi-tools repo.
<cheetahpixie> and I'm executing this all as a bash script because that's what I know how to work with.
<cheetahpixie> only thing really missing now is all the documentation on what in the fex becomes what in a dts.
<cheetahpixie> once I have that, I can start writing translation logic.
<apritzel> cheetahpixie: that is part of the problem of this being a difficult task: there is no such list, and no 1:1 relation anyway
<apritzel> for a start: a DT is a *tree* (actually a directed graph), so you see already that there is a certain gap
junari_ has quit [Ping timeout: 480 seconds]
<cheetahpixie> that's fine.
<cheetahpixie> I have ideas for how to actually translate this to trees.
<cheetahpixie> as for the no 1:1, that's okay. I can figure it out with enough sanity, I believe.
<cheetahpixie> https://github.com/lindenis-org/device/blob/master/petrel/boards/allwinner-dvb/configs/sys_config.fex I did find this, meanwhile. lots of chinese and lots of things unclear.
<cheetahpixie> meanwhile, what does [platform] even do?
<cheetahpixie> hm. debug, according to the github page.
<cheetahpixie> eraseflag = 2 and next_work = 5 are not in that documentation.
<jernej> some things are used in U-Boot only, so check there too
<cheetahpixie> how?
<cheetahpixie> mine has no embedded devicetree.
<cheetahpixie> I already tried to binwalk for it, per I believe your instruction.
<cheetahpixie> moreover: [power_sply] appears to be missing documentation, but I have dcdc#_vol in there.
<cheetahpixie> and a couple aldo#_vol.
<cheetahpixie> noteworthy is that logical_start under [card_boot] is specified to be sectorwise in the github doc.
<apritzel> cheetahpixie: I still think it's a doomed endeavour, but if anything, I would start with a DT template, and populate that with the information you gathered from the FEX
<cheetahpixie> I'm trying to do this automatically, mind.
<cheetahpixie> also: [card_boot#_para], is that maybe meant to be [card#_boot_para]?
<apritzel> yes, that's what I meant: you scan the FEX to find what the card detect GPIO for the SD card is, then output the DT node for mmc0, with that GPIO number filled in
<cheetahpixie> yeah. but that's only one piece of the dt.
<apritzel> there are so many FEX entries that are completely irrelevant to a mainline DT, so it's quite pointless to go this way
<cheetahpixie> also: sdc_2xmode under [card#_boot_para], whatever that does.
<jernej> note that fex may have things enabled that are not available on mainline yet
<jernej> like HS400 eMMC mode
<cheetahpixie> alright.
<cheetahpixie> the more complete I can make this, the better.
<cheetahpixie> and things like this are suitable for warnings, later in development.
<mripard> apritzel: it should be doable, but it'll require constant, tedious, work
<cheetahpixie> saw also a ddr mode thing
<mripard> that's why I ended up giving up on babelfish
<cheetahpixie> even if it's a basic translation away from fex, it should at least function.
<cheetahpixie> also hi there.
vagrantc has joined #linux-sunxi
<apritzel> mripard: yes, I agree. I am not saying it cannot be done, I just think it's not worth it, really.
<apritzel> cheetahpixie: and before you start to automate this: have you tried to do the conversion manually? That would be a natural step, to understand what would be needed
<cheetahpixie> that'll happen while I do this.
<cheetahpixie> I'm a little bit of a trial by fire type of person.
<cheetahpixie> anyway. I see the fex is littered with gpios, and some of them show up in devicetrees as well.
<cheetahpixie> how do I translate specifically that? for starters.
<cheetahpixie> I plan to ignore empty and *used = 0 to begin with.
sunshavi_ has quit [Remote host closed the connection]
sunshavi_ has joined #linux-sunxi
rajkosto has joined #linux-sunxi
Rajko has quit [Ping timeout: 480 seconds]
Rajko has joined #linux-sunxi
Rajko has quit [Remote host closed the connection]
grming has joined #linux-sunxi
rajkosto has quit [Ping timeout: 480 seconds]
dikiy has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
grming has quit [Quit: Konversation terminated!]
apritzel has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
Danct12 has quit [Ping timeout: 480 seconds]
dikiy has joined #linux-sunxi
warpme____ has joined #linux-sunxi
grming has joined #linux-sunxi
skaterlui has joined #linux-sunxi
Hypfer has quit [Read error: No route to host]
Hypfer has joined #linux-sunxi
skaterlui has quit []
dikiy has quit [Ping timeout: 480 seconds]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
dikiy has joined #linux-sunxi
digetx is now known as Guest1401
digetx has joined #linux-sunxi
Guest1401 has quit [Ping timeout: 480 seconds]
dikiy has quit [Read error: Connection reset by peer]