maxnet / berryboot

Berryboot -- Boot menu / OS installer
http://www.berryboot.com/
Other
804 stars 133 forks source link

rpi2 and CMA? #266

Open wcsuther opened 8 years ago

wcsuther commented 8 years ago

Sorry if this has been covered already, but I can't seem to get a straight answer from searching. Is CMA supported in the rpi2 berryboot 2.0 image/kernel? When I use the "Edit" feature on the boot screen i get a message that Dynamic Memory is Enabled (CMA), however my various OS's all seem to boot with 128M of gpu usage:

$ vcgencmd get_mem gpu

gives me (in all my OS's):

gpu=128M

Here is my cmdline.txt:

smsc95xx.turbo_mode=N elevator=deadline quiet bootmenutimeout=20 datadev=mmcblk0p2

And here is my config.txt:

start_x=1
gpu_mem=128
max_usb_current=1
hdmi_group=1
hdmi_mode=5
hdmi_ignore_cec_init=1

# Enable on-board audio
#dtparam=audio=on
dtoverlay=iqaudio-dacplus-overlay.dtb

# Berryboot settings, do not change
initramfs berryboot.img

kernel=kernel_rpi2_aufs.img

[pi0]
kernel=kernel_rpi_aufs.img

[pi1]
kernel=kernel_rpi_aufs.img

# Warning: CMA does not work properly in newer firmware versions
#
#cma_lwm=16
#cma_hwm=32
#cma_offline_start=16

[all]

The message at the bottom of the config.txt seems to contradict what the 'Edit' screen is saying, ie, that CMA is active, so I have left the cma commands commented out (default). What I want to do is boot OpenELEC with more available gpu memory and headless Raspbian OS with minimal gpu allocated memory. With my current settings everything seems to default to 128M for the gpu.

I'm a bit of a NOOB, so any help would be appreciated. Thanks!

maxnet commented 8 years ago

Negative. CMA is broken in all newer Raspberry Pi firmware.

wcsuther commented 8 years ago

OK, good to know, thanks. So should I remove smsc95xx.turbo_mode=N from the cmdline.txt, or should it stay?

Is there a way to have OpenELEC (or similar) boot with 256M of gpu memory on a rpi2, but have Raspbian boot with say 64M for gpu?

maxnet commented 8 years ago

We do not support changing memory split on Pi 2+ Extra reboots are annoying and can corrupt FAT partition.

turbo_mode=N was necessary in the past to get around some issues. No idea if it is still relevant today, have not tested.

wcsuther commented 8 years ago

OK, thank you, that's the info I was looking for...