天天看點

mmc指令 uboot_uboot修改設定boot參數指令

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

如您對本文有疑問或者有任何想說的,請點選進行留言回複,萬千網友為您解惑!