您尚未登录。

楼主 # 2024-02-04 22:33:12

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 694
积分: 685

V3S 编译最后报错 E而且lcd设备也没有起来

1:编译最后感觉是有什么配置对
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... [    5.415389] ------------[ cut here ]------------
[    5.420169] WARNING: CPU: 0 PID: 88 at drivers/mtd/spi-nor/spi-nor.c:1182 spi_nor_write+0x138/0x1b4
[    5.429257] Writing at offset 164 into a NOR page. Writing partial pages may decrease reliability and increase wear of NOR flash.
[    5.429263] Modules linked in:
[    5.443975] CPU: 0 PID: 88 Comm: rm Not tainted 4.10.15-licheepi-zero+ #1
[    5.450750] Hardware name: Allwinner sun8i Family
[    5.455479] [<c010e3bc>] (unwind_backtrace) from [<c010b158>] (show_stack+0x10/0x14)
[    5.463222] [<c010b158>] (show_stack) from [<c0346ce4>] (dump_stack+0x84/0x98)
[    5.470445] [<c0346ce4>] (dump_stack) from [<c011b7f4>] (__warn+0xe8/0x100)
[    5.477402] [<c011b7f4>] (__warn) from [<c011b844>] (warn_slowpath_fmt+0x38/0x48)
[    5.484880] [<c011b844>] (warn_slowpath_fmt) from [<c04538e4>] (spi_nor_write+0x138/0x1b4)
[    5.493145] [<c04538e4>] (spi_nor_write) from [<c02fc224>] (jffs2_flash_write+0x70/0x78)
[    5.501234] [<c02fc224>] (jffs2_flash_write) from [<c02f246c>] (jffs2_mark_node_obsolete+0x478/0x5bc)
[    5.510446] [<c02f246c>] (jffs2_mark_node_obsolete) from [<c02f5c90>] (jffs2_do_unlink+0x240/0x2f4)
[    5.519482] [<c02f5c90>] (jffs2_do_unlink) from [<c02ef9b0>] (jffs2_unlink+0x44/0x8c)
[    5.527307] [<c02ef9b0>] (jffs2_unlink) from [<c01fce14>] (vfs_unlink+0xb8/0x19c)
[    5.534785] [<c01fce14>] (vfs_unlink) from [<c02008a8>] (do_unlinkat+0x218/0x280)
[    5.542264] [<c02008a8>] (do_unlinkat) from [<c0107640>] (ret_fast_syscall+0x0/0x3c)
[    5.550061] ---[ end trace 542b7352f6becd42 ]---
done.
Starting network: OK



2  我低uboot里面配置

#define CONFIG_BOOTCOMMAND   "sf probe 0; "                           \
                             "sf read 0x41800000 0x100000 0x10000; "  \
                             "sf read 0x41000000 0x110000 0x400000; " \
                             "bootz 0x41000000 - 0x41800000"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 earlyprintk panic=5 rootwait " \
                             "mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2 vt.global_cursor_default=0"


#include <configs/sunxi-common.h>

/////////////

使能 Enable graphical uboot console on HDMI, LCD or VGA                                         │ │ 
  │ │                         [ ]   VGA via LCD controller support                                                           │ │ 
  │ │                         (x:800,y:480,depth:18,pclk_khz:33000,le:86,ri:160,up:30,lo:24,hs:1,vs:1,sync:3,vmode:0) LCD pan│ │ 
  │ │                         (1)   LCD panel display clock phase                                                            │ │ 
  │ │                         


同时在Linux里面dtsi里面的chosen加了下面的
simplefb_lcd: framebuffer@0 {
                        compatible = "allwinner,simple-framebuffer",
                                     "simple-framebuffer";
                        allwinner,pipeline = "de0-lcd0";
                        clocks = <&ccu CLK_BUS_TCON0>, <&display_clocks 0>,
                                 <&display_clocks 6>, <&ccu CLK_TCON0>;
                        status = "disabled";
                };
在pio里面加了如下
lcd_rgb666_pins_a: lcd-rgb666-pe {
                                pins = "PE0", "PE1", "PE2", "PE3", "PE4", "PE5",
                                       "PE6", "PE7", "PE8", "PE9", "PE10", "PE11",
                                       "PE12", "PE13", "PE14", "PE15", "PE16", "PE17",
                                       "PE18", "PE19", "PE23", "PE24";
                                function = "lcd0";
                        };


但是目前来设备树里面没有看到有fb0类似的设备的

最近编辑记录 无情一刀 (2024-02-04 22:47:41)

离线

#1 2024-02-05 14:41:22

海石生风
会员
所在地: 深圳
注册时间: 2019-07-02
已发帖子: 478
积分: 597
个人网站

Re: V3S 编译最后报错 E而且lcd设备也没有起来

modprobe: can't change directory to '/lib/modules': No such file or directory

/lib/modules文件夹存放的是内核模块

离线

页脚

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

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