How about modifying the DDR size in u-boot itself ? There should be one macro in your board config file that specifies the DDR size.
Regards, Khasim On Thu, Nov 21, 2013 at 2:48 PM, Thorbjørn Vynne < thorbjorn.vy...@solution57.com> wrote: > Hi > > I'm currently testing out the new Kitkat release on the new Nexus 7 (2013) > and need to create a kernel that simulates the devices only having 1GB > available rather than 2GB. I've been trying to use the kernel commandline > options mem=size@start but with no luck the kernel doesn't boot. > > What I tried was to make the kernel only use memory bank 5 (see memory > bank info below) so using mem=0x6ffff000@0x90000000. > > 0.000000] Debug physical memory: meminfo.nr_banks: 1 bank->start: > 0x80200000 bank->size: 0x08c00000 > [ 0.000000] > [ 0.000000] Debug physical memory: meminfo.nr_banks: 2 bank->start: > 0x8a000000 bank->size: 0x03a00000 > [ 0.000000] > [ 0.000000] Debug physical memory: meminfo.nr_banks: 3 bank->start: > 0x8ec00000 bank->size: 0x00400000 > [ 0.000000] > [ 0.000000] Debug physical memory: meminfo.nr_banks: 4 bank->start: > 0x8f700000 bank->size: 0x00700000 > [ 0.000000] Truncating memory at 0x90000000 to fit in 32-bit physical > address space > [ 0.000000] > [ 0.000000] Debug physical memory: meminfo.nr_banks: 5 bank->start: > 0x90000000 bank->size: 0x6ffff000 > > But my experience with this is sofar also very limited... > > Looking through the device specific setup inside the arch/arm/mach-msm/ > folder I'm worried that things have not been made in a way that it is > easily configurable from the kernel commandline, so I'm currently digging > through all the setup files to better understand all the memory mapping. > > Anybody got any experience with this that they wanna share? > > Regards > Thorbjorn > > -- > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > > --- > You received this message because you are subscribed to the Google Groups > "android-porting" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-porting+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.