Compare commits
1 Commits
a0ecf809e6
...
a97be384e5
Author | SHA1 | Date | |
---|---|---|---|
a97be384e5 |
@ -38,7 +38,8 @@ fi
|
||||
|
||||
print_config $MACHINE $BUILD_DIR
|
||||
|
||||
rm -rf build/conf
|
||||
rm -f build/conf/bblayers.conf \
|
||||
build/conf/templateconf.cfg
|
||||
|
||||
mkdir -p $BUILD_DIR
|
||||
|
||||
|
26
recipes-bsp/u-boot/files/uEnv.txt
Normal file
26
recipes-bsp/u-boot/files/uEnv.txt
Normal file
@ -0,0 +1,26 @@
|
||||
# boot from sd card
|
||||
bootpart=0:2
|
||||
# boot from emmc
|
||||
#bootpart=1:2
|
||||
|
||||
bootdir=/boot
|
||||
bootfile=zImage
|
||||
console=ttyO0,115200n8
|
||||
fdtaddr=0x88000000
|
||||
fdtfile=am335x-boneblack.dtb
|
||||
loadaddr=0x82000000
|
||||
|
||||
# rootfs on sd card
|
||||
mmcroot=/dev/mmcblk0p2 ro
|
||||
# rootfs on emmc
|
||||
#mmcroot=/dev/mmcblk1p2 ro
|
||||
|
||||
mmcrootfstype=ext4 rootwait
|
||||
optargs=consoleblank=0
|
||||
mmcargs=setenv bootargs console=${console} ${optargs} root=${mmcroot}
|
||||
findfdtfile=setenv fdtfile ${fdtfile}
|
||||
rootfstype=${mmcrootfstype}
|
||||
loadfdt=run findfdtfile; load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
|
||||
loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
|
||||
uenvcmd=if run loadfdt; then echo Loaded ${fdtfile}; if run loadimage; then run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi; fi;
|
||||
|
8
recipes-bsp/u-boot/u-boot_%.bbappend
Normal file
8
recipes-bsp/u-boot/u-boot_%.bbappend
Normal file
@ -0,0 +1,8 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
UBOOT_ENV = "uEnv"
|
||||
|
||||
SRC_URI_append_beaglebone-yocto += " \
|
||||
file://uEnv.txt \
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user