Other Parts Discussed in Thread: AM625
Hi Forum,
I am working on AM625x GP board, generated builds images with yocto and flashed on target board using uSDcard. I have few questions here.
First Question:-
After flashing, observed that mmcblk1p1 partition(where uboot files present) is mounted on /run/media/mmcblk1p1 and mmcblk1p2 partition (rootfs) is mounted on / (as a root) and that's looks fine.
But here question is, why mmcblk0p1 partition is mounted as /run/media/mmcblk0p1 with rootfs when we flashed images with SDcard ? Is there anyway to remove mmcblk0 partition or disable emmc in am62xx ?
same observation with am62xx ti-sdk-default images also.
root@am62xx-evm:~# dmesg | grep mount
[ 1.835177] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.837026] devtmpfs: mounted
[ 3.124766] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 3.148046] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 9.110743] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
root@am62xx-evm:~#
root@am62xx-lrd:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 14.8G 0 disk
`-mmcblk0p1 179:1 0 14.8G 0 part /run/media/mmcblk0p1
mmcblk0boot0 179:32 0 31.5M 1 disk
mmcblk0boot1 179:64 0 31.5M 1 disk
mmcblk1 179:96 0 7.4G 0 disk
|-mmcblk1p1 179:97 0 62M 0 part /run/media/mmcblk1p1
`-mmcblk1p2 179:98 0 7.3G 0 part /
root@am62xx-lrd:~#
Second Question :-
I flashed sdcard with two partitions, one has small VFAT partition with tiboot3.bin, tispl.bin, u-boot.img, uEnv.txt and another one has larger kernelImage, dts file and rootfs partition formatted as ext4.
I stopped booting at u-boot prompt, to create uboot.env file with saveenv command.
The output of saveenv cmd says, Environment saved to MMC(0), but it should saved to FAT partition of sdcard (i.e. MMC(1) ) and uboot.env file is not created.
Can please explain, how saveenv command will work in AM62xx target ? How can I create uboot.env file in sdcard where uEnv.txt file is present ?
Note :- In other boards like am335x and am437x, saveenv command will save Environment into FAT partition and uboot.env file is created where uEnv.txt file is presented.
Below commands are executed at u-boot prompt :-
Hit any key to stop autoboot: 0
=> mmc list
mmc@fa10000: 0 (eMMC)
mmc@fa00000: 1
mmc@fa20000: 2
=>
=> printenv mmcdev
mmcdev=1
=>
=> fatls mmc 1:1
332038 tiboot3.bin
931720 tispl.bin
881588 u-boot.img
1396 uEnv.txt
4 file(s), 0 dir(s)
=> saveenv
Saving Environment to MMC... Writing to MMC(0)... OK
=>
=> fatls mmc 1:1
332038 tiboot3.bin
931720 tispl.bin
881588 u-boot.img
1396 uEnv.txt
4 file(s), 0 dir(s)
=>
Final Question :-
What is boot commands flow execution sequence in u-boot environment during booting ? How to know which u-boot commands will execute 1st and their commands sequence ?
Thanks for your help, and please let me know if any clarification is needed.
Best regards,
Mallikarjuna
