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
wwilly has joined #linux-rockchip
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
vstehle has quit [Ping timeout: 245 seconds]
wwilly has joined #linux-rockchip
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
vicencb has quit [Quit: Leaving.]
wwilly has joined #linux-rockchip
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
vstehle has joined #linux-rockchip
JohnDoe_71Rus has joined #linux-rockchip
ayaka has quit [Read error: Connection reset by peer]
ayaka has joined #linux-rockchip
vagrantc has quit [Ping timeout: 276 seconds]
wwilly has joined #linux-rockchip
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
wwilly has joined #linux-rockchip
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
wwilly has joined #linux-rockchip
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
PoueT7 has joined #linux-rockchip
ganbold_ has joined #linux-rockchip
PoueT has quit [Read error: Connection reset by peer]
ganbold has quit [Read error: Connection reset by peer]
xerpi has joined #linux-rockchip
xerpi has quit [Remote host closed the connection]
fabiobassa has joined #linux-rockchip
<fabiobassa> good morning roomies. Please need some opinions on running a linux server on rk3229 . I managed to have the board boot and fully funcional, but after EXACTLY 29 minutes and 59 the board freezes. How can I address the problem ?
<EmilKarlson> perhaps you could first try running initrd for just 30mins to exclude this thing is not triggered by userspace
<fabiobassa> good morning EmilKarlson ty for answer . I have several ROOTFS from diferent OS ( archlinux, linaro, devuan ) and all acting the same. Might I describe my environment to make the situation clear ?
<EmilKarlson> maybe, 30 mins seems very long for a kernel/hw timescale, someone could guess you have a watchdog of some sort
<fabiobassa> I wish to clarify that in the 30 minutes all is working perfectly ( NO hdmi but i want to use the board as server so no X needed) I run directly from internal NAND I have the same behaviour if i run " echo freeze /sys/power/state "
<fabiobassa> so definetly a freeze suspend hibernate problem but I don't know how to debug it
<EmilKarlson> are you really 2000% sure this is not userland?
<EmilKarlson> IdleAction=ignore
<EmilKarlson> #IdleActionSec=30min
<EmilKarlson> /etc/systemd/logind.conf
<EmilKarlson> in general your userland is expected to be pretty homogenic
<fabiobassa> EmilKarlson: and I also want to specify that I am notnoob noob but neither a programmer so if I say something weird just have patience lol ! I use devuan as my rootfs and devuan hasn't systemd but the old initrd and in any case it happens also with archlinux :linaro rootfs instead uses systemd so I can try to do what you suggest me
<EmilKarlson> I know, but devuan has to have certain amount of systemd compatibility
<fabiobassa> have you ever managed to have a full gnu-linux on internal nand of RK3229 ? this chip seems very difficult to manage
<fabiobassa> and also if I boot from SD all is working perfectly for how many hours I want so it must be some thing specific to board ( uboot left over ? misconfigured kernel ? I am going crazy to debug it )
<EmilKarlson> no, I have used the chromebooks exclusively
<EmilKarlson> internal nand should have nothing to do with this, but that is also trivial to check with the initrd thing
<fabiobassa> I have also try to compile using the chrome sources and of course adapting to 3229 dts , and again boot and hang after 30 min
<fabiobassa> ok so i should boot up to initrd and leave the system without userspace, right ?
<EmilKarlson> well just a shell
<fabiobassa> ok
<EmilKarlson> like /init is #!/bin/ash\nsleep 3600
<EmilKarlson> then link busybox that contains these applets to /bin and package as initrd
<EmilKarlson> or just ash as init
<fabiobassa> will try to do this. I did some " frankensten " cut/copy/paste " so I have original miniloader-all.bin, original u-boot.img, original trust.img and then MY boot.img ( with modified init of course ), My kernel , MY resources and My root fs .
<fabiobassa> EmilKarlson: but are you speaking of init ( init ram in few words) or the init after kernel started ( etc/init or /sbin/init ) ?
<EmilKarlson> I believe just /init
<fabiobassa> ok I will check this :)
<EmilKarlson> you can just try directly setting IdleAction=ignore on logind.conf
<fabiobassa> ok at least those are some good starting points . Ty so much and will give some feedsback
wwilly has joined #linux-rockchip
<fabiobassa> EmilKarlson: this is my actual /etc/Systemd/login https://pastebin.com/zp8jCqvw
<inode> fabiobassa: i still believe the problem is in some kind of initialization done by the original u-boot, rather than the mainline kernel
<inode> replace u-boot with mainline and this problem goes away
<inode> but i know that this doesn't help you because the board features NAND flash and not eMMC :)
<fabiobassa> hello justin good morning and nice to see you here ! How are you ? Really for my tests I am using 3.10.104 kernel and not the mainline that , as you teached me, hasn't support for internal nand ! Until u-boot mainline will not support rknand is a pity ,as we chatted many times.
<fabiobassa> inode: exactly no rknand on mainline
<inode> good thanks, and you? i got the mail btw, just had no time to respond
<fabiobassa> but i am really a step to have the board working as I desire and now this 30 minutes freeze is damning me
<fabiobassa> " just had no time to respond " is ok no worries :) . I will just follow suggestions from EmilKarlson and see what happen
<EmilKarlson> did you mean to uncomment that IdleAction=ignore
<EmilKarlson> as in, is it before or after a modification
<fabiobassa> I am doing it right now EmilKarlson i must ssh into board
<fabiobassa> original, before modification in pastebin
<EmilKarlson> inode: maybe, but why 30mins, watchdog would be only one I could think of and that's quite a slow dog for 1800 seconds
<inode> EmilKarlson: i'm not sure, and haven't had the motivation to figure out why, as i have personally experienced this problem on another rk3229 device when i replaced only the kernel and initrd - the problem has non-existent been non-existent since i've replaced the original bootloader with mainline u-boot
<EmilKarlson> inode: and you had the symptom of some exact timing?
<inode> and i also use a devuan rootfs, so essentially without systemd
<inode> yes correct
<inode> as 30 minutes is about to elapse the board locks up
<fabiobassa> inode: i tried as many rootfs you can image and the problem persist . but it happens also if i specificall run " echo freeze /sys/power/state" so maybe some cmdline from original uboot but is ever possible that in userspace no way to OVERRIDE the freeze suspend ? In any case EmilKarlson I modified systemd but now we must wait 30 minutes lol :)
<inode> some mentions i made of this issue while i was struggling: https://freenode.irclog.whitequark.org/linux-rockchip/2019-05-23
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
Putti has joined #linux-rockchip
<inode> the last mention was using mainline u-boot without OP-TEE, hence no PSCI and only cpu0 brought up
wwilly has joined #linux-rockchip
field^Mop has joined #linux-rockchip
gnufan_home has joined #linux-rockchip
<inode> fabiobassa: regarding "but is ever possible that in userspace no way to OVERRIDE the freeze suspend ?" - maybe there is some kind of wakelock triggered from the original android initrd
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
<inode> or at least i'm guessing that the original initrd might lead you to the source of the problem as:
<inode> 11:44 <inode> my current problem is that after 30 minutes after boot, the device becomes unresponsive over ethernet, UART2 and tty0
<inode> 11:45 <inode> this also happens if i use the android kernel shipped with the device, but do not use the initrd that was intended for it
<fabiobassa> inode: me too , I thought also this eventuality so i was reading all the init.rc of original android ( init is compiled/executable but various rc are readable ) searching any reference to freeze or PSCI so I could replicate in new init
<fabiobassa> i used init from raxda rock :-)
<inode> how wide was your search string selection? :) wake|suspend|power|freeze|idle|... ?
<fabiobassa> it wasn't at all lol , I googled a lot for this problem and got some feedback of the same timing even on android OS , but i ner string in my rootfs
<fabiobassa> never*
<fabiobassa> I guess we cannot resume from sleeping because no touchscreen or no event from remote infrared
<fabiobassa> anyway my actual uptime is 09:08:58 up 26 min, 1 user, load average: 1.45, 1.49, 1.22 so in 4 minutes the sentence :-)
<fabiobassa> ok , board freezed even with IdleAction=ignore :(
afaerber has joined #linux-rockchip
wwilly has joined #linux-rockchip
Putti has quit [Remote host closed the connection]
ldevulder__ has joined #linux-rockchip
ldevulder_ has quit [Ping timeout: 245 seconds]
Putti has joined #linux-rockchip
vicencb has joined #linux-rockchip
<EmilKarlson> and you did uncomment it?
fabiobassa has quit [Ping timeout: 245 seconds]
fabiobassa has joined #linux-rockchip
Greyztar has quit [Ping timeout: 260 seconds]
<fALSO> bom dia
Greyztar has joined #linux-rockchip
micken has joined #linux-rockchip
vagrantc has joined #linux-rockchip
<micken> lo
<micken> I am trying to bring my rk3288 videodriver to rk3399. Is there any difference in VOP?
<micken> OK have sync
<micken> now
<micken> but thanks anyway :D
drrrty has quit [Remote host closed the connection]
lopsided98 has quit [Remote host closed the connection]
lopsided98 has joined #linux-rockchip
fabiobassa has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.1/20170316213902]]
<micken> Does anyone have a registerdescription or know how reg 0x14 in vop (rk3399) works?
<micken> I looked at running linux and figured that +20 bits needs to be set,, those are listed as reserverd in rk3288 docs
<micken> if I put something there I get sync, but I don't see my framebuffer
<mmind00> micken: 0x14 is "DSP_CTRL1" ... [23:20] are hdmi polarities
<micken> ok
<micken> mmind00: thanks
<micken> mmind00: is the other bits the same as rk3288?
<mmind00> micken: if you look into rockchip_vop_reg.c you can see it defined in "static const struct vop_output rk3399_output"
Putti has quit [Ping timeout: 258 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
wwilly has quit [Ping timeout: 272 seconds]
<micken> mmind00: thanks for the pointer,, however it is something else . I have the fc_dgb registers set and no colour on screen
<micken> fc_dbg
<micken> a bit odd, I followed rk3399 docs for hdmi when I did rk3288 :)
<micken> and i.mx6 docs
<micken> and I get sync now
<micken> the monitor reports wanted res
inode has quit [Remote host closed the connection]
field^Mop has quit [Ping timeout: 272 seconds]