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
j45_ is now known as j45
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 246 seconds]
kevery1 is now known as kevery
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 240 seconds]
kevery1 is now known as kevery
cyrozap has joined #linux-rockchip
uis has joined #linux-rockchip
<uis> Can rk3328 run lpddr3 at 933mhz? Dram datasheet says it can. Rk3328 too. But u-boot reports 800mhz.
kevery has quit [Read error: Connection timed out]
kevery has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
camus has joined #linux-rockchip
kaspter has quit [Ping timeout: 265 seconds]
camus is now known as kaspter
apritzel has quit [Ping timeout: 240 seconds]
stikonas has quit [Remote host closed the connection]
uis has quit [Quit: ZNC 1.7.4 - https://znc.in]
uis has joined #linux-rockchip
<WoC> uis, maybe your dtb has it as 800 ?
lkcl has quit [Ping timeout: 246 seconds]
lkcl has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-rockchip
gendevbot has quit [Ping timeout: 272 seconds]
gendevbot has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
ldevulder has quit [Ping timeout: 260 seconds]
kaspter has quit [Ping timeout: 264 seconds]
kaspter has joined #linux-rockchip
apritzel has joined #linux-rockchip
apritzel has quit [Ping timeout: 246 seconds]
ldevulder_ is now known as ldevulder
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-rockchip
indy_ is now known as indy
sphalerite_ is now known as sphalerite
matthias_bgg has joined #linux-rockchip
stikonas has joined #linux-rockchip
apritzel has joined #linux-rockchip
robmur01_ is now known as robmur01
lkcl has quit [Ping timeout: 265 seconds]
lkcl has joined #linux-rockchip
alpernebbi has joined #linux-rockchip
hexdump0815 has joined #linux-rockchip
Werner__ is now known as Werner
nroberts has joined #linux-rockchip
hexdump0815 has quit [Ping timeout: 240 seconds]
<uis> Maybe. Where change it?
kaspter has quit [Quit: kaspter]
<uis> WoC
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-rockchip
BenG83 has joined #linux-rockchip
<BenG83> does anyone know if there is bsp u-boot source for rk3566 floating around somewhere?
<BenG83> http://files.pine64.org/SDK/Quartz64/QUARTZ64_SDK_android11.tar.gz contains source, but it seems incomplete for RK35xx
<apritzel> BenG83: did you download the whole 79GB thing?
<BenG83> someone else did and extractet the boot blobs and u-boot source
<apritzel> BenG83: just asking, because I am curious what's in there
<BenG83> I didn want to download it either :P
<BenG83> has the spl/bl31/ddr blobs
<apritzel> BenG83: yeah, saw this, what is missing in the U-Boot source?
<BenG83> let me check, I think it is now on github somewhere
<apritzel> I don't think they publish DRAM setup code, if you were hoping for that
<BenG83> thats from the BSP tarball
<BenG83> it has at least rk3568 stuff
<BenG83> and may also work for 3566?
<uis> apritzel: why they don't publish dram init code?
<apritzel> uis: because it's rocket science, apparently ;-)
<uis> Why not to publish any code? Why they don't publish other parts of TRM?
<apritzel> uis: I don't understand either, I guess it's a mixture of third party code, embarrassing hacks and ignorance
<uis> TRMs
<uis> rk3328
<uis> RK3399TRMs AFAIK doesn't contain third party code
<n0mis> Does anybody have an idea what might be wrong if a 5.10.16 kernel for the rk3328 does not reliably want to start init? It sometimes starts, sometimes not. It feels somewhat related to USB ports, but plug/unplug-Events still get shown.
<ukleinek> n0mis: did you compare the boot log between work and works not?
<n0mis> hm, I should probably check the complete log. For now I just compared the last lines which were somewhat related to filesystems, but not really consistent.
<ukleinek> n0mis: Yesterday I experienced a few times "[ 1.357218] Initramfs unpacking failed: junk within compressed archive" which happens quite early before failing
<n0mis> Hm. I have the impression that somehow mmc0 mmc1 and mmc2 are switching names.
<n0mis> it detects the partitions of the emmc in one case on mmcblk1 and in the other case on mmcblk2
<n0mis> I certainly specify it on mmcblk1.
<n0mis> wtf.
<apritzel> n0mis: yeah, that's a new "feature" in recent Linux kernels, much to some people's annoyance
<apritzel> n0mis: you can use UUIDs or labels to work around this, or try mmc<x> aliases in the DT
<mps> n0mis: this is quite iritating, rk3399 fixed this
<mps> and I fixed it for mediatek elm chromebooks for alpine kernels
<n0mis> apritzel: how would I specify these aliases in a DT?
<mps> but didn't posted patch to mainline (lazy to go over kernel mainline barriers)
<apritzel> n0mis: check mainline's arch/arm64/boot/dts/rockchip/rk3399.dtsi
<mps> similar is in rk3399.dtsi in mainline kernel, iirc
<mps> ahm, apritzel already answered
<ukleinek> n0mis: but using UUID is the future proof thing to use
<n0mis> oh, so really in the aliases-section of the DTB. I was under the assumption that this is a "made-for-humans" thing.
<n0mis> ukleinek: hrm, then I would have to fight a yocto/rauc/mess again...
<ukleinek> n0mis: rauc can handle UUIDs just fine
<apritzel> n0mis: yeah, there was some discussion around whether it's the right solution and place, but eventually the MMC framework in the kernel now supports it
<apritzel> but yeah, UUIDs are the proper answer, most of the time
<n0mis> ukleinek: aren't the UUIDs contained in the rauc bundles? Since I don't really have a control over which image gets written to what slot (they are alternating and if a user skips an update we'd be out of sync?) I fear that I lose the fallback boot.
<n0mis> or are the UUIDs in the GPT table?
<ukleinek> n0mis: I (luckily) don't know the details for U-Boot but barebox handles UUIDs just fine.
<apritzel> n0mis: there are two kind of UUIDs, the normal ones are part of the filesystem, so are partition table ignorant, and survive a "dd" copy
<ukleinek> n0mis: You just say: boot /dev/mmc0.2 and it adds the right root=UUID=... to the cmdline
<n0mis> ukleinek: uh, that would need some fiddeling in uboot I think. Have not looked at that kind of stuff now.
<n0mis> +mmc0 = &mmc0;
<n0mis> +mmc1 = &mmc1;
<n0mis> oops. sorry.
<n0mis> /dev/disk/by-partlabel might be a solution for me.
<apritzel> the other UUIDs are some kind of GPT labels, so are part of the partition table (entry)
<ukleinek> n0mis: maybe you need initramfs support for that one.
<ukleinek> using barebox on rockchip needs some fiddeling, too :-\
<apritzel> yes, UUIDs typically require an initrd to resolve them, that's the downside
<apritzel> most real distros use initrds anyway, so it's not a problem for those
<n0mis> yeah, no. I can't rework the boot process drastically in this stage of the project.
<n0mis> I'll try the alias route and try switching to /dev/disk/by-partlabel...
<ukleinek> the kernel can do PARTUUID=.., but UUID needs initrd
kaspter has joined #linux-rockchip
<mps> kernel can also use PARTNROFF, relative partition from one where kernel is booted
<mps> I have these for gru and elm chromebooks, 'root=PARTUUID=%U/PARTNROFF=1'
<mps> never had problem booting from internal emmc, external mmc or ssd over usb
Putti has quit [Quit: Leaving]
field^Mop has joined #linux-rockchip
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-rockchip
<uis> How make rk3328 to run dram on 933 mhz?
<apritzel> uis: by understanding ALOT about DRAM operations and timings, having done elaborate tests to confirm it's stable, then entering the right timing parameters into arch/arm/dts/rk3328-sdram-xxx.dtsi
kaspter has quit [Quit: kaspter]
alpernebbi has quit [Quit: alpernebbi]
macromorgan has joined #linux-rockchip
macromorgan has quit [Read error: Connection reset by peer]
<ukleinek> uis: maybe you just need the right include in the u-boot.dtsi
macromorgan has joined #linux-rockchip
<macromorgan> sorry, internet crapped out on me. I got that SFC patch working (had to modify a few things since the spi-nor structs changed since that patch was written), but the weird part is it seems to be reading the jedec ID twice of my flash chip
<macromorgan> rockchip-sfc ff3a0000.spi: unrecognized JEDEC id bytes: 0b 40 18 0b 40 18
<macromorgan> the jedec ID should just be 0b 40 18
vagrantc has joined #linux-rockchip
<mps> anyone know how to disable ADMA for rk3399? driver is (iiuc) drivers/mmc/host/sdhci-of-arasan.c
<mps> macc24_: you use gru-kevin iirc?
<uis> ukleinek: includes exist for <=800 mhz ddr
hexdump0815 has joined #linux-rockchip
apritzel has quit [Ping timeout: 240 seconds]
hexdump0815 has quit [Quit: Connection closed]
<macc24_> mps: yep i use kevin
<macc24_> not really on linux since anything on 2400x1600 internal screen gets gpu'd
<macc24_> but i maintain cadmium on kevin
<mps> macc24_: I read table on Cadmium site, and see you tested on emmc and suspend2ram/resume
<macc24_> suspending and resuming works on kevin
<mps> does the emmc driver crashes in your test after resume (at some random time)?
<macc24_> hmm
<macc24_> lemme check
<macc24_> crashes how?>
<macc24_> mps: i booted up my kevin, suspended and resumed it
<macc24_> i will let you know when it fails
<mps> macc24_: thanks
<macc24_> btw you might find those patches useful https://github.com/Maccraft123/Cadmium/tree/master/board/kevin/patches
<macc24_> if only cursor plane is updated and not anything else
<mps> macc24_: right now I'm building kernel, picked some options from your config
<macc24_> for example when just moving cursor in gnome, it will get a lot laggy
<macc24_> mps: dude just use cadmium at this point
<mps> for me cursor works fine, always
<mps> macc24_: I thought but don't want to trash my box with debian or .... :)
<macc24_> yeah lol just add like 10 lines of code for alpine or whatever
<mps> and I want to try to find reason for bug and if posible fix
<mps> macc24_: I don't have github account (and will not 'open' it)
<macc24_> ok
<mps> looked at video, never had anything similar
<macc24_> huh
<macc24_> where the kernel sources at?
<macc24_> and config, i'm curious
<mps> which? one I use on alpine?
<macc24_> yeah, where you have no issues with cursor
<macc24_> and what compositor/de/wm are you running?
<mps> Xorg with awesome wm, but also tested with xfce
<macc24_> okay thanks, i will test this on monday
<mps> I hope that I will upgrade it to 5.11.2 over weekend
lkcl has quit [Ping timeout: 240 seconds]
matthias_bgg has quit [Ping timeout: 264 seconds]
<macc24_> mps: so far nothing in dmest
<macc24_> dmesg*
<mps> macc24_: it happens on random time, once it worked fine for full week, suspending every night and resuming in mornings
<mps> but usually suspending for few hours and then resuming it crash after about 5 to 30 minutes
* macc24_ suspends his kevin
<mps> macc24_: I built new kernel using some options from your config and also put it to suspend about 10 minutes ago
lkcl has joined #linux-rockchip
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-rockchip
BenG83 has quit [Quit: Leaving]
apritzel has joined #linux-rockchip
warpme_ has quit [Quit: Connection closed for inactivity]
field^Mop has quit [Ping timeout: 265 seconds]
uis has quit [Quit: ZNC 1.7.4 - https://znc.in]
uis has joined #linux-rockchip