TI中文支持网
TI专业的中文技术问题搜集分享网站

AM335X 启动内存不足或者碎片如何解决?

说明:我们的板用的内存大小是64MByte。用sdk6.0的能正常启动。用SDK7.0 设备树的启动有时候就会出现下面的错误,导致系统不能进入。是不是我们的内存太小了,还是设备树或者内核中需要修改某些参数。

还有我修改了设备树种的,情况还是一样

memory {
  device_type = "memory";
  //reg = <0x80000000 0x10000000>; /* 256 MB */
  reg = <0x80000000 0x4000000>; //64MB

这是启动的log:

[    4.938295] UBIFS: reserved for root: 0 bytes (0 KiB)
[    4.943613] UBIFS: media format: w4/r0 (latest is w4/r0), UUID D67454B2-BD16-41F1-ADEB-B2373DCBF330, small LPT model
[    4.955385] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    4.962679] devtmpfs: mounted
[    4.966438] Freeing unused kernel memory: 272K (c084a000 – c088e000)
INIT: version 2.88 booting
Error opening /dev/fb0: No such file or directory
Starting udev
[    5.788096] udevd[870]: starting version 182
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
[    8.067292] udevd invoked oom-killer: gfp_mask=0x80d0, order=0, oom_score_adj=-1000
[    8.075384] CPU: 0 PID: 886 Comm: udevd Not tainted 3.14.26-gb9df364-dirty #50
[    8.083052] Backtrace:[    8.085670] [<c0011268>] (dump_backtrace) from [<c0011404>] (show_stack+0x18/0x1c)
[    8.093685]  r6:000080d0 r5:c3bf0040 r4:00000000 r3:00000000
[    8.099707] [<c00113ec>] (show_stack) from [<c0619cb8>] (dump_stack+0x20/0x28)
[    8.107320] [<c0619c98>] (dump_stack) from [<c06187b4>] (dump_header.isra.15+0x4c/0x140)
[    8.115831] [<c0618768>] (dump_header.isra.15) from [<c0096450>] (oom_kill_process+0x23c/0x35c)
[    8.124986]  r10:00000000 r9:c089b7e8 r8:00000000 r7:00000000 r6:000080d0 r5:000080d0
[    8.133274]  r4:c3bd0000
[    8.135956] [<c0096214>] (oom_kill_process) from [<c0096a48>] (out_of_memory+0x30c/0x364)
[    8.144552]  r10:00000000 r9:c089b7e8 r8:00000000 r7:00000000 r6:000080d0 r5:c089b904
[    8.152827]  r4:c089b7e8
[    8.155505] [<c009673c>] (out_of_memory) from [<c009a998>] (__alloc_pages_nodemask+0x970/0x99c)
[    8.164661]  r10:00000000 r9:000080d0 r8:00000000 r7:00000000 r6:c3bea000 r5:c0898170
[    8.172950]  r4:c08df8e4
[    8.175627] [<c009a028>] (__alloc_pages_nodemask) from [<c009a9dc>] (__get_free_pages+0x18/0x34)
[    8.184874]  r10:c10501e8 r9:00000400 r8:c3bebf5c r7:c3bebec8 r6:bef91fbc r5:00004000
[    8.193155]  r4:c104f980
[    8.195834] [<c009a9c4>] (__get_free_pages) from [<c009aa10>] (get_zeroed_page+0x18/0x1c)
[    8.204461] [<c009a9f8>] (get_zeroed_page) from [<c012a9dc>] (kernfs_iop_follow_link+0x1c/0x198)
[    8.213730] [<c012a9c0>] (kernfs_iop_follow_link) from [<c00d349c>] (generic_readlink+0x38/0x9c)
[    8.222978]  r10:c10501e8 r9:00000400 r8:c3bebf5c r7:00000400 r6:bef91fbc r5:00004000
[    8.231257]  r4:c104f980 r3:c012a9c0
[    8.235038] [<c00d3464>] (generic_readlink) from [<c00cf638>] (SyS_readlinkat+0xe4/0xf4)
[    8.243550]  r7:bef91bbc r6:ffffff9c r5:00004000 r4:00000000
[    8.249549] [<c00cf554>] (SyS_readlinkat) from [<c00cf66c>] (SyS_readlink+0x24/0x28)
[    8.257702]  r10:00000000 r9:c3bea000 r8:c000e964 r7:00000055 r6:00032418 r5:bef923dc
[    8.265984]  r4:00032418
[    8.268655] [<c00cf648>] (SyS_readlink) from [<c000e7e0>] (ret_fast_syscall+0x0/0x30)
[    8.276896] Mem-info:
[    8.279283] Normal per-cpu:
[    8.282217] CPU    0: hi:    0, btch:   1 usd:   0
[    8.287282] active_anon:4708 inactive_anon:3 isolated_anon:0
[    8.287282]  active_file:5 inactive_file:10 isolated_file:0
[    8.287282]  unevictable:0 dirty:0 writeback:0 unstable:0
[    8.287282]  free:6170 slab_reclaimable:198 slab_unreclaimable:1096
[    8.287282]  mapped:5 shmem:8 pagetables:309 bounce:0
[    8.287282]  free_cma:5833
[    8.319492] Normal free:24680kB min:924kB low:1152kB high:1384kB active_anon:18832kB inactive_anon:12kB active_file:20kB inactive_file:40kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:63488kB managed:53676kB mlocked:0kB dirty:0kB writeback:0kB mapped:20kB shmem:32kB slab_reclaimable:792kB slab_unreclaimable:4384kB kernel_stack:848kB pagetables:1236kB unstable:0kB bounce:0kB free_cma:23332kB writeback_tmp:0kB pages_scanned:4988 all_unreclaimable? yes
[    8.362959] lowmem_reserve[]: 0 0 0
[    8.366655] Normal: 342*4kB (UEMC) 288*8kB (UMC) 267*16kB (UMC) 251*32kB (UEC) 126*64kB (UEC) 5*128kB (C) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB = 24680kB
[    8.382503] 23 total pagecache pages
[    8.386278] 0 pages in swap cache
[    8.389762] Swap cache stats: add 0, delete 0, find 0/0
[    8.395258] Free swap  = 0kB
[    8.398303] Total swap = 0kB
[    8.404028] 16384 pages of RAM
[    8.407314] 6513 free pages
[    8.410250] 2965 reserved pages
[    8.413551] 1243 slab pages
[    8.416504] 2620 pages shared
[    8.419625] 0 pages swap cached
[    8.422923] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[    8.431202] [  837]     0   837      330       15       3        0             0 init
[    8.439490] [  838]     0   838      558       46       4        0             0 rc
[    8.447566] [  870]     0   870      725      156       4        0         -1000 udevd
[    8.455908] [  873]     0   873      625       67       4        0         -1000 udevd
[    8.464230] [  874]     0   874      625       69       4        0         -1000 udevd
[    8.472566] [  875]     0   875      625       69       4        0         -1000 udevd
[    8.480909] [  876]     0   876      625       68       4        0         -1000 udevd
[    8.489251] [  877]     0   877      625       67       4        0         -1000 udevd
[    8.497590] [  878]     0   878      625       65       4        0         -1000 udevd
[    8.505930] [  879]     0   879      625       69       4        0         -1000 udevd
[    8.514255] [  880]     0   880      625       67       4        0         -1000 udevd
[    8.522604] [  886]     0   886      625       65       4        0         -1000 udevd
[    8.530953] [  891]     0   891      562       51       4        0             0 S04udev
[    8.539478] [  893]     0   893      554       29       4        0             0 udevadm
[    8.548003] [  903]     0   903      649       88       4        0         -1000 udevd
[    8.556349] [  904]     0   904      649       87       4        0         -1000 udevd
[    8.564678] [  905]     0   905      649       87       4        0         -1000 udevd
[    8.573028] [  906]     0   906      649       86       4        0         -1000 udevd
[    8.581377] [  907]     0   907      649       86       4        0         -1000 udevd
[    8.589714] [  908]     0   908      649       86       4        0         -1000 udevd
[    8.598059] [  909]     0   909      650       86       4        0         -1000 udevd
[    8.606410] [  910]     0   910      650       86       4        0         -1000 udevd
[    8.614746] [  911]     0   911      651       86       4        0         -1000 udevd
[    8.623087] [  921]     0   921      651       86       4        0         -1000 udevd
[    8.631427] [  922]     0   922      651       86       4        0         -1000 udevd
[    8.639773] [  923]     0   923      652       86       4        0         -1000 udevd
[    8.648118] [  924]     0   924      653       86       4        0         -1000 udevd
[    8.656457] [  925]     0   925      654       86       4        0         -1000 udevd
[    8.664782] [  926]     0   926      655       86       4        0         -1000 udevd
[    8.673129] [  931]     0   931      655       89       4        0         -1000 udevd
[    8.681475] [  932]     0   932      656       89       4        0         -1000 udevd
[    8.689821] [  933]     0   933      656       90       4        0         -1000 udevd
[    8.698174] [  934]     0   934      657       89       4        0         -1000 udevd
[    8.706520] [  935]     0   935      658       89       4        0         -1000 udevd
[    8.714846] [  936]     0   936      658       89       4        0         -1000 udevd
[    8.723196] [  937]     0   937      658       89       4        0         -1000 udevd
[    8.731536] [  938]     0   938      658       90       4        0         -1000 udevd
[    8.739875] [  976]     0   976      658      112       4        0         -1000 udevd
[    8.748212] [  977]     0   977      658      112       4        0         -1000 udevd
[    8.756555] [  978]     0   978      658      109       4        0         -1000 udevd
[    8.764882] [  979]     0   979      659      110       4        0         -1000 udevd
[    8.773237] [  980]     0   980      666      112       4        0         -1000 udevd
[    8.781579] [  981]     0   981      666      112       4        0         -1000 udevd
[    8.789921] [  982]     0   982      658      109       4        0         -1000 udevd
[    8.798265] [  983]     0   983      691      112       4        0         -1000 udevd
[    8.806615] [  984]     0   984      691      112       4        0         -1000 udevd
[    8.814945] [  985]     0   985      691      112       4        0         -1000 udevd
[    8.823286] [  986]     0   986      691      112       4        0         -1000 udevd
[    8.831627] [  988]     0   988      691      112       4        0         -1000 udevd
[    8.839974] [  989]     0   989      691      112       4        0         -1000 udevd
[    8.848319] [  990]     0   990      691      112       4        0         -1000 udevd
[    8.856667] [  991]     0   991      691      112       4        0         -1000 udevd
[    8.864993] [  992]     0   992      691      112       4        0         -1000 udevd
[    8.873336] [  993]     0   993      691      112       4        0         -1000 udevd
[    8.881678] [  994]     0   994      691      117       4        0         -1000 udevd
[    8.890020] [  995]     0   995      691      112       4        0         -1000 udevd
[    8.898362] [  996]     0   996      691      112       4        0       

binbin wang:

回复 Jian Zhou:

删掉/etc/init.d/S04udev这个启动进程问题就解决了

 

leo chen:

回复 binbin wang:

删了会不会带了其它问题?什么时候初始化这些挂载这些设备呢

赞(0)
未经允许不得转载:TI中文支持网 » AM335X 启动内存不足或者碎片如何解决?
分享到: 更多 (0)