how to config SDRAM size

Hi there,

default Beaglebone black have 512 MB ram. I would like to set it to 128 MB for testing by modifing 2 configs:

`

#define CONFIG_MAX_RAM_BANK_SIZE (12810241024) /* 128MB */ /// include/configs/ti_am335x_common.h

#define DEFAULT_LINUX_BOOT_ENV \ //// include/configs/ti_armv7_common.h
“loadaddr=0x82000000\0”
“kernel_addr_r=0x82000000\0”
“fdtaddr=0x84000000\0”
“fdt_addr_r=0x84000000\0”
“rdaddr=0x84080000\0”
“ramdisk_addr_r=0x84080000\0”
“bootm_size=0x10000000\0”

Enter code here…
`

but it was hang in kernel_entry. If I try with 256MB, it works. Did I miss something ?

I am running on kernel 3.14.27.

Thanks

Tuan Nguyen