![]() |
0.7.9 Linux release from ayufan - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101) +--- Thread: 0.7.9 Linux release from ayufan (/showthread.php?tid=6308) |
RE: 0.7.9 Linux release from ayufan - Bullet64 - 11-17-2018 The system is running ![]() https://docker-curriculum.com/ RE: 0.7.9 Linux release from ayufan - nuumio - 11-19-2018 (09-02-2018, 07:16 AM)dukla2000 Wrote:(08-31-2018, 12:05 PM)Deathcrow Wrote: Now to my question: Is it possible to get the eMMC module to work with linux-mainline kernel (4.18-rc8)? I encounter the following error: I had these same problems too with 32GB Foresee card + mainline kernel. Two 16GB Foresee cards were working just fine. After comparing boot logs I found out that 32GB Foresee card supports command queue (CMDQ) but 16GB ones don't. CMDQ support also be checked with mmc command. Here's a snippet from boot log ("Command Queue Engine enabled" gave it away, it was missing from boot with 16GB card): Code: $ grep mmc1 bootlog-4.19.0-1073-ayufan-ga6e013135a6e.txt | head 32GB card's CMDQ as seen by mmc command (be carefull with it if you use other commands than 'extcsd read', man says many of them cause "one-time programmable (unreversible) changes"!): Code: $ sudo mmc extcsd read /dev/mmcblk1 | grep CMDQ So I guessed CMDQ was the problem and decided to add a new kernel command line parameter which could be used to disable CMDQ. After little kernel hacking (mmc: core: Add MMC Command Queue Support kernel parameter) and new parameter added to command line: Code: $ dmesg | egrep "Linux version|mmc1" I now have 32GB Foresee card working with mainline kernel. Of course there's the trouble of manually adding the new parameter to extlinux.conf but it's certainly less annoying than non-booting system ![]() RE: 0.7.9 Linux release from ayufan - Deathcrow - 12-04-2018 (11-19-2018, 08:04 AM)nuumio Wrote: I now have 32GB Foresee card working with mainline kernel. Of course there's the trouble of manually adding the new parameter to extlinux.conf but it's certainly less annoying than non-booting system @nuumio: Your patch works perfectly for me! Thank you for posting it. I was tinkering around with device tree files but gave up after a while, even though I had an inkling that it was related to CMDQ! RE: 0.7.9 Linux release from ayufan - nuumio - 12-04-2018 (12-04-2018, 12:37 PM)Deathcrow Wrote: @nuumio: Your patch works perfectly for me! Thank you for posting it. I was tinkering around with device tree files but gave up after a while, even though I had an inkling that it was related to CMDQ! You're welcome ![]() RE: 0.7.9 Linux release from ayufan - Deathcrow - 12-04-2018 (12-04-2018, 02:03 PM)nuumio Wrote:(12-04-2018, 12:37 PM)Deathcrow Wrote: @nuumio: Your patch works perfectly for me! Thank you for posting it. I was tinkering around with device tree files but gave up after a while, even though I had an inkling that it was related to CMDQ! Neat, I'll probably check it out when the kernel is out of rc state. Something else I noticed, the big cores seem to be throttling a lot: Code: Time big.LITTLE load %cpu %sys %usr %nice %io %irq CPU C.St. Even though the CPU is only at 52.2°C it's not going above 816 Mhz. Anyone else facing this issue? As soon as I stop compiling something (... Gentoo ![]() RE: 0.7.9 Linux release from ayufan - Deathcrow - 12-06-2018 I've been playing around with the thermal stuff a bit more and - unless I messed up my kernel - the thermal policy governor 'power_allocator' doesn't appear to work correctly for the 2 big cores. The kernel seems to think that they're a GPU: Code: /s/c/t/thermal_zone1 » cat /sys/class/thermal/thermal_zone1/type Not sure if this is causing the issues, but it strikes me as odd. Workarounds that work for me is either turning off that thermal_zone (through /sys/class/thermal/thermal_zone1/mode) or - probably safer - switching to fair_share policy: Code: echo fair_share > /sys/class/thermal/thermal_zone1/policy With this change the cores stay nicely at 1.8 Ghz for me. Just to be clear: This is all with the mainline kernel. I assume it works fine with the 4.4 rockchip kernel. Edit: Anyone got some experience with this thermals stuff? power_allocator.txt advises to set sustainable-power through the device tree, which I suspect might be too low by default. Is this roughly the right direction to go here? RE: 0.7.9 Linux release from ayufan - dukla2000 - 12-06-2018 (12-06-2018, 03:48 AM)Deathcrow Wrote: With this change the cores stay nicely at 1.8 Ghz for me. Just to be clear: This is all with the mainline kernel. I assume it works fine with the 4.4 rockchip kernel. Yup, I have the same frustration starting at 4.18, still there at 4.19 as per my post here. For most of what I need mainline is cool - the scheduling is an irritation, but I really need to get sound somehow as well. Watching the noises here and on IRC seems sound is pretty close (may well be OK for others, I am still struggling ![]() PS - at 4.4 thermal zone1 is also gpu - agree strange but seems not the problem (on its own): Code: $ cat /sys/class/thermal/thermal_zone1/type RE: 0.7.9 Linux release from ayufan - Deathcrow - 12-12-2018 I just wanted to give a quick recommendation for everyone who likes Btrfs (I don't think it's worth to start a new thread for this): Having a small ext4 boot partition (just kernel+initrd) and a large btrfs partition for the root filesystem works great. Especially with the mainline kernel: I'm currently using btrfs+zstd compression, which is fast and saves lots of space. Having the snapshot feature is really great for someone who likes to tinker with the OS and am currently keeping 7 snapshots (one for each day of the week), to which I could revert in case I mess something up. With the incremental backup feature I'm also maintaining very painless backups to external storage. RE: 0.7.9 Linux release from ayufan - Luke - 02-25-2019 Old, unstuck and locked. New pre-release thread here. |