Open hyunsik-yoon opened 1 year ago
/boot/uimage...
파일)load
, setenv
, run
, bootm
등은 U-boot 명령어라 함load
: 파일을 메모리 특정 주소로 읽어들일 것bootm
: 메모리로부터 부팅할 것abc=def
형식은 env var 셋팅a;b
는 a 를 실행하고 b를 실행하라.
console=ttyO0,115200n8
ipaddr=192.168.7.2
serverip=192.168.7.1
loadaddr=0x82000000
fdtaddr=0x88000000
loadfromsd=load mmc 0:2 ${loadaddr} /boot/uImage;load mmc 0:2 ${fdtaddr} /boot/am335x-
boneblack.dtb
linuxbootargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw
uenvcmd=setenv autoload no; run loadfromsd; run linuxbootargs; bootm ${loadaddr} - ${fdtaddr}
help
, md
, load` 등의 명령어들이 존재
U-Boot# help load
usage : load <inteface> <dev[:partition]> <addr>
U-Boot# load mmc 0:2 0x82000000 /boot/uImage
4310624 bytes read
U-Boot# md 0x82000000 4 # memory display
# 로드된 uImage 파일의 4 바이트를 보여줌. (uBoot image header)
from https://www.udemy.com/course/embedded-linux-step-by-step-using-beaglebone/learn/lecture/7243952