Hi Ti
I set some uboot environment variables like "boot_fit, bootfile, fit_bootfile, run_fit", and they can be set and saved over uboot command.
but if they were modified in uboot source code (uboot-phytec/include/configs/ti_armv7_common.h), compiling,and flash uboot partition, I found
they were not modified.
so How to modify these environment variables over changing uboot source instead of uboot command line?
could anyone help in this
Thanks a lot.
ganbo
=>
arch=arm
args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
baudrate=115200
board=am57xx_phycore_kit
board_name=am5728_phycore_kit_41300111i
board_soc=am5728
boot_fdt=try
boot_fit=0
boot_net=run findfdt; run netboot;
bootargs=console=ttyS2,115200n8 root=PARTUUID=96b513dd-2725-4446-b82c-672e46d5683d rw rootfstype=ext4 rootwait
bootcmd=if test ${dofastboot} -eq 1; then echo Boot fastboot requested, resetting dofastboot ...;setenv dofastboot 0; saveenv;echo Booting into fastboot ...; fastboot 0;fi;if test ${boot_fit} -eq 1; then run update_to_fit;fi;run findoverlays; run findfdt; run envboot; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; run mmcboot
bootdelay=2
bootdir=/boot
bootenvfile=uEnv.txt
bootfile=fitImage
bootm_size=0x10000000
bootpart=1:2
bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
console=ttyS2,115200n8
cpu=armv7
default_overlays=am57xx-phytec-lcd-018.dtbo am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo
devnum=1
devtype=mmc
dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x100;u-boot.img.raw raw 0x300 0x800;spl-os-args.raw raw 0x80 0x80;spl-os-image.raw raw 0x1400 0x2000;spl-os-args fat 1 1;spl-os-image fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1
dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x100;u-boot.img.raw raw 0x300 0x800;spl-os-args.raw raw 0x80 0x80;spl-os-image.raw raw 0x1400 0x2000;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
dfu_alt_info_qspi=MLO raw 0x0 0x040000;u-boot.img raw 0x040000 0x0100000;u-boot-spl-os raw 0x140000 0x080000;u-boot-env raw 0x1C0000 0x010000;u-boot-env.backup raw 0x1D0000 0x010000;kernel raw 0x1E0000 0x800000
dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
dfu_bufsiz=0x10000
dofastboot=0
envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfile};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
ethaddr=98:f0:7b:88:af:2e
fastboot.cpu=DRA752
fastboot.secure=GP
fdt_addr_r=0x88000000
fdtaddr=88000000
fdtcontroladdr=fcf04a68
fdtfile=am5728-phycore-kit-41300111i.dtb
fileaddr=90000000
filesize=43400a
findfdt=setenv overlay_files ${default_overlays} ${extra_overlays};if test $board_name = am5716_phycore_kit_10203110c; then setenv fdtfile am5716-phycore-kit-10203110c.dtb; fi;if test $board_name = am5716_phycore_kit_10203111i; then setenv fdtfile am5716-phycore-kit-10203111i.dtb; fi;if test $board_name = am5726_phycore_kit_00001100i; then setenv fdtfile am5726-phycore-kit-00001100i.dtb; fi;if test $board_name = am5726_phycore_kit_10201111i; then setenv fdtfile am5726-phycore-kit-10201111i.dtb; fi;if test $board_name = am5726_phycore_kit_40201111i; then setenv fdtfile am5726-phycore-kit-40201111i.dtb; fi;if test $board_name = am5726_phycore_kit_41201111i; then setenv fdtfile am5726-phycore-kit-41201111i.dtb; fi;if test $board_name = am5726_phycore_kit_50201111i; then setenv fdtfile am5726-phycore-kit-50201111i.dtb; fi;if test $board_name = am5728_phycore_kit_10200110i; then setenv fdtfile am5728-phycore-kit-10200110i.dtb; fi;if test $board_name = am5728_phycore_kit_40200110c; then setenv fdtfile am5728-phycore-kit-40200110c.dtb; fi;if test $board_name = am5728_phycore_kit_40300111i; then setenv fdtfile am5728-phycore-kit-40300111i.dtb; fi;if test $board_name = am5728_phycore_kit_40a00111i; then setenv fdtfile am5728-phycore-kit-40a00111i.dtb; fi;if test $board_name = am5728_phycore_kit_41300111i; then setenv fdtfile am5728-phycore-kit-41300111i.dtb; fi;if test $board_name = am5728_phycore_kit_50500111i; then setenv fdtfile am5728-phycore-kit-50500111i.dtb; fi;if test $board_name = am5729_phycore_kit_10306111i; then setenv fdtfile am5729-phycore-kit-10306111i.dtb; fi;if test $board_name = am5746_phycore_kit_11305111i; then setenv fdtfile am5746-phycore-kit-11305111i.dtb; fi;if test $board_name = am5748_phycore_kit_11304111i; then setenv fdtfile am5748-phycore-kit-11304111i.dtb; fi;if test $board_name = am5749_phycore_kit_11302111i; then setenv fdtfile am5749-phycore-kit-11302111i.dtb; fi;if test $board_name = am5749_phycore_kit_32302111i; then setenv fdtfile am5749-phycore-kit-32302111i.dtb; fi;if test $board_name = am57xx_phycore_kit; then setenv fdtfile am57xx-phycore-kit.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi;
findoverlays=if test $board_soc = am5716 || test $board_soc = am57xx; then setenv default_overlays am57xx-phytec-wlan-wilink8.dtbo; fi;if test $board_soc = am5726; then setenv default_overlays am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo; fi;if test $board_soc = am5728; then setenv default_overlays am57xx-phytec-lcd-018.dtbo am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo; fi;if test $board_soc = am5729; then setenv default_overlays am57xx-phytec-lcd-018.dtbo am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo; fi;if test $board_soc = am5746; then setenv default_overlays am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo; fi;if test $board_soc = am5748; then setenv default_overlays am57xx-phytec-lcd-018.dtbo am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo; fi;if test $board_soc = am5749; then setenv default_overlays am57xx-phytec-lcd-018.dtbo am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo; fi;
finduuid=part uuid mmc ${bootpart} uuid
fit_bootfile=fitImage
fit_loadaddr=0x90000000
get_overlay_mmc=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $overlay_files;do;load mmc ${bootpart} ${overlayaddr} ${bootdir}/${overlay};fdt apply ${overlayaddr};done;
get_overlaystring=for overlay in $overlay_files;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
kernel_addr_r=0x82000000
loadaddr=0x90000000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
loadfit=run args_mmc; run get_overlaystring; run run_fit;
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run loadfit; else run mmcloados;fi;fi;fi;
mmcdev=1
mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then run get_overlay_mmc; bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
mmcrootfstype=ext4 rootwait
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
netloadfdt=tftp ${fdtaddr} ${fdtfile}
netloadimage=tftp ${loadaddr} ${bootfile}
nfsopts=nolock
overlay_files=am57xx-phytec-lcd-018.dtbo am57xx-phytec-vm-009.dtbo am57xx-phytec-wlan-wilink8.dtbo
overlayaddr=0x89000000
overlaystring=#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo#am57xx-phytec-lcd-018.dtbo#am57xx-phytec-vm-009.dtbo#am57xx-phytec-wlan-wilink8.dtbo
override_board=1
partitions=uuid_disk=${uuid_gpt_disk};name=env,start=2MiB,size=1MiB,uuid=${uuid_gpt_env};name=rootfs,start=3MiB,size=-,uuid=${uuid_gpt_rootfs}
pxefile_addr_r=0x80100000
ramdisk_addr_r=0x88080000
rdaddr=0x88080000
rootpath=/export/rootfs
run_fit=bootm ${fit_loadaddr}#${fdtfile}${overlaystring}
scriptaddr=0x80000000
serial#=0d00c00918240802
soc=omap5
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial@48020000
stdin=serial@48020000
stdout=serial@48020000
update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
usbtty=cdc_acm
uuid=96b513dd-2725-4446-b82c-672e46d5683d
vendor=phytec
ver=U-Boot 2019.01-dirty (Dec 06 2022 - 10:28:51 +0800)
vram=16M
Environment size: 9137/262139 bytes