<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>
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]