00:32
warpme_ has quit [Quit: Connection closed for inactivity]
00:34
kevery has joined #linux-rockchip
00:49
field^Zzz4 has quit [Ping timeout: 240 seconds]
00:50
vicencb has quit [Quit: Leaving.]
01:23
wens has quit [Ping timeout: 250 seconds]
01:23
wens has joined #linux-rockchip
01:37
stikonas has quit [Remote host closed the connection]
01:37
ganbold has quit [Remote host closed the connection]
01:44
ganbold has joined #linux-rockchip
02:36
vstehle has quit [Ping timeout: 250 seconds]
02:41
<
wens >
robmur01: I added that range to reserved memory, using u-boot `fdt rsvmem` command. doesn't seem to be enough
03:04
lkcl has quit [Ping timeout: 268 seconds]
03:05
tuxd3v has quit [Quit: Leaving]
03:33
lkcl has joined #linux-rockchip
03:44
tuxd3v has joined #linux-rockchip
03:45
<
tuxd3v >
Hello, anybody managed to boot mainline kernel on rk3399 rockpi4 ?
04:14
return0e has quit [Ping timeout: 250 seconds]
04:15
return0e has joined #linux-rockchip
05:06
drrty has quit [Ping timeout: 245 seconds]
06:00
vstehle has joined #linux-rockchip
06:24
_whitelogger has joined #linux-rockchip
08:29
ldevulder_ is now known as ldevulder
08:31
warpme_ has joined #linux-rockchip
08:44
jlandafk is now known as jlandsa
08:44
jlandsa is now known as jlanda
09:05
ldevulder has quit [Read error: Connection reset by peer]
09:06
ldevulder has joined #linux-rockchip
09:09
matthias_bgg has joined #linux-rockchip
09:54
_whitelogger has joined #linux-rockchip
10:03
anarsoul|2 has joined #linux-rockchip
10:04
anarsoul has quit [Ping timeout: 268 seconds]
10:16
EmilKarlson has quit [Quit: killed]
10:16
thefloweringash has quit [Quit: killed]
10:16
flacks has quit [Quit: killed]
10:16
eballetbo[m] has quit [Quit: killed]
10:16
psydroid has quit [Quit: killed]
10:34
vagrantc has joined #linux-rockchip
10:58
vicencb has joined #linux-rockchip
11:17
lerc has quit [Ping timeout: 250 seconds]
11:22
lerc has joined #linux-rockchip
11:22
nsaenz has joined #linux-rockchip
11:22
nsaenz has quit [Remote host closed the connection]
11:23
field^Zzz4 has joined #linux-rockchip
11:28
vagrantc has quit [Ping timeout: 252 seconds]
11:28
nsaenz has joined #linux-rockchip
11:29
nsaenz has quit [Remote host closed the connection]
11:31
thefloweringash has joined #linux-rockchip
11:31
flacks has joined #linux-rockchip
11:31
eballetbo[m] has joined #linux-rockchip
11:31
EmilKarlson has joined #linux-rockchip
11:31
psydroid has joined #linux-rockchip
11:44
vagrantc has joined #linux-rockchip
11:59
leah2 has quit [Remote host closed the connection]
12:02
leah2 has joined #linux-rockchip
12:03
vagrantc has quit [Ping timeout: 245 seconds]
12:25
wadim_ has joined #linux-rockchip
12:32
vicencb has quit [Quit: Leaving.]
12:34
vagrantc has joined #linux-rockchip
12:50
return0__ has joined #linux-rockchip
12:50
return0e has quit [Ping timeout: 240 seconds]
13:04
vagrantc has quit [Ping timeout: 276 seconds]
13:51
return0e has joined #linux-rockchip
13:52
return0__ has quit [Ping timeout: 265 seconds]
14:08
lkcl has quit [Ping timeout: 265 seconds]
14:20
lkcl has joined #linux-rockchip
14:22
vagrantc has joined #linux-rockchip
14:29
vagrantc has quit [Ping timeout: 250 seconds]
14:31
JohnDoe_71Rus has joined #linux-rockchip
14:35
vagrantc has joined #linux-rockchip
14:37
lkcl has quit [Ping timeout: 246 seconds]
14:37
field^Zzz4 has quit [Ping timeout: 246 seconds]
16:03
drrty has joined #linux-rockchip
16:07
tlwoerner has quit [Quit: Leaving]
16:08
tlwoerner has joined #linux-rockchip
16:10
vagrantc has quit [Ping timeout: 250 seconds]
16:37
field^Zzz4 has joined #linux-rockchip
17:16
vagrantc has joined #linux-rockchip
17:57
vagrantc has quit [Quit: leaving]
18:02
vicencb has joined #linux-rockchip
18:15
lkcl has joined #linux-rockchip
18:31
TomTheDragon has joined #linux-rockchip
18:35
<
TomTheDragon >
I've had more luck with kernel 4.4 for my rockpro64 (rk3399), is mainline still not there yet?
18:37
field^Zzz4 has quit [Ping timeout: 240 seconds]
18:41
lerc has quit [Quit: No Ping reply in 180 seconds.]
18:43
lerc has joined #linux-rockchip
20:01
lkcl has quit [Ping timeout: 268 seconds]
20:08
lkcl has joined #linux-rockchip
20:18
stikonas has joined #linux-rockchip
20:24
vagrantc has joined #linux-rockchip
20:30
field^Zzz4 has joined #linux-rockchip
20:34
vagrantc has quit [Ping timeout: 246 seconds]
20:49
matthias_bgg has quit [Quit: Leaving]
21:21
lkcl has quit [Ping timeout: 250 seconds]
21:35
fALSO has joined #linux-rockchip
21:36
<
fALSO >
stikonas, you no longer update your kernel branch?
21:36
<
fALSO >
stikonas, or moved it somewhere else?
21:36
<
stikonas >
fALSO: hi
21:36
<
stikonas >
for rockpro64?
21:37
<
stikonas >
in the blog or where should I update?
21:37
<
stikonas >
I don't think I pushed any repository anywhere
21:38
<
stikonas >
I myself am on 5.4.2 at the moment on rockpro64...
21:38
<
stikonas >
with a single patch on top of it
21:38
<
fALSO >
oh man,, i confused your nick with sigmaris
21:38
<
stikonas >
oh ok. no problem
21:40
<
tuxd3v >
fALSO, how did you compiled all the amount of uboot partitions?
21:41
<
tuxd3v >
1st: idbloader.img
21:41
<
fALSO >
im using a binary from someone here, while building myself, it always hanged on the ATF
21:41
<
fALSO >
stikonas, nice url - thanks :)
21:41
<
tuxd3v >
2nd: u-boot.itb
21:41
<
stikonas >
tuxd3v: that's the only two things that you need
21:41
<
tuxd3v >
fALSO...exactlly
21:41
<
stikonas >
idbloader.img and u-boot.itb contains all 4 stages
21:42
<
tuxd3v >
I build bl31.elf
21:42
<
stikonas >
yes, bl31.elf is then in u-boot.irb
21:42
<
tuxd3v >
build idbloader.img and u-boot.itb
21:42
<
stikonas >
tuxd3v: which versions?
21:42
<
stikonas >
there were some incompatible changes...
21:43
<
fALSO >
last time i tried -> probably one or two months ago, it didnt boot
21:43
<
fALSO >
mainline atf, mainline uboot
21:43
<
stikonas >
e.g. commit 0aad563c74807195cc7fe2208d17e2d889157f1e in atf needs some changes in u-boot
21:43
<
stikonas >
which are not yet in u-boot's defconfig
21:43
<
stikonas >
so need to edit config after running defconfig
21:44
<
stikonas >
sudo dd if=idbloader.img of=/dev/mmcblk1 seek=64
21:44
<
stikonas >
sudo dd if=u-boot.itb of=/dev/mmcblk1 seek=16384
21:44
<
tuxd3v >
make menuconfig, and then what you do in Uboot?
21:44
<
fALSO >
those steps should probably be documented
21:44
<
stikonas >
this is how I flash
21:44
<
fALSO >
the edit part
21:45
<
tuxd3v >
you flash to a partition?
21:45
<
tuxd3v >
I flash to /dev/sdb
21:45
<
stikonas >
tuxd3v: I flash to eMMC
21:46
<
fALSO >
i noticed that some people here also use grub
21:46
<
tuxd3v >
ho..forget, exactly its the same..
21:46
<
stikonas >
yeah, I use grub
21:46
<
fALSO >
i only have uboot -> kernel
21:46
<
TomTheDragon >
yeah, mmcblk1 is not a partition
21:46
<
stikonas >
oh yes, I have offset from device
21:46
<
stikonas >
not from partition
21:46
<
stikonas >
I do have partitions too
21:47
<
stikonas >
at those offsets, so I can just update my script
21:47
<
stikonas >
but this works with any partitioning
21:47
<
stikonas >
oh that CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x0 change I mentioned above is now in defconfig if I'm not mistaken
21:48
<
fALSO >
thats probably wwhat i was missing
21:48
<
anarsoul|2 >
stikonas: they're already in
21:48
<
anarsoul|2 >
also there's a patch for ATF to fix reboot
21:48
<
stikonas >
fALSO: basically, I marked one of my partitions as EFI ESP, so u-boot automatically boots from that partition from bootaa64.efi file (which is grub)
21:48
<
stikonas >
anarsoul|2: I appleid that patch, but somehow reboots are still hanging
21:49
<
anarsoul|2 >
stikonas: one for ATF?
21:49
<
stikonas >
maybe something to do with grub?
21:49
<
stikonas >
when grub loads kernel and initramfs, kernel doesn't boot
21:49
<
stikonas >
I didn't dig deeper though
21:49
<
stikonas >
this one
21:49
<
stikonas >
it's in master
21:50
<
stikonas >
I just tried yesterday I think
21:50
<
stikonas >
from master
21:50
<
anarsoul|2 >
it's not in master yet
21:50
<
anarsoul|2 >
check the patch ^^
21:50
<
stikonas >
oh, that's 2nd patch
21:50
<
stikonas >
ok, maybe not then
21:51
<
stikonas >
yes, it looks different
21:51
<
stikonas >
should try this one then
21:51
<
anarsoul|2 >
you need this in addition to my patch
21:52
<
stikonas >
ok, building...
22:05
<
stikonas >
anarsoul|2: no, 3/3 times reboot failed
22:06
<
stikonas >
must be some other issue
22:06
<
stikonas >
I probably need to enable extra logging...
22:06
<
stikonas >
otherwise it's hard to tell
22:06
<
stikonas >
at which step boot fails
22:06
<
stikonas >
last thing I see is EFI stub: Exiting boot services and installing virtual address map...
22:08
<
anarsoul|2 >
that's weird
22:08
<
anarsoul|2 >
even when it hangs for me I see some logs from kernel
22:10
<
stikonas >
nothing at all from the kernel...
22:10
<
stikonas >
I probably need to enable earlycon
22:10
<
anarsoul|2 >
I'd say it indicates that kernel hasn't started?
22:11
<
stikonas >
well, efi stub is already part of kernel, isn't it?
22:11
<
stikonas >
just gets stuck really early in loading process
22:12
<
TomTheDragon >
there's no way to just bypass the ATF altogether?
22:13
<
tuxd3v >
Maybe if we know how to compile OPTEE
22:13
<
tuxd3v >
it has no target string for rk3399
22:13
<
tuxd3v >
only for rk32xx cpus :(
22:14
<
tuxd3v >
we could use OPTEE instead of ATF
22:14
<
tuxd3v >
but how to compile it ?
22:14
<
tuxd3v >
I haven't figured out how..
22:15
<
tuxd3v >
but if so, you need to compile 'tee.bin', then rename it to bl31.elf
22:15
<
tuxd3v >
and also moove it into uboot
22:15
<
tuxd3v >
export var.. and so on equal to build uboot with ATF
22:16
<
tuxd3v >
BUT how to compile tee.bin?
22:16
<
tuxd3v >
to substitute bl31.elf stage of ATF?
22:16
<
anarsoul|2 >
stikonas: oh, right
22:17
<
anarsoul|2 >
TomTheDragon: ATF implements PSCI, so it's used to bring up secondary CPUs, reboot and poweroff the board
22:17
<
anarsoul|2 >
(poweroff is not implemented for rk3399 though)
22:18
anarsoul|2 is now known as anarsoul
22:19
<
stikonas >
is that why fan stays on when I run shutdown?
22:20
<
anarsoul >
(board also stays on)
22:20
<
anarsoul >
it just spins in while(1) {} loop
22:32
<
TomTheDragon >
does anyone here have functional 4k video decoding, playing back in a window?
22:35
<
stikonas >
anarsoul: ocasionally, my reboots also hang much earlier in TPL before RAM is initialized (I only see U-Boot TPL 2020.01-rc4-00038-g94d022bb40-dirty (Dec 08 2019 - 00:55:1)
22:35
<
stikonas >
not even Channel 0: Channel 1: 256B stride
22:35
<
anarsoul >
are you booting off eMMC?
22:36
<
anarsoul >
you need to limit max frequency to 25MHz
22:36
<
anarsoul >
sdhci driver in u-boot is broken and doesn't work well for high-speed modes
22:36
<
anarsoul >
for eMMC
22:36
<
stikonas >
do you know where I can do that?
22:36
<
stikonas >
menuconfig?
22:38
<
stikonas >
you solved quite a few of these reboot problems. Amazing work!
22:45
<
stikonas >
doesn't look like there is any problem here
22:45
<
stikonas >
which is strange...
22:47
<
anarsoul >
add console=ttyS2,115200 (or whatever baudrate you use) to cmdline
22:50
<
stikonas >
ok, better
22:51
<
stikonas >
although, this time it just booted...
22:51
<
stikonas >
well, it ocasionally boots
22:51
<
anarsoul >
heizenbug
22:51
<
stikonas >
well, if it happens 90% of time, you get annoyed enough and investigate
22:52
<
stikonas >
if it happens 5% of times, that's worse
22:52
<
stikonas >
not frequent enough to look at it
22:52
<
stikonas >
hard to reproduce...
22:57
<
stikonas >
anarsoul: successfully rebooted 3 more times... I blame your u-boot emmc 25 Mhz patch
22:57
<
stikonas >
thanks again!
22:58
<
stikonas >
interestengly, it was causing hangs in two different places
22:58
<
anarsoul >
yeah, if you load corrupted image it likely won't start
22:58
<
stikonas >
are you going to upstream it?
22:58
<
anarsoul >
I'm not sure if it gets accepted
22:59
<
anarsoul >
since we don't understand why it doesn't work at higher frequencies
22:59
<
stikonas >
hmm, worth trying... Maybe somebody will suggest something else
22:59
<
anarsoul >
it works fine at HS200 in linux
22:59
<
anarsoul >
so hardware is fine
22:59
<
anarsoul >
so must be something with sdhci driver in u-boot
22:59
<
stikonas >
well, anyway, your hack is very useful here for me
22:59
<
stikonas >
especially when I'm not at home, unreliable reboot is unacceptable :D
23:00
<
anarsoul >
definitely
23:01
<
stikonas >
well, I have some way of remotely power cycling that machine, but it's a bit inconvenient
23:01
<
anarsoul >
guess it's time for me to buy smart outlet :)
23:02
<
stikonas >
I have a couple of Orvibo S20... Also did a bit of reverse engineering on them... But they probably don't sell them anymore.
23:04
<
stikonas >
well, my requirements are: works without cloud, locally with FOSS
23:06
<
anarsoul >
that's harder to find
23:08
ldevulder_ has joined #linux-rockchip
23:11
ldevulder has quit [Ping timeout: 245 seconds]
23:19
vstehle has quit [Ping timeout: 250 seconds]
23:21
vstehle has joined #linux-rockchip
23:37
warpme_ has quit [Quit: Connection closed for inactivity]
23:39
vicencb has quit [Quit: Leaving.]