U-Boot Quick Reference

From PlugWiki

Jump to: navigation, search

Useful U-Boot commands. Add your own.

Contents

See all the U-Boot Commands

help

See all the environment settings

printenv

Load kernel uImage.sheeva.20090319 from FAT filesystem (first partition) on USB device

usb start
fatload usb 0:1 0x8000000 uImage.sheeva.20090319
bootm 0x8000000

Load kernel /boot/uImage.sheeva.20090319 from ext2/ext3/ext4 filesystem (first partition) on USB device

usb start
ext2load usb 0:1 0x8000000 /boot/uImage.sheeva.20090319
bootm 0x8000000

Load kernel uImage.sheeva.20090319 from tftp

set serverip 192.168.50.254
set ipaddr 192.168.50.8
set netmask 255.255.255.0
tftpboot 0x8000000 uImage.sheeva.20090319
bootm 0x8000000

Set kernel parameters to use USB disk /dev/sda1 as root filesystem

set bootargs 'console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/sda1 rw rootdelay=10'

Load kernel from sdio (SD card)

Recklessly mal-adapted from Multi-Boot.

set bootargs 'console=ttyS0,115200 ro root=/dev/mmcblk0p1 rootdelay=1'
mmcinit
ext2load mmc 0 0x800000 /boot/uImage
bootm 0x800000

You can use uImage file from /boot directory of standard Plug partition.

Find out more about U-Boot commands

Hardcore doc on U-Boot commands - Denx DULC Manual

Personal tools