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*
Mangy_Dog has quit [Ping timeout: 246 seconds]
_0x5eb_ has quit [Quit: Goodbye!]
_0x5eb_ has joined #linux-sunxi
suprothunderbolt has joined #linux-sunxi
[SILVER-SURFER] has quit [Quit: Bim bam boom]
[FOREST] has joined #linux-sunxi
lurchi__ is now known as lurchi_
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 256 seconds]
ChriChri_ is now known as ChriChri
lerc has quit [Ping timeout: 264 seconds]
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
abelvesa has quit [Remote host closed the connection]
kaspter has quit [Ping timeout: 258 seconds]
kaspter has joined #linux-sunxi
lurchi_ is now known as lurchi__
gaston1980 has quit [Ping timeout: 240 seconds]
gaston1980 has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
warpme_ has quit [Quit: Connection closed for inactivity]
gaston1980 has quit [Ping timeout: 260 seconds]
gaston1980 has joined #linux-sunxi
tuxd3v has quit [Ping timeout: 246 seconds]
gaston1980 has quit [Ping timeout: 260 seconds]
gaston1980 has joined #linux-sunxi
nashpa has quit [Ping timeout: 264 seconds]
nashpa has joined #linux-sunxi
dddddd has quit [Ping timeout: 260 seconds]
huawei has quit [Quit: ZNC - https://znc.in]
huawei has joined #linux-sunxi
huawei has quit [Quit: ZNC - https://znc.in]
huawei has joined #linux-sunxi
[7] has quit [Ping timeout: 260 seconds]
TheSeven has joined #linux-sunxi
huawei has quit [Quit: ZNC - https://znc.in]
huawei has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
_0x5eb_ has quit [Quit: Goodbye!]
lurchi__ has quit [Ping timeout: 265 seconds]
AneoX has joined #linux-sunxi
_0x5eb_ has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
KotCzarny has quit [Ping timeout: 256 seconds]
<gediz0x539> megi: thanks, I'll try :)
abelvesa has joined #linux-sunxi
xes_ has joined #linux-sunxi
xes has quit [Ping timeout: 256 seconds]
KotCzarny has joined #linux-sunxi
<mripard> megi: wow, that's weird
cmeerw has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
xes__ has joined #linux-sunxi
xes_ has quit [Ping timeout: 265 seconds]
warpme_ has joined #linux-sunxi
<Ashleee> oh for fox sake. Another tanix box but it has different RAM (DDR3 instead of LPDDR3 it seems) and fails on "DRAM:Error while initializing DRAM PHY!"
<Ashleee> all are DDR3-1600, but one is normal power (that doesn't work, 1.5V?) and the one that works is low vdd (1.35V)
<chewitt> all box devices are a pain in the arse to support
<chewitt> there is no guarantee that your "tanix" box actually came from tanix
<chewitt> anything "popular" or getting a good review is cloned quickly
<chewitt> sometimes anything more than having the right SoC inside is a bonus :)
gediz0x539 has quit [Quit: Leaving]
gediz0x539 has joined #linux-sunxi
<Ashleee> :D
<Ashleee> bought 3 at once and each is different :)
<Ashleee> love this
<KotCzarny> good for a developer
<Ashleee> i'll trade :)
<PPA> I thought that was true only for the unbranded ones (in this case, the ones with “TX6” on them rather than the Tanix logo)
<Ashleee> hmm can I just replace ATF with boot0 extracted from the eMMC? :D
florian_kc is now known as florian
matthias_bgg has joined #linux-sunxi
<KotCzarny> no
<KotCzarny> unless you can run legacy kernel
<Ashleee> dangit
<Ashleee> and all the sunxi tools do not support H6 :V
<Ashleee> to extract meminfo
<Ashleee> oh aliexpress... "Feel the breeze in the car!" email ad... too bad I already drive a cabrio >:D
<KotCzarny> get second one, just because
<PPA> unbranded red cabrio “F1 Turbo” with a randomised configuration of engine, gears, tank capacity, etc.
cnxsoft1 has joined #linux-sunxi
mripard has quit [Quit: Lost terminal]
mripard has joined #linux-sunxi
<gediz0x539> good for a driver :P
cnxsoft has quit [Ping timeout: 246 seconds]
<KotCzarny> but comes with all proprietary software and connectors which is almost impossible to obtain even for basic tasks
yann has joined #linux-sunxi
suprothunderbolt has quit [Ping timeout: 240 seconds]
Mangy_Dog has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
luke-jr has quit [Ping timeout: 246 seconds]
luke-jr has joined #linux-sunxi
xes__ is now known as xes
JohnDoe5 has joined #linux-sunxi
<Ashleee> you're laughing, but there's those cheap cars on aliexpress, free shipping "to the nearest port" :)
<KotCzarny> kid's quality toys
JohnDoe_71Rus has quit [Ping timeout: 258 seconds]
<Ashleee> I\ve just noticed that the two tanixes have got the same memory chips, yet one of them works and the other one fails with the DRAM PHY init error... wut :)
<Ashleee> PGSR0 = 20003d...
<Ashleee> another chip has that bit as PGSR0_CAWRN_SHIFT
<Ashleee> WRN? :D
<Ashleee> so I can ignore? :D :D
<Ashleee> trying to find a reasonable armv8 disassembler but IDA free has only x86/x64 :(
<Ashleee> what do people here use?
<gediz0x539> my colleague bought the same one too
<gediz0x539> he told me that he had some DRAM errors
<Ashleee> I have 4 in total, 1 from one seller and 3 from another seller
<Ashleee> 1 from one seller is 4G/32G with rev2.4 board and the 3 are 4G/64G rev2.3 boards.. from which 2 got debianized with slight troubles and the third one is resiting
<Ashleee> gotta love this :D
<Ashleee> resisting **
<gediz0x539> so they are not produced as consistent as we hope them to be :D
<Ashleee> nope
<Ashleee> and I have no idea what's different, the chips are the same
<Ashleee> and I have no idea what that bit is, the CAWRN is from another board (as there's no info about the DRAM PHY for H6)
<KotCzarny> well, same markings, not same quality
<KotCzarny> even disregarding board revisions and quality
<Ashleee> but I tried warning -> skip it.. no luck :D
tuxd3v has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
Perlovka_ has quit [Ping timeout: 260 seconds]
anarsoul has quit [Quit: ZNC 1.7.5 - https://znc.in]
Perlovka has joined #linux-sunxi
<Ashleee> gediz0x539, I presume that your colleague never solved those DRAM errors :)
ddevault has quit [Quit: Why do I even put this quit message in if I never quit]
yann has quit [Read error: Connection timed out]
ddevault has joined #linux-sunxi
yann has joined #linux-sunxi
<PPA> https://aliexpress.com/item/32956640608.html I bought this one but it has yet to arrive
<PPA> Hoping that since it's a branded one that says Tanix (checked the comments/ratings for photos to confirm that it matches the promotional images)
<PPA> it'll be “standard” and not a grabbag of parts like the noname clones
<PPA> We'll see, will report back
<Ashleee> good luck
<Ashleee> I've contacted the seller that I bought it from that one of the units has got DRAM errors, will be interesting to see what they reply :D
<KotCzarny> it boot android dear friend? yes? yes? no problem,!
<Ashleee> :D
<Ashleee> Inever mentioned it booted android fine :P
<Ashleee> which it does buuuut
<Ashleee> there's something wrong with the device!
<KotCzarny> and they never mentioned to run mainline linux, no? :P
<Ashleee> :P
<KotCzarny> the wrong thing is lack of documentation from allwinner
<Ashleee> I like how almost all peripherals have every register described in the docs
<Ashleee> EXCEPT DRAM controller.
<Ashleee> what a giant middle finger from china
<KotCzarny> i strongly suspect it might be USA
<KotCzarny> :)
<Ashleee> why USA?
<KotCzarny> parts used in allwinner socs come from few sources
<Ashleee> well yeah, there's ARM core (isn't ARM holding nowadays Taiwan?) and... who else? :)
<wens> huh?
<KotCzarny> usb, eth etc
<mru> arm is a subsidiary of japanese softbank
<KotCzarny> drat, cant find the page on the wiki
<Ashleee> hmm I thought that ARM was sold to some asian country
<mru> japan is in asia
<KotCzarny> :)
<wens> lol
<Ashleee> :D
<Ashleee> I read just softbank, missed the japanese :P
<mru> it's possible that they've sold it on and I missed it
<mru> but that would be pretty big news so it seems unlikely
<KotCzarny> this is the page i was referring to 'sources'
<[FOREST]> ARM is uk I think
<mru> ARM Holdings Ltd is a UK company fully owned by Softbank
<KotCzarny> so yeah, blame the greedy americans for no docs on dram controller
<KotCzarny> :)
<KotCzarny> (not that there are no greedy folks anywhere else, but.)
<Ashleee> oh dear :D
<Ashleee> and yeah I know all about ARM history being Acorn etc :)
<Ashleee> been to the museum in Cambridge :P
gediz0x539 has quit [Quit: Leaving]
<Ashleee> I have just noticed
<Ashleee> there's 8 DRAM modules from which 7 are -B and one is -Q
<Ashleee> on the other working units all are -B
gediz0x539 has joined #linux-sunxi
<Ashleee> :D
<Ashleee> shoul be just revision
<Ashleee> but their revisions end at G
<Ashleee> err end at H
<Ashleee> b-die vs q-die
<gediz0x539> Ashleee: yep, he could not fix the DRAM problems yet
<Ashleee> the only difference I see in B-die and Q-die is that B-die supports 1.35V/1.5V operation whereas Q-die supports only 1.5V
<Ashleee> so depends on how the DRAM PHY is set... brr :)
<Ashleee> if it wasn't BGA I'd throw a scope at it
<gediz0x539> are die references listed in the datasheet?
<Ashleee> which die references?
<gediz0x539> s/references/differences/
<Ashleee> oh
<mru> no mr bond, I expect you to die
<Ashleee> :P
<Ashleee> I'd prefer if Q from startrek died.
<Ashleee> no, but the only noticable difference is the voltage
<Ashleee> timings etc are the same
<mru> bond might not die, but the die is bonded (hopefully)
<gediz0x539> hahah
<Ashleee> still trying to figure out if it is set somewhere as external Vdd* from the axp* or whether it is IO voltage set as a register in the DRAM controller itself
Net147 has quit [Quit: Quit]
Net147 has joined #linux-sunxi
<Ashleee> tried this, they have extra bits for DDR3 vs DDR3L in here, but no luck :(
<KotCzarny> keep in mind allwinner might have hacked/modified things
[FOREST] has quit [Quit: Copying is making the same mistakes as your predecessor.]
[EXISTENZ] has joined #linux-sunxi
[EXISTENZ] is now known as [ExistenZ]
<Ashleee> yeah
<Ashleee> that's why I just tried it, didn't give much hope into it :)
suprothunderbolt has joined #linux-sunxi
<Ashleee> oh fox me. I've just opened the last tanix tx6 box that actually installed debian without any problems.. and guess what?
<Ashleee> *all* chips are Q-die :)
<Ashleee> only the one where is a mix of B and Q die is the culprit it seems
<Ashleee> so.. wtf :)
<Ashleee> oh well. Let's sell the bad one locally and get another one from aliexpress xD
<Ashleee> roulette!
<gediz0x539> so... dram parameters should be fine tuned for each type of DRAM?
<Ashleee> that's the thing
<Ashleee> their datasheets are the same
<Ashleee> when it comes to timings
<Ashleee> only difference is that Q-die can go upto 1833MHz whereas B-die only 1600
<Ashleee> and they run at 1333 anyways I think
<gediz0x539> I have had some hellish months to fine tune A13 TPR, EMR, ZQ parameters
<gediz0x539> thanks god, ssvb did an outstanding job with documenting how to properly calibrate them
<Ashleee> time to go to a pub
<mru> there are pubs?
<jernej> Ashleee: closest available DRAM documentation that can be found for H6 is this: https://japan.xilinx.com/html_docs/registers/ug1087/ug1087-zynq-ultrascale-registers.html#ddr_phy___pgsr0.html
<jernej> more or less everything here works also for H6, but there are one or two registers, which are not documented and few offsets might be different
rex_victor has quit [Read error: Connection reset by peer]
<jernej> Ashleee: I investigated this problem a bit but I couldn't find the reason for this
<jernej> status always indicates that it's write leveling error but I'm not sure how to fix this
<jernej> maybe some parameter issues
<jernej> btw, I have properly working TX6 box (all chips are -Q) and someone else helped me with testing, so it was slow...
gaston1980 has joined #linux-sunxi
vagrantc has joined #linux-sunxi
lurchi_ is now known as lurchi__
rex_victor has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 265 seconds]
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
jbrown has quit [Quit: Leaving]
andy25225 has quit [Ping timeout: 246 seconds]
jbrown has joined #linux-sunxi
damex has quit [Ping timeout: 256 seconds]
andy25225 has joined #linux-sunxi
jbrown has quit [Ping timeout: 246 seconds]
lurchi__ is now known as lurchi_
jbrown has joined #linux-sunxi
ganbold_ has joined #linux-sunxi
ganbold has quit [Read error: Connection reset by peer]
AneoX has quit [*.net *.split]
ndufresne has quit [*.net *.split]
parazyd has quit [*.net *.split]
wasutton3 has quit [*.net *.split]
aballier has quit [*.net *.split]
egbert has quit [*.net *.split]
obbardc has quit [*.net *.split]
parazyd has joined #linux-sunxi
aballier has joined #linux-sunxi
aballier has joined #linux-sunxi
ndufresne has joined #linux-sunxi
AneoX has joined #linux-sunxi
wasutton3 has joined #linux-sunxi
egbert has joined #linux-sunxi
obbardc has joined #linux-sunxi
ddevault has quit [*.net *.split]
KotCzarny has quit [*.net *.split]
lurchi_ has quit [*.net *.split]
DuClare has quit [*.net *.split]
Putti has quit [*.net *.split]
montjoie has quit [*.net *.split]
chewitt has quit [*.net *.split]
dev1990 has quit [*.net *.split]
libv has quit [*.net *.split]
ec0 has quit [*.net *.split]
zoobab has quit [*.net *.split]
agraf has quit [*.net *.split]
marble_visions has quit [*.net *.split]
jonasbits has quit [*.net *.split]
dlan has quit [*.net *.split]
arnd has quit [*.net *.split]
ddevault has joined #linux-sunxi
KotCzarny has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
DuClare has joined #linux-sunxi
Putti has joined #linux-sunxi
montjoie has joined #linux-sunxi
dlan has joined #linux-sunxi
zoobab has joined #linux-sunxi
marble_visions has joined #linux-sunxi
dev1990 has joined #linux-sunxi
libv has joined #linux-sunxi
ec0 has joined #linux-sunxi
agraf has joined #linux-sunxi
chewitt has joined #linux-sunxi
jonasbits has joined #linux-sunxi
arnd has joined #linux-sunxi
dev1990 has quit [Max SendQ exceeded]
swiftgeek has quit [Read error: Connection reset by peer]
dev1990 has joined #linux-sunxi
swiftgeek has joined #linux-sunxi
duracrisis has quit [Ping timeout: 246 seconds]
duracrisis has joined #linux-sunxi
lurchi_ is now known as lurchi__
<Ashleee> jernej, I have a box with B-die working fine, a box with Q-die working fine but a box with a mixture is wrong
<Ashleee> if I understand it correctly it does auto-detection on some params but I think it does it on B-die but fails on Q-die?
<Ashleee> or vice-versa
<mru> at least it's not that obnoxious pew-die
<jernej> there is not much autodetection going on
<jernej> basically just size
<Ashleee> I thought that all the -leveling stuff is basically autodetection :)
<Ashleee> but then again I just got back from the pub so I might be overestimating its capabilities :D
<jernej> well, there is autocalibration for some stuff
<Ashleee> yeah
<Ashleee> that's the culprit imho
<Ashleee> it calibrates for B-die but fails on Q-die (or vice versa)
<jernej> but delays are fixed
<Ashleee> I'd expect some termination resistance being calibrated etc
<jernej> I forgot a great deal of details
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
maciejjo has quit [Ping timeout: 256 seconds]
<jernej> after comparing disassembly with mainline U-Boot code, I find these differences: https://github.com/jernejsk/u-boot/commit/2d1718ca49d3083cc64d7eef2a1b585a70f03189
maciejjo has joined #linux-sunxi
<jernej> however, not everything might be correct
<Ashleee> that's not merged upstream?
<Ashleee> also that's u-boot stuff I presume
<Ashleee> .. nvm I really shold look before asking :)
<Ashleee> did you dump that from a running system or u-boot?
<jernej> no, that's my work with intent to fix DDR3 issues on some Tanix TX6 box
<jernej> but according to the tester, it changed something but not really solved
<Ashleee> :)
<Ashleee> I can try tomorrow early morning
<jernej> you are free to try :)
<Ashleee> ^^ if I get up
<jernej> anyway, as I don't have problematic version of the box, it was done completely through reverse engineering
<Ashleee> I'll happily exchange :D
<jernej> :)
<Ashleee> I tried disassembling the boot0 from another 64GB version (hoping they have the same u-boot) but I Ghidra interface is too different to IDA for the first attempt :)
<jernej> the box I have was already a donation to make DDR3 work on mainline U-Boot
<Ashleee> s/I//
<jernej> so, logically, DDR3 works only on that TX6 variant that I have :D
<Ashleee> :D
<Ashleee> I can confirm that it works on pure B-die, on pure Q-die but not on a mix :)
<jernej> it would be very useful to compare DRAM registers from Android and mainline U-Boot
<jernej> I bet there is something off, but probably not much
<Ashleee> if you tell me how to.. :D
<Ashleee> sadly the delay in u-boot i 0 seconds
<Ashleee> is*
<jernej> well, you can't get into U-Boot because DRAM can't be initialized :)
<Ashleee> I mean the stock u-boot :)
lurchi__ is now known as lurchi_
<jernej> ah, just boot into Android and use devmem applet
<jernej> usually included busybox supports it
<Ashleee> ooh
<Ashleee> can try tomorrow morning
<Ashleee> can it do ranges? :)
<jernej> but there you can only read one reg at a time
<jernej> so some bash scripting is in order
<Ashleee> :P
<Ashleee> suddenly I feel like I am at work again with all the bash scripting! :D
<jernej> IIRC devmem is probably not exposed as command, so you have to call it "busybox devmem"
<Ashleee> I'll grab an extra long stick tomorrow to poke it with :)
<Ashleee> I've never messed with android tbh :D
<jernej> well, I only do when I need to see how allwinner kernel configures some peripheral and it's unclear from source
* Ashleee looks at boot0 "what source"? :)
<jernej> I suggest that you locate libdram from H6 U-Boot sources and decompile that
<jernej> it has even some debug symbols in it
<jernej> but unfortunately, all public ones are pretty old
<jernej> I mean, Android uses newer version of DRAM configuration lib
lurchi_ is now known as lurchi__
netlynx has quit [Quit: Ex-Chat]
Ntemis has joined #linux-sunxi
Nakaori has quit [Quit: Leaving]
fl_0 has quit [Ping timeout: 260 seconds]
lurchi__ is now known as lurchi_
Nakaori has joined #linux-sunxi
[ExistenZ] is now known as [NOVA]
vagrantc has quit [Quit: leaving]
fl_0 has joined #linux-sunxi
sunshavi has quit [Ping timeout: 272 seconds]
fevv8[m] has quit [*.net *.split]
fevv8[m] has joined #linux-sunxi
JohnDoe5 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
andy25225 has quit [Ping timeout: 246 seconds]
andy25225 has joined #linux-sunxi
Nakaori has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
suprothunderbolt has quit [Ping timeout: 260 seconds]
suprothunderbolt has joined #linux-sunxi
DrFrankensteinUK has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
DrFrankensteinUK has joined #linux-sunxi
lurchi_ is now known as lurchi__
Nakaori has joined #linux-sunxi
lurchi__ is now known as lurchi_
Asara has quit [Quit: maint]
random_yanek has quit [Ping timeout: 246 seconds]
random_yanek has joined #linux-sunxi
NiteHawk has quit [Ping timeout: 256 seconds]
cmeerw has quit [Ping timeout: 240 seconds]
[NOVA] has quit [Quit: The equal loss to the gain.]
Ntemis has quit [Read error: Connection reset by peer]
<mirko> when off the AV and/or TV connected to my h6 (via HDMI) there's no way i get audio/video out of the hdmi port again other than rebooting. nothing in the logs. applications behave like everything is fine. tv/av just say "no signal" when turning back on. anybody an idea how/why this is happening?
sunshavi has joined #linux-sunxi
Asara has joined #linux-sunxi
[KAZAN] has joined #linux-sunxi
<buZz> mirko: possibly there needs to be a switch to hdmi happening
<buZz> not sure if there's a tool for h6/your board yet to do so
<buZz> did you try the vendor provided linux images, to see if that can hotswap to hdmi output?
sunshavi has quit [Ping timeout: 264 seconds]
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 256 seconds]
<mirko> buZz: didn't (yet)
<buZz> maybe thats a route to verify how your board wants that to happen
jbrown has quit [Ping timeout: 272 seconds]
lurchi_ is now known as lurchi__
sunshavi has joined #linux-sunxi