00:00
specing_ has joined #linux-sunxi
00:03
specing has quit [Ping timeout: 240 seconds]
00:03
specing_ is now known as specing
00:05
<
apritzel >
do you have any other device with a OTG port? Other Allwinner board or a Raspberry Pi?
00:07
<
pnill >
nope unfortunately I don't
00:08
<
pnill >
I've got like 5 of this very same board
00:09
<
pnill >
with minor differences
00:09
<
pnill >
one of em actually has/uses HDMI
00:27
Daanct12 has quit [Quit: Quitting - Huong Tram IRC Client 1.54]
00:27
Daanct12 has joined #linux-sunxi
00:28
Daanct12 has quit [Remote host closed the connection]
00:28
Danct12 has joined #linux-sunxi
00:34
Mangy_Dog has quit [Ping timeout: 260 seconds]
00:35
apritzel has quit [Ping timeout: 276 seconds]
00:47
montjoie has quit [Ping timeout: 265 seconds]
00:49
montjoie has joined #linux-sunxi
01:05
mripard has quit [Ping timeout: 252 seconds]
01:21
libv has quit [Ping timeout: 258 seconds]
01:40
mripard has joined #linux-sunxi
01:44
camus has joined #linux-sunxi
01:46
kaspter has quit [Ping timeout: 240 seconds]
01:46
camus is now known as kaspter
02:28
kaspter has quit [Quit: kaspter]
02:28
kaspter has joined #linux-sunxi
02:36
lucascastro has quit [Remote host closed the connection]
02:49
libv has joined #linux-sunxi
02:57
kaspter has quit [Ping timeout: 240 seconds]
02:57
kaspter has joined #linux-sunxi
03:06
cnxsoft has joined #linux-sunxi
03:07
buzzmarshall has quit [Remote host closed the connection]
03:22
tuxd3v has quit [Ping timeout: 240 seconds]
03:26
<
pnill >
finally got usb-ethernet/networking/ssh in a minimal build with my own kernel/initramfs/busybox and such
03:26
<
pnill >
hopefully that lets me troubleshoot that other board now
03:47
kaspter has quit [Ping timeout: 265 seconds]
03:48
kaspter has joined #linux-sunxi
04:18
cnxsoft1 has joined #linux-sunxi
04:19
cnxsoft has quit [Ping timeout: 240 seconds]
04:54
kaspter has quit [Ping timeout: 276 seconds]
04:54
kaspter has joined #linux-sunxi
05:37
hlauer has joined #linux-sunxi
05:39
apritzel has joined #linux-sunxi
05:52
s_frit has quit [Remote host closed the connection]
05:52
s_frit has joined #linux-sunxi
05:54
kaspter has quit [Ping timeout: 265 seconds]
05:54
kaspter has joined #linux-sunxi
05:57
alexxy has quit [Ping timeout: 265 seconds]
06:00
Guest66867 has joined #linux-sunxi
06:01
s_frit has quit [Ping timeout: 240 seconds]
06:04
apritzel has quit [Ping timeout: 276 seconds]
06:04
asdf28 has joined #linux-sunxi
06:11
tmlind has quit [Quit: leaving]
06:11
tmlind has joined #linux-sunxi
06:21
reinforce has joined #linux-sunxi
06:22
jstein has joined #linux-sunxi
06:26
cmeerw has joined #linux-sunxi
06:26
asdf28 has quit [Ping timeout: 276 seconds]
06:27
asdf28 has joined #linux-sunxi
06:32
cmeerw has quit [Ping timeout: 245 seconds]
06:54
Guest66867 has quit [Remote host closed the connection]
06:54
s_frit has joined #linux-sunxi
07:08
apritzel has joined #linux-sunxi
07:31
warpme_ has joined #linux-sunxi
07:46
matthias_bgg has joined #linux-sunxi
08:03
alexxy has joined #linux-sunxi
08:41
fevv8[m] has quit [Quit: Bridge terminating on SIGTERM]
08:41
z3ntu has quit [Quit: Bridge terminating on SIGTERM]
08:41
solderfumes[m] has quit [Quit: Bridge terminating on SIGTERM]
08:41
junak[m] has quit [Quit: Bridge terminating on SIGTERM]
08:41
danqo has quit [Quit: Bridge terminating on SIGTERM]
08:41
Ke has quit [Quit: Bridge terminating on SIGTERM]
08:41
thefloweringash has quit [Quit: Bridge terminating on SIGTERM]
08:41
kayterina has quit [Quit: Bridge terminating on SIGTERM]
08:41
JuniorJPDJ1 has quit [Quit: Bridge terminating on SIGTERM]
08:41
Jeremy_Rand_DT[m has quit [Quit: Bridge terminating on SIGTERM]
08:41
clementp[m] has quit [Quit: Bridge terminating on SIGTERM]
08:41
davidebeatrici has quit [Quit: Bridge terminating on SIGTERM]
08:41
insep_ has quit [Quit: Bridge terminating on SIGTERM]
08:41
Avamander[m]1 has quit [Quit: Bridge terminating on SIGTERM]
08:41
psydruid[m] has quit [Quit: Bridge terminating on SIGTERM]
08:41
MartijnBraam has quit [Quit: Bridge terminating on SIGTERM]
08:41
Laa[m] has quit [Quit: Bridge terminating on SIGTERM]
08:41
Tooniis has quit [Quit: Bridge terminating on SIGTERM]
08:44
JoaoSchim has quit [Ping timeout: 265 seconds]
08:50
Jeremy_Rand_DT[m has joined #linux-sunxi
08:57
<
apritzel >
jernej: Hi, did you use eMMC on the H616 in U-Boot in anger? I got a report (and can confirm) that reading multiple sectors fails.
09:02
camus has joined #linux-sunxi
09:02
kaspter has quit [Ping timeout: 276 seconds]
09:02
camus is now known as kaspter
09:04
insep_ has joined #linux-sunxi
09:04
psydruid[m] has joined #linux-sunxi
09:04
JuniorJPDJ has joined #linux-sunxi
09:04
danqo has joined #linux-sunxi
09:04
thefloweringash has joined #linux-sunxi
09:04
Tooniis has joined #linux-sunxi
09:04
kayterina has joined #linux-sunxi
09:04
z3ntu has joined #linux-sunxi
09:04
Ke has joined #linux-sunxi
09:04
junak[m] has joined #linux-sunxi
09:04
clementp[m] has joined #linux-sunxi
09:04
solderfumes[m] has joined #linux-sunxi
09:04
fevv8[m] has joined #linux-sunxi
09:04
MartijnBraam has joined #linux-sunxi
09:04
Laa[m] has joined #linux-sunxi
09:04
davidebeatrici has joined #linux-sunxi
09:04
Avamander[m]1 has joined #linux-sunxi
09:23
prefixcactus has joined #linux-sunxi
09:24
linkmauve has quit [Ping timeout: 250 seconds]
09:47
linkmauve has joined #linux-sunxi
10:06
<
apritzel >
jernej: if I limit f_max to 25 MHz, it seems to work
10:11
s_frit has quit [Remote host closed the connection]
10:11
s_frit has joined #linux-sunxi
10:31
Danct12 has quit [Remote host closed the connection]
10:31
Danct12 has joined #linux-sunxi
10:41
Mangy_Dog has joined #linux-sunxi
10:41
Mangy_Dog has joined #linux-sunxi
10:44
JoaoSchim has joined #linux-sunxi
10:47
daregap has joined #linux-sunxi
10:57
asdf28 has quit [Ping timeout: 252 seconds]
10:59
camus has joined #linux-sunxi
10:59
kaspter has quit [Ping timeout: 258 seconds]
11:00
camus is now known as kaspter
11:06
lucascastro has joined #linux-sunxi
11:07
victhor has joined #linux-sunxi
11:15
asdf28 has joined #linux-sunxi
11:20
choozy has joined #linux-sunxi
11:22
kaspter has quit [Ping timeout: 240 seconds]
11:23
kaspter has joined #linux-sunxi
12:02
specing_ has joined #linux-sunxi
12:03
specing has quit [Ping timeout: 240 seconds]
12:04
specing_ is now known as specing
12:37
faruk has joined #linux-sunxi
13:04
vagrantc has joined #linux-sunxi
13:13
asdf28 has quit [Ping timeout: 252 seconds]
13:27
faruk has quit [Quit: Leaving]
13:32
chewitt has joined #linux-sunxi
13:35
cnxsoft1 has quit [Ping timeout: 246 seconds]
13:44
ynezz has quit [Remote host closed the connection]
13:49
choozy has quit [Remote host closed the connection]
14:00
ynezz has joined #linux-sunxi
14:01
matthias_bgg has quit [Read error: Connection reset by peer]
14:05
gediz0x539 has quit [Quit: Leaving]
14:14
asdf28 has joined #linux-sunxi
14:19
matthias_bgg has joined #linux-sunxi
14:21
uis has joined #linux-sunxi
14:43
JohnDoe_71Rus has joined #linux-sunxi
14:57
cmeerw has joined #linux-sunxi
15:05
<
jernej >
apritzel: IIRC I tested eMMC on H616 only on Linux
15:06
<
jernej >
but nice find
15:09
<
apritzel >
jernej: I need more time for debugging, but it looks like we miss some quirks in the U-Boot MMC driver
15:10
<
apritzel >
for instance "new timing mode" is only enabled for A64, but should be there for H5, H6, H616 ... as well
15:11
reinforce has quit [Quit: Leaving.]
15:12
<
jernej >
huh, didn't we enable it?
15:20
<
apritzel >
select MMC_SUNXI_HAS_NEW_MODE is only there for MACH_SUN50I
15:21
<
apritzel >
but there must be more in this case, as this alone doesn't fix it
15:23
<
jernej >
did I broke that by mistake when introducing new common symbol for GEN_H6?
15:35
\\Mr_C\\ has quit [Quit: Ping timeout: 999,999,999 years]
15:59
matthias_bgg has quit [Ping timeout: 246 seconds]
16:08
<
apritzel >
jernej: I don't think so, it was always broken
16:08
<
jernej >
funny thing - I got reports that people successfully run LibreELEC from H6 eMMC
16:09
<
jernej >
I guess they were just lucky with tolerances
16:11
<
apritzel >
apritzel: I was wondering if that fix halves or doubles the clock?
16:11
<
apritzel >
jernej: ^^^
16:11
<
jernej >
good point, I'll check
16:14
<
jernej >
I think fix halves the clock, because that function is used to calculate divider
16:16
<
jernej >
fixed function will report lower clock, which in turn will make divider smaller and that will cause higher clock in the end
16:17
<
jernej >
so yeah, it worked because clock was lower than optimal
16:21
<
apritzel >
jernej: yeah, so the Linux fix back then doubled the transfer rate, right?
16:22
<
apritzel >
jernej: for the H616 this could be another instance of the H5 DDR50 eMMC issue? But then again it seems to work in Linux ...
16:23
<
jernej >
clock in Linux should be fine, yes
16:24
<
jernej >
it seems to me that all controllers with "new mode" have this DDR50 issue
16:25
asdf28 has quit [Ping timeout: 252 seconds]
16:25
<
jernej >
but I couldn't find the reason for this issue
16:25
asdf28 has joined #linux-sunxi
16:25
<
jernej >
BSP is also not helpful since it works in HS400 mode on basically every board with eMMC nowadays
16:26
prefixcactus has quit [Ping timeout: 268 seconds]
16:39
<
apritzel >
jernej: no fallback in the BSP? Not all eMMC chips support HS400, IIRC
16:40
<
jernej >
DDR50 seems to be supported, but I could not actually test it
16:40
<
jernej >
HS200 is still faster, right?
16:40
camus has joined #linux-sunxi
16:41
kaspter has quit [Remote host closed the connection]
16:41
camus is now known as kaspter
16:41
<
jernej >
well, I could test it by fiddling with DT, but for that, I would also need something else than Android
16:41
<
apritzel >
so I tested speed yesterday, with hdparm
16:42
<
apritzel >
DDR50 was about 85MB/s, HS200 120MB/s
16:42
<
apritzel >
similar to Pine H64/ Pine64-LTS
16:53
<
pnill >
I only ask because it says there's no mainline support
16:53
<
pnill >
but the Banana Pi M2 Berry runs one
16:53
<
pnill >
and I noticed uboot has defconfigs for that
16:54
rzerres has joined #linux-sunxi
16:55
Mangy_Dog has quit [Remote host closed the connection]
16:57
<
apritzel >
pnill: it's a Wiki! ;-)
16:57
<
apritzel >
pnill: and yeah, there are several outdated pages ...
16:58
rzerres has quit [Client Quit]
17:02
rzerres has joined #linux-sunxi
17:04
<
apritzel >
smaeul: it looks like there will be code freeze for TF-A end of this week, so if you have any urgent patches, you should send them now
17:05
<
apritzel >
smaeul: (not that a certain release is something very important for us, but just a heads up)
17:05
rzerres has quit [Remote host closed the connection]
17:13
rzerres has joined #linux-sunxi
17:19
Mangy_Dog has joined #linux-sunxi
17:20
netlynx has joined #linux-sunxi
17:20
netlynx has quit [Changing host]
17:20
netlynx has joined #linux-sunxi
17:43
rzerres has joined #linux-sunxi
17:44
rzerres has quit [Client Quit]
17:44
rzerres has joined #linux-sunxi
17:50
rzerres has joined #linux-sunxi
17:54
rzerres has quit [Client Quit]
18:30
vagrantc has quit [Quit: leaving]
18:45
choozy has joined #linux-sunxi
18:46
<
pnill >
It's a wiki page right? lol
18:48
kaspter has quit [Ping timeout: 240 seconds]
18:48
kaspter has joined #linux-sunxi
18:53
popolon has joined #linux-sunxi
19:00
netlynx has quit [Quit: Ex-Chat]
19:01
lucascastro has quit [Ping timeout: 240 seconds]
19:29
<
apritzel >
pnill: did you come across an R40 device?
19:30
rzerres has joined #linux-sunxi
19:31
lucascastro has joined #linux-sunxi
19:40
<
apritzel >
jernej: did you ever debug the 4GB DRAM issue? any results so far?
19:41
lucascastro has quit [Ping timeout: 268 seconds]
19:46
<
jernej >
no, I have never tested 4 GB
20:01
<
apritzel >
so Linux works (tested by hacking arch_fixup_fdt()), but U-Boot crashed right after relocation
20:04
choozy has joined #linux-sunxi
20:19
<
jernej >
maybe some driver needs 32-bit offsets?
20:19
<
jernej >
s/offsets/addresses/
20:21
fl_0 has quit [Quit: STRG + Q]
20:24
buzzmarshall has joined #linux-sunxi
20:28
matthias_bgg has joined #linux-sunxi
20:28
<
apritzel >
much earlier, must easier to fix:
20:28
<
apritzel >
there is a hardcoded 0xc0000000 in the page table setup ...
20:33
<
apritzel >
jernej: works now: I loaded a kernel from a USB drive and booted into it, with the full 4GB in both U-Boot and Linux
20:33
<
apritzel >
jernej: I think the EMAC code will break, but I can't test this at the moment
20:33
<
jernej >
in U-Boot or Linux?
20:35
fl_0 has joined #linux-sunxi
20:36
<
apritzel >
the EMAC code in Linux should be fine, thanks to the default DMA mask
20:36
<
pnill >
yeah, one of the other revisions of these arcade boards uses an R40
20:37
<
apritzel >
jernej: but U-Boot will allocate buffers from the heap, which is now well above 4GB, but the EMAC DMA descriptors only hold 32 bit worth of addresses
20:37
<
apritzel >
pnill: I will update the Wiki later, but the R40 is quite well supported as well
20:37
lucascastro has joined #linux-sunxi
20:38
<
jernej >
is there an easy solution to this?
20:38
<
jernej >
could you control relocation address?
20:38
<
apritzel >
jernej: it's a generic U-Boot problem, I will probably ask on the list
20:38
<
apritzel >
jernej: ideally we are not the first to encounter this problem
20:39
<
apritzel >
and I'd rather not play around with the relocation code, this is mostly generic
20:39
<
pnill >
apritzel: Awesome, wasn't gonna play with it anytime soon was just checking the chipset lastnight and saw that
20:40
<
apritzel >
pnill: the R40 is 32-bit only, but has native SATA (not sure if you can make use of that, I guess not ...)
20:40
<
pnill >
yeah, no SATA port lol
20:41
<
apritzel >
jernej: I might pull in your T95 U-Boot Ethernet hack, to see what's going to happen
20:42
<
jernej >
apritzel: for RX, it might just cut off 33-bit and try to write on some lower location?
20:43
<
apritzel >
jernej: I think there are plenty ways to hack it, yes ;-)
20:44
<
apritzel >
IIRC we can even force our own buffers, or we just copy them ...
20:44
<
apritzel >
jernej: but somehow I have the feeling the RPi4 has the same problem
20:44
<
apritzel >
the DMA buffer is even more limited there, IIRC
20:45
<
pnill >
that's what the r40 board looked like
20:45
<
pnill >
if you're curious
20:46
<
jernej >
yeah, RPi has interesting DMA, but I forgot details...
20:46
<
jernej >
pnill: it uses nand, so that's bad
20:47
<
pnill >
why's that bad? :/
20:47
<
jernej >
at least if you want to use mainline Linux and U-Boot
20:47
<
pnill >
mainline linux/u-boot is easiest
20:47
<
apritzel >
yeah, that Winbond chip looks bad
20:47
<
jernej >
because there is no support for it
20:47
<
pnill >
well that blows
20:48
<
pnill >
so only option is BSP then?
20:48
<
jernej >
could be that small 8-bit chip SPI NOR?
20:49
<
jernej >
if you want to utilize that nand, then yes (unless you want to work on nand support)
20:49
<
apritzel >
jernej: yeah, recruit him!
20:50
<
apritzel >
although we haven't seen NAND in a while, have we?
20:53
lucascastro has quit [Ping timeout: 252 seconds]
20:54
lucascastro has joined #linux-sunxi
21:11
cmeerw has quit [Ping timeout: 245 seconds]
21:27
<
pnill >
if I knew what I was doing I would certainly give it a shot (working on nand support)
21:42
<
apritzel >
pnill: don't bother, for all I know raw NAND is real rocket science ...
21:42
<
pnill >
So what's the best approach to targeting a board like that?
21:42
<
pnill >
BSP SDK for that chipset?
21:48
elros1 has joined #linux-sunxi
21:56
<
apritzel >
pnill: you will lose most people in here if you do so ...
21:58
<
pnill >
oh, what's the alternative for NAND support lol?
22:04
<
apritzel >
pnill: eMMC ;-)
22:05
<
pnill >
the board has NAND
22:05
<
pnill >
I can't change out what it has lol
22:05
<
pnill >
in theory, if I could boot from uboot off USB
22:05
<
pnill >
the NAND isn't exactly relevant
22:05
<
pnill >
I'd just have to a deploy a new OS to allow people to use it.
22:06
<
pnill >
different cabinet than the other one I was working on
22:06
<
pnill >
but trying to build a tool to support a wide array of them
22:06
<
apritzel >
pnill: well, nobody said it would be a walk in the park, sorry
22:06
<
apritzel >
or that you can use all of them with mainline just like so
22:06
<
apritzel >
complain to the manufacturer ;-)
22:07
<
apritzel >
at the end of the day it remains a hack: if you want a game console, buy one
22:08
<
apritzel >
or use any other, well supported SBC and some gaming distro
22:09
hlauer has quit [Ping timeout: 252 seconds]
22:12
rzerres has joined #linux-sunxi
22:14
kaspter has quit [Ping timeout: 240 seconds]
22:14
kaspter has joined #linux-sunxi
22:15
vagrantc has joined #linux-sunxi
22:19
warpme_ has quit [Quit: Connection closed for inactivity]
22:21
dev1990 has quit [Quit: Konversation terminated!]
22:39
dev1990 has joined #linux-sunxi
22:40
elros1 has quit [Remote host closed the connection]
22:41
<
apritzel >
pnill: sorry, what I meant to say is: Choose your battles! And there are much more rewarding and promising fights out there than NAND flash ...
22:54
asdf28 has quit [Ping timeout: 265 seconds]
23:00
<
smaeul >
apritzel: nothing I have is urgent; I pushed it all anyway
23:01
<
smaeul >
the only remaining patches are for cpuidle, which I will have to rework to add the DT nodes in TF-A
23:01
<
smaeul >
and copy them in U-Boot... this scenario is getting familiar :)
23:04
<
apritzel >
smaeul: yeah, I have some U-Boot code to copy reserved-memory nodes, but it's not pretty and has issues (broken node name, no region merging)
23:10
sunshavi has quit [Read error: Connection reset by peer]
23:11
sunshavi has joined #linux-sunxi
23:17
jstein has quit [Quit: quit]
23:45
apritzel has quit [Ping timeout: 252 seconds]
23:56
popolon has quit [Quit: WeeChat 3.1]