mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
stikonas has joined #linux-rockchip
stikonas_ has joined #linux-rockchip
stikonas_ has quit [Client Quit]
stikonas_ has joined #linux-rockchip
stikonas has quit [Ping timeout: 265 seconds]
qschulz has quit [Remote host closed the connection]
qschulz has joined #linux-rockchip
stikonas_ has quit [Quit: Konversation terminated!]
warpme_ has quit [Ping timeout: 252 seconds]
warpme_ has joined #linux-rockchip
hexdump0815 has quit [Ping timeout: 265 seconds]
hexdump0815 has joined #linux-rockchip
warpme_ has quit [Ping timeout: 248 seconds]
warpme_ has joined #linux-rockchip
Scrooge is now known as Bahhumbug
dsimic has quit [Ping timeout: 252 seconds]
dsimic has joined #linux-rockchip
tchebb has joined #linux-rockchip
tchebb_ has joined #linux-rockchip
tchebb has quit [Ping timeout: 272 seconds]
<Kwiboo> naoki: please see https://github.com/Kwiboo/u-boot-rockchip/commits/rk3xxx-2025.01-ramboot/ for an alternative ramboot that only depends on maskrom usb, was hoping to send it as an RFC in near future ;-)
<Kwiboo> also needed to add no-write-symbols props to fix an binman issue, may be the same you face, see https://github.com/Kwiboo/u-boot-rockchip/commit/20e53552062a75b7d681c7b9a5fdf15560a44c34
<Kwiboo> one possible issue with appending the U-Boot FIT to the usb472 image is that the rk atags TPL write to RAM at ~2MiB is overwritten, could be an issue for >16GiB rk3588 devices
stikonas has joined #linux-rockchip
franoosh has joined #linux-rockchip
tchebb has joined #linux-rockchip
tchebb_ has quit [Ping timeout: 265 seconds]
<naoki> Kwiboo: The code looks very good. How does SPL know the u-boot.itb address?
<naoki> I couldn't solve it with booting from RAM
<naoki> Btw boot_merger is a closed program for x86-64 only. The best solution is for rockusb to support "rockusb tpl spl(+u-boot)"
<naoki> ah CONFIG_SPL_LOAD_FIT_ADDRESS
<naoki> Kwiboo: SPL placed at CFG_SYS_SDRAM_BASE, and u-boot.itb in u-boot-rockchip-usb472.bin is placed at CONFIG_SPL_LOAD_FIT_ADDRESS, right?
<naoki> is 2MB too much? or SPL uses SDRAM_BASE+2MB space?
<naoki> ah, RK atags
<naoki> hmm
<naoki> no-write-symbols; is only for CONFIG_ROCKCHIP_SPI_IMAGE?
<naoki> Is it not compatible with RK3328?
<Kwiboo> naoki: correct, SPL is loaded to CFG_SYS_SDRAM_BASE, and FIT/u-boot.idb is placed at 2 MiB, mainly because 256KiB-2MiB may be used/reserved for TF-A, puting it at 1 MiB also works, but qschulz suggested to instead use the 2 MiB offset a few weeks back
<Kwiboo> regarding no-write-symbols, it seem it was only needed in the spi image, but only after a new binman image was added, feels like it should have already complained, not sure what is going on
raster has joined #linux-rockchip
tchebb_ has joined #linux-rockchip
tchebb has quit [Ping timeout: 260 seconds]
<Kwiboo> the idea was to combine SPL + FIT/u-boot.itb as close as possible so that both payload could be sent using the 472 usb command, sending 2-3 MiB using the windows rkdevtool was very slow, using linux rkdeveloptool db or rockusb command was very fast, at least on the rk356x/rk3588 board I tested
<Kwiboo> tricky part is getting load addresses correct, so payload do not overlap where SPL want to load the images from FIT
<Kwiboo> and use of boot_merger is strictly not necessary, only for rkdeveloptool/rkdevtool/rockusb tools, beause they expect the input in that format, and if needed we could add simple support for that image format to the u-boot mkimage tool
<Kwiboo> however best would be to extend the tools to support separate 471 and 472 input files and do any special handling based on the usb product id or similar on the fly
<Kwiboo> should make u-boot development/CI for rockchip little bit easier, no need for e.g. sd-mux or similar
<Kwiboo> naoki: for reset to download mode at hang(), see https://patchwork.ozlabs.org/project/uboot/patch/20240202001221.531207-1-jonas@kwiboo.se/ :-)
<naoki> hmm
<naoki> Btw, there is "upgrade_tool" which is provided as binary only for Linux ;)
<naoki> rkdeveloptool is relatively new thing :)
<naoki> rkflashtool was born before everything was open, and it's dirty because its predecessor, `rkflash`, was very dirty. XD
<naoki> ah, sorry, your change supports rk3328 too
franoosh has quit [Ping timeout: 265 seconds]
franoosh has joined #linux-rockchip
ungeskriptet_ has joined #linux-rockchip
ungeskriptet has quit [Ping timeout: 252 seconds]
ungeskriptet_ is now known as ungeskriptet
<naoki> Oh I noticed RK3528 is not supported yet in U-Boot ;)
linkmauve has left #linux-rockchip [Error from remote client]
Daanct12 has joined #linux-rockchip
asrieldreemurr has joined #linux-rockchip
asriel has quit [Ping timeout: 248 seconds]
Danct12 has quit [Killed (NickServ (GHOST command used by Daanct12))]
Daanct12 is now known as Danct12
asrieldreemurr is now known as asriel
raster has quit [Quit: Gettin' stinky!]
warpme_ has quit [Ping timeout: 252 seconds]
warpme_ has joined #linux-rockchip
psydroid has quit [Ping timeout: 244 seconds]
warpme_ has quit [Ping timeout: 252 seconds]
psydroid has joined #linux-rockchip
psydroid has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
warpme_ has joined #linux-rockchip
psydroid has joined #linux-rockchip
naoki has quit [Quit: naoki]
raster has joined #linux-rockchip
warpme has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
franoosh has quit [Read error: Connection reset by peer]
franoosh has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
adadad has quit [Quit: ZNC 1.9.1+deb2+b1 - https://znc.in]
adadad has joined #linux-rockchip
warpme_ has quit [Ping timeout: 265 seconds]
warpme has joined #linux-rockchip
warpme_ has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme_ has quit [Ping timeout: 252 seconds]
warpme_ has joined #linux-rockchip
warpme_ has quit [Ping timeout: 276 seconds]
warpme_ has joined #linux-rockchip
smaeul_ has joined #linux-rockchip
smaeul has quit [Ping timeout: 260 seconds]
franoosh has quit [Remote host closed the connection]
vagrantc has joined #linux-rockchip
warpme_ has quit [Ping timeout: 252 seconds]
s1b1 has quit [Ping timeout: 245 seconds]
warpme_ has joined #linux-rockchip
MyNetAz has quit [Remote host closed the connection]