睡眠串口no_console_suspend 和取得所有的modules

本文介绍了两种提高内核调试效率的方法:一是通过在启动加载器命令中添加no_console_suspend来增加调试信息;二是提供了导出所有模块的具体方法。

2. 将"no_console_suspend"加入bootloader command可以打印出更多调试信息

3. 编内核时取得所有的modules:

export INSTALL_MOD_PATH=~/xxxx_modules

wenzq@armbian:~$ cat .xorgxrdp.10.log [ 331.339] X.Org X Server 1.21.1.11 X Protocol Version 11, Revision 0 [ 331.339] Current Operating System: Linux armbian 6.1.115-rk35xx-ophub #1 SMP Sat Oct 25 12:15:43 UTC 2025 aarch64 [ 331.339] Kernel command line: root=UUID=25d63a42-ce60-433b-8364-f64c86fd6bc2 rootflags=data=writeback rw rootwait rootfstype=ext4 console=ttyFIQ0 console=tty1 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 max_loop=128 bootsplash.bootfile=bootsplash.armbian earlycon=uart8250,mmio32,0xfe660000 [ 331.339] xorg-server 2:21.1.12-1ubuntu1.5 (For technical support please see http://www.ubuntu.com/support) [ 331.339] Current version of pixman: 0.42.2 [ 331.339] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 331.339] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 331.340] (++) Log file: ".xorgxrdp.10.log", Time: Sun Nov 30 21:30:27 2025 [ 331.342] (EE) Unable to locate/open config file: "xrdp/xorg.conf" [ 331.342] (==) Using config directory: "/etc/X11/xorg.conf.d" [ 331.342] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 331.343] (==) No Layout section. Using the first Screen section. [ 331.343] (==) No screen section available. Using defaults. [ 331.343] (**) |-->Screen "Default Screen Section" (0) [ 331.343] (**) | |-->Monitor "<default monitor>" [ 331.344] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 331.344] (**) Allowing byte-swapped clients [ 331.344] (==) Automatically adding devices [ 331.344] (==) Automatically enabling devices [ 331.344] (==) Automatically adding GPU devices [ 331.344] (==) Automatically binding GPU devices [ 331.344] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 331.346] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 331.346] Entry deleted from font path. [ 331.346] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 331.346] Entry deleted from font path. [ 331.346] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 331.346] Entry deleted from font path. [ 331.346] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist. [ 331.346] Entry deleted from font path. [ 331.346] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist. [ 331.346] Entry deleted from font path. [ 331.346] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist. [ 331.346] Entry deleted from font path. [ 331.346] (==) FontPath set to: /usr/share/fonts/X11/misc, built-ins [ 331.346] (==) ModulePath set to "/usr/lib/xorg/modules" [ 331.346] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 331.347] (II) Loader magic: 0xaaaad5240010 [ 331.347] (II) Module ABI versions: [ 331.347] X.Org ANSI C Emulation: 0.4 [ 331.347] X.Org Video Driver: 25.2 [ 331.347] X.Org XInput driver : 24.4 [ 331.347] X.Org Server Extension : 10.0 [ 331.349] (--) using VT number 2 [ 331.349] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration [ 331.352] (II) xfree86: Adding drm device (/dev/dri/card0) [ 331.352] (II) Platform probe for /sys/devices/platform/fde40000.npu/drm/card0 [ 331.352] (II) xfree86: Adding drm device (/dev/dri/card1) [ 331.352] (II) Platform probe for /sys/devices/platform/fde60000.gpu/drm/card1 [ 331.353] (II) no primary bus or device found [ 331.353] falling back to /sys/devices/platform/fde40000.npu/drm/card0 [ 331.353] (II) LoadModule: "glx" [ 331.355] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 331.368] (II) Module glx: vendor="X.Org Foundation" [ 331.368] compiled for 1.21.1.11, module version = 1.0.0 [ 331.368] ABI class: X.Org Server Extension, version 10.0 [ 331.368] (==) Matched modesetting as autoconfigured driver 0 [ 331.368] (==) Matched fbdev as autoconfigured driver 1 [ 331.368] (==) Assigned the driver to the xf86ConfigLayout [ 331.368] (II) LoadModule: "modesetting" [ 331.369] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so [ 331.371] (II) Module modesetting: vendor="X.Org Foundation" [ 331.371] compiled for 1.21.1.11, module version = 1.21.1 [ 331.371] Module class: X.Org Video Driver [ 331.371] ABI class: X.Org Video Driver, version 25.2 [ 331.371] (II) LoadModule: "fbdev" [ 331.371] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so [ 331.372] (II) Module fbdev: vendor="X.Org Foundation" [ 331.372] compiled for 1.21.1.11, module version = 0.5.0 [ 331.372] Module class: X.Org Video Driver [ 331.372] ABI class: X.Org Video Driver, version 25.2 [ 331.372] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 331.373] (II) FBDEV: driver for framebuffer: fbdev [ 331.373] (EE) Fatal server error: [ 331.373] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied) [ 331.373] (EE) [ 331.373] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 331.373] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information. [ 331.373] (EE) [ 331.373] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor [ 331.373] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor [ 331.373] (EE) Server terminated with error (1). Closing log file.
最新发布
12-01
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值