lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> [Discord] <amazingfate> Mpp in mainline kernel is a nightmare.
<DC-IRC> [Discord] <beohoff3174> Looks like Collabora ported the decoding nodes to 6.8: https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux/-/tree/rk3588-mpp-service?ref_type=heads
<DC-IRC> [Discord] <beohoff3174> I need the encoding nodes though
<DC-IRC> [Discord] <beohoff3174> Looks like some people like 2-3 years ago had made some patches against v4l2-request and I saw some references to va-api
<DC-IRC> [Discord] <beohoff3174> maybe this could be updated? https://github.com/mgrzeschik/v4l2-hantro-h264-encoder
<DC-IRC> [Discord] <beohoff3174> I see a reference to rkvpu
<DC-IRC> [Discord] <beohoff3174> nevermind, I see hardcoded references to a height and width of like 640x480
<DC-IRC> [Discord] <beohoff3174> had you tried to bring mpp to mainline at all? I assume this would be wasted maintenance effort
<DC-IRC> [Discord] <amazingfate> No, I think it's waste of time.
<DC-IRC> [Discord] <beohoff3174> Has anyone gotten dpms to work with agetty? I want the capability to shut the monitor off at will
<DC-IRC> [Discord] <beohoff3174> This post recommends the use of `setterm`: https://bbs.archlinux.org/viewtopic.php?id=273532
<DC-IRC> [Discord] <beohoff3174> I've see references to `/etc/rc.local`
<DC-IRC> [Discord] <beohoff3174> I also tried to echo into `/sys/class/graphics/fb0/blank` with no success
<DC-IRC> [Discord] <johnthecoolingfan> In a case of overheating, what would an rk3566 board do?
<DC-IRC> [Discord] <johnthecoolingfan> I would assume it would throttle or at least spew kernel errors in the serial when crashing, but right now I encounter a problem where the system freezes completely
<DC-IRC> [Discord] <johnthecoolingfan> Trying to pin down the cause
<DC-IRC> [Discord] <johnthecoolingfan> For board BigTreeTech Pi 2, PR: <https://github.com/armbian/build/pull/6860>
<DC-IRC> [Discord] <johnthecoolingfan> it has an activity led defined in dts, it blinks a bit while the system is booted, but when that freeze happens around 3 minutes in, it just stops, completely frozen.
<DC-IRC> [Discord] <johnthecoolingfan> I'm wondering whether that's an issue ever encountered on rockchip boards
<DC-IRC> [Discord] <superkali> Put a fan ❤️
<DC-IRC> [Discord] <johnthecoolingfan> I did
<DC-IRC> [Discord] <johnthecoolingfan> I have a heatsink on
<DC-IRC> [Discord] <johnthecoolingfan> WIth thermally conductive adhesive
<DC-IRC> [Discord] <johnthecoolingfan> And a fan
<DC-IRC> [Discord] <johnthecoolingfan> If this is just a joke than I did not find it funny
<DC-IRC> [Discord] <johnthecoolingfan> If this is just a joke then I did not find it funny
<DC-IRC> [Discord] <superkali> Is not a joke, how much you are getting about temperature?
<DC-IRC> [Discord] <johnthecoolingfan> Did not measure, actually
<DC-IRC> [Discord] <superkali> Just sensors command
<DC-IRC> [Discord] <johnthecoolingfan> I think the board froze while I tried installing lm-sensors
<DC-IRC> [Discord] <superkali> Wtf
<DC-IRC> [Discord] <superkali> Any error on dmesg?
<DC-IRC> [Discord] <johnthecoolingfan> Unless it's kept from previous boot - then none I could see
<DC-IRC> [Discord] <johnthecoolingfan> Unless it's kept from previous boot - then none that I could see
<DC-IRC> [Discord] <superkali> Uhm, at the start you’ve some error to share with us?
<DC-IRC> [Discord] <superkali> Maybe some wrong configuration that break something with CPU
<DC-IRC> [Discord] <johnthecoolingfan> the sensors say it's 30C
<DC-IRC> [Discord] <johnthecoolingfan> Just booted the device
<DC-IRC> [Discord] <johnthecoolingfan> Idling now
<DC-IRC> [Discord] <superkali> Can you share dmesg log?
<DC-IRC> [Discord] <superkali> And paste it on paste.armbian.com
<DC-IRC> [Discord] <superkali> This abnormal freeze are so weird
<DC-IRC> [Discord] <johnthecoolingfan> Aaand it froze
<DC-IRC> [Discord] <johnthecoolingfan> Reset button helps
<DC-IRC> [Discord] <superkali> The issue in this case is not related to high temperature
<DC-IRC> [Discord] <superkali> But is other
<DC-IRC> [Discord] <superkali> I need the dmesg logs
<DC-IRC> [Discord] <johnthecoolingfan> Ok I have dmesg
<DC-IRC> [Discord] <superkali> Awesome
<DC-IRC> [Discord] <johnthecoolingfan> https://paste.armbian.com/ixocimeqon.yaml
<DC-IRC> [Discord] <superkali> Let me check into it
<DC-IRC> [Discord] <johnthecoolingfan> uptime
<DC-IRC> [Discord] <johnthecoolingfan> less than 2 minutes of uptime, frozen again
<DC-IRC> [Discord] <superkali> I see a lot of deferring pending
<DC-IRC> [Discord] <johnthecoolingfan> rk809-sound and hdmi-sound?
<DC-IRC> [Discord] <superkali> Hdmi
<DC-IRC> [Discord] <superkali> Yes
<DC-IRC> [Discord] <superkali> I have to check your dts
<DC-IRC> [Discord] <superkali> Can you link here I’m from my phone and it’s hard to search on GitHub
<DC-IRC> [Discord] <johnthecoolingfan> Sure
<DC-IRC> [Discord] <superkali> Let me check
<DC-IRC> [Discord] <johnthecoolingfan> In the meantime I'll try disabling these nodes as they are not critical I think
<DC-IRC> [Discord] <superkali> Uhm
<DC-IRC> [Discord] <superkali> So
<DC-IRC> [Discord] <superkali> When you try to use internet
<DC-IRC> [Discord] <superkali> After it freezes?
<DC-IRC> [Discord] <superkali> Can you try to detach Ethernet and use serial and do a stress
<DC-IRC> [Discord] <superkali> I want confirm is not a cpu problem
<DC-IRC> [Discord] <johnthecoolingfan> I don't understand what do you mean... Don't connect ethernet and stress test the cpu?
<DC-IRC> [Discord] <superkali> Technically is hard to find the problem of the board will stuck, so you’ve to try every possible changes
<DC-IRC> [Discord] <superkali> Detach Ethernet cable and try to use the board
<DC-IRC> [Discord] <superkali> And check if the board freeze again
<DC-IRC> [Discord] <johnthecoolingfan> Ok, booted up without attaching ethernet
<DC-IRC> [Discord] <superkali> I see the history of the commit
<DC-IRC> [Discord] <johnthecoolingfan> Still these lines in the dmesg
<DC-IRC> [Discord] <johnthecoolingfan> ```
<DC-IRC> [Discord] <johnthecoolingfan> [ 22.754939] platform rk809-sound: deferred probe pending
<DC-IRC> [Discord] <johnthecoolingfan> [ 22.754958] platform hdmi-sound: deferred probe pending
<DC-IRC> [Discord] <johnthecoolingfan> ```
<DC-IRC> [Discord] <superkali> Seems like after you’ve integrated Ethernet are you experiencing those problem
<DC-IRC> [Discord] <johnthecoolingfan> froze again
<DC-IRC> [Discord] <johnthecoolingfan> Well, I only noticed that after getting ethernet working
<DC-IRC> [Discord] <johnthecoolingfan> Previously didn't have the board work long enough to get into that state I think
<DC-IRC> [Discord] <superkali> Let me know before you’ve integrated Ethernet, this problem persists?
<DC-IRC> [Discord] <superkali> Uhm
<DC-IRC> [Discord] <superkali> I work always with serial
<DC-IRC> [Discord] <superkali> 😂
<DC-IRC> [Discord] <johnthecoolingfan> I usually just did short boots to test if the component works or not
<DC-IRC> [Discord] <johnthecoolingfan> I do use serial
<DC-IRC> [Discord] <superkali> Try to compile without Ethernet
<DC-IRC> [Discord] <johnthecoolingfan> Yes, disable the gmac node/
<DC-IRC> [Discord] <johnthecoolingfan> Yes, disable the gmac node?
<DC-IRC> [Discord] <superkali> Or you’ve to check if the pin corresponds to the schem
<DC-IRC> [Discord] <superkali> Idk if you’ve already done
<DC-IRC> [Discord] <johnthecoolingfan> I don't have schematics for this board
<DC-IRC> [Discord] <superkali> Vendor don’t provide it?
<DC-IRC> [Discord] <johnthecoolingfan> I just use manufacturer's linux tree as "reference"
<DC-IRC> [Discord] <superkali> Oh Jesus
<DC-IRC> [Discord] <johnthecoolingfan> Well I didn't find any on the internet
<DC-IRC> [Discord] <johnthecoolingfan> And bigtreetech isn't willing to sponsor cb2 support yet
<DC-IRC> [Discord] <superkali> 🥲
<DC-IRC> [Discord] <johnthecoolingfan> vendor kernel works - that means something is right in it
<DC-IRC> [Discord] <superkali> They sell this board without documentation available lol
<DC-IRC> [Discord] <johnthecoolingfan> Just need to do a biiiiig diff
<DC-IRC> [Discord] <johnthecoolingfan> They have a manual
<DC-IRC> [Discord] <johnthecoolingfan> That doesn't even have gpio pin roles...
<DC-IRC> [Discord] <superkali> Not useful 😂
<DC-IRC> [Discord] <johnthecoolingfan> Just the numbers
<DC-IRC> [Discord] <superkali> I want the schematic
<DC-IRC> [Discord] <johnthecoolingfan> I can get you one if you sponsor a 3d xray scan lol
<DC-IRC> [Discord] <johnthecoolingfan> just joking
<DC-IRC> [Discord] <superkali> 😂👍
<DC-IRC> [Discord] <superkali> Unfortunately I have to work on other board
<DC-IRC> [Discord] <superkali> Unfortunately I have to work to other board
<DC-IRC> [Discord] <johnthecoolingfan> no problems
<DC-IRC> [Discord] <johnthecoolingfan> Just trial end error
<DC-IRC> [Discord] <superkali> And I’m doing this only because the community when buy this board you don't want to end up with a board stuck at the kernel 5.10 😂
<DC-IRC> [Discord] <johnthecoolingfan> haha same
<DC-IRC> [Discord] <superkali> It referenced to the 3d xray scan
<DC-IRC> [Discord] <superkali> Let me know when you have disabled the node of the Ethernet
<DC-IRC> [Discord] <superkali> I see it as hard to integrate this board without a schematic, not having the reference pins to where they are connected and it's a mess
<DC-IRC> [Discord] <superkali> It’s a real good luck
<DC-IRC> [Discord] <johnthecoolingfan> Well, there's vendor's devcie tree, it has to have something correct
<DC-IRC> [Discord] <superkali> I hope for you, I had to rewrite the dts code because the dts of the vendor was wrong references and a lot features did not works correctly
<DC-IRC> [Discord] <johnthecoolingfan> built the image, flashing now
<DC-IRC> [Discord] <johnthecoolingfan> alright let's try this
<DC-IRC> [Discord] <johnthecoolingfan> console-setup failed for some reason randomly
<DC-IRC> [Discord] <johnthecoolingfan> Not on every boot
<DC-IRC> [Discord] <igorpec> yeah, this console-setup is failing on debian randomly for some time
<DC-IRC> [Discord] <johnthecoolingfan> oh ok
<DC-IRC> [Discord] <igorpec> i think it has nothing to do with armbian, happens on stock debian too
<DC-IRC> [Discord] <superkali> Yes it’s a Debian issue, I have it too on my VPS
<DC-IRC> [Discord] <johnthecoolingfan> the dmesg log: https://paste.armbian.com/ubikojeyok.yaml
<DC-IRC> [Discord] <johnthecoolingfan> Watching it now, crossed 2 minute mark just now
<DC-IRC> [Discord] <johnthecoolingfan> Aaand it's frozen
<DC-IRC> [Discord] <johnthecoolingfan> Didn't even cross the 3 minute mark
<DC-IRC> [Discord] <superkali> Uhm
<DC-IRC> [Discord] <johnthecoolingfan> what
<DC-IRC> [Discord] <johnthecoolingfan> I just had `watch uptime` running to monitor the "pulse"
<DC-IRC> [Discord] <johnthecoolingfan> and have a last working uptime value when it dies
<DC-IRC> [Discord] <superkali> I see an error to initialize mmc2 and mmc0 about switch bus
<DC-IRC> [Discord] <superkali> Usually can be related to a I/O errors
<DC-IRC> [Discord] <superkali> Do a check on those
<DC-IRC> [Discord] <superkali> When i write uhm this means I’m thinking
<DC-IRC> [Discord] <johnthecoolingfan> oh ok no problem
<DC-IRC> [Discord] <superkali> You’ve copied the mmc from vendor dts?
<DC-IRC> [Discord] <johnthecoolingfan> I've used the entire vendor dts as a base
<DC-IRC> [Discord] <johnthecoolingfan> then tweaking
<DC-IRC> [Discord] <superkali> Can I advise you a thing?
<DC-IRC> [Discord] <johnthecoolingfan> yes?
<DC-IRC> [Discord] <superkali> I started my dts from a another base
<DC-IRC> [Discord] <superkali> 😂
<DC-IRC> [Discord] <johnthecoolingfan> I will try that tomorrow
<DC-IRC> [Discord] <superkali> why the vendor base did not start
<DC-IRC> [Discord] <superkali> Because the vendor base did not start
<DC-IRC> [Discord] <johnthecoolingfan> The only reference of how the peripherals are connected is vendor dts (well, one of 3 branches)
<DC-IRC> [Discord] <superkali> It’s rk***?
<DC-IRC> [Discord] <johnthecoolingfan> rk3566
<DC-IRC> [Discord] <superkali> There are other board with this chip?
<DC-IRC> [Discord] <johnthecoolingfan> yeah
<DC-IRC> [Discord] <johnthecoolingfan> what's the chance they have the same peripherals and connected to the same pins?
<DC-IRC> [Discord] <superkali> Ok start with a base of another board and remove useless references
<DC-IRC> [Discord] <superkali> And step by step integrate peripherals
<DC-IRC> [Discord] <superkali> 0
<DC-IRC> [Discord] <superkali> For this reason check all gpio
<DC-IRC> [Discord] <johnthecoolingfan> *sigh*
<DC-IRC> [Discord] <johnthecoolingfan> `git checkout --branch btt-cb2-do-over-from-scratch`
<DC-IRC> [Discord] <superkali> This is an advice that I can give you
<DC-IRC> [Discord] <johnthecoolingfan> Worth trying