当前位置:首页 > 技术 > LINUX > 正文内容

修改U-BOOT,输出信息在LCD上显示,并使用USB连接键盘使用控制台

Watrt4年前 (2021-12-29)LINUX21910

修改方法:
一:修改U-BOOT   include/configs/suniv.h

#define CONFIG_BOOTCOMMAND"fatload mmc 0:1 0x80800000 zImage; "  \
                            "fatload mmc 0:1 0x83000000 suniv-f1c100s-licheepi-nano.dtb; " \
                            "bootz 0x80800000 - 0x83000000;"
#define CONFIG_BOOTARGS   "console=tty0 console=ttyS0,115200 panic=5 root=/dev/mmcblk0p2 rootwait rw "

添加了 console=tty0

二:修改rootfs /etc/inittab 文件

# console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
ttyS0::respawn:-/bin/sh
tty0::respawn:-/bin/sh


打赏 支付宝打赏 微信打赏

相关文章

关于CentOS 下 httpd 修改默认的目录后 403 错误的 解决

关于CentOS 下 httpd 修改默认的目录后 403 错误的 解决

step 1 : 首先改你要设置的目录权限       chmod -R 755 /home/html          -------------->>  /home/html   是你存放你的页面的目录   这里我顺便记录下关于selinux 的命令吧    getenforce=>查看 selinux的状态&nbs...

buildroot编译中的问题

buildroot编译中的问题

在编译中遇到flex 报错。一直过不了。后来发现安装flex bison两个包后解决sudo apt-get install flex bison...

荔枝派Nano 全流程指南

荔枝派Nano 全流程指南

u-boot 初体验安装交叉编译链首先需要安装交叉编译链:# 此处为获取7.2.1版本,您可获取其他版本或者通过链接直接下载 wget http://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabi/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi.tar.xz tar -vxJf gcc-li...

利用BusyBox ~私人定制 My LINUX~

利用BusyBox ~私人定制 My LINUX~

前言  我在今天在这里跟大家详细地探讨一下Linux系统的定制过程和实现例如、用户能够远程登录;和Nginx能够稳定地运行在我们私人定制的LINUX系统上、一步一步从头开始定制属于我们自己的系统。正文   首先我们先来简单的介绍一下我们这里定制属于自己的Linux系统的基本元素.   一个定制的linux内核+一个定制的busybox就可以定制一个小型的Linux操作系统了,安装Dropbear和Nginx,Linux的组成 部分包括内核空间和用户空间、而...

Configure & Build

Configure & Build

Configure and build Linux kernel for Surface RTEditing kernel build configurationFirst run the command make ARCH=arm tegra_defconfigThis will create a standard kernel config for tegra SoC's.Open the file .config in the kernel source directory wit...

f1c100s编译启动所需的uboot,kernel,rootfs

f1c100s编译启动所需的uboot,kernel,rootfs

 https://github.com/Icenowy/linux.git 有f1c100s-480272lcd-test和f1c100s分支, 然后自己手动修复一个 USB 问题,驱动就比较全了https://github.com/Lichee-Pi/linux.git 有nano-4.14-exp和nano-5.2-flash分支,用哪个合适个人画了块没有连接任何其他模块的F1C100S开发板,没有链接任何外设,本文是编译所有启动所需的三大件。(只要编...

如何使用 Ubuntu 安装和配置 Openbox

如何使用 Ubuntu 安装和配置 Openbox

Openbox是一个相当简单的窗口管理器,我们可以根据需要构建和自定义。本教程向我们展示了在 Ubuntu 中设置 Openbox 的基础知识、如何更改菜单、如何添加扩展坞以及如何设置墙纸。安装 Openbox要安装 Openbox,请同时打开终端窗口(按 CTRL 、 ALT 和 T )或者在破折号中搜索“TERM”并选择图标。输入以下命令:sudo apt install openbox obconf单击右上角的图标,然后注销。如何切换到 Openbo...

Ubuntu server openbox 安装笔记

Ubuntu server openbox 安装笔记

安装好ubuntu server 后开始安装openboxsudo apt-get install --no-install-recommends openbox xorg tint2 xcompmgr fonts-wqy-zenhei language-pack-zh-hans fcitx mupdf feh moc smplayer dbus-x11 thunar bzip2 tar obconf --no-install-recommend...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。