00:29
Mangy_Dog has quit [Ping timeout: 260 seconds]
00:33
random_yanek has quit [Ping timeout: 240 seconds]
00:40
random_yanek has joined #linux-sunxi
00:53
[BruceLee] has quit [Quit: bad tastes]
00:55
ChriChri_ has joined #linux-sunxi
00:55
[OPERATOR] has joined #linux-sunxi
00:57
ChriChri has quit [Ping timeout: 246 seconds]
00:57
ChriChri_ is now known as ChriChri
01:29
[OPERATOR] has quit [Quit: hmmmmm]
01:40
gaston1980 has quit [Quit: Konversation terminated!]
01:48
_whitelogger has joined #linux-sunxi
02:10
[LunarMonsterz] has joined #linux-sunxi
02:22
[LunarMonsterz] has quit [Quit: hmmmmm]
02:23
[LunarMonsterz] has joined #linux-sunxi
03:01
mripard has quit [Read error: Connection reset by peer]
03:05
mripard has joined #linux-sunxi
03:23
marvs has quit [Ping timeout: 264 seconds]
03:23
marvs has joined #linux-sunxi
03:23
marvs has joined #linux-sunxi
03:23
marvs has quit [Changing host]
03:27
wingrime has quit [Ping timeout: 265 seconds]
03:29
wingrime has joined #linux-sunxi
03:35
[7] has quit [Disconnected by services]
03:35
TheSeven has joined #linux-sunxi
03:42
cnxsoft has joined #linux-sunxi
05:30
JohnDoe_71Rus has joined #linux-sunxi
06:50
cmeerw has joined #linux-sunxi
07:18
netlynx has joined #linux-sunxi
07:18
netlynx has joined #linux-sunxi
08:50
jo0nas has quit [Read error: Connection reset by peer]
08:51
iamfrankenstein has joined #linux-sunxi
08:52
jo0nas has joined #linux-sunxi
08:54
jo0nas has quit [Read error: Connection reset by peer]
08:56
jo0nas has joined #linux-sunxi
09:05
iamfrankenstein has quit [Quit: iamfrankenstein]
09:17
ganbold has joined #linux-sunxi
09:21
ganbold_ has quit [Ping timeout: 256 seconds]
09:43
Mangy_Dog has joined #linux-sunxi
09:48
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
09:53
ganbold has quit [Ping timeout: 265 seconds]
10:00
ganbold has joined #linux-sunxi
10:07
[VroomAutist] has joined #linux-sunxi
10:19
ganbold_ has joined #linux-sunxi
10:19
jbrown has quit [Ping timeout: 272 seconds]
10:21
jbrown has joined #linux-sunxi
10:21
gsz has joined #linux-sunxi
10:21
ganbold has quit [Ping timeout: 264 seconds]
10:37
CC0422 has joined #linux-sunxi
11:30
paynode has joined #linux-sunxi
11:35
cnxsoft has quit [Read error: Connection reset by peer]
11:35
cnxsoft1 has joined #linux-sunxi
11:42
CC0422 has quit [Quit: -a- IRC for Android 2.1.57]
12:06
cmeerw has quit [Ping timeout: 240 seconds]
12:06
cmeerw has joined #linux-sunxi
13:19
gsz has quit [Quit: Konversation terminated!]
13:59
ganbold__ has joined #linux-sunxi
14:02
ganbold_ has quit [Ping timeout: 240 seconds]
14:08
[VroomAutist] is now known as [ZodiacWarrior]
14:18
freemangordon has quit [Remote host closed the connection]
14:42
gaston1980 has joined #linux-sunxi
14:51
lurchi_ has joined #linux-sunxi
15:05
ganbold has joined #linux-sunxi
15:06
cnxsoft1 has quit [Quit: cnxsoft1]
15:08
ganbold__ has quit [Ping timeout: 256 seconds]
15:08
[ZodiacWarrior] has quit [Quit: When your reflect starts rolling on to the sphere]
15:23
<
Ashleee >
hmm how do I adb into the Tanix TX6? :)
15:23
<
Ashleee >
I've installed busybox
15:23
<
Ashleee >
now what? :D
15:23
<
Ashleee >
I need bash
15:27
<
Ashleee >
and termux doesn't talk to the busybox :(
15:32
<
Ashleee >
yees got busybox devmem >:D
15:34
<
Ashleee >
no /dev/mem though
15:40
<
Ashleee >
oh no config_devmem
15:40
<
Ashleee >
jernej, no luck here apparently, how do I read this without /dev/mem? :D
15:40
<
Ashleee >
tried torchering it today for 20 minutes and it still wouldn't go past memory init so I need to dump the regs
15:42
<
jernej >
try "busybox devmem"
15:43
<
jernej >
but you'll be able to read only one reg at a time
15:43
<
Ashleee >
even without /dev/mem itself?
15:43
<
jernej >
idk, try it
15:43
<
Ashleee >
"can't open /dev/mem"
15:44
<
Ashleee >
no such file or directory (which I checked and isn't there, duh :) )
15:44
<
Ashleee >
why are you making it so hard, Tanix >:(
15:44
<
jernej >
well, there is another way but a bit more involved
15:45
<
jernej >
using mainline U-Boot with libdram
15:46
<
jernej >
it can be a pain to compile it but you can then read all DRAM registers
15:48
<
Ashleee >
let's see if I can find it all
15:48
<
Ashleee >
libdram replaces ATF?
15:48
<
Ashleee >
or some other part of uboot?
15:48
<
jernej >
actually, only DRAM initialization
15:49
<
jernej >
but be aware that libdram is 32-bit only, so you have to build U-Boot in 32-bit mode
15:49
<
jernej >
I would skip ATF in such case, U-Boot still works
15:51
anarsoul has quit [Ping timeout: 256 seconds]
15:58
<
Ashleee >
I mean at the worst case I could buy a TV and use it as-is... haha
16:01
anarsoul has joined #linux-sunxi
16:02
lurchi_ is now known as lurchi__
16:05
<
juri_ >
Ashleee: keep me posted.. i've got one of those in my shopping cart. :P
16:05
<
Ashleee >
I have 3 and each is different
16:05
<
Ashleee >
2 worked flawlessly
16:05
<
Ashleee >
1 required eMMC patch to slow it down
16:06
<
Ashleee >
and 1 doesn't go through DRAM PHY init
16:06
<
Ashleee >
I'd say do not go for chinese tx6 that can be a clone of a clone that has all kinds of irregularities :P
16:07
<
Ashleee >
oh for crying out loud, the tutorial for h6 libdram requires the original h6 bsp from pine64 but the links on their wiki give me 404 :(
16:08
romanstratiienko has quit [Ping timeout: 260 seconds]
16:09
<
Ashleee >
I need hexdump to send it somewhere or pine to fix their links :)
16:11
rsglobal has joined #linux-sunxi
16:17
<
jernej >
I can upload it
16:18
lurchi__ is now known as lurchi_
16:20
<
Ashleee >
and bl31? :)
16:21
<
jernej >
you don't need it
16:21
<
Ashleee >
even to actually boot something?
16:21
<
Ashleee >
or just to dump the regs?
16:22
<
jernej >
you'll get into U-Boot prompt
16:22
<
jernej >
which is enough for dumping DRAM regs
16:22
<
jernej >
dm.w command iirc
16:23
<
Ashleee >
thanks :)
16:27
RichardG867 has quit [Quit: Keyboard not found, press F1 to continue]
16:29
RichardG867 has joined #linux-sunxi
16:32
<
Ashleee >
hmm that libdram is setting 840MHz clock yet it should be only at 667 jernej ... it stops after "DRAM zq value: 3b3bfb"
16:32
<
jernej >
you have to adjust parameters
16:34
<
Ashleee >
within libdram?
16:34
<
Ashleee >
or is it within spl?
16:34
<
jernej >
where libdram code is called, in spl
16:36
<
Ashleee >
oh found the config
16:37
<
Ashleee >
hmm the config optino is only without libdram :) time to go into the code it seems
16:46
<
Ashleee >
gah, don't know all the other libdram tpr values, just setting lower clk doesn't help :(
16:48
<
Ashleee >
wasn't there some dump of the values extracted from boot0 for each device?
16:50
<
Ashleee >
ooh debian has tanix tx6 in bullseye
16:50
<
Ashleee >
let's check what they have done with uboot there
16:51
<
Ashleee >
oh unsupported bootstrapping..
16:54
<
jernej >
Ashleee: you can get libdram settings from DT file extracted from Android update/image for your box
16:57
<
Ashleee >
hmm there's timing in dt as well? had no idea
16:57
<
Ashleee >
I pulled the original OS from another box btw as well
16:58
<
Ashleee >
so I don't have to give them my email
17:02
[VroomAutist] has joined #linux-sunxi
17:02
[VroomAutist] is now known as [VroomAutism]
17:25
deesix has quit [Ping timeout: 246 seconds]
17:25
dddddd has quit [Ping timeout: 260 seconds]
17:31
deesix has joined #linux-sunxi
17:31
dddddd has joined #linux-sunxi
17:33
Nakaori has joined #linux-sunxi
17:38
Nakaori has quit [Remote host closed the connection]
17:44
tmlind_ has joined #linux-sunxi
17:53
Nakaori has joined #linux-sunxi
18:07
<
Ashleee >
.. right at the bottom, found it, thanks ! :)
18:16
<
Ashleee >
wow really? changed the numbers to the ones from dtb and now it won't even go anywhere past "DRAM VERSION IS V2_7" >:(
18:23
warpme_ has joined #linux-sunxi
18:25
tmlind_ has quit [Ping timeout: 240 seconds]
18:27
tmlind_ has joined #linux-sunxi
18:27
freemangordon has joined #linux-sunxi
18:34
<
jernej >
Ashleee: it's possible that libdram is too old
18:34
<
jernej >
can you check output from your box? it should print version
18:34
<
Ashleee >
hmm :) it's V2_7 and stock was 2_78 I think
18:34
<
Ashleee >
let me re-check in a sec
18:35
<
Ashleee >
interesting, after re-inserting the numbers one by one and always retrying it still isn't booting past the DRAM zq .. line but it isn't stuck after version either
18:35
<
Ashleee >
wtf is this
18:35
<
Ashleee >
even after mrproper ;o
18:36
<
Ashleee >
"wow it actually started booting!" I thought only to realize I forgot to plug in the card
18:37
<
jernej >
oh, which DDR you have? DDR3?
18:37
<
Ashleee >
in a sec :) got one more value I overlooked (0x09090900 vs 0x00090909)
18:37
<
jernej >
ok, then disregard my previous link
18:38
<
Ashleee >
hmm no luck with copied settings from the dt
18:40
<
Ashleee >
I am, tpr13
18:41
<
Ashleee >
yup changing tpr13 0x2001 -> 0x2000 as is in DTB makes it stuck after DRAM VERSION
18:42
<
Ashleee >
let's see about those
18:43
<
Ashleee >
jernej, those look like tpr0-2 is swapped with 3-6? :)
18:43
<
Ashleee >
and tpr0-2 copy mr4-6
18:44
<
Ashleee >
hm bigendian vs little endian?
18:45
<
Ashleee >
jernej, nope, with that settings a bunch of BYTE0 GATE ERRO IS = 1
18:49
<
jernej >
which box is this exactly?
18:50
tmlind_ has quit [Ping timeout: 256 seconds]
18:50
<
Ashleee >
Tanix TX6
18:50
<
Ashleee >
the one with mixed Q-die and B-die Samsung memory chips :)
18:53
<
jernej >
hm... I don't know what to suggest now
18:54
<
jernej >
I know that there is newer libdram accessible somewhere on net but I forgot where
18:55
<
jernej >
with values from DT
18:59
<
Ashleee >
same as 2_7
18:59
<
Ashleee >
only VERSION IS V2_5 and dead
18:59
<
Ashleee >
what's the tpr13 changing... the last bit...
19:01
<
Ashleee >
switching the lowest bit goes to the "DRAM zq value" as with v2_7
19:01
<
Ashleee >
if only I could extract the v2_78 :) but it is in binary form, not in elf :(
19:01
<
Ashleee >
so no headers
19:05
<
jernej >
seems that bit 0 in tpr13 disables rank detection
19:06
<
jernej >
and bit 13 in tpr13 disables dram type detection
19:06
<
jernej >
I guess you can set it to 0 and try again
19:07
jonasbits_ is now known as jonasbits
19:08
<
jernej >
Ashleee: run Android and check serial output during boot - it should contain proper values for dram_para1 and dram_para2
19:09
<
jernej >
along with correct frequency
19:09
<
Ashleee >
ooh interesting, you're right, para2 in dt is different to para2 in boot log
19:10
<
Ashleee >
and para1 as well
19:10
<
Ashleee >
really odd :)
19:10
<
Ashleee >
to be fair I pulled the OS image from another box from the batch so hoping they're identical
19:15
<
Ashleee >
uh what did I break, getting the GATE ERROR non stop now :)
19:18
<
Ashleee >
ok the bit13 in tpr13 has to be set otherwise I get those gate errors
19:19
<
Ashleee >
hmm still nothing, set the para1 and para2 to values from the stock boot and still stuck after DRAM zq value
19:19
<
Ashleee >
(or nowhere with the lowest bit unset)
19:20
<
Ashleee >
this isn't funny anymore :) time to pull the big ones.
19:20
<
Ashleee >
I mean libdram has to be called with the same args somewhere?
19:21
<
Ashleee >
is it called with the struct directly and not pushed onto the stack one by one?
19:22
[VroomAutism] has quit [Quit: True ignorance is to ignore whatever makes you happy and that's all in fact :)]
19:23
[VroomAutist] has joined #linux-sunxi
19:23
<
Ashleee >
found it in hexdump the struct possibly
19:23
[VroomAutist] is now known as [VroomAutism]
19:25
<
Ashleee >
hmm I wonder if they are
*not* identical the two boxes
19:26
<
Ashleee >
as hexdump says para1 0x310b but dt and binary of the one I dumped says 0x30eb
19:26
<
Ashleee >
same for para2 0x0 vs 0x0c000000
19:30
<
Ashleee >
but then again I may havej ust stumped upon the compiled dtb... and wasted 10 minutes of my time :V
19:32
<
Ashleee >
oh yes I was hexdumping the dtb instead of the boot values :)
19:32
<
Ashleee >
and dtb doesn't match the struct contents ..
19:32
<
Ashleee >
at least para1/2
19:36
<
jernej >
well, it's entirely possible that older libdram doesn't work with your setup and that's why also mainline U-Boot doesn't work
19:37
<
jernej >
it would be nice to get hold on newer libdram, ideally same version as in your box
19:38
<
Ashleee >
I mean I could just dump it, it was extracted elf anyways :P
19:38
<
Ashleee >
hoping it isn't relocatable
19:39
<
jernej >
well, libdram obtained from SDK contains a lot of useful symbols which ease reverse engineering
19:39
<
Ashleee >
I meant just to try booting it with this hybrid 32bit and 64bit spl :)
19:39
<
Ashleee >
before going full opensource
19:39
<
Ashleee >
update: fixed all values compared to the source and still no luck
19:40
<
Ashleee >
still stuck after DRAM zq value
19:40
<
Ashleee >
so maybe old LIBDRAM indeed
19:41
netlynx has quit [Quit: Ex-Chat]
19:41
<
Ashleee >
oh the libdram is relocatable :(
19:42
<
jernej >
of course it is, it's just compressed .o file
19:42
<
jernej >
why would that be a problem?
19:42
<
Ashleee >
cannot dump it from a image of the OS? :)
19:42
<
Ashleee >
to reinsert it somewhere else
19:42
<
jernej >
that's highly optimistic
19:43
<
Ashleee >
I like to be, thanks ^^ :D
19:43
<
jernej >
I'm optimist too but not that much :)
19:43
<
Ashleee >
either way, any idea how those mr/tpr args compare to all the regs in dram phy itself, if they do at all?
19:43
<
jernej >
sure, param1 tells number of rows and columns
19:44
<
jernej >
and something else I forgot already
19:44
<
Ashleee >
wondering if I could extract those params and shove them into uboot itself
19:44
<
Ashleee >
the mainline
19:44
<
Ashleee >
thought so
19:44
<
jernej >
many of these values are just flags
19:44
<
Ashleee >
for libdram, not for phy I presume
19:44
<
jernej >
not physical register values
19:45
<
Ashleee >
dangit allwinner!
19:45
<
Ashleee >
didn't they have git? :P
19:46
<
Ashleee >
or where to contact them
19:46
<
jernej >
they have it (you can find references to it in sdk) but it's inaccessible :)
19:46
<
jernej >
unless you're serious customer, you won't get anything from them afaik
19:47
[VroomAutism] is now known as [JFKennedy]
19:48
<
jernej >
anyway, can you dump SPL from your device?
19:49
<
jernej >
I can load it in ghydra and take a look
19:49
<
jernej >
dram functions should be easy to find
19:49
<
Ashleee >
I do have OS dump from the other box that came in the shipment, guessing their headers are the same
19:50
<
jernej >
currently I just want to have same libdram version
19:50
<
Ashleee >
:) let me dump the first few bytes
19:50
<
jernej >
para1 and para2 are mostly autodetected
19:53
<
Ashleee >
first 512K
19:59
<
Ashleee >
contacting allwinner I guess had no results eh? :)
20:00
<
Ashleee >
more so when the contact form says "success" with php warning above it :D
20:04
lurchi_ is now known as lurchi__
20:04
<
Ashleee >
either way I am off to sleep, thanks for all the help today jernej :) if you want to dig through the code I hope it doesn't get deleted soon :P I'd poke it but I haven't gotten used to ghydra
20:04
<
Ashleee >
I grew up on IDA
20:05
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.1, revision: 5.0.1+git-7433-0df9f22f2, build type: debug, sources date: 20160102, built on: 2019-12-08 19:19:20 UTC 5.0.1+git-7433-0df9f22f2
http://www.kvirc.net/ ]
20:07
<
jernej >
me too but ghydra looks nice, I have to check it more thoroughly
20:08
paynode has quit [Remote host closed the connection]
20:13
ldevulder_ has quit [Quit: Leaving]
20:20
<
mru >
ghidra is quite nice
20:20
<
mru >
and open source
21:39
cmeerw has quit [Ping timeout: 244 seconds]
22:21
warpme_ has quit [Quit: Connection closed for inactivity]
22:53
andy25225 has quit [Ping timeout: 256 seconds]
22:59
damex has quit [Ping timeout: 240 seconds]
23:04
andy25225 has joined #linux-sunxi
23:05
damex has joined #linux-sunxi
23:24
jbrown has quit [Ping timeout: 272 seconds]
23:30
_whitelogger has joined #linux-sunxi
23:47
megi1 has joined #linux-sunxi
23:50
hramrach has quit [Ping timeout: 256 seconds]
23:50
megi has quit [Ping timeout: 240 seconds]
23:50
hramrach has joined #linux-sunxi
23:56
dev1990 has quit [Quit: Konversation terminated!]