ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
vicencb has quit [Quit: Leaving.]
fireglow- has joined #linux-rockchip
fireglow has quit [Ping timeout: 250 seconds]
fireglow- is now known as fireglow
wens has quit [Quit: leaving]
wens has joined #linux-rockchip
ganbold has quit [Ping timeout: 268 seconds]
<levd> In order to bring rockusb to rk3399, I test the firefly-rk3288 board which rockusb is claimed to support. But I had a problem. The TF card is stuck at SPL after showing: "U-Boot SPL 2019.10 (Oct 15 2019 - 02:43:47 +0000)".
<levd> I'm using Gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) in Ubuntu 18.04. Build with the following commands according to the U-Boot doc/README.rockchip:
<levd> export CROSS_COMPILE=arm-linux-gnueabi-
<levd> make firefly-rk3288_defconfig
<levd> make -j8
<levd> tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out
<levd> And flashed with "sudo dd if=out of=/dev/sdc seek=64 && sudo dd if=u-boot-dtb.img of=/dev/sdc seek=16384".
<levd> kevery: this is likely a regression?
<levd> I've had the emmc erased. Without the TF card, the board enters into MaskRom mode.
<kevery> Maybe because of the pinctrl driver, you can enable the DEBUG for SPL to get more detail
<levd> i also tried the toolchain of gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf, with the same result.
<kevery> I didn't try with sdcard recently, I only try with EMMC and it works OK.
<kevery> This issue should be nothing to do with toolchain.
<levd> kevery: would you plz post your commands with EMMC?
<levd> I turn on DEBUG in pinctrl-rockchip-core.c, which results that the size of spl/u-boot-spl-dtb.bin is increased to 32864 bytes, not bootable :(
<levd> the 32K bytes limit of spl
<kevery> The build command for emmc is no difference with sdcard, they share the same firmware.
<levd> But it's confusing in doc/README.rockchip.
<levd> In the chapter "Booting from an SD card on RK3288 with TPL", there're actually no commands for generating the idbloader.img for rk3288.
<levd> The emmc flashing instructions in that doc are using `rkflashtool l`, which is stuck after showing the "U-BOOT SPL...".
<anarsoul> what's the status for rk3399 hdmi support in u-boot?
<anarsoul> I see that driver is there but it doesn't work for me on rockpro64
<anarsoul> looks like it's not even probed
ganbold has joined #linux-rockchip
<EmilKarlson> do you have that blob, which I believe that it required
<EmilKarlson> I have no idea, if that would help, but I believe it's not optional for hdmi
adjtm has quit [Ping timeout: 240 seconds]
warpme_ has joined #linux-rockchip
<levd> kevery: after git bisect, i found that after this commit "[d18ca747b6264289579fbeb778f299eb03e479ed] rockchip: rk3288: enable TPL configs to chip level", the firefly-rk3399 no longer boots. Before that commit, it is okay with tf card booting.
<levd> oh no, typo, s/firefly-rk3399/firefly-rk3288
<levd> my test commands: make clean && make firefly-rk3288_defconfig && make CC="ccache ${CROSS_COMPILE}gcc" -j8 && tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin out && cat u-boot-dtb.bin >>out && sudo dd if=out of=/dev/sdc seek=64 && sudo dd if=u-boot-dtb.img of=/dev/sdc seek=16384
<levd> previously i left out an import step of "cat u-boot-dtb.bin >>out"
<kevery> levd: This patch is to make TPL available for all rk3288 board, suppose to not affect those board not enabled.
ldevulder__ is now known as ldevulder
<kevery> I would prefer to enable TPL for all the boards so that we don't limit by the size of IRAM, and easier to debug.
yann has quit [Ping timeout: 268 seconds]
adjtm has joined #linux-rockchip
<levd> kevery: i tried to turn on TPL like tinker board, with patch at http://ix.io/1YHT , but got result of not being able to reading mmc device:
<levd> U-Boot SPL 2019.10-dirty (Oct 15 2019 - 15:37:16 +0800)\n Trying to boot from MMC2\n mmc_load_image_raw_sector: mmc block read error\n Trying to boot from MMC1\n mmc_load_image_raw_sector: mmc block read error\n SPL: failed to boot from all boot devices\n ### ERROR ### Please RESET the board ###
<levd> rockusb & ums work like a charm in U-Boot v2019.04 on firefly-rk3288 board. What's lacking to support rockusb in rk3399? Any thoughts? kevery mmind00
<kevery> The rockusb driver on mainline and rockchip branch are different, so I'm not sure how many people are using mainline rockusb function.
hessophanes has quit [Quit: WeeChat 2.3]
<kevery> With below update, the firefly-rk3288 boots from emmc:
<kevery> If you are using SD card, then need to care about: IOMUX and power supply.
<levd> tks, i'll take a look.
hessophanes has joined #linux-rockchip
<levd> strange, it hangs at "U-Boot SPL 2019.10-00014-g9d89161bba73-dirty (Oct 15 2019 - 16:40:13 +0800)\n Trying to boot from MMC2". I'm using the latest commit 9d89161bba733b2de65e49e17223af5bd4417bb0 in rockchip repository, applied with your patch, without any more modification.
<levd> compiled with: make firefly-rk3288_defconfig && make CC="ccache ${CROSS_COMPILE}gcc" -j8 all && ./tools/mkimage -n rk3288 -T rksd -d tpl/u-boot-tpl.bin out && cat ./spl/u-boot-spl-dtb.bin >> out
<levd> flashed with: rkdeveloptool db rk3288_loader_v1.06.236.bin && rkdeveloptool wl 0x40 out && rkdeveloptool wl 0x4000 u-boot-dtb.img && rkdeveloptool rd
<levd> Now I see, idbloader.img is generated automatically if TPL and SPL is both y, which equals to the `out` above.
field^Mop has joined #linux-rockchip
perr_ has joined #linux-rockchip
perr_ has quit [Remote host closed the connection]
perr_ has joined #linux-rockchip
perr_ has quit [Remote host closed the connection]
vicencb has joined #linux-rockchip
vicencb has quit [Client Quit]
vicencb has joined #linux-rockchip
inode has quit [Quit: ]
yann has joined #linux-rockchip
<paulk-leonov> hey there
<paulk-leonov> just built ATF for rk3399
<paulk-leonov> resulting binary is 4.3 GiB
<paulk-leonov> is it just me?
<paulk-leonov> or there's something seriously wrong happening here?
<paulk-leonov> the .elf is a few hundred KiBs
<paulk-leonov> my fault for not using master :p
marvs has quit [Ping timeout: 240 seconds]
vstehle has quit [Ping timeout: 265 seconds]
hessophanes has quit [Ping timeout: 264 seconds]
inode has joined #linux-rockchip
return0e_ has joined #linux-rockchip
return0e has quit [Ping timeout: 240 seconds]
vicencb has quit [Quit: Leaving.]
JohnDoe_71Rus has joined #linux-rockchip
elektirnis has joined #linux-rockchip
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-rockchip
drrty has joined #linux-rockchip
field^Mop has quit [Ping timeout: 246 seconds]
vstehle has joined #linux-rockchip
adjtm has quit [Ping timeout: 265 seconds]
yann has quit [Ping timeout: 265 seconds]
nsaenz has quit [Quit: Leaving]
nsaenz has joined #linux-rockchip
return0e_ has quit [Remote host closed the connection]
return0e has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 246 seconds]
stikonas has joined #linux-rockchip
yann has joined #linux-rockchip
Kelsar has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Kelsar has joined #linux-rockchip
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<hanetzer> paulk-leonov: huh. so there were like huge empty spaces in the .bin file
<mmind00> hanetzer: yep which was caused by the sram code being in that bin file as well ... aka ddr-based atf at (then) 0x10000 + sram-atf-code at 0xff7c0000 (or somewhere in that area) ... so you end up with around 4GB of sparsely filled file
<mmind00> hanetzer: hence the move to not use that .bin anymore and only use the .elf that isn't affected by this
<anarsoul> mmind00: ping
<mmind00> anarsoul: hey
<anarsoul> mmind00: do you know what's the status for HDMI support for rk3399 in u-boot?
<anarsoul> driver seems to be there but device(s) is not even probed
<mmind00> anarsoul: no clue ... my u-boot needs generally end with it booting my tftp kernel ... but kevery may know [one woken up again ;-) ]
<mmind00> anarsoul: is it enabled in the dts used in your uboot?
<anarsoul> yes
<mmind00> anarsoul: Does "dm tree" list the device then?
<anarsoul> yes, but it's not probed
<anarsoul> both vops are here as well as rk3399-hdmi
<mmind00> anarsoul: from what I gathered from past hurdles, uboot seems to do some lazy probing ... like sdmmc causes clk-controller to probe, etc ... so I guess graphics might do this similarly
<anarsoul> maybe
<anarsoul> guess I'll have to debug it
hessophanes has joined #linux-rockchip
adjtm has joined #linux-rockchip
field^Mop has joined #linux-rockchip
field^Mop has quit [Ping timeout: 268 seconds]
Substring has joined #linux-rockchip
stikonas_ has joined #linux-rockchip
stikonas has quit [Ping timeout: 276 seconds]
Substring has quit [Quit: Leaving]
stikonas_ is now known as stikonas
fALSO has joined #linux-rockchip
<fALSO> sigmaris, i've been using your kernel branch ;-)
<fALSO> just updated to rc3, and works ok. I just gonna try to see if reboot already works ;-)
<fALSO> sigmaris, noticed hantro_vpu on dmesg, you have any idea on how to use it?
<fALSO> sigmaris, ffmpeg?
<fALSO> damn... idle 4 days :-(
return0e has quit [Remote host closed the connection]