Thanks!
I commented define in the file include/configs/am335x_evm.h
#define CONFIG_ENV_IS_NOWHERE
After that I found saveenv command in uboot. But in this case saveenv command cause error "Unable to use mmc 0:1 for saveenv". I decided that I also should specify where I want to save environment variables. In source code I found that define CONFIG_EMMC_BOOT is used for RAW mode. I added define CONFIG_EMMC_BOOT in include/configs/am335x_evm.h and it seems that saveenv works now. I can see that raw data in emmc is not empty now:
root@user:~# hexdump -C /dev/mmcblk1boot1
00000000 7a f0 38 b3 04 61 72 63 68 3d 61 72 6d 00 61 72 |z.8..arch=arm.ar|
00000010 67 73 5f 66 69 74 3d 73 65 74 65 6e 76 20 62 6f |gs_fit=setenv bo|
00000020 6f 74 61 72 67 73 20 63 6f 6e 73 6f 6c 65 3d 24 |otargs console=$|
00000030 7b 63 6f 6e 73 6f 6c 65 7d 20 00 61 72 67 73 5f |{console} .args_|
00000040 6d 6d 63 3d 72 75 6e 20 66 69 6e 64 75 75 69 64 |mmc=run finduuid|
00000050 3b 73 65 74 65 6e 76 20 62 6f 6f 74 61 72 67 73 |;setenv bootargs|
00000060 20 63 6f 6e 73 6f 6c 65 3d 24 7b 63 6f 6e 73 6f | console=${conso|
00000070 6c 65 7d 20 24 7b 63 61 70 65 5f 64 69 73 61 62 |le} ${cape_disab|
00000080 6c 65 7d 20 24 7b 63 61 70 65 5f 65 6e 61 62 6c |le} ${cape_enabl|
00000090 65 7d 20 24 7b 63 61 70 65 5f 75 62 6f 6f 74 7d |e} ${cape_uboot}|
среда, 22 февраля 2017 г., 18:55:42 UTC+3 пользователь RobertCNelson написал: