I am now trying following steps from here: https://github.com/nightseas/arm_applications/blob/master/doc/getting_started_with_clearfog_base.md#boot-from-usb-disk----download-armbian-to-emmc
from inside armbian running from the USB stick:
dd'ing the img to the eMMC device was successful:
root@clearfogbase:~# dd if=/root/Armbian_5.35_Clearfogbase_Ubuntu_xenial_default_4.4.102.img of=/dev/mmcblk0 bs=4M
352+0 records in
352+0 records out
1476395008 bytes (1.5 GB, 1.4 GiB) copied, 79.9802 s, 18.5 MB/s
root@clearfogbase:~# sudo mount /dev/mmcblk0p1 /mnt
mount: special device /dev/mmcblk0p1 does not exist
I was not able to mount the partition in order to modify the armbianEnv.txt.
But, as I have a uSD card into the slot, I am trying to boot from eMMC anyway.
So I just went on with dd'ing the bootloader to the eMMC:
root@clearfogbase:~# echo 0 > /sys/block/mmcblk0boot0/force_ro
root@clearfogbase:~# echo 0 > /sys/block/mmcblk0boot1/force_ro
root@clearfogbase:~# sudo dd if=u-boot.mmc of=/dev/mmcblk0boot0
1836+1 records in
1836+1 records out
940108 bytes (940 kB, 918 KiB) copied, 0.167683 s, 5.6 MB/s
root@clearfogbase:~# sudo dd if=u-boot.mmc of=/dev/mmcblk0boot1
1836+1 records in
1836+1 records out
940108 bytes (940 kB, 918 KiB) copied, 0.17947 s, 5.2 MB/s
root@clearfogbase:~# echo 1 > /sys/block/mmcblk0boot0/force_ro
root@clearfogbase:~# echo 1 > /sys/block/mmcblk0boot1/force_ro
root@clearfogbase:~# sync
Now I think I could just set the dip switches into eMMC boot position and reboot.
Is that correct?