This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm8168 uboot参数bootargs问问

HI TI,

       请问一下8168的uboot启动bootarts的mem参数设置什么值合适,我们板子硬件是设计了2GB的,但我传入mem=2048M,板子无法启动,只要将mem配置成128M或者256M板子才能正常使用,如果配置成128、256以外的数值,都会出现各种情况的问题。假如说我配置成256M,那我板子启动起来后,linux查到的可用内存就只有256MB,这样不就等于没有完全使用到我板子设计的2GB的内存吗?

setenv bootargs mem=256M console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.0.140:/opt/filesys/ramdisk_8168 ip=192.168.0.183:192.168.0.116:192.168.0.1:255.255.255.0::eth0:off vram=20M notifyk.vpssm3_sva=0xbF900000

下面是我配置成mem=256M后,8168开发板内核启动时打印出的一些信息:

PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 236MB = 236MB total
Memory: 233600k/233600k available, 28544k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.init : 0xc0008000 - 0xc003c000 ( 208 kB)
.text : 0xc003c000 - 0xc051d000 (4996 kB)
.data : 0xc051e000 - 0xc0568f80 ( 300 kB)

x 出现错误。请重试或与管理员联系。