Jump to content
Sign in to follow this  
planlos

RAM split (disable GPU RAM)

Recommended Posts

Hello,

I´m using a pcDuino Lite in headless mode - so no GPU power is needed. However I see only about 300+MB RAM available, the rest gets reserved for Mali GPU.

Is there a way to split the RAM manually?

Read about kernel arguments in sunxi wiki however I had no success editing "uEnv.txt" in "boot-mmc" to disable GPU reserved RAM.

Any ideas?

Thank you a lot!

Share this post


Link to post
Share on other sites

Sure. My last line (setargs) in uEnv.txt is:

 

setargs=setenv bootargs console=${console} console=tty1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve root=${mmc_root} loglevel=${loglevel} ${panicarg} ${extraargs}

However in syslog it tells me after booting:

 

Dec 27 14:47:20 ubuntu kernel: [    0.000000] Memory cut off:
Dec 27 14:47:20 ubuntu kernel: [    0.000000]   MALI : 0x5c000000 - 0x5fffffff  (  64 MB)
Dec 27 14:47:20 ubuntu kernel: [    0.000000] Ignoring unrecognised tag 0x00000000
Dec 27 14:47:20 ubuntu kernel: [    0.000000] Memory Reserved:
Dec 27 14:47:20 ubuntu kernel: [    0.000000]   SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
Dec 27 14:47:20 ubuntu kernel: [    0.000000]   VE   : 0x44000000 - 0x48ffffff  (  80 MB)
Dec 27 14:47:20 ubuntu kernel: [    0.000000]   G2D  : 0x49000000 - 0x49ffffff  (  16 MB)
Dec 27 14:47:20 ubuntu kernel: [    0.000000]   LCD  : 0x5a000000 - 0x5bffffff  (  32 MB)

So my kernel arguments seem to be ignored (perhaps they are also written to the wrong place [?])

Share this post


Link to post
Share on other sites

It looks o.k.

 

They could be ignored for several reasons. First try to put arguments to quote:

setargs=setenv bootargs "console=${console} console=tty1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve root=${mmc_root} loglevel=${loglevel} ${panicarg} ${extraargs}"

It's also possible that kernel is unable to handle this. If you are using some very old one, could be possible.

Share this post


Link to post
Share on other sites

Thanks for helping!
Using quotes doesn´t make any difference :(
 

It's also possible that kernel is unable to handle this. If you are using some very old one, could be possible.

uname -a gives me

Linux ubuntu 3.4.29+ #1 PREEMPT Sun Sep 29 17:48:55 CST 2013 armv7l armv7l armv7l GNU/Linux

Is there any newer kernel for pcDuino Lite?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×