mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
Daanct12 has quit [Quit: ZNC 1.9.0 - https://znc.in]
Danct12 has joined #linux-rockchip
<Ermine> CounterPillow: thank you
werdahias has quit [Quit: werdahias]
stikonas has quit [Quit: Konversation terminated!]
qschulz has quit [Remote host closed the connection]
qschulz has joined #linux-rockchip
chewitt has joined #linux-rockchip
hanetzer has joined #linux-rockchip
warpme has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ungeskriptet5 has joined #linux-rockchip
ungeskriptet has quit [Ping timeout: 252 seconds]
ungeskriptet5 is now known as ungeskriptet
warpme has joined #linux-rockchip
naoki has quit [Quit: naoki]
raster has joined #linux-rockchip
ungeskriptet5 has joined #linux-rockchip
ungeskriptet has quit [Ping timeout: 256 seconds]
ungeskriptet5 is now known as ungeskriptet
dsimic has quit [Ping timeout: 255 seconds]
dsimic has joined #linux-rockchip
Livio has joined #linux-rockchip
Livio has quit [Ping timeout: 256 seconds]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
psydroid has joined #linux-rockchip
stikonas has joined #linux-rockchip
Stat_headcrabed has joined #linux-rockchip
vagrantc has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<macromorgan> so I'm looking at the RAM code again for the RK3588 in U-Boot. If I want to keep moving forward with the ATAGS parsing for RK3588... would it make sense to flag the main dram_init_banksize() function as __weak so I can modify? Or am I being naive?
<qschulz> macromorgan: what do you have in mind?
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<Ermine> I'm trying to build downstream kernel from firefly's linux sdk, and I get following error: https://pastesite.org/view/raw/eb99fdd7 . Does anybody have experience about how to deal with it? The device in question is rk3588s-evb4-lp4x-v10 . Guide on firefly's linux sdk is here: https://wiki.t-firefly.com/en/ROC-RK3588-PC/linux_compile.html
erg_ has quit [Remote host closed the connection]
<qschulz> find where firefly_multicodecs_control_gpio is defined
<qschulz> then read the Makefile in the same directory of the file where you found that function defined
<qschulz> extract the CONIFG_ that is used to compile (or not) the source file into an object file
<qschulz> make menuconfig, enable the config that requires it
<qschulz> s/requires/enables/
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<macromorgan> qschulz: I'm thinking of either marking dram_init_banksize() as __weak here: https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/mach-rockchip/sdram.c?ref_type=heads#L38
<macromorgan> or I'm thinking of adding a weak function that returns 0 to that file... something like int __weak board_read_ram() and then defining the function in the rk3588 specific code
<macromorgan> I'm just not sure what ramifications of that would be
<qschulz> macromorgan: what are you trying to solve as a problem?
<macromorgan> use ATAGS parsing to get the RAM banks for the RK3588
<macromorgan> or rather that's the solution to the problem
<qschulz> macromorgan: I don't see how this is helping, that's my issue
<macromorgan> the problem is that 1) there are addresses we shouldn't write to and 2) the current RAM bank definitions don't include all available RAM
<qschulz> do you mean you would redefine the board_read_ram in rk3588.c only?
<macromorgan> I'm actually (now that I say it out loud) leaning towards a weak function in sdram.c that returns 0 and then redefine that function in rk3588.c so that it parses the ATAGS RAM banks
<macromorgan> that way we can fall back to the old way of doing things if we can't read the ATAGS
<macromorgan> without duplicating the code
<qschulz> macromorgan: I'm not getting it (but it's also not my day, so probably nothing to do with your phrasing :) )
<qschulz> what would this help compared to the v1 you sent on the ML today?
<macromorgan> I should have phrased that as an RFC honestly rather than a V1, so that was my first mistake
<macromorgan> but it seems like Kever doesn't want me to include all that ATAGS code which I get
<macromorgan> I guess I can wait for further direction though before I continue on. Maybe there's another way we should be defining RAM banks (based on registers), or maybe there's some 3rd option I'm not aware of.
<qschulz> I haven't played with bloblist yet (completely missed that train), but my assumption is that they want to parse the ATAGS into a bloblist so that we can reuse the bloblist functions to find what we want?
<macromorgan> hmm... I guess I didn't take away that from the conversation but that makes more sense
<macromorgan> I'll have to look into bloblists then
<qschulz> if that's not what they want, I don't understand what they do want, because we get ATAGS from the TPL, and I can almost guarantee that Rockchip won't update their blobs to expose bloblists
<qschulz> macromorgan: when things aren't clear when you receive feedback from the community, just ask for clarification (maybe by providing some hints at what you think you understood and asking for validation)
<qschulz> that way you avoid wasting precious hours/days on things that were not requested/suggested :)
<macromorgan> thanks, I'll do that next time
<qschulz> I'm not in Kever's or Tom's head so cannot help you with that one
<qschulz> but if that can make you feel better, I also wouldn't know where to go from your v1 based on that feedback :)
<macromorgan> no, I think if there's a standard way (bloblist) that makes the most sense
<Ermine> qschulz: that helped, thank you!
psydroid has quit [Remote host closed the connection]
chewitt has quit [Quit: Zzz..]
psydroid has joined #linux-rockchip
hanetzer has quit [Ping timeout: 246 seconds]
werdahias has joined #linux-rockchip
werdahias has quit [Ping timeout: 256 seconds]
warpme has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
crabbedhaloablut has quit []
crabbedhaloablut has joined #linux-rockchip
Livio has joined #linux-rockchip
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
Livio has quit [Ping timeout: 264 seconds]
stikonas has quit [Quit: Konversation terminated!]
naoki has joined #linux-rockchip