uboot修改设置boot参数命令
程序员文章站
2022-04-10 09:37:29
1. 打印参数 printenvroot# printenvandroidversion=5.1baudrate=115200bootargs=console=ttyAMA0,115200n8 androidboot.hardware=s5p4418_drone androidboot.console=ttyAMA0 androidboot.serialno=0123456789abcdef initrd=0x49000000,0x1000000 init=/init lcdtype=5.0....
1. 打印参数 printenv
root# printenv
androidversion=5.1
baudrate=115200
bootargs=console=ttyAMA0,115200n8 androidboot.hardware=s5p4418_drone androidboot.console=ttyAMA0 androidboot.serialno=0123456789abcdef initrd=0x49000000,0x1000000 init=/init lcdtype=5.0
bootcmd=ext4load mmc 2:1 0x48000000 uImage;ext4load mmc 2:1 0x49000000 root.img.gz;bootm 0x48000000
bootdelay=3
bootfile=uImage
bootsystem=android
ethaddr=00:e2:1c:ba:e8:60
fastboot=flash=mmc,2:uboot:2nd:0x200,0x78000;flash=mmc,2:2ndboot:2nd:0x200,0x4000;flash=mmc,2:bootloader:boot:0x8000,0x70000;flash=mmc,2:boot:ext4:0x00100000,0x04000000;flash=mmc,2:system:ext4:0x04100000,0x2F200000;flash=mmc,2:cache:ext4:0x33300000,0x1AC00000;flash=mmc,2:misc:emmc:0x4E000000,0x00800000;flash=mmc,2:recovery:emmc:0x4E900000,0x01600000;flash=mmc,2:userdata:ext4:0x50000000,0x0;
filesize=240036
gatewayip=192.168.1.254
ipaddr=192.168.1.165
lcdtype=5.0
netmask=255.255.255.0
serverip=192.168.1.164
stderr=serial
stdin=serial
stdout=serial
Environment size: 984/32764 bytes
2.设置参数 setenv
setenv bootargs 'console=ttyAMA0,115200n8 androidboot.hardware=s5p4418_drone androidboot.console=ttyAMA0 androidboot.serialno=0123456789abcdef initrd=0x49000000,0x1000000 init=/init lcdtype=5.0'
3.保存参数 saveenv
root# saveenv
Saving Environment to MMC...
Writing to MMC(2)... done
4.其他uboot命令
重启 reset
5.快速启动 fastboot命令
fastboot devices 查看当前连接的设备
fastboot flash xxx xxx.xxx 烧录镜像
fastboot.exe flash boot boot.img
fastboot reboot 重启设备
本文地址:https://blog.csdn.net/Lwjobs/article/details/107440757
下一篇: JavaScript 事件/焦点使用方法