各位大佬,如上题,我找半天,没找到,只是想让调试信息输出在串口上,不需要打印在屏幕上,该怎么说设置。拜谢!
离线
https://whycan.cn/t_575.html
https://whycan.cn/t_2074.htmlu-boot的bootargs是不是:console=/dev/fb0
如果是, 改成实际对应的串口设备, 比如 console=/dev/ttyS0
第一步:
root@seeingvoice-Virtual-Machine:/home/lichee/u-boot/u-boot# cp tools/mkimage /usr/local/bin/mkimage
root@seeingvoice-Virtual-Machine:/home/lichee/u-boot/u-boot# cd ../../linux/
root@seeingvoice-Virtual-Machine:/home/lichee/linux# mkimage -C none -A arm -T script -d boot.cmd boot.scr
Image Name:
Created: Thu Mar 21 14:28:19 2019
Image Type: ARM Linux Script (uncompressed)
Data Size: 201 Bytes = 0.20 KiB = 0.00 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 193 Bytes = 0.19 KiB = 0.00 MiB
第二步:去掉console=tty0
setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
load mmc 0:1 0x80C00000 suniv-f1c100s-licheepi-nano.dtb
load mmc 0:1 0x80008000 zImage
bootz 0x80008000 - 0x80C00000
原来直接在boot.scr中进行修改,发现启动有问题,于是重新生成了一下
离线
晕哥 说:https://whycan.cn/t_575.html
https://whycan.cn/t_2074.htmlu-boot的bootargs是不是:console=/dev/fb0
如果是, 改成实际对应的串口设备, 比如 console=/dev/ttyS0第一步:
root@seeingvoice-Virtual-Machine:/home/lichee/u-boot/u-boot# cp tools/mkimage /usr/local/bin/mkimage
root@seeingvoice-Virtual-Machine:/home/lichee/u-boot/u-boot# cd ../../linux/
root@seeingvoice-Virtual-Machine:/home/lichee/linux# mkimage -C none -A arm -T script -d boot.cmd boot.scr
Image Name:
Created: Thu Mar 21 14:28:19 2019
Image Type: ARM Linux Script (uncompressed)
Data Size: 201 Bytes = 0.20 KiB = 0.00 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 193 Bytes = 0.19 KiB = 0.00 MiB第二步:去掉console=tty0
setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
load mmc 0:1 0x80C00000 suniv-f1c100s-licheepi-nano.dtb
load mmc 0:1 0x80008000 zImage
bootz 0x80008000 - 0x80C00000原来直接在boot.scr中进行修改,发现启动有问题,于是重新生成了一下
搞定了吗?
离线
vkaoke 说:晕哥 说:https://whycan.cn/t_575.html
https://whycan.cn/t_2074.htmlu-boot的bootargs是不是:console=/dev/fb0
如果是, 改成实际对应的串口设备, 比如 console=/dev/ttyS0第一步:
root@seeingvoice-Virtual-Machine:/home/lichee/u-boot/u-boot# cp tools/mkimage /usr/local/bin/mkimage
root@seeingvoice-Virtual-Machine:/home/lichee/u-boot/u-boot# cd ../../linux/
root@seeingvoice-Virtual-Machine:/home/lichee/linux# mkimage -C none -A arm -T script -d boot.cmd boot.scr
Image Name:
Created: Thu Mar 21 14:28:19 2019
Image Type: ARM Linux Script (uncompressed)
Data Size: 201 Bytes = 0.20 KiB = 0.00 MiB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 193 Bytes = 0.19 KiB = 0.00 MiB第二步:去掉console=tty0
setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
load mmc 0:1 0x80C00000 suniv-f1c100s-licheepi-nano.dtb
load mmc 0:1 0x80008000 zImage
bootz 0x80008000 - 0x80C00000原来直接在boot.scr中进行修改,发现启动有问题,于是重新生成了一下
搞定了吗?
上面就是解决的步骤,已经可以了
离线