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
archetech has joined #linux-rockchip
kevery has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 246 seconds]
kevery1 is now known as kevery
field^Mop has quit [Ping timeout: 246 seconds]
archetech has quit [Ping timeout: 260 seconds]
stikonas has quit [Remote host closed the connection]
vstehle has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-rockchip
kaspter has quit [Excess Flood]
kaspter has joined #linux-rockchip
anarsoul has quit [Remote host closed the connection]
Depau has joined #linux-rockchip
anarsoul has joined #linux-rockchip
Depau_ has quit [Read error: Connection reset by peer]
lkcl has quit [Ping timeout: 246 seconds]
rtp has quit [Ping timeout: 264 seconds]
rtp has joined #linux-rockchip
lkcl has joined #linux-rockchip
s_frit has joined #linux-rockchip
ldevulder has quit [Read error: Connection reset by peer]
ldevulder has joined #linux-rockchip
s_frit_ has joined #linux-rockchip
s_frit has quit [Ping timeout: 256 seconds]
warpme_ has quit [Quit: Connection closed for inactivity]
camus has joined #linux-rockchip
kaspter has quit [Ping timeout: 264 seconds]
camus is now known as kaspter
ldevulder has quit [Read error: Connection reset by peer]
ldevulder has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Remote host closed the connection]
kevery1 is now known as kevery
s_frit_ has quit []
robmur01 has joined #linux-rockchip
robmur01 has quit [Ping timeout: 246 seconds]
kevery1 has joined #linux-rockchip
kevery has quit [Remote host closed the connection]
kevery1 is now known as kevery
camus has joined #linux-rockchip
kaspter has quit [Ping timeout: 246 seconds]
camus is now known as kaspter
ldevulder has quit [Read error: Connection reset by peer]
ldevulder has joined #linux-rockchip
ldevulder has quit [Read error: Connection reset by peer]
ldevulder has joined #linux-rockchip
vstehle has joined #linux-rockchip
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 256 seconds]
kevery1 is now known as kevery
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-rockchip
Putti has quit [Ping timeout: 256 seconds]
camus has joined #linux-rockchip
kaspter has quit [Ping timeout: 260 seconds]
camus is now known as kaspter
chewitt_ has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Read error: Connection reset by peer]
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has quit [Quit: Adios!]
ldevulder_ is now known as ldevulder
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 260 seconds]
kevery1 is now known as kevery
kevery1 has joined #linux-rockchip
kevery has quit [Read error: Connection reset by peer]
kevery1 is now known as kevery
_whitelogger has joined #linux-rockchip
mraynal has joined #linux-rockchip
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #linux-rockchip
damex has quit [Quit: No Ping reply in 180 seconds.]
damex has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 260 seconds]
kevery1 has joined #linux-rockchip
warpme_ has joined #linux-rockchip
kevery has quit [Ping timeout: 264 seconds]
kevery1 is now known as kevery
matthias_bgg has joined #linux-rockchip
midnight has quit [Ping timeout: 258 seconds]
midnight has joined #linux-rockchip
stikonas has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 260 seconds]
kevery1 is now known as kevery
camus has joined #linux-rockchip
kaspter has quit [Ping timeout: 246 seconds]
camus is now known as kaspter
repk has quit [Ping timeout: 260 seconds]
robmur01 has joined #linux-rockchip
robmur01 has quit [Read error: Connection reset by peer]
field^Mop has joined #linux-rockchip
robmur01 has joined #linux-rockchip
repk has joined #linux-rockchip
kevery has quit [Ping timeout: 264 seconds]
kevery has joined #linux-rockchip
ldevulder_ is now known as ldevulder
stikonas has quit [*.net *.split]
anarsoul has quit [*.net *.split]
dstzd has quit [*.net *.split]
ayaka has quit [*.net *.split]
jelly has quit [*.net *.split]
stikonas has joined #linux-rockchip
jelly has joined #linux-rockchip
anarsoul has joined #linux-rockchip
dstzd has joined #linux-rockchip
ayaka has joined #linux-rockchip
jelly has quit [Max SendQ exceeded]
nergzd723 has quit [Ping timeout: 240 seconds]
Ke has quit [Ping timeout: 244 seconds]
psydruid has quit [Ping timeout: 258 seconds]
jelly-home has joined #linux-rockchip
nergzd723 has joined #linux-rockchip
urjaman has quit [Read error: Connection reset by peer]
urjaman has joined #linux-rockchip
nergzd723 has quit [Ping timeout: 240 seconds]
psydruid has joined #linux-rockchip
Ke has joined #linux-rockchip
nergzd723 has joined #linux-rockchip
paulk-leonov has quit [Remote host closed the connection]
kaspter has quit [Quit: kaspter]
paulk-leonov has joined #linux-rockchip
paulk-leonov has quit [Remote host closed the connection]
paulk-leonov has joined #linux-rockchip
paulk-leonov has quit [Read error: Connection reset by peer]
paulk-leonov has joined #linux-rockchip
paulk-leonov has quit [Client Quit]
paulk-leonov has joined #linux-rockchip
matthias_bgg has quit [Ping timeout: 264 seconds]
field^Mop has quit [Ping timeout: 256 seconds]
urjaman has quit [Ping timeout: 256 seconds]
vstehle has quit [Ping timeout: 256 seconds]
field^Mop has joined #linux-rockchip
urjaman has joined #linux-rockchip
vstehle has joined #linux-rockchip
jelly-home is now known as jelly
Putti has joined #linux-rockchip
ldevulder has quit [Ping timeout: 246 seconds]
ldevulder has joined #linux-rockchip
ukleinek has joined #linux-rockchip
* ukleinek fights with U-Boot on an rk3399 board and doesn't even get the vendor-patched version running :-\
<mmind00> ukleinek: I guess basic question-time: what board, do you get tpl and/or spl output at least ... like anything?
<mmind00> u-boot breaks way too often for my tastes, but at least I did test some 2020-version last year on a rk3399 puma
<ukleinek> mmind00: helios64, using the patch patch/u-boot/u-boot-rockchip64-mainline/add-board-helios64.patch from armbian on top of U-Boot 2010.07.0, building with BL31=/usr/lib/arm-trusted-firmware/rk3399/bl31.elf CROSS_COMPILE=aarch64-linux-gnu- make helios64-rk3399_defconfig all
<ukleinek> then following the readme to put the bootloader on SD:
<ukleinek> ./tools/mkimage -n rk3399 -T rksd -d spl/u-boot-spl-dtb.bin out
<ukleinek> sudo dd if=out of=/dev/sdc seek=64
<ukleinek> sudo dd if=u-boot.itb of=/dev/sdc seek=16384
<mmind00> ukleinek: hmm, that README excerpt sounds dubious
* ukleinek is all ears
* mmind00 is digging ... 1sec
* ukleinek holds his breath
* ukleinek starts to get a red head :-)
<mmind00> :-D
<mmind00> I think in general ... you want to look for an idbLoader.img in your build directory
<ukleinek> I have that one
* mmind00 has way too many u-boot repos around
<ukleinek> barebox ftw!
<mmind00> and flash that to seek=64
* ukleinek tries
<mmind00> i.e. idbLoader.img = tpl + spl in one image
<ukleinek> \o/, it doens't boot, but at least I get some output
<mmind00> on a lot of boards, tpl does the ram init ... so spl-only won't help in that case
* ukleinek doesn't know what tpl and spl-only means here, so doesn't understand
<mmind00> u-boot sequence: bootrom -> tpl (tertiary program loader, in sram) -> spl (secondary program loader) -> u-boot ... at least on most Rockchip boards, as the sram is often too limited for SPL with devicetree stuff
<ukleinek> and I have an spl-only image?
<mmind00> it seems you didn't ... i.e. the "./tools/mkimage -n rk3399 -T rksd -d spl/u-boot-spl-dtb.bin out" created an spl-only image, missing the TPL
<mmind00> at some point the idbLoader.img got integrated into the build so people didn't need to enter arcane command lines like the one above
<ukleinek> and idbLoader doesn't include tpl?
<mmind00> the idbloader.img contains both tpl + spl
<mmind00> i.e. the Rockchip bootrom loads "tpl" -> tpl does ddr init -> jumps back into bootrom -> bootrom loads the rest (spl) into ddr
<ukleinek> ah, you said so before
<ukleinek> mmind00: the output mentions both TPL and SPL
<mmind00> ukleinek: as it should .. see loading sequence above
<ukleinek> maybe my µsd-card is broken, it was already unreliable in another machine
* ukleinek diggs for another card
<mmind00> ukleinek: at the point you're at, the SPL wants to load the main uboot binary from an sd-card ... that's the uboot.itb you flashed
<mmind00> ukleinek: as that part is dt-based and already uses the uboot driver model, there is also the possibility that for example the mmc driver did not probe or something
* ukleinek only flashed idbLoader.img, so I still need dd if=u-boot.itb of=/dev/sdc seek=16384 I guess
<mmind00> that's another possibility ;-)
<mmind00> ukleinek: also maybe check CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR in your config against the 16384
<ukleinek> =>
<ukleinek> (i.e. I got to the U-Boot prompt \o/)
<mmind00> woohoo :-D
<mmind00> I was debating if the "=>" meant this :-D
* ukleinek tries to rebase to v2021.01 and then use the vanilla linux dts
<ukleinek> I get during build:
<ukleinek> This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate
<ukleinek> arch-specific scripts with no tests.
<ukleinek> to binman instead, to avoid the proliferation of
<ukleinek> is this expected, or is there something fishy with my config?
<ukleinek> [x] 2021.01 comes up
<mmind00> ukleinek: I guess that is to be expected
<mmind00> ukleinek: i.e. SPL_FIT_GENERATOR specifies a script that creates the .its for u-boot + atf + maybe optee ... and binman is the fancy tool that is supposed to be way better ... so that is more an architecture-thing for all of Rockchip in uboot
<ukleinek> ok, thought so, thanks for confirming
<mmind00> I guess it's mainly a nag-message so that someone converts over to it
<ukleinek> mmind00: it didn't work for me so far, will concentrate on getting the current state into a mainlineable state.
<ukleinek> but now I'm off to bed
<mmind00> ukleinek: goodnight then :-)
<ukleinek> mmind00: thanks a lot for your help, this speed up things quite a bit
<mmind00> ukleinek: glad to help
* ukleinek gives a high five and detaches his tmux
putti_ has joined #linux-rockchip
Putti has quit [Ping timeout: 256 seconds]
Esmil has quit [Ping timeout: 256 seconds]