Jump to content


Photo

RAM split (disable GPU RAM)


  • Please log in to reply
4 replies to this topic

#1 planlos

planlos

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 26 December 2015 - 04:15 PM

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!



#2 igorpec

igorpec

    Member

  • Members
  • PipPip
  • 16 posts

Posted 27 December 2015 - 09:05 AM

Can you paste the exact line?



#3 planlos

planlos

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 27 December 2015 - 01:52 PM

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 [?])



#4 igorpec

igorpec

    Member

  • Members
  • PipPip
  • 16 posts

Posted 27 December 2015 - 04:06 PM

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.


  • youkee likes this

#5 planlos

planlos

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 31 December 2015 - 10:32 AM

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?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users