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
<anarsoul> stikonas: ^^
nashpa has quit [Quit: Going away]
nashpa has joined #linux-rockchip
field^Mop has quit [Ping timeout: 268 seconds]
<anarsoul> anyway, I guess I can test your binaries
<anarsoul> oh, I can't since I need to change baudrate to 38400
<anarsoul> (my adapter doesn't support 1500000)
<stikonas> anarsoul: v2020.01-rc1-74-g5d6f05352b
* stikonas goes to sleep now
<stikonas> be back tomorrow
stikonas has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
tuxd3v has joined #linux-rockchip
<tuxd3v> hello,
<tuxd3v> For rk3399, what prts of mainline uboot are needed?
<tuxd3v> idbloader.img, uboot.itb,trust.img, is this list correct?
<tuxd3v> thanks in advance
<anarsoul> idbloader.img and uboot.itb should be enough if you're booting blobless
<tuxd3v> but .. and the trust.img, for Arm Trusted Firmware?
<tuxd3v> is already included in uoot.itb ?
<tuxd3v> uoot-> uboot
ganbold has joined #linux-rockchip
vstehle has quit [Ping timeout: 265 seconds]
perr has joined #linux-rockchip
perr_ has joined #linux-rockchip
perr has quit [Ping timeout: 246 seconds]
perr_ has quit [Remote host closed the connection]
perr_ has joined #linux-rockchip
<anarsoul> tuxd3v: ATF should be supplied as bl31.elf
perr_ has quit [Ping timeout: 265 seconds]
<tuxd3v> anarsoul: thanks, bl31.elf is supplied to Uboot..
<tuxd3v> I believe that uboot.itb already has inside uboot + ATF :)
<tuxd3v> in this case, it would be bl31
<anarsoul> yes
lopsided98 has quit [Remote host closed the connection]
lopsided98 has joined #linux-rockchip
<anarsoul> OK, gpio doesn't work for me in u-boot, that's explain why there's no power on USB
<anarsoul> so regulator-fixed doesn't work
<anarsoul> and I suspect it's because GPIO clock is not enabled
<anarsoul> 'md ff76037c' returns 00000000
<anarsoul> and writes to it are ignored :\
<anarsoul> kevery: am I missing something, or gpio clock is not enabled anywhere in u-boot for rk3399?
<anarsoul> it's off on reset according to rk3399 TRM
cp has quit [Quit: Disappeared in a puff of smoke]
cp has joined #linux-rockchip
tuxd3v has quit [Quit: Leaving]
chewitt has quit [Read error: Connection reset by peer]
vstehle has joined #linux-rockchip
vagrantc has joined #linux-rockchip
imsherlock has joined #linux-rockchip
<micken> anarsoul: the cru registers have write masks , but I guess you know that
<anarsoul> micken: nope
<micken> or most of them
<micken> bit 16-31
<micken> I have problem with blurry image output , at random it seems. maybe 30-40% of bootups :)
<micken> and I cant loop over pll lock, the lock register returns like -2832862 if I loop over it
<micken> reading it is ok , and I do it a couple of times, and the second time it locks
<micken> My current guess is that I don't wait long enough before setting pll to normal speed
_whitelogger has joined #linux-rockchip
<anarsoul> well, I'm actually wrong about clocks
<anarsoul> it's 1 to disable clock
<micken> yes
<micken> thats true in most (if not all) regs
inode has joined #linux-rockchip
<anarsoul> well, gpio doesn't work in u-boot for sure
<anarsoul> e.g.
<anarsoul> "gpio set 154" complains "Warning: value of pin is still 0"
lopsided98 has quit [Ping timeout: 264 seconds]
lopsided98_ has joined #linux-rockchip
<micken> grf setting?
anarsoul|c has joined #linux-rockchip
perr_ has joined #linux-rockchip
matthias_bgg has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
<sphalerite> hanetzer: oh, I thought all the grus had the cr50
inode has quit [Quit: ]
<mmind00> sphalerite: nope only bob and scarlet have a cr50 ... Kevin comes from pre-cr50 times ;-)
<sphalerite> riiight
<sphalerite> well, removing the screw finally allowed me to remove the write protection!! So excited to try out my coreboot+linuxboot build finally :D
perr_ has quit [Ping timeout: 264 seconds]
<micken> hmm image still blurred sometimes, 99% sure that clocking is correct
kevery has quit [Ping timeout: 265 seconds]
ckeepax has quit [Quit: WeeChat 2.2]
vicencb has joined #linux-rockchip
ckeepax has joined #linux-rockchip
inode has joined #linux-rockchip
chewitt has joined #linux-rockchip
Depau has quit [Quit: ZNC 1.7.5 - https://znc.in]
Depau has joined #linux-rockchip
matthias_bgg has quit [Read error: Connection reset by peer]
matthias_bgg has joined #linux-rockchip
vicencb has quit [Quit: Leaving.]
kaspter has quit [Remote host closed the connection]
perr_ has joined #linux-rockchip
kaspter has joined #linux-rockchip
perr has joined #linux-rockchip
perr_ has quit [Ping timeout: 265 seconds]
ifbizo has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
vicencb has joined #linux-rockchip
perr has quit [Remote host closed the connection]
perr has joined #linux-rockchip
JohnDoe_71Rus has joined #linux-rockchip
<Depau> Hi, I'm having boot related issues with the pinebook pro, I thought I'd ask here too. In short it's very unstable, out of roughly 500 times I rebooted it it managed to get to xorg on their stock image ~5 times, I got a shell ~20 times, otherwise it just failed to boot, the kernel crashed, it froze without any messages, wouldn't detect/power on eMMC, wouldn't manage to bring up eDP link, all sorts of things
<Depau> Things I tried: test emmc with an external adapter (it works), boot from SD (same issues), flash an uboot build from github to SPI (kinda more reliable but same issues)
<Depau> Now I'm out of ideas. Currently if I try to power it on, most of the times it hangs like this: https://pastebin.com/PQW193b9
<Depau> Last time I tried I additionally got this oops message after which it still hanged: https://notes.depau.eu/NYazVHnZQ-O4z4CH1P5dag
<Depau> What I'm planning to do is try to get it into maskrom and reflash it from there, however I'll have to learn how to do that and anyway it seems the "recovery" button they placed on the board doesn't actually do anything
<Depau> Other than that I'm pretty much out of ideas. A friend suggested it might be a memory-related issue, but I don't know how to troubleshoot that/get more info
perr has quit [Ping timeout: 264 seconds]
ifbizo has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
ifbizo has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
tuxd3v has joined #linux-rockchip
ldevulder_ has joined #linux-rockchip
field^Mop has joined #linux-rockchip
ldevulder has quit [Ping timeout: 268 seconds]
ifbizo has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
<anarsoul> Depau: likely a faulty unit, contact pine64 support
<anarsoul> micken: what's with grf settings?
<Depau> anarsoul: thank you. I contacted them, they dismissed my ticket without even reading it and told me to ask help on IRC
<micken> anarsoul: probably nothing , you talked about gpio not working
<anarsoul> Depau: so ask on their irc? :)
<Depau> I did ofc :D
<Depau> I just found other people complaining
<anarsoul> I don't see anything from you on their irc on #pinebook channel
<Depau> Or other people complaining about pulseaudio lol
<Depau> It's not on freenode
<anarsoul> I know
<anarsoul> was it today?
<Depau> 12.30PM UTC
<Depau> Today
<micken> Depau: tried to boot something else from sdcard?
<Depau> micken: same random issues
<micken> ok
<Depau> Sometimes it boots, sometimes it does not, rarely the display turns on
<Depau> Most times it's just like the last logs I sent
<micken> :(
<anarsoul> I assume you already tried reseating emmc?
<anarsoul> Depau: ^^
<Depau> anarsoul: yep
<Depau> I also tested it with the USB adapter I also bought, it works fine over usb
<micken> USB adapter?
<anarsoul> emmc to usb
<micken> ok
<anarsoul> micken: so how gpios are related to grfs?
<micken> but not together with pinebook I assume?
<anarsoul> pinebook uses the same emmc as in their other products
<micken> anarsoul: a lot of settings for for gpio is in the GRF
<anarsoul> I see
<anarsoul> I wonder what's missing
<anarsoul> :(
<micken> but without gpio , I think you shouldnt even have sdcard
<micken> or
<micken> it might just redirect things from not using gpios
<micken> dont remember
<anarsoul> it doesn't require any gpios
<anarsoul> I mean sd card
<micken> right
<anarsoul> well, one for detection but I doubt u-boot uses it
<micken> probably not
<micken> but what exactly doesn't work ? DO you know where in source?
<micken> caps not intended
<anarsoul> sd card works fine
<anarsoul> as well as emmc and ethernet
<anarsoul> usb doesn't get any power
<micken> ok
<anarsoul> I checked and gpios don't work
<micken> so usb start reports error?
<anarsoul> no
<anarsoul> it detects no devices
<micken> I see
<anarsoul> since there's literally no 5v on USB ports
<anarsoul> "gpio set 154" says "Warning: value of pin is still 0"
<anarsoul> this gpio enables 5v for usb
<micken> maybe it is the gpio command that isnt working?
<micken> dunno
<micken> I am not using mainline
<anarsoul> try it? :)
<micken> hmm
<robmur01> anarsoul: is the I/O supply to the GPIO bank enabled?
<anarsoul> robmur01: hmm, I don't see any supplies for gpio in rk3399.dtsi
<anarsoul> am I missing something?
vicencb has quit [Quit: Leaving.]
<robmur01> anarsoul: I mean the supply to APIO4_VDD, i.e. LDO6 of the RK808 (assuming we're talking about RockPro64)
vicencb has joined #linux-rockchip
<anarsoul> ah, it's enabled
<anarsoul> yes, it's rockpro64
<anarsoul> there was a guy yestarday who said that usb works in mainline u-boot on rockpro64 for him
<anarsoul> I really wonder *how* :)
<anarsoul> maybe usb hdd with its own power supply?
<micken> good idea try powered usb hub
<micken> I need to try mainline
<micken> but I dont have any sd spare cards
<anarsoul> I don't have one
<micken> ok
<robmur01> the GPIO failing to go high certainly smells like the I/O voltage is missing (or insufficient) - I'd be inclined to stick a meter on the PMIC output to check there's really 3V there
<robmur01> that or a short to ground, but then it wouldn't work outside u-boot either ;)
<micken> isn't pmic code more or less the same u-boot <-> linux?
<micken> ayofan's version works fine , expect for display
<robmur01> dunno how exactly u-boot handles regulators, but it looks very different to Linux's massive framework
<micken> true
<micken> I can have a look
<micken> if I can find a sd card :/
<micken> does mainline have pmic or regulator commands ?
<micken> the pmic status regs has to say something?
<robmur01> if you can do raw i2c you could poke it directly
<micken> yea
<micken> if not do a simple test bin that does
<robmur01> in fact it looks like most of the driver isn't even compiled outside the SPL :/
<micken> bad
tuxd3v has quit [Quit: Leaving]
ldevulder_ is now known as ldevulder
<micken> anarsoul: I can write a test program for you but I am afraid that it willb be aarch32 code ,, it might be easier to do it inside uboot using alrady existing i2c code
matthias_bgg has quit [Ping timeout: 240 seconds]
<robmur01> hmm, puma-rk3399_defconfig selects CONFIG_CMD_I2C=y, so hopefully it ought to work on RK3399 in general
vagrantc has joined #linux-rockchip
<anarsoul> robmur01: it works fine in linux
<anarsoul> I'll check pmic output later tonight
<anarsoul> thanks for the tips
<anarsoul> micken: it has regulator commands
<anarsoul> and rk808 driver is here
stikonas has joined #linux-rockchip
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-rockchip
<anarsoul> robmur01: LDO6 on rockpro64 is vcc_1v5 according to dts
<anarsoul> it's always-on, boot-on and not referenced anywhere
chewitt has quit [Quit: Zzz..]
<anarsoul> apio4_vdd is vcc_3v0 which is LDO8
<sphalerite> I've successfully built a coreboot for my gru-bob rk3399 chromebook, but it isn't loading the linux kernel I built as a payload. The log looks like this: https://gist.github.com/lheckemann/cc098466b3f107f346723b8fe724f75c
<sphalerite> What might I need to change?
<sphalerite> Maybe Image.gz is the wrong thing to point coreboot to?
<anarsoul> I have no experience with coreboot on rk3399 but likely you need regular Image
<anarsoul> Image.gz is just gz-compressed
<anarsoul> it has to be decompressed by bootloader
<sphalerite> hm, but that's far too big for the flash
<stikonas> can't you load grub before kernel then?
<sphalerite> actually… cc hanetzer since you're the one I got the kernel config from and have this working on a similar device :D
<hanetzer> huh whazza?
<sphalerite> stikonas: I want to use linuxboot ideally
<sphalerite> hanetzer: coreboot is built and working, but not loading linux
<hanetzer> grub on arm (veyron, at least) is non functional
<stikonas> does kexec even work on rk3399? I think I saw some people trying to fix it
<sphalerite> log above
<hanetzer> oh. how did you pack?
<hanetzer> sphalerite: it works.
<hanetzer> erm, stikonas
<anarsoul> stikonas: hey
<hanetzer> sphalerite: what commit are you at?
<stikonas> anarsoul: hi
<stikonas> anarsoul: still trying to fix usb?\
<anarsoul> stikonas: can you build u-boot with 38400 baud rate for me? just wanna confirm that yours has working usb
<anarsoul> yes
<sphalerite> hanetzer: of linux or coreboot?
<stikonas> anarsoul: sure...
<anarsoul> turns out u-boot fails to configure gpio, but I'm not sure what's wrong yet
<stikonas> anarsoul: latest git?
<anarsoul> yes
<anarsoul> please also make sure that usb works for you
<anarsoul> i.e. do 'usb start' and 'usb tree' in console
<stikonas> ok
<stikonas> I'll first build with my baudrate
<hanetzer> sphalerite: coreboot. I had to introduce a patch to modify the heap size to make itwork, you may not have it.
<hanetzer> you need commits 22e605c2c06f553b98131a87b634709aa1818e1f and 0987e43aa05bfbafbfdd4952638b79a5084369f8
<hanetzer> also how are you packing the kernel?
<sphalerite> yeah I have those, I'm on 0e6e45770293781a19bd92d440bc6da6da642f7f
<sphalerite> I'm passing Image.gz as LINUXBOOT_KERNEL_PATH
<sphalerite> if that's what you mean by how I'm packing?
<stikonas> anarsoul: I'll come back to you in an hour with a new image... I want to finish building 5.3.9 kernel before rebooting...
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<hanetzer> sphalerite: use fit image.
<anarsoul> stikonas: OK, thanks
<hanetzer> assuming you're goal is still petitboot?
<sphalerite> yes, it is
<hanetzer> sphalerite: payloads/external/LinuxBoot/targets/linux.mk:117
<hanetzer> use that on Image. assuming this is coming from buildroot?
<sphalerite> no, it's coming from me building the kernel from kernel sources myself
<hanetzer> payloads/external/LinuxBoot/arm64/kernel_fdt_lzma.its << use this to join kernel and initramfs
<hanetzer> and you can compress the initramfs with payloads/external/LinuxBoot/Makefile:42
<sphalerite> right
<sphalerite> or maybe it would be easier to let coreboot's build system build linux for me x)
<hanetzer> perhaps. I just used buildroot and did the compression and fit image myself, stuck the uImage into the coreboot tree and pointed it at that.
<sphalerite> right
<sphalerite> I'll see how letting coreboot take care of it goes, if that fails I'll try what you said
<sphalerite> because I'm not all that familiar with this stuff and think I have better chances of using a thing that does it for me than doing it myself :D
<sphalerite> anyway, thank you very much for your help! I really appreciate it
<hanetzer> np. also, make sure you feed it an uncompressed Image iehter way :)
imsherlock has quit [Ping timeout: 240 seconds]
tuxd3v has joined #linux-rockchip
vicencb has quit [Quit: Leaving.]
levd has quit [Quit: Goodbye!]
levd has joined #linux-rockchip
levd has quit [Client Quit]
levd has joined #linux-rockchip
levd has quit [Quit: Goodbye!]
levd has joined #linux-rockchip
levd has quit [Client Quit]
levd has joined #linux-rockchip