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
DuClare has quit [Ping timeout: 480 seconds]
pabs has quit [Remote host closed the connection]
sunshavi has quit [Remote host closed the connection]
pabs has joined #linux-sunxi
sunshavi has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
bauen1 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
grming has quit [Quit: Konversation terminated!]
evgeny_boger has quit [Ping timeout: 480 seconds]
paulk has joined #linux-sunxi
paulk-bis has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
veremitz has quit [Server closed connection]
veremitz has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
cheetahpixie has joined #linux-sunxi
<cheetahpixie> so I remember asking here a while back about generating a device tree for a new device
<cheetahpixie> and I'm back with more questions.
<cheetahpixie> I was told I'd need to get something out of uboot as well.
<cheetahpixie> 1: what was this?
<cheetahpixie> 2: can't I start that uboot in qemu and get it that way since I have a complete dump?
sergi has quit [Server closed connection]
sergi has joined #linux-sunxi
kilobyte_ has quit [Server closed connection]
kilobyte_ has joined #linux-sunxi
obbardc has quit [Server closed connection]
obbardc has joined #linux-sunxi
maz has quit [Server closed connection]
maz has joined #linux-sunxi
hunbalazs has quit [Server closed connection]
hunbalazs has joined #linux-sunxi
pg12 has quit [Server closed connection]
pg12 has joined #linux-sunxi
hramrach has quit [Server closed connection]
hramrach has joined #linux-sunxi
juri__ has quit [Server closed connection]
juri_ has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
gamiee has quit [Remote host closed the connection]
gamiee has joined #linux-sunxi
szemzoa_ has quit [Server closed connection]
szemzoa has joined #linux-sunxi
<LordKalma> cheetahpixie, the u-boot image is very likelty to have the DTB somewhere in it
<LordKalma> if you binwalk it it'll show up
<LordKalma> 417648 0x65F70 Flattened device tree, size: 22917 bytes, version: 17
<LordKalma> sometimes it's different from the one in the kernel...
gamiee is now known as Guest915
gamiee has joined #linux-sunxi
JohnDoe_71Rus has quit []
Newbyte has quit [Server closed connection]
Newbyte has joined #linux-sunxi
apritzel has joined #linux-sunxi
warpme____ has joined #linux-sunxi
mps has joined #linux-sunxi
<apritzel> cheetahpixie: you don't necessarily need anything particular from a vendor U-Boot, if that was your question
<apritzel> cheetahpixie: but in general it helps to get as much information as possible from the vendor firmware
<apritzel> cheetahpixie: and sometimes they cheat and do certain things only in U-Boot, ask LordKalma ;-)
gamiee has quit [Remote host closed the connection]
* LordKalma foams from the mouth
<LordKalma> apritzel, I finally got a team-mate for this :)
<LordKalma> He's a russian guy, pretty amazing developer, lots of buildroot and etc experience
<LordKalma> he's been making PRs to my code like crazy
<LordKalma> I had to teach him how to cherry pick commits, so there's two PRs I had to do manually via cherry picking
<LordKalma> but he has been making amazing contributions
<jernej> LordKalma: did you manage to find/decode/dump panel init sequence?
JohnDoe_71Rus has joined #linux-sunxi
<LordKalma> yes
<LordKalma> that + the datasheet is making for enough info
<jernej> well, that ghidra screen doesn't show much
<LordKalma> jernej, the init sequence is just below, sorry, bad screenshot
kilobyte_ has quit [Ping timeout: 480 seconds]
<jernej> and there is a trick to get better ghidra output regarding constants
evgeny_boger has quit [Remote host closed the connection]
<LordKalma> I'm all years
<LordKalma> *ears
<jernej> I believe you have to mark section as read only
<jernej> but let me check
<LordKalma> it's mostly fine, the problem is when it's like a string, it adds two indirections
<LordKalma> PTR_to_string_longname_1235abc
<LordKalma> and then only from that one you get to the string
<LordKalma> which is.. meh
Tooniis[m] has quit [Server closed connection]
Tooniis[m] has joined #linux-sunxi
<LordKalma> thank you !
<LordKalma> this is the full function btw
<LordKalma> if you're curious
<LordKalma> "This allows the analysis to "dereference" through constant pools "
<LordKalma> that sounds relevant :)
ftg has joined #linux-sunxi
<jernej> ah, yes, that is certainly init sequence :)
<LordKalma> lcd_write was a name choosed by my colleague
<LordKalma> but yeah, that's clearly the init
<LordKalma> jernej, and we're starting to translate that to the driver: https://github.com/ruilvo/panel-jinglitai-jlt4013a/commit/13631f7644ad542fae3f74dedef835135cd8741b
<LordKalma> we're going to give up the boot logo at u-boot time
<LordKalma> because we have better things to do
<LordKalma> and we'd also rather have a driver that works by itself
<LordKalma> and doesn't need it's u-boot counterpart to work
<jernej> if you want to submit driver to mainline linux (which you should), driver has to be standalone, e.g. not dependent on some bootloader magic
<jernej> so that's the right approach
<cheetahpixie> apritzel LordKalma alright. I have tackled, in shell too, harvesting partitions from devices with unstable connections and fragile buffers.
apritzel has quit [Ping timeout: 480 seconds]
<cheetahpixie> it's a hacky concert of lots of busybox commands on the target side and xxd on the host side. sure, data transfer is doubled, but you won't crash adb through it since you set buffer sizes.
<cheetahpixie> and in order to dodge possible bash/shell weirds (such as null characters), I convert to hex and back to make sure the binary data arrives intact.
<LordKalma> jernej, what's the politis of upstreaming drivers that technically were reverse engineered?
apritzel has joined #linux-sunxi
<LordKalma> and not with the double-blind loophole
<LordKalma> jernej, the driver was stamped with the GPL2 macro, the U-Boot is technically GPL2, and atm the driver is significantly different since we're putting everythign together, and even doing some stuff directly from the datasheet
<LordKalma> and also, we're not using even using the same name
<LordKalma> but still...
<LordKalma> that concerns be a bit about the upstream
kilobyte_ has joined #linux-sunxi
<LordKalma> other than that, I'm more than happy to
<cheetahpixie> what I was hoping to do was to take this a33 trash find no name tablet and install postmarketos.
<cheetahpixie> and then to have an actual bleuprint for how to then do this with other devices (zero to linux"
<cheetahpixie> I also have an a20 that doesn't have working serial rx for some reason.
<cheetahpixie> so I can't type commands
<LordKalma> I would definitely turn my cheap tablet into a linux machine if it worked okay haha
<cheetahpixie> suspect a trace got cut or something somewhere
<cheetahpixie> wing_inet it was. it's probably in old freenode logs.
<cheetahpixie> tldr: the drivers exist. what doesn't is all the device tree stuff.
<cheetahpixie> so if the extracted ones can be dependably converted to linux dts/dtb, we should be good to gentoo up a kernel or something and let the rest of postmarketos do what remains.
evgeny_boger has joined #linux-sunxi
<LordKalma> cheetahpixie, you can decompile a DTB trivially
<LordKalma> it's making it pretty that takes a while after that
<cheetahpixie> I'm also looking at possibly breaking open a fex and converting that.
<cheetahpixie> and this tablet has kitkat stock.
evgeny_boger has quit [Ping timeout: 480 seconds]
warpme____ has quit []
grming has joined #linux-sunxi
<jernej> LordKalma: Many drivers were reverse engineered. If you only reuse register numbers and there values, that's fine.
<jernej> *their
<jernej> you obviously won't use same functions
sunshavi_ has joined #linux-sunxi
grming has quit [Quit: Konversation terminated!]
<cheetahpixie> isn't uboot in nanda?
<cheetahpixie> binwalk isn't finding the device tree
warpme____ has joined #linux-sunxi
vagrantc has joined #linux-sunxi
<apritzel> cheetahpixie: I think those old devices don't use devicetree, but FEX files
<apritzel> cheetahpixie: have you tried one of the existing A33 devicetrees? IIUC, many of them were based on common reference designs
<apritzel> cheetahpixie: there is sun8i-reference-design-tablet.dtsi in the kernel tree, also check what includes that
<cheetahpixie> I wanted to rip this device's fex to make sure there won't be conflict
<cheetahpixie> hence me quizzing.
<cheetahpixie> where on nand is that fex/bin file?
<apritzel> cheetahpixie: I don't know, but you scan the hexdump for a bunch of strings like "product", "card_boot0_para", "twi_para", each 40 bytes aparts, the gaps filled mostly with 0 bytes
<apritzel> chj
<apritzel> cheetahpixie: check script_bin.h in sunxi-tools.git (which provides a FEX compiler/decompiler)
<apritzel> also there are .fex examples in the sources tree (under tests/sunxi-boards-fixed/sys_config)
apritzel has quit [Ping timeout: 480 seconds]
<cheetahpixie> does the binary have those strings?
<cheetahpixie> actually. okay
<cheetahpixie> lemme strings some stuff
<cheetahpixie> oop, nanda == instant results
<cheetahpixie> is there no header to fex files?
JohnDoe_71Rus has quit []
<cheetahpixie> wait.
<cheetahpixie> yeah. momentary bout of stupid. nanda is a filesystem
<cheetahpixie> yeah. script0.bin is here.
<cheetahpixie> what is the magic.bin anyway?
gnarface has quit [Quit: Leaving]
gnarface has joined #linux-sunxi
<cheetahpixie> oh yeah, why is the wiki down?
<libv> cheetahpixie: flaky machine that we are about to replace
<cheetahpixie> ah.
<cheetahpixie> psu go bang, or?
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
evgeny_boger has joined #linux-sunxi
fisiek has joined #linux-sunxi
<fisiek> Hello, why is linux-sunxi wiki down?
<fisiek> And when its going to be up again?
apritzel has joined #linux-sunxi
<apritzel> cheetahpixie: fisiek: if you just want to look stuff up, you can use https://minima.linux-sunxi.org
<apritzel> (which is going to become the main site in a few days, if I understand libv's and mnemoc's plans correctly)
<fisiek> ok thanks, I just started to make schematic of a64 board and wanted to download datasheets
<fisiek> btw is there any other open source project of a64 sbc than olimex or something from pine64?
rajkosto has joined #linux-sunxi
<apritzel> fisiek: open source hardware, you mean? And why do you want to know? Many board vendors publish at least schematics, maybe that already helps you?
<apritzel> Also: why A64?
<fisiek> a64 from what i've read has most mainline linux support besides a20
<fisiek> also I know most vendors publish schematics but just wanted to know if there's any other open source sbc than that from olimex
<buZz> the question was why , to prevent XY problem questions ;)
<buZz> oh you want to -make- a a64 sbc, nice
<buZz> wasnt cubieboard open gerbers aswell?
rajkosto has quit [Quit: Leaving]
rajkosto has joined #linux-sunxi
<fisiek> idk but cubieboard 1-3 has a20 and cubieboard 4 has a80
rajkosto has quit [Quit: Leaving]
<fisiek> and about why i want to use a64, so i need soc that can run linux, has camera support and can do image processing fast enough to send live encoded image via radio
rajkosto has joined #linux-sunxi
<fisiek> its for my mobile platform/rover/robot project
<buZz> so you need a esp32
<buZz> esp32-cam board is ~10 usd, can process image, even run some AI-like stuff, and send live video over wifi
<buZz> plus you have BT , a whole second core available, and loads of gpio
<buZz> and supereasy to make a board for ;)
<fisiek> esp32 is really bad at image processing, and i want to send it over uhf its just not going to work
<buZz> oh, retro :D
<buZz> well esp32 can bitbang composite video out a pin :P
<buZz> just plonk a VHS modulator on it, let it make uhf signal
<buZz> but yeah, a10/20/64 have composite video on a pin too
<fisiek> composite is analog and i want to use digital modulation so esp is not going to cut it
<fisiek> I need to ask a friend for a tool/project for live video encoding and modulation because I forgot its name xD
<fisiek> it only works on linux and needs a "little more" processing power than esp32
Arthur[m]12 has quit [Server closed connection]
Arthur[m]12 has joined #linux-sunxi
pgwipeout[m] has quit [Server closed connection]
pgwipeout[m] has joined #linux-sunxi
<fisiek> and i've either miss read something or forgot something but OpenHD is fpv via wifi xD
<fisiek> my bad
rajkosto has quit [Quit: Leaving]
rajkosto has joined #linux-sunxi
<fisiek> but still esp isn't going to work because i can write some bad code for encoding image and send it via APRS
<buZz> so you're planning on using ROS.org on it?
<fisiek> no, why?
rajkosto has quit [Quit: Leaving]
<buZz> oh i thought you wanted to make a rover/robot
<fisiek> right, but for my application I don't really need it
<fisiek> i'm probably going to use mcus for something like controlling motors or idk power system
<fisiek> a64 is for handling video and controlling manipulator
<fisiek> also its going to talk with mcus etc
<fisiek> it's just going to be central processing unit :P
<apritzel> fisiek: maybe you can use some of the SoCs that come with on-package DRAM? Like V3s or T113s? That saves you a lot of hassle with the board design.
<fisiek> apritzel: I really want to try routing and testing board with external DRAM also 64MB as in V3s is pretty small
<fisiek> I might try making V3s board just to get feel of it
<apritzel> fisiek: T113s has 128MB, and two A7 cores
<apritzel> fisiek: I still don't get why you were asking for *more* examples? Doesn't Olimex for instance provide enough, to guide you in the PCB design?
bauen1 has quit [Ping timeout: 480 seconds]
<apritzel> From what I hear they are one of the better board designers
<fisiek> no i'm not asking for more examples, I can make what i need based on their design
<fisiek> but just wanted to know if there are more projects like this
<fisiek> i don't need it, just wanted to know
bauen1 has joined #linux-sunxi
<smaeul> I think most hobbyist projects are focused on F1C100s/V3s/D1s because of the built-in DRAM
<smaeul> there are a bunch of commercial robot vacuums based on Allwinner R-series chips
<fisiek> smaeul: oh ok, that makes sense
<buZz> fisiek: ROS is mostly motion planning etc, not motion -control- ;)
<buZz> and stuff for making maps from sensordata etc
<buZz> object avoidance
<fisiek> buZz: oh ok i didn't knew that i thought it's about motion control
<buZz> no that happens with mcu usually
<smaeul> you can get some sense of SoC popularity by browsing https://whycan.com/f_17.html or https://bbs.aw-ol.com/
<buZz> ROS.org is about doing SLAM/occlusion tree maps, etc
<fisiek> thanks, i'll check it out
<fisiek> I'm probably going to design soc/som around t113 and then move on to a64 or a20
<buZz> fisiek: beaglebone is opensource btw :P
<buZz> or beagleboard? one of those
ftg has quit [Read error: Connection reset by peer]
<buZz> also mainline supported
<buZz> not to talk you out of allwinner or something :D
<fisiek> you know, I just want to do something myself
<buZz> :)
<buZz> i know, but i mean, the schematic and pcbs are opensource of beaglebone
<buZz> just fyi
<buZz> many bitcoin mining asics etc included their own beaglebone remakes with reduced functionality
<fisiek> ok thanks, I will look into beaglebone schematics
<fisiek> mining crypto on beaglebone sounds like joke :p
<fisiek> but if it works it works
<fisiek> btw I have been thinking about buying beaglebone black, but doing sbc from scratch is going to be great learning experience
<fisiek> at least I think its going to be :p
Guest915 has quit [Remote host closed the connection]
<apritzel> fisiek: could also be highly frustrating, and a giant sink of time and money
<buZz> fisiek: its a controller to asic boards
<apritzel> I mean that's what those development boards are for: you just buy them, and connect up your own devices
<fisiek> apritzel: idk
<fisiek> buZz: that makes sense