3.系统固件-UBuntu中内核启动参数-《计算机知识》

admin 2025-11-02 22:13:13 系统网络 来源:ZONE.CI 全球网 0 阅读模式
  • 入口参数-early_param
  • 打开debug参数

    grub配置https://www.cnblogs.com/f-ck-need-u/archive/2017/06/29/7094693.html

    入口参数-early_param
    1. pci.c:6564:pure_initcall(pci_realloc_setup_params);
    2. pci_realloc_setup_params 这个函数是GRUB引导时可以传入一些PCI的配置参数,
    3. 这里先不深入研究,可以参考《Linux那些事之PCI》P23
    4. early_param("pci", pci_setup);
    5. pci_setup(char *str)

    ubuntu 修改命令行参数方式:/etc/default/grub中GRUB_CMDLINE_LINUX=修改完后,sudo update-grub && sudo update-grub2最后在 /boot/grub/grub.cfg中表现出来: linux /boot/vmlinuz-…… root=xxxxx

    参考:Linux内核引导参数简介

    打开debug参数

    initcall_debug 和 CONFIG_CMDLINE=” debug| quiet| loglevel=5”,这个宏会在kernel启动时作为默认配置参数。debug表示loglevel=10quiet表示loglevel=4loglevel=5表示loglevel=5

    01-shell脚本介绍-《shell脚本》 系统网络

    01-shell脚本介绍-《shell脚本》

    一、shell脚本是什么二、为什么要学shell,而不是其他计算机语言三、学习这门课程的优势四、学了能干什么五、学习什么内容六、学习的技巧七、成长路径八、学习环
    评论:0   参与:  20