ZRAM kernel support

It seems that zram module it’s missing from the kernel. Is there any way to add it?

My steps:

  1. sudo apt install zram-config
  2. sudo systemctl status zram-config.service

Output 2 >

● zram-config.service - Initializes zram swaping
Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor preset: enabled)
Active: inactive (dead)

  1. sudo systemctl start zram-config.service
    Output 3 >

Job for zram-config.service failed because the control process exited with error code. See “systemctl status zram-config.service” and “journalctl -xe” for details.

  1. systemctl status zram-config.service
    Output 4 >
● zram-config.service - Initializes zram swaping
   Loaded: loaded (/lib/systemd/system/zram-config.service; enabled; vendor preset: enabled)
   Active: **failed** (Result: exit-code) since Sun 2018-12-09 14:44:19 UTC; 11s ago
  Process: 1513 ExecStart=/usr/bin/init-zram-swapping (code=exited, status=1/FAILURE)
 Main PID: 1513 (code=exited, status=1/FAILURE)

Dec 09 14:44:19 rock960 systemd[1]: Starting Initializes zram swaping...
Dec 09 14:44:19 rock960 init-zram-swapping[1513]: libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep: could not open moddep file '/lib/modules/4.4.103
Dec 09 14:44:19 rock960 init-zram-swapping[1513]: modinfo: ERROR: Module alias zram not found.
Dec 09 14:44:19 rock960 init-zram-swapping[1513]: libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep: could not open moddep file '/lib/modules/4.4.103
Dec 09 14:44:19 rock960 init-zram-swapping[1513]: modinfo: ERROR: Module alias zram not found.
Dec 09 14:44:19 rock960 systemd[1]: zram-config.service: Main process exited, code=exited, status=1/FAILURE
Dec 09 14:44:19 rock960 systemd[1]: **Failed to start Initializes zram swaping.**
Dec 09 14:44:19 rock960 systemd[1]: zram-config.service: Unit entered failed state.
Dec 09 14:44:19 rock960 systemd[1]: zram-config.service: Failed with result 'exit-code'.

Board based on the Rockchip RK3399 - ARM Cortex-A72 Dual-core up to 1.8GHz + Cortex A53 Quad-core up to 1.4GHz

Hi, Bogdan

I think we have fixed this in the new released image, can you test it?

Debian stretch desktop:

https://dl.vamrs.com/products/rock960/images/debian/rock960ab-debian-stretch-desktop-armhf-20181218_2036-gpt.img.gz

Ubuntu bionic minial:

https://dl.vamrs.com/products/rock960/images/ubuntu/rock960ab-ubuntu-bionic-minimal-arm64-20181218_2036-gpt.img.gz