ubootブートパラメータコマンドを変更します

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コマンド

リセットを再開します

5.クイックスタートfastbootコマンド

fastbootデバイス現在接続されているデバイスを表示する

fastboot flash xxxxxx.xxx書き込みイメージ

fastboot.exe flash boot boot.img

fastbootrebootデバイスを再起動します

おすすめ

転載: blog.csdn.net/Lwjobs/article/details/107440757
おすすめ