您尚未登录。

#1 Re: 全志 SOC » d1s和d1哪吒跑QT4.8.7不起来,有一回在D1S上起来了,但文件系统被我刷了,现在就是要么报OOM要么就是报环境问题 » 2022-10-11 11:26:21

哇酷小二 说:
liuxingkeji 说:
哇酷小二 说:

我这边想办法跟进处理一下。

嗯嗯,好的,谢谢,感觉像文件系统问题,但是之前的被刷了,没发测了

64M内存爆了,可能前面处于临界状态,刚好能用.

我这边实测Qt5, 也跑不起来.

我测试时候是QT5能起来,等我回去发下D1S QT跑起来的图片

#2 Re: 全志 SOC » T113-s3使用Tina SDK编译Qt5.12.9失败 » 2022-09-30 16:28:27

T113应该比较好解决,毕竟是ARM端的,我一般编译QT就三个地方修改,一个就是环境使用的交叉编译器,修改一个总的,在修改下QT下的配置,再建个脚本就行了,基本很简单就完成了,可以参考正点原子的教程,他们又QT移植案例

#3 Re: 全志 SOC » d1s和d1哪吒跑QT4.8.7不起来,有一回在D1S上起来了,但文件系统被我刷了,现在就是要么报OOM要么就是报环境问题 » 2022-09-27 10:35:22

哇酷小二 说:

我这边想办法跟进处理一下。

嗯嗯,好的,谢谢,感觉像文件系统问题,但是之前的被刷了,没发测了

#5 全志 SOC » d1s和d1哪吒跑QT4.8.7不起来,有一回在D1S上起来了,但文件系统被我刷了,现在就是要么报OOM要么就是报环境问题 » 2022-09-26 21:10:12

liuxingkeji
回复: 6
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"

FluxBB bbcode 测试
使能了这句就会出现这样的现象。就跑成功过一次,还没记录。
现在在mq上和哪吒上都不行了。
不过qt5是可以起来的。
FluxBB bbcode 测试
这是编译配置。

#!/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  

麻烦大家看看了。

#6 Re: 全志 SOC » 有人用D1S点亮一款闲鱼上的,行车记录仪屏400*1280mipi FPC0.5*40P接口的屏吗 » 2022-06-19 18:46:37

哇酷小二 说:

等等,楼主你怎么确保这个屏是好的呢?

因为买了好几个

#7 全志 SOC » 有人用D1S点亮一款闲鱼上的,行车记录仪屏400*1280mipi FPC0.5*40P接口的屏吗 » 2022-06-19 18:02:44

liuxingkeji
回复: 3

有人点亮闲鱼上买的360行车记录仪的屏幕吗,用D1S。

&lcd0 {
	lcd_used            = <1>;

	lcd_driver_name     = "tft08006";
	lcd_backlight       = <100>;
	lcd_if              = <4>;

	lcd_x               = <400>;
	lcd_y               = <1280>;
	lcd_width           = <50>;
	lcd_height          = <90>;
	lcd_dclk_freq       = <40>;

	lcd_pwm_used        = <1>;
	lcd_pwm_ch          = <2>;
	lcd_pwm_freq        = <1000>;
	lcd_pwm_pol         = <0>;
	lcd_pwm_max_limit   = <255>;

	lcd_hbp             = <50>;
	lcd_ht              = <530>;
	lcd_hspw            = <30>;
	lcd_vbp             = <30>;
	lcd_vt              = <1360>;
	lcd_vspw            = <20>;

	lcd_dsi_if          = <0>;
	lcd_dsi_lane        = <4>;
	lcd_lvds_if         = <0>;
	lcd_lvds_colordepth = <0>;
	lcd_lvds_mode       = <0>;
	lcd_frm             = <0>;
	lcd_hv_clk_phase    = <0>;
	lcd_hv_sync_polarity= <0>;
	lcd_io_phase        = <0x0000>;
	lcd_gamma_en        = <0>;
	lcd_bright_curve_en = <0>;
	lcd_cmap_en         = <0>;
	lcd_fsync_en        = <0>;
	lcd_fsync_act_time  = <1000>;
	lcd_fsync_dis_time  = <1000>;
	lcd_fsync_pol       = <0>;

	deu_mode            = <0>;
	lcdgamma4iep        = <22>;
	smart_color         = <90>;

//	lcd_gpio_0 =  <&pio PG 13 GPIO_ACTIVE_HIGH>;		
	pinctrl-0 = <&dsi4lane_pins_a>;
	pinctrl-1 = <&dsi4lane_pins_b>;
};
static struct LCM_setting_table lcm_tft08006_setting[] = {
	{0xB0, 1, {0x5A}},

	{0xB1, 1, {0x00}},
	{0x89, 1, {0x01}},
	{0x91, 1, {0x17}},
	{0xB1, 1, {0x03}},
	{0x2C, 1, {0x28}},

	{0x00, 1, {0xB7}},
	{0x01, 1, {0x1B}},
	{0x02, 1, {0x00}},
	{0x03, 1, {0x00}},
	{0x04, 1, {0x00}},
	{0x05, 1, {0x00}},
	{0x06, 1, {0x00}},
	{0x07, 1, {0x00}},
	{0x08, 1, {0x00}},
	{0x09, 1, {0x00}},
	{0x0A, 1, {0x01}},
	{0x0B, 1, {0x01}},
	{0x0C, 1, {0x00}},
	{0x0D, 1, {0x00}},
	{0x0E, 1, {0x24}},
	{0x0F, 1, {0x1C}},
	{0x10, 1, {0xC9}},
	{0x11, 1, {0x60}},
	{0x12, 1, {0x70}},
	{0x13, 1, {0x01}},
	{0x14, 1, {0xE7}},
	{0x15, 1, {0xFF}},
	{0x16, 1, {0x3D}},
	{0x17, 1, {0x0E}},
	{0x18, 1, {0x01}},
	{0x19, 1, {0x00}},
	{0x1A, 1, {0x00}},
	{0x1B, 1, {0xFC}},
	{0x1C, 1, {0x0B}},
	{0x1D, 1, {0xA0}},
	{0x1E, 1, {0x03}},
	{0x1F, 1, {0x04}},
	{0x20, 1, {0x0C}},
	{0x21, 1, {0x00}},
	{0x22, 1, {0x04}},
	{0x23, 1, {0x81}},
	{0x24, 1, {0x1F}},
	{0x25, 1, {0x10}},
	{0x26, 1, {0x9B}},
	{0x2D, 1, {0x01}},
	{0x2E, 1, {0x84}},
	{0x2F, 1, {0x00}},
	{0x30, 1, {0x02}},
	{0x31, 1, {0x08}},
	{0x32, 1, {0x01}},
	{0x33, 1, {0x1C}},
	{0x34, 1, {0x40}},
	{0x35, 1, {0xFF}},
	{0x36, 1, {0xFF}},
	{0x37, 1, {0xFF}},
	{0x38, 1, {0xFF}},
	{0x39, 1, {0xFF}},
	{0x3A, 1, {0x05}},
	{0x3B, 1, {0x00}},
	{0x3C, 1, {0x00}},
	{0x3D, 1, {0x00}},
	{0x3E, 1, {0xCF}},
	{0x3F, 1, {0x84}},
	{0x40, 1, {0x2F}},
	{0x41, 1, {0xFC}},
	{0x42, 1, {0x01}},
	{0x43, 1, {0x40}},
	{0x44, 1, {0x05}},
	{0x45, 1, {0xE8}},
	{0x46, 1, {0x16}},
	{0x47, 1, {0x00}},
	{0x48, 1, {0x00}},
	{0x49, 1, {0x88}},
	{0x4A, 1, {0x08}},
	{0x4B, 1, {0x05}},
	{0x4C, 1, {0x03}},
	{0x4D, 1, {0xD0}},
	{0x4E, 1, {0x13}},
	{0x4F, 1, {0xFF}},
	{0x50, 1, {0x0A}},
	{0x51, 1, {0x53}},
	{0x52, 1, {0x26}},
	{0x53, 1, {0x22}},
	{0x54, 1, {0x09}},
	{0x55, 1, {0x22}},
	{0x56, 1, {0x00}},
	{0x57, 1, {0x1C}},
	{0x58, 1, {0x03}},
	{0x59, 1, {0x3F}},
	{0x5A, 1, {0x28}},
	{0x5B, 1, {0x01}},
	{0x5C, 1, {0xCC}},
	{0x5D, 1, {0x21}},
	{0x5E, 1, {0x84}},
	{0x5F, 1, {0x10}},
	{0x60, 1, {0x42}},
	{0x61, 1, {0x08}},
	{0x62, 1, {0x21}},
	{0x63, 1, {0x84}},
	{0x64, 1, {0x80}},
	{0x65, 1, {0x0C}},
	{0x66, 1, {0x74}},
	{0x67, 1, {0x4C}},
	{0x68, 1, {0x09}},
	{0x69, 1, {0x12}},
	{0x6A, 1, {0x42}},
	{0x6B, 1, {0x08}},
	{0x6C, 1, {0x21}},
	{0x6D, 1, {0x84}},
	{0x6E, 1, {0x10}},
	{0x6F, 1, {0x42}},
	{0x70, 1, {0x08}},
	{0x71, 1, {0xE9}},
	{0x72, 1, {0xC4}},
	{0x73, 1, {0xD7}},
	{0x74, 1, {0xD6}},
	{0x75, 1, {0x28}},
	{0x76, 1, {0x00}},
	{0x77, 1, {0x00}},
	{0x78, 1, {0x0F}},
	{0x79, 1, {0xE0}},
	{0x7A, 1, {0x01}},
	{0x7B, 1, {0xFF}},
	{0x7C, 1, {0xFF}},
	{0x7D, 1, {0x0F}},
	{0x7E, 1, {0x41}},
	{0x7F, 1, {0xFE}},

	{0xB1, 1, {0x02}},
	{0x00, 1, {0xFF}},
	{0x01, 1, {0x05}},
	{0x02, 1, {0xF0}},
	{0x03, 1, {0x00}},
	{0x04, 1, {0x94}},
	{0x05, 1, {0x48}},
	{0x06, 1, {0xC8}},
	{0x07, 1, {0x0A}},
	{0x08, 1, {0x00}},
	{0x09, 1, {0x00}},
	{0x0A, 1, {0x00}},
	{0x0B, 1, {0x10}},
	{0x0C, 1, {0xE6}},
	{0x0D, 1, {0x0D}},
	{0x0F, 1, {0x00}},
	{0x10, 1, {0xF9}},
	{0x11, 1, {0x4D}},
	{0x12, 1, {0x9E}},
	{0x13, 1, {0x8F}},
	{0x14, 1, {0xDF}},
	{0x15, 1, {0x15}},
	{0x16, 1, {0xE4}},
	{0x17, 1, {0x6A}},
	{0x18, 1, {0xAB}},
	{0x19, 1, {0xD7}},
	{0x1A, 1, {0x78}},
	{0x1B, 1, {0xFE}},
	{0x1C, 1, {0xFF}},
	{0x1D, 1, {0xFF}},
	{0x1E, 1, {0xFF}},
	{0x1F, 1, {0xFF}},
	{0x20, 1, {0xFF}},
	{0x21, 1, {0xFF}},
	{0x22, 1, {0xFF}},
	{0x23, 1, {0xFF}},
	{0x24, 1, {0xFF}},
	{0x25, 1, {0xFF}},
	{0x26, 1, {0xFF}},
	{0x27, 1, {0x1F}},
	{0x28, 1, {0xFF}},
	{0x29, 1, {0xFF}},
	{0x2A, 1, {0xFF}},
	{0x2B, 1, {0xFF}},
	{0x2C, 1, {0xFF}},
	{0x2D, 1, {0x07}},
	{0x33, 1, {0x3F}},
	{0x35, 1, {0x7F}},
	{0x36, 1, {0x3F}},
	{0x38, 1, {0xFF}},
	{0x3A, 1, {0x80}},
	{0x3B, 1, {0x01}},
	{0x3C, 1, {0x00}},
	{0x3D, 1, {0x2F}},
	{0x3E, 1, {0x00}},
	{0x3F, 1, {0xE0}},
	{0x40, 1, {0x05}},
	{0x41, 1, {0x00}},
	{0x42, 1, {0xBC}},
	{0x43, 1, {0x00}},
	{0x44, 1, {0x80}},
	{0x45, 1, {0x07}},
	{0x46, 1, {0x00}},
	{0x47, 1, {0x00}},
	{0x48, 1, {0x9B}},
	{0x49, 1, {0xD2}},
	{0x4A, 1, {0xC1}},
	{0x4B, 1, {0x83}},
	{0x4C, 1, {0x17}},
	{0x4D, 1, {0xC0}},
	{0x4E, 1, {0x0F}},
	{0x4F, 1, {0xF1}},
	{0x50, 1, {0x78}},
	{0x51, 1, {0x7A}},
	{0x52, 1, {0x34}},
	{0x53, 1, {0x99}},
	{0x54, 1, {0xA2}},
	{0x55, 1, {0x02}},
	{0x56, 1, {0x14}},
	{0x57, 1, {0xB8}},
	{0x58, 1, {0xDC}},
	{0x59, 1, {0xD4}},
	{0x5A, 1, {0xEF}},
	{0x5B, 1, {0xF7}},
	{0x5C, 1, {0xFB}},
	{0x5D, 1, {0xFD}},
	{0x5E, 1, {0x7E}},
	{0x5F, 1, {0xBF}},
	{0x60, 1, {0xEF}},
	{0x61, 1, {0xE6}},
	{0x62, 1, {0x76}},
	{0x63, 1, {0x73}},
	{0x64, 1, {0xBB}},
	{0x65, 1, {0xDD}},
	{0x66, 1, {0x6E}},
	{0x67, 1, {0x37}},
	{0x68, 1, {0x8C}},
	{0x69, 1, {0x08}},
	{0x6A, 1, {0x31}},
	{0x6B, 1, {0xB8}},
	{0x6C, 1, {0xB8}},
	{0x6D, 1, {0xB8}},
	{0x6E, 1, {0xB8}},
	{0x6F, 1, {0xB8}},
	{0x70, 1, {0x5C}},
	{0x71, 1, {0x2E}},
	{0x72, 1, {0x17}},
	{0x73, 1, {0x00}},
	{0x74, 1, {0x00}},
	{0x75, 1, {0x00}},
	{0x76, 1, {0x00}},
	{0x77, 1, {0x00}},
	{0x78, 1, {0x00}},
	{0x79, 1, {0x00}},
	{0x7A, 1, {0xDC}},
	{0x7B, 1, {0xDC}},
	{0x7C, 1, {0xDC}},
	{0x7D, 1, {0xDC}},
	{0x7E, 1, {0xDC}},
	{0x7F, 1, {0x6E}},
	{0x0B, 1, {0x00}},
	{0xB1, 1, {0x03}},
	{0x2C, 1, {0x2C}},
	{0xB1, 1, {0x00}},
	{0x89, 1, {0x03}},
	{0x11, 0, {}},
	{REGFLAG_DELAY, REGFLAG_DELAY, {200}},

	{0x29, 0, {}},
	{REGFLAG_DELAY, REGFLAG_DELAY, {120}},

	{REGFLAG_END_OF_TABLE, REGFLAG_END_OF_TABLE, {}}
};

目前修改了这两处都没反应。
FluxBB bbcode

FluxBB bbcode

#8 Re: 全志 SOC » 大佬们救救我,自己画的荔枝派出问题 » 2021-12-30 17:20:19

rex 说:

同一张sd卡,在官方荔枝派上正常启动kernal,而在我自己画的板子是卡在kernal,但是uboot启动正常!但是重启uboot也不行。https://whycan.com/files/members/6268/捕获_20211230-1619.png
请问这种情况大概率是什么情况呢?

是不是可以看看SD卡的几个外壳引脚接地了吗

#11 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » 云联芯的NUC980板子学习记录 » 2021-12-15 13:45:07

zjsx133 说:

板子自带的串口终端进入的用户名和密码是多少,、?

这个我也不知道,应该没给,得自己做下文件系统刷掉就行了

#12 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » 云联芯的NUC980板子学习记录 » 2021-12-11 23:10:24

yangquan3 说:

真开源新唐NUC980开发板子支持openwrt
SDK源代码和硬件原理图PCB和bom所有资料都在这里
https://gitee.com/hewenhao/nuc980_ylx/

好的收到

#13 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » 云联芯的NUC980板子学习记录 » 2021-12-11 23:09:38

Gentlepig 说:

好奇问下,这种用电阻来选择启动配置的方式,量产时如何往nand里烧录程序?
1  烧写时短接下PG1电阻?
2  先焊接PG1连接的电阻,usb方式启动烧录nand程序。再去掉电阻,从nand启动?
3  用其它方式往nand里烧录程序?

量产应该是有专门烧写工具了,焊接上再去掉应该也是可以的。

#14 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » 云联芯的NUC980板子学习记录 » 2021-12-11 23:08:08

搭建下交叉编译环境,弄下QT开发。首先是虚拟机的安装,我这里没有自己搭建了,使用的是官方的虚拟机。可以去官网直接下载到的。
FluxBB bbcode 图片7
之后打开虚拟机用户名和密码都在说明文件中的。我们看下home下面有一个构建好的buildroot。里面有指令可以运行的。运行完成后我们就得到我们需要的BSP库了。
FluxBB bbcode 图片8 
里面的内容是这样的,基本把三大件都编译完成了,我们要做的就是在基础上修改自己的。因为原有系统中是没有用户名和密码的所以进不去,而且本次拿开发板就是来开发的。所以自己动手解决下即可。
FluxBB bbcode 图片9   
在安装好BSP的同时,我们的交叉编译环境也安装好了,在usr路径下。我们配置好之后,就可以测试下了,测试使用arm-linuc-gcc -v测试即可。
之后进入到我们需要的编译的QT中了。中间先忽略了内核和uboot的构建了。
FluxBB bbcode 图片10   
构建产生的文件需要烧录的大概就这几个,按照说明下载到板子即可,目前我们只需要系统能起来即可。先不去裁剪内核。
构建QT,我是用的QT4.8.7的板子,是QT4最后的版本了。使用一个脚本构建即可。
新建一个make.sh脚本。然后运行。

#!/bin/sh

./configure  \
            -prefix $PWD/arm-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 \
            -nomake tools \
            -nomake examples \
            -make docs \
            -nomake demos \
            -no-nis \
            -no-cups \
            -no-iconv \
            -no-dbus \
            -xplatform qws/linux-nuc980-g++ \
            -embedded arm \
            -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 \
            -no-mouse-tslib \
            -no-pch \
            -DQT_QLOCALE_USES_FCVT \
            -confirm-license

FluxBB bbcode 图片11 
FluxBB bbcode 图片12   
这是运行效果。等到提示可以make即可进行make & make install。
最终在arm-qt下找到需要的lib和plugins。
FluxBB bbcode 图片13
FluxBB bbcode 图片14   
之后我选择的是QT5.9.1的版本。进行ubuntu中的qt交叉编译的安装。
FluxBB bbcode 图片15   
新建自己的kits即可。
可以生成一个简单的历程,就是hello吧,只需要让其自己生成即可,现阶段只是测试用。
FluxBB bbcode 图片16   
然后就是拷贝到下位机中,一般都是使用U盘或者SD卡拷贝,可我们这个板子偏偏没有,所以使用网口吧,我选择的是NFS,这样文件可以全部拷贝到下位机中。
这里就需要增加内核中NFS了。
FluxBB bbcode 图片17   
如下路径中增加。我们看到上面运行报错了,是因为plugin路径不对,我们需要拷到,Ubuntu构建的路径中。如下:
FluxBB bbcode 图片18   
这样就能起来了。然后最终显示效果如下,虽然没有屏幕接口,但是通过网口,我们依然可以看到QT 的运行。
FluxBB bbcode 图片19
本次开发先这样,后续接着更新。

#15 Openwrt/LEDE/AR9331/MT7688/RT5350 » 云联芯的NUC980板子学习记录 » 2021-12-10 23:45:41

liuxingkeji
回复: 8

目前早就收到板子了,先感谢下观海大佬,和晕哥论坛举办的此次活动。
FluxBB bbcode 图片1
FluxBB bbcode 图片2
看下板子吧,把串口都引出了同时有网络USB接口都有。
今晚看群里讨论板子的启动方式。自己留意并测试了下,先发点东西上来,后续继续更新。
FluxBB bbcode 图片3
板子原理图上是这样写的,可以看到是PG0和PG1,由于提供的pcb图版本较新未安装新软件打不开,所以这里就看原理图加万用表测试了下。
FluxBB bbcode 图片4
目前推测红色是第一项配置,绿色两电阻是第二和第三项配置,黄色是第四项配置。
FluxBB bbcode 图片5 
测试了短接红色,确实是启动项配置。
FluxBB bbcode 图片6
下载软件也可以连接上了。目前先测到这么,明天继续更新。

#19 Re: 全志 SOC » [sipeed] 是大佬鼠喔!感谢晕哥给我寄来了由我们家 V3S 核心板制作的路由器,它经历了出去又回来的漫长旅程,一起来看看吧。 » 2021-11-29 14:09:24

sblpp 说:

你的里面居然有三块V3S核心板啊,我的只有一块。。。

左边两个应该是自己的吧,放上去对比的

#21 Re: SigmaStar/SSD201/SSD202/SSD212 » 自己做SSD201内核和文件系统的时候,打包了一个USB升级固件的bin文件,一直进不去系统 » 2021-03-29 10:28:20

cancan 说:

VFS: Cannot open root device "ubi:rootfs" or unknown-block(0,0): error -19
Please append a correct "root=" boot option; here are the available partitions:

看一下bootargs里的rootfs设置的分区对不对,再或者是kernel里有没有打开SPI NAND 的UBI文件系统支持

FluxBB bbcode
这样算内核使能了吧

#22 SigmaStar/SSD201/SSD202/SSD212 » 自己做SSD201内核和文件系统的时候,打包了一个USB升级固件的bin文件,一直进不去系统 » 2021-03-26 16:53:48

liuxingkeji
回复: 6
IPL_CUST g5da0ceb
runUBOOT()
runUBOOT()
[SPINAND]
SPI 54M
Load UBOOT from SPINAND
 -Verify UBOOT CRC32 passed!
 -Decompress UBOOT XZ
  decomp_size=0x000a12a4
Disable MMU and D-cache before jump to UBOOT▒

U-Boot 2015.01 (Mar 24 2021 - 16:10:59)

Version: I2g#######
       Watchdog enabled
I2C:   ready
DRAM:
WARNING: Caches not enabled
SPINAND: _MDrv_SPINAND_GET_INFO: Found SPINAND INFO
(0xCD) (0xEA) (0x11)
SPINAND: board_nand_init: CIS contains part info
128 MiB
MMC:   MStar SD/MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   MAC Address 00:30:1B:BA:02:DB
Auto-Negotiation...
Link Status Speed:10 Full-duplex:0
Status Error!
sstar_emac
bootcheck start
fore uup u8KeyPad_KeyVal [0x7]
BootMode 0

NAND read: device 0 offset 0x4c0000, size 0x60000
Time:43995 us, speed:8937 KB/s
 393216 bytes read: OK
gpio debug MHal_GPIO_Pad_Set: pin=8
gpio[8] is 0

NAND read: device 0 offset 0x520000, size 0x500000
Time:569940 us, speed:9199 KB/s
 5242880 bytes read: OK
gpio debug MHal_GPIO_Pad_Set: pin=8
gpio[8] is 1
##  Booting kernel from Legacy Image at 22000000 ...
   Image Name:   MVX4##I2M#g#######KL_LX409##[BR:
   Image Type:   ARM Linux Kernel Image (lzma compressed)
   Data Size:    2437304 Bytes = 2.3 MiB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
-usb_stop(USB_PORT0)
-usb_stop(USB_PORT1)
-usb_stop(USB_PORT2)
   Uncompressing Kernel Image ...
[XZ] !!!reserved 0x21000000 length=0x 1000000 for xz!!
   XZ: uncompressed size=0x4da000, ret=7
OK
atags:0x20000000

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.84 (som201@som201-virtual-machine) (gcc version 8.2.1 20180802 (GNU Toolchain for the A-profile Architecture 8.2-2018-08 (arm-rel-8.23)) ) #60 SMP PREEMPT Wed Mar 24 16:11:05 CST 2021
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
early_atags_to_fdt() success
OF: fdt:Machine model: INFINITY2M SSC011A-S01A-S
LXmem is 0x7f00000 PHYS_OFFSET is 0x20000000
Add mem start 0x20000000 size 0x7f00000!!!!

LX_MEM  = 0x20000000, 0x7f00000
LX_MEM2 = 0x0, 0x0
LX_MEM3 = 0x0, 0x0
EMAC_LEN= 0x0
DRAM_LEN= 0x0
deal_with_reserved_mmap memblock_reserve success mmap_reserved_config[0].reserved_start=
0x27c00000

deal_with_reserve_mma_heap memblock_reserve success mma_config[0].reserved_start=
0x25c00000

cma: Reserved 2 MiB at 0x25a00000
Memory policy: Data cache writealloc
percpu: Embedded 14 pages/cpu @c58bc000 s25112 r8192 d24040 u57344
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 24066
Kernel command line: console=ttyS0,115200 ubi.mtd=UBI,2048 root=ubi:rootfs rw rootfstype=ubifs init=/linuxrc rootwait=1 LX_MEM=0x7f00000 mma_heap=mma_heap_name0,miu=0,sz=0x2000000 mma_memblock_remove=1 highres=off mmap_reserved=fb,miu=0,sz=0x300000,max_start_off=0x7C00000,max_end_off=0x7F00000 mtdparts=nand0:384k@1280k(IPL0),384k(IPL1),384k(IPL_CUST0),384k(IPL_CUST1),768k(UBOOT0),768k(UBOOT1),384k(ENV0),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 85876K/97280K available (2894K kernel code, 249K rwdata, 1488K rodata, 172K init, 171K bss, 9356K reserved, 2048K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc8000000 - 0xff800000   ( 888 MB)
    lowmem  : 0xc0000000 - 0xc7f00000   ( 127 MB)
    modules : 0xbf800000 - 0xc0000000   (   8 MB)
      .text : 0xc0008000 - 0xc02dba90   (2895 kB)
      .init : 0xc0477000 - 0xc04a2000   ( 172 kB)
      .data : 0xc04a2000 - 0xc04e05e8   ( 250 kB)
       .bss : 0xc04e2000 - 0xc050cc98   ( 172 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
ms_init_main_intc: np->name=ms_main_intc, parent=gic
ms_init_pm_intc: np->name=ms_pm_intc, parent=ms_main_intc
ss_init_gpi_intc: np->name=ms_gpi_intc, parent=ms_main_intc
Find CLK_cpupll_clk, hook ms_cpuclk_ops
arm_arch_timer: Architected cp15 timer(s) running at 6.00MHz (virt).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1623fa770, max_idle_ns: 440795202238 ns
sched_clock: 56 bits at 6MHz, resolution 166ns, wraps every 4398046511055ns
Switching to timer-based delay loop, resolution 166ns
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop (skipped), value calculated using timer frequency.. 12.00 BogoMIPS (lpj=60000)
pid_max: default: 4096 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x20008240 - 0x20008270
CPU1: update cpu_capacity 1024
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (24.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 16 (order: -2, 1024 bytes)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations


Version : MVX4##I2M#g#######KL_LX409##[BR:g]#XVM

GPIO: probe end[ss_gpi_intc_domain_alloc] hw:42 -> v:43
[MS_PM_INTC] hw:20 -> v:51
[Padmux]reset Pad_87(reg 0x101e09; mask0x7) to DMIC_MODE_2(org: I2C0_MODE_1)
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 2, 20480 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 128 (order: 0, 6144 bytes)
UDP-Lite hash table entries: 128 (order: 0, 6144 bytes)
NET: Registered protocol family 1
hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
workingset: timestamp_bits=30 max_order=15 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
cust-io-ctrl soc:ido_io_ctrl: Device tree not define of gpio-bz0
[Padmux]reset Pad_47(reg 0x101e03; mask0x70) to GPIO(org: UART0_MODE_1)
cust-io-ctrl soc:ido_io_ctrl: Device tree not define of gpio-usb-en
sd_pwr init ok
cust-io-ctrl soc:ido_io_ctrl: Device tree not define of gpio-rs485-ctrl
cust-io-ctrl soc:ido_io_ctrl: Device tree not define of gpio-y1
cust-io-ctrl soc:ido_io_ctrl: Device tree not define of gpio-y2
cust-io-ctrl soc:ido_io_ctrl: Device tree not define of gpio-zero
cust-io-ctrl soc:ido_io_ctrl: Device tree not define of gpio-wifi-reset
cust_io_ctrl complete!
libphy: Fixed MDIO Bus: probed
CAN device driver interface
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
mousedev: PS/2 mouse device common for all mice
[ss_gpi_intc_domain_alloc] hw:58 -> v:58
i2c /dev entries driver
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
1f221000.uart0: ttyS0 at MMIO 0x0 (irq = 30, base_baud = 10800000) is a unknown
1f221200.uart1: ttyS1 at MMIO 0x0 (irq = 31, base_baud = 10800000) is a unknown
1f220400.uart2: ttyS2 at MMIO 0x0 (irq = 32, base_baud = 10800000) is a unknown
1f221400.uart2: ttyS3 at MMIO 0x0 (irq = 33, base_baud = 10800000) is a unknown
[Core Voltage] check_voltage_valid: Not support 0mV, use 900mV
>> [sdmmc] ms_sdmmc_probe
[Padmux]reset Pad_51(reg 0x101e08; mask0x300) to GPIO(org: SDIO_MODE_1)
>> [sdmmc_0] Probe Platform Devices
MSYS: DMEM request: [emac0_buff]:0x00000812
MSYS: DMEM request: [emac0_buff]:0x00000812 success, CPU phy:@0x25A43000, virt:@0xC5A43000
libphy: mdio: probed
mdio_bus mdio-bus@emac0: /soc/emac0/mdio-bus@emac0/ethernet-phy@0 has invalid PHY address
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 0
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 1
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 2
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 3
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 4
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 5
Goodix-TS 1-005d: ID 911, version: 1060
Goodix-TS 1-005d: Direct firmware load for goodix_911_cfg.bin failed with error -2
input: Goodix Capacitive TouchScreen as /devices/soc0/soc/1f223200.i2c1/i2c-1/1-005d/input/input0
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 6
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 7
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 8
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 9
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 10
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 11
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 12
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 13
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 14
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 15
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 16
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 17
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 18
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 19
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 20
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 21
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 22
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 23
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 24
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 25
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 26
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 27
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 28
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 29
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 30
mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 31
[emac_phy_connect][3204] connected mac emac0 to PHY at mdio-bus@emac0:00 [uid=11112222, driver=SStar 10/100 Ethernet Phy]
MSYS: DMEM request: [emac1_buff]:0x00060812
MSYS: DMEM request: [emac1_buff]:0x00060812 success, CPU phy:@0x25A50000, virt:@0xC5A50000
libphy: mdio: probed
mdio_bus mdio-bus@emac1: /soc/emac1/mdio-bus@emac1/ethernet-phy@1 has invalid PHY address
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 0
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 1
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 2
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 3
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 4
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 5
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 6
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 7
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 8
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 9
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 10
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 11
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 12
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 13
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 14
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 15
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 16
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 17
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 18
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 19
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 20
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 21
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 22
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 23
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 24
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 25
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 26
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 27
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 28
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 29
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 30
mdio_bus mdio-bus@emac1: scan phy ethernet-phy at address 31
[emac_phy_connect][3204] connected mac emac1 to PHY at mdio-bus@emac1:00 [uid=00000000, driver=Generic PHY]
ms_rtcpwc 1f006800.rtcpwc: rtc core: registered 1f006800.rtcpwc as rtc0
[ms_cpufreq_init] Current clk=1005326304
mstar_spinand_probe: mstar_spinand enableClock
MSYS: DMEM request: [BDMA]:0x00000840
MSYS: DMEM request: [BDMA]:0x00000840 success, CPU phy:@0x25A44000, virt:@0xC5A44000
MDrv_SPINAND_Init: Detected ID: MID =cd, DID =ea
_dumpNandInformation:warning, Bytes / Page :  2048
_dumpNandInformation:warning, Pages / Block:  64
_dumpNandInformation:warning, Sector/ Page :  512
_dumpNandInformation:warning, Spare / Page :  64
_dumpNandInformation:warning, Current config r:4 w:4 drv:1
mstar_spinand_probe: Magic memcmp pass
mstar_spinand_probe: Get partition (Block 0 : page 1)
mstar_spinand_probe: CIS contains part info
mstar_spinand_probe: Before nand_scan()...
12 cmdlinepart partitions found on MTD device nand0
mstar_spinand_probe: Mtd parts parse
Creating 12 MTD partitions on "nand0":
0x000000140000-0x0000001a0000 : "IPL0"
0x0000001a0000-0x000000200000 : "IPL1"
0x000000200000-0x000000260000 : "IPL_CUST0"
0x000000260000-0x0000002c0000 : "IPL_CUST1"
0x0000002c0000-0x000000380000 : "UBOOT0"
0x000000380000-0x000000440000 : "UBOOT1"
0x000000440000-0x0000004a0000 : "ENV0"
0x0000004a0000-0x0000004c0000 : "KEY_CUST"
0x0000004c0000-0x000000520000 : "LOGO"
0x000000520000-0x000000a20000 : "KERNEL"
0x000000a20000-0x000000f20000 : "RECOVERY"
0x000000f20000-0x000008000000 : "UBI"
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20161123 t)
can: netlink gateway (rev 20130117) max_hops=1
ThumbEE CPU extension supported.
Registering SWP/SWPB emulation handler
ubi0: attaching mtd11
ubi0: scanning is finished
ubi0: attached mtd11 (name "UBI", size 112 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 897, bad PEBs: 6, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 712, total reserved PEBs: 185, PEBs reserved for bad PEB handling: 14
ubi0: background thread "ubi_bgt0d" started, PID 684
ms_rtcpwc 1f006800.rtcpwc: setting system clock to 2021-03-26 16:39:10 UTC (1616776750)
OF: fdt:not creating '/sys/firmware/fdt': CRC check failed
VFS: Cannot open root device "ubi:rootfs" or unknown-block(0,0): error -19
Please append a correct "root=" boot option; here are the available partitions:
1f00             384 mtdblock0  (driver?)
1f01             384 mtdblock1  (driver?)
1f02             384 mtdblock2  (driver?)
1f03             384 mtdblock3  (driver?)
1f04             768 mtdblock4  (driver?)
1f05             768 mtdblock5  (driver?)
1f06             384 mtdblock6  (driver?)
1f07             128 mtdblock7  (driver?)
1f08             384 mtdblock8  (driver?)
1f09            5120 mtdblock9  (driver?)
1f0a            5120 mtdblock10  (driver?)
1f0b          115584 mtdblock11  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.84 #60
Hardware name: SStar Soc (Flattened Device Tree)
[<c00120f9>] (unwind_backtrace) from [<c000feeb>] (show_stack+0xb/0xc)
[<c000feeb>] (show_stack) from [<c0127b23>] (dump_stack+0x57/0x70)
[<c0127b23>] (dump_stack) from [<c00116e1>] (handle_IPI+0x8d/0x104)
[<c00116e1>] (handle_IPI) from [<c00092d9>] (gic_handle_irq+0x59/0x64)
[<c00092d9>] (gic_handle_irq) from [<c00105a5>] (__irq_svc+0x65/0xac)
Exception stack(0xc04a3f60 to 0xc04a3fa8)
3f60: 00000000 0000075e c58be354 c0017961 c04a5bf4 00000001 ffffe000 c04e0153
3f80: c04a5c44 c04908cc 00000000 00000000 0021f982 c04a3fb0 c000ddb7 c000ddae
3fa0: 40000133 ffffffff
[<c00105a5>] (__irq_svc) from [<c000ddae>] (arch_cpu_idle+0xc/0x1e)
[<c000ddae>] (arch_cpu_idle) from [<c003e04b>] (cpu_startup_entry+0xa3/0xd8)
[<c003e04b>] (cpu_startup_entry) from [<c04778e5>] (start_kernel+0x239/0x294)
[<c04778e5>] (start_kernel) from [<2000807f>] (0x2000807f)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

自己做SSD201内核和文件系统的时候,打包了一个USB升级固件的bin文件,不过一直进不去系统,上面是启动内容,好像是文件系统的问题。
自己是按照开发手册来的,有没有大佬知道问题。

#23 Re: 全志 SOC » V3S的以太网问题,用的内核是4.13-y,然后发现以太网不插网线常亮,和正常状态反了 » 2020-11-03 10:50:17

哇酷小二 说:
&emac {
	allwinner,leds-active-high;
	status = "okay";
};
&emac {
	allwinner,leds-active-low;
	status = "okay";
};

两个都试一试

none_20201103-1046.png
试过,之前是low,改了之后还是一样的效果!

#24 Re: 全志 SOC » V3S的以太网问题,用的内核是4.13-y,然后发现以太网不插网线常亮,和正常状态反了 » 2020-10-28 14:54:31

微凉VeiLiang 说:

可以配置的。不是io是寄存器。看看我之前的帖子
https://whycan.com/t_4778.html

这个在Linux下怎样修改呀!

#26 全志 SOC » V3S的以太网问题,用的内核是4.13-y,然后发现以太网不插网线常亮,和正常状态反了 » 2020-10-26 17:26:43

liuxingkeji
回复: 13

想请教下大家V3S的以太网问题,用的内核是4.13-y,然后发现以太网不插网线常亮,和正常状态反了,通信是正常的,怎样修改下能把灯状态反过来呀!,谢谢
,设备树都是按照Lichee Pi的说明情况来的。

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn