Nikita Krokosh Posted February 28, 2016 Posted February 28, 2016 Hello! I'm planning to try using kodi with my cubietruck. Should I use desktop ubuntu image, or can I customize the legacy debian one? One those things is returning memory reservations. If I get it right I should edit uboot config and add: sunxi_ve_mem_reserve=128M cma=128+16M Am I correct? Are there any other changes I should change in default config to run kodi smoothly? I'd go with debian if it's possible, but I can switch to ubuntu, if there's alot to change in 3.4 debian image.
RagnerBG Posted February 28, 2016 Posted February 28, 2016 CMA is not enable in armbian kernel. You have to compile it by yourself, to enable it. I am using the following settings, mentioned in other project, related to Kodi: CONFIG_CMA=y# CONFIG_CMA_DEBUG is not set## Default contiguous memory area size:#CONFIG_CMA_SIZE_MBYTES=192CONFIG_CMA_SIZE_SEL_MBYTES=y# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set# CONFIG_CMA_SIZE_SEL_MIN is not set# CONFIG_CMA_SIZE_SEL_MAX is not setCONFIG_CMA_ALIGNMENT=8CONFIG_CMA_AREAS=7 You can change the size, but going above 192Mb is mentioned to cause instability. And going below is pointless, because memory is allocated dynamically. You can try desktop ubuntu image, but i had some troubles with it and there are no specific memory reservations there, i can't compile stable image from source either. I am not advice you to use old Debian Wheezy, because you can't install latest vdpau libraries because of incompatible old lic6 version. You can try with no problems on new Debian 8 Jessie. About memory reservations, you have to edit the following file - /boot/boot.cmd . Mine look like this: sunxi_ve_mem_reserve=128 sunxi_g2d_mem_reserve=32 sunxi_fb_mem_reserve=32 The last two doesn't seem to have any effect, but the first does. After you edit boot.cmd , create new boot.scr in the same directory: mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr and reboot. Let as know if you have some progress with Kodi .
Recommended Posts