d1s和d1哪吒跑QT4.8.7不起来,有一回在D1S上起来了,但文件系统被我刷了,现在就是要么报OOM要么就是报环境问题
-
root@TinaLinux:/overlay/riscv-qt/examples/widgets/analogclock# ./analogclock -qw s [ 535.653672] analogclock invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0 [ 535.735642] CPU: 0 PID: 606 Comm: analogclock Not tainted 5.4.61 #9 [ 535.742633] Call Trace: [ 535.773553] [<ffffffe0000303ce>] walk_stackframe+0x0/0xa0 [ 535.822020] [<ffffffe0000305b0>] show_stack+0x2a/0x34 [ 535.849855] [<ffffffe000650328>] dump_stack+0x20/0x28 [ 536.016984] [<ffffffe00008c3c8>] dump_header+0x48/0x1a4 [ 536.112921] [<ffffffe00008bc86>] oom_kill_process+0x2d8/0x2da [ 536.119713] [<ffffffe00008c0f4>] out_of_memory+0x92/0x2c4 [ 536.167666] [<ffffffe0000b7b3c>] __alloc_pages_slowpath+0x6c6/0x79a [ 536.174712] [<ffffffe0000b7d52>] __alloc_pages_nodemask+0x142/0x174 [ 536.181734] [<ffffffe000088724>] pagecache_get_page+0xd0/0x212 [ 536.347335] [<ffffffe00008909c>] filemap_fault+0x352/0x61c [ 536.353465] [<ffffffe000143c16>] ext4_filemap_fault+0x28/0x40 [ 536.543747] [<ffffffe0000a522a>] __do_fault+0x26/0xba [ 536.549387] [<ffffffe0000a838c>] __handle_mm_fault+0x52c/0x91a [ 536.565250] [<ffffffe0000a87a2>] handle_mm_fault+0x28/0x32 [ 536.629199] [<ffffffe00003183e>] do_page_fault+0xb8/0x2de [ 536.635347] [<ffffffe00002f018>] ret_from_exception+0x0/0xc [ 536.643622] Mem-Info: [ 536.646275] active_anon:246617 inactive_anon:10 isolated_anon:0 [ 536.646275] active_file:108 inactive_file:266 isolated_file:0 [ 536.646275] unevictable:0 dirty:0 writeback:0 unstable:0 [ 536.646275] slab_reclaimable:912 slab_unreclaimable:2821 [ 536.646275] mapped:57 shmem:11 pagetables:612 bounce:0 [ 536.646275] free:1140 free_pcp:76 free_cma:0 [ 536.781031] Node 0 active_anon:986468kB inactive_anon:40kB active_file:512kB inactive_file:516kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:292kB dirty:0kB writeback:0kB shmem:44kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes [ 536.963967] DMA32 free:4640kB min:4036kB low:5052kB high:6068kB active_anon:986468kB inactive_anon:40kB active_file:472kB inactive_file:520kB unevictable:0kB writepending:0kB present:1048576kB managed:1021640kB mlocked:0kB kernel_stack:1024kB pagetables:2448kB bounce:0kB free_pcp:700kB local_pcp:700kB free_cma:0kB [ 537.046957] lowmem_reserve[]: 0 0 0 [ 537.050861] DMA32: 0*4kB 27*8kB (UME) 25*16kB (ME) 8*32kB (UE) 9*64kB (UME) 3*128kB (E) 1*256kB (E) 2*512kB (UM) 1*1024kB (M) 0*2048kB 0*4096kB = 4136kB [ 537.120014] Free pages count per migrate typeat order: 0 1 2 3 4 5 6 7 8 9 10 [ 537.299830] zone DMA32, type Unmovable 0 1 0 1 3 0 0 1 0 0 0 [ 537.312258] zone DMA32, type Movable 0 32 11 1 1 0 0 1 1 0 0 [ 537.325388] zone DMA32, type Reclaimable 1 11 13 7 5 3 1 0 0 0 0 [ 537.362566] zone DMA32, type CMA 0 0 0 0 0 0 0 0 0 0 0 [ 537.379133] zone DMA32, type HighAtomic 0 0 0 0 0 0 0 0 0 0 0 [ 537.515948] zone DMA32, type Isolate 0 0 0 0 0 0 0 0 0 0 0 [ 537.528385] 475 total pagecache pages [ 537.532467] 0 pages in swap cache [ 537.536209] Swap cache stats: add 0, delete 0, find 0/0 [ 537.542033] Free swap = 0kB [ 537.545279] Total swap = 0kB [ 537.548507] 262144 pages RAM [ 537.551713] 0 pages HighMem/MovableOnly [ 537.556018] 6734 pages reserved [ 537.559516] 2048 pages cma reserved [ 537.563398] Tasks state (memory values in pages): [ 537.569772] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name [ 537.661056] [ 125] 0 125 415 40 28672 0 -1000 ubusd [ 537.670304] [ 137] 0 137 671 41 32768 0 0 ash [ 537.691685] [ 138] 0 138 406 31 28672 0 0 askfirst [ 537.811592] [ 238] 0 238 524 51 24576 0 0 dbus-daemon [ 537.821745] [ 239] 0 239 55716 37 49152 0 0 adbd [ 537.833362] [ 450] 0 450 465 66 28672 0 -1000 netifd [ 537.842679] [ 464] 0 464 2462 30 24576 0 0 MtpDaemon [ 537.854214] [ 503] 0 503 374 23 24576 0 0 swupdate-progre [ 537.930775] [ 545] 0 545 677 34 32768 0 0 ntpd [ 538.028849] [ 564] 0 564 21388 131 40960 0 0 tt [ 538.037731] [ 579] 0 579 773 51 28672 0 -1000 wpa_supplicant [ 538.047774] [ 606] 0 606 277845 245997 2256896 0 0 analogclock [ 538.057736] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=analogclock,pid=606,uid=0 [ 538.067564] Out of memory: Killed process 606 (analogclock) total-vm:1111380kB, anon-rss:983984kB, file-rss:4kB, shmem-rss:0kB, UID:0 pgtables:2204kB oom_score_adj:0 [ 538.615413] oom_reaper: reaped process 606 (analogclock), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB Killed
环境变量如果不配置全就提示这个。
export QWS_DISPLAY="LinuxFB:mmWidth200:0"
使能了这句就会出现这样的现象。就跑成功过一次,还没记录。
现在在mq上和哪吒上都不行了。
不过qt5是可以起来的。
这是编译配置。#!/bin/sh PWD=`pwd` mkdir riscv-qt ./configure \ -prefix $PWD/riscv-qt \ -opensource \ -release \ -shared \ -Declarative \ -fast \ -no-largefile \ -qt-sql-sqlite \ -qt3support \ -exceptions \ -no-xmlpatterns \ -no-script \ -no-scripttools \ -no-glib \ -no-phonon \ -svg \ -no-webkit \ -qt-zlib \ -qt-libtiff \ -qt-libpng \ -qt-libjpeg \ -make libs \ -nomake tools \ -make examples \ -make docs \ -nomake demos \ -no-nis \ -no-cups \ -no-iconv \ -no-dbus \ -xplatform qws/linux-arm-gnueabi-g++ \ -embedded riscv \ -little-endian \ -qt-freetype \ -depths 16,24,32 \ -qt-gfx-linuxfb \ -qt-gfx-transformed \ -qt-gfx-multiscreen \ -qt-gfx-vnc \ -plugin-gfx-vnc \ -plugin-gfx-linuxfb \ -no-gfx-qvfb \ -qt-kbd-linuxinput \ -qt-kbd-tty \ -no-kbd-qvfb \ -armfpa \ -no-openssl \ -no-opengl \ -no-accessibility \ -optimized-qmake \ -no-mouse-qvfb \ -qt-mouse-linuxtp \ -qt-mouse-tslib \ -pch \ -DQT_QLOCALE_USES_FCVT \ -I/home/d1-nezha/QT/tslib-1.21/riscv-tslib/include \ -L/home/d1-nezha/QT/tslib-1.21/riscv-tslib/lib \ -confirm-license
麻烦大家看看了。
qt4.8.7.tar
编译出来的如上。 -
内存不足?可以停了adb,回收一下内存再跑echo 3 > /proc/sys/vm/drop_caches
期待 d1s能跑起来,到时白嫖一下环境。哈哈 -
@soso90 不是内存不足,我在d1s上也跑过,就成功了一次,然后环境被我刷了,后面就再也没起来过,理论上哪吒d1不会内存不够的,QT5都能起来的,就是qt4不行,怀疑过文件系统问题,但显示能跑起来的也被我格式化了
-
我的 Qt5 @ D1s 也挂了:
# QT_QPA_FONTDIR=/usr/share/fonts/ /usr/bin/lineedits -platform linuxfb kthreadd invoked oom-killer: gfp_mask=0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), order=2, oom_score_adj=0 CPU: 0 PID: 2 Comm: kthreadd Not tainted 5.4.61 #118 Call Trace: [<ffffffe00002812c>] walk_stackframe+0x0/0x98 [<ffffffe0000282e4>] show_stack+0x2a/0x34 [<ffffffe000498b08>] dump_stack+0x20/0x28 [<ffffffe0000777b8>] dump_header+0x40/0x198 [<ffffffe000077070>] oom_kill_process+0x92/0x208 [<ffffffe000077720>] out_of_memory+0x218/0x224 [<ffffffe00009c1fa>] __alloc_pages_slowpath+0x48c/0x536 [<ffffffe00009c3ce>] __alloc_pages_nodemask+0x12a/0x12c [<ffffffe00002afaa>] copy_process+0x17c/0xcd4 [<ffffffe00002bc4e>] _do_fork+0x5c/0x182 [<ffffffe00002bde8>] kernel_thread+0x5a/0x6a [<ffffffe00003faca>] kthreadd+0xe2/0x104 [<ffffffe000026e98>] ret_from_exception+0x0/0xc Mem-Info: active_anon:8540 inactive_anon:5 isolated_anon:0 active_file:53 inactive_file:54 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:814 slab_unreclaimable:1701 mapped:16 shmem:12 pagetables:83 bounce:0 free:304 free_pcp:9 free_cma:0 Node 0 active_anon:34160kB inactive_anon:20kB active_file:212kB inactive_file:216kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:64kB dirty:0kB writeback:0kB shmem:48kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes DMA32 free:1216kB min:916kB low:1144kB high:1372kB active_anon:34160kB inactive_anon:20kB active_file:212kB inactive_file:216kB unevictable:0kB writepending:0kB present:65536kB managed:56860kB mlocked:0kB kernel_stack:1520kB pagetables:332kB bounce:0kB free_pcp:36kB local_pcp:36kB free_cma:0kB lowmem_reserve[]: 0 0 0 DMA32: 26*4kB (UME) 69*8kB (UM) 21*16kB (UM) 7*32kB (UM) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1216kB Free pages count per migrate typeat order: 0 1 2 3 4 5 6 7 8 9 10 zone DMA32, type Unmovable 4 41 2 1 0 0 0 0 0 0 0 zone DMA32, type Movable 17 28 19 6 0 0 0 0 0 0 0 zone DMA32, type Reclaimable 5 0 0 0 0 0 0 0 0 0 0 zone DMA32, type CMA 0 0 0 0 0 0 0 0 0 0 0 zone DMA32, type HighAtomic 0 0 0 0 0 0 0 0 0 0 0 zone DMA32, type Isolate 0 0 0 0 0 0 0 0 0 0 0 164 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 16384 pages RAM 0 pages HighMem/MovableOnly 2169 pages reserved 0 pages cma reserved Tasks state (memory values in pages): [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name [ 916] 0 916 602 23 24576 0 0 syslogd [ 929] 0 929 602 30 24576 0 0 klogd [ 963] 0 963 1037 108 32768 0 0 lircd [ 1025] 0 1025 76833 102 65536 0 0 adbd [ 1086] 0 1086 1303 108 32768 0 0 wpa_supplicant [ 1087] 0 1087 618 38 28672 0 0 sh [ 8068] 0 8068 33197 8096 147456 0 0 lineedits [ 8099] 0 8099 602 24 28672 0 0 sh oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=lineedits,pid=8068,uid=0 Out of memory: Killed process 8068 (lineedits) total-vm:132788kB, anon-rss:32320kB, file-rss:64kB, shmem-rss:0kB, UID:0 pgtables:144kB oom_score_adj:0 oom_reaper: reaped process 8068 (lineedits), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB Killed #
-
上 LVGL吧, Qt跑不起来,占用内存太多了。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号