andy_mqy

andy_mqy

1个粉丝

26

问答

0

专栏

0

资料

andy_mqy  发布于  2017-04-11 15:03:50
采纳率 0%
26个问答
3355

3531的内存分配

 
按Demo讲3531配置1G内存,请教哪位对3531的内存进行过调整,讲操作系统内存扩展大于512M,MMZ占用小于512M,如下图:是按OS=64M进行分配的,如果讲OS扩大到大于512M,如果配置?

  
我来回答
回答10个
时间排序
认可量排序

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-04-11 15:29:10
认可0
这个问题论坛以前有过讨论, 楼主可以先搜一下

andy_mqy

1个粉丝

26

问答

0

专栏

0

资料

andy_mqy 2017-04-14 14:02:25
认可0
仔细分析了,DDR0所在地址区域与DDR1的地址空间是不连续的,所以即使在uboot里面设置OS操作系统大于512M,运行中不定期会导致内核地址出错,因此OS只能小于512M

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-04-14 17:50:57
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=48285&ptid=14826]andy_mqy 发表于 2017-4-14 14:02[/url]
仔细分析了,DDR0所在地址区域与DDR1的地址空间是不连续的,所以即使在uboot里面设置OS操作系统大于512M, ...[/quote]


试试 bootargs中使用  mem=512M@0x80000000 mem=128M@0xC0000000

linux就可以使用两段不连续的内存了

OS大于512M也就没有问题了

andy_mqy

1个粉丝

26

问答

0

专栏

0

资料

andy_mqy 2017-04-19 15:32:07
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=48310&ptid=14826]zhuangweiye 发表于 2017-4-14 17:50[/url]
试试 bootargs中使用  mem=512M@0x80000000 mem=128M@0xC0000000

linux就可以使用两段不连续的内存 ...[/quote]

hisilicon # setenv bootargs 'mem=511M@0x80000000 mem=128M@0xC0000000 console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs)'

按楼上提示在uboot里面进行了设置,但是通过free,查看OS部分还是512M,是哪里设置的不对吗

# free
              total         used         free       shared      buffers
  Mem:       511684       198576       313108            0        15556
Swap:            0            0            0
Total:       511684       198576       313108

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-04-19 15:43:11
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=48504&ptid=14826]andy_mqy 发表于 2017-4-19 15:32[/url]
hisilicon # setenv bootargs 'mem=511M@0x80000000 mem=128M@0xC0000000 console=ttyAMA0,115200 root=/ ...[/quote]

方便的话 把kernel 启动的log的前面一小段有关mem的部分贴一下看看

andy_mqy

1个粉丝

26

问答

0

专栏

0

资料

andy_mqy 2017-04-19 16:40:45
认可0
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3630876 Bytes = 3.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (root@sunlhl) (gcc version 4.4.1 (Hisilicon_v200(gcc4.4-290+glibc-2.11+eabi+nptl)) ) #26 SMP Mon Aug 3 12:44:21 CST 2015
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: godnet
Ignoring RAM at c0000000-c7ffffff (vmalloc region overlap).
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 7 pages/cpu @c0b0c000 s5152 r8192 d15328 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129794
Kernel command line: mem=511M@0x80000000 mem=128M@0xC0000000 console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs)
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 511MB = 511MB total
Memory: 511492k/511492k available, 11772k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0000000 - 0xfe000000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xdff00000   ( 511 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0038000   ( 192 kB)
      .text : 0xc0038000 - 0xc0675000   (6388 kB)
      .data : 0xc0676000 - 0xc06aa840   ( 211 kB)
       .bss : 0xc06aa864 - 0xc0707974   ( 373 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:128 nr_irqs:128 128
sched_clock: 32 bits at 155MHz, resolution 6ns, wraps every 27709ms
Console: colour dummy device 80x30
Calibrating delay loop... 1849.75 BogoMIPS (lpj=9248768)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU1: Booted secondary processor
Brought up 2 CPUs
SMP: Total of 2 processors activated (3706.06 BogoMIPS).
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
uart:2: ttyAMA2 at MMIO 0x200a0000 (irq = 42) is a PL011 rev2
uart:3: ttyAMA3 at MMIO 0x200b0000 (irq = 43) is a PL011 rev2
bio: create slab at 0
controller0, config base:0x20800000, mem size:0x800000
controller1, config base:0x20810000, mem size:0x800000
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers disabled
PCI: bus3: Fast back to back transfers enabled
pci 0000:02:00.0: BAR 0: assigned [mem 0x60000000-0x607fffff pref]
pci 0000:02:00.0: BAR 0: set to [mem 0x60000000-0x607fffff pref] (PCI address [0x60000000-0x607fffff])
pci 0000:02:00.0: BAR 1: assigned [mem 0x60800000-0x6080ffff]
pci 0000:02:00.0: BAR 1: set to [mem 0x60800000-0x6080ffff] (PCI address [0x60800000-0x6080ffff])
pci 0000:02:00.0: BAR 6: assigned [mem 0x60810000-0x6081ffff pref]
pci 0000:02:00.0: PCI bridge to [bus 03-03]
pci 0000:02:00.0:   bridge window [io  disabled]
pci 0000:02:00.0:   bridge window [mem disabled]
pci 0000:02:00.0:   bridge window [mem pref disabled]
pci 0000:00:00.0: BAR 0: assigned [mem 0x30000000-0x307fffff pref]
pci 0000:00:00.0: BAR 0: set to [mem 0x30000000-0x307fffff pref] (PCI address [0x30000000-0x307fffff])
pci 0000:00:00.0: BAR 1: assigned [mem 0x30800000-0x3080ffff]
pci 0000:00:00.0: BAR 1: set to [mem 0x30800000-0x3080ffff] (PCI address [0x30800000-0x3080ffff])
pci 0000:00:00.0: BAR 6: assigned [mem 0x30810000-0x3081ffff pref]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0:   bridge window [io  disabled]
pci 0000:00:00.0:   bridge window [mem disabled]
pci 0000:00:00.0:   bridge window [mem pref disabled]
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer1
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
L2cache cache controller enabled
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.16)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 999
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
loop: module loaded
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0200 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc sxs boh
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x100 irq 68
ata2: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x180 irq 68
Spi id table Version 1.22
Hisilicon Spi Flash Controller V300 New Device Driver, Version 1.10
Check Spi Flash Controller V300 New.
Found
Spi(cs1) ID: 0x01 0x20 0x18 0x4D 0x01 0x80
Spi(cs1):
Block:64KB
Chip:16MB
Name:"S25FL129P1/S25FL128S"
spi size: 0x16777216
chip num: 1
3 cmdlinepart partitions found on MTD device hi_sfc
Creating 3 MTD partitions on "hi_sfc":
0x000000000000-0x000000100000 : "boot"
0x000000100000-0x000000500000 : "kernel"
0x000000500000-0x000001000000 : "rootfs"
Special nand id table Version 1.35
Hisilicon Nand Flash Controller V301 Device Driver, Version 1.10
Nand ID: 0x2C 0x68 0x04 0x4A 0xA9 0x00 0x00 0x00
Nand(Hardware): Block:1MB Page:4KB Chip:4GB OOB:128B ECC:1bit
NAND device: Manufacturer ID: 0x2c, Chip ID: 0x68 (Micron MT29F32G08CBACA)
Creating 0 MTD partitions on "hinand":
Fixed MDIO Bus: probed
sky2: driver version 1.28
usbcore: registered new interface driver rt2500usb
usbcore: registered new interface driver rt73usb
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
hiusb-ehci hiusb-ehci.0: irq 63, io mem 0x100b0000
hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
hiusb-ohci hiusb-ohci.0: HIUSB OHCI
hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
hiusb-ohci hiusb-ohci.0: irq 64, io mem 0x100a0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver cdc_acm


是这部分吗?

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-04-19 17:06:36
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=48517&ptid=14826]andy_mqy 发表于 2017-4-19 16:40[/url]
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.8
   Image Type:    ...[/quote]

是, 不过看到"Ignoring RAM at c0000000-c7ffffff (vmalloc region overlap)." 有点晕


下面是用两块内存的log(不过不是3531)

fengwei

0个粉丝

1

问答

0

专栏

0

资料

fengwei 2017-04-20 21:14:59
认可0
我觉得是不是可以考虑改一下uboot里DDR0, DDR1的地址映射,把不连续的改成连续的。

gary721400

0个粉丝

2

问答

0

专栏

0

资料

gary721400 2018-08-17 15:31:44
认可0
怎么修改地址映射呢?能给点提示吗?

qn1533616501

0个粉丝

6

问答

0

专栏

0

资料

qn1533616501 2018-08-17 16:13:28
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=48102&ptid=14826]zhuangweiye 发表于 2017-4-11 15:29[/url]
这个问题论坛以前有过讨论, 楼主可以先搜一下[/quote]

zhuang工了解stride 字节这块吗,这能怎么缩,我缩到16字节才省了1M,这个参数是怎么算的
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区