Hello everyone,
I am trying to achieve first boot with a Clearfog Base with eMMC.
It was not clear (at least to me) that the eMMC version does not allow booting from SD card *at all*
But hey, let's get this baby up&running, can anybody please help me?
I am trying to follow this procedure [https://www.armbian.com/clearfog-base/]:
1) Write the image to a USB flash drive
-> easy enough, I did it with Win32DiskImager and a well-tested 64GB USB stick
2) Load the modified u-boot (from the Armbian image) using the UART method
-> I have issues here. I suppose that UART method consists in plugging in the microUSB cable into my PC and open the COM3 port with Putty, than hitting some key to interrupt normal boot.
Unfortunately the terminal just spits out garbled text. The setup for the COM3 port in windows is 9600bps, 8data, no parity, 1 stop, no flow control and matches the config in Putty.
Where do I find the modified u-boot in armbian image?
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?