屏蔽linux 的启动打印信息

来源:互联网 发布:word2007软件 编辑:程序博客网 时间:2024/06/05 20:23
vi ./kernel/printk/printk.c
static int __init console_setup(char *str)

 str = "/dev/null"; // ql add


追加:

如何内核如何不使用uboot 传递过来的参数bootargs:

vi init/main.c


strcpy( boot_command_line, MY_BOOT_CMD_LINE ); // ql add
strcpy( command_line, MY_BOOT_CMD_LINE ); // ql add

原创粉丝点击