My ultimate goal is to get my Khadas VIM booting into Ubuntu but I have tried for many hours and still cannot get to work. I am unsure if I 1) am not creating the TF card correctly, or 2) if something is wrong with my Khadas VIM. It used to boot Android until I erase EMMC using Key Mode: http://docs.khadas.com/develop/HowtoEraseEMMC/
I am stuck. I really want to get my Khadas VIM working but right now nothing I try seems promising. Help!
Those are the instructions I have been (trying to) follow. But I don’t fully understand what they (are meant to) do so it is easy for me to do the wrong thing.
That is the first problem; I do not know for sure the right way to do this on Mac OS because your Linux instructions do not work for Mac.
Tibet:~ gouwa$ sudo dd if=Armbian_5.24_Amlogic-s905x_Ubuntu_xenial_3.14.29_desktop_20161223.img of=/dev/disk2 bs=4m
dd: /dev/disk2: Resource busy
Tibet:~ gouwa$ sudo diskutil umount /dev/disk2
disk2 was already unmounted or it has a partitioning scheme so use "diskutil unmountDisk" instead
Tibet:~ gouwa$ sudo diskutil umountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
Tibet:~ gouwa$ sudo dd if=Armbian_5.24_Amlogic-s905x_Ubuntu_xenial_3.14.29_desktop_20161223.img of=/dev/disk2 bs=4m
848+1 records in
848+1 records out
3558866944 bytes transferred in 440.847308 secs (8072788 bytes/sec)
Tibet:~ gouwa$ sync
1.) How long should this command take? It seems like it is just locked up. Is there any way to tell if it is working? It responds to [Enter] and echos a new line while, as it is waiting for more input or something.
2.) Is Armbian_5.24_Amlogic-s905x_Ubuntu_xenial_3.14.29_desktop_20161223.img okay to use instead?
Thank you so much! We want to use this as a base of a product we will sell if we can just get a prototype working. I am so anxious for some success. We have been looking for the right SBC for our product for 4 months now and we hope Khadas VIM is it…
Please visit Firmware page to get the latest boot loader (u-boot)
Commands below are run on my Macbook, and test fine here, for your reference(I’m not quite familiar with MacOS, there may have better way to done that):
Tibet:~ gouwa$ sudo diskutil eraseDisk FAT32 BOOT /dev/disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk2s2 as MS-DOS (FAT32) with name BOOT
512 bytes per physical sector
/dev/rdisk2s2: 15080656 sectors in 1885082 FAT32 clusters (4096 bytes/cluster)
bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=411648 drv=0x80 bsec=15110144 bspf=14728 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished erase on disk2
Tibet:~ gouwa$ sudo fdisk /dev/disk2
Disk: /dev/disk2 geometry: 966/255/63 [15523840 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>
2: 0B 1023 254 63 - 1023 254 63 [ 411648 - 15110144] Win95 FAT-32
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
Tibet:~ gouwa$ sudo diskutil umountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
Tibet:~ gouwa$ sudo dd if=Armbian_5.24_Amlogic-s905x_Ubuntu_xenial_3.14.29_desktop_20161223.img of=/dev/disk2 bs=4m
848+1 records in
848+1 records out
3558866944 bytes transferred in 440.847308 secs (8072788 bytes/sec)
Tibet:~ gouwa$ sync
Tibet:~ gouwa$ sudo diskutil umountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
Tibet:~ gouwa$ sudo dd if=u-boot.bin.sd.bin of=/dev/disk2 bs=1 count=444 && sync
444+0 records in
444+0 records out
444 bytes transferred in 0.002681 secs (165609 bytes/sec)
Tibet:~ gouwa$ sudo diskutil umountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
Tibet:~ gouwa$ sudo dd if=u-boot.bin.sd.bin of=/dev/disk2 bs=512 skip=1 seek=1 && sync
1760+0 records in
1760+0 records out
901120 bytes transferred in 0.876664 secs (1027897 bytes/sec)
Tibet:~ gouwa$ sudo diskutil umountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
Tibet:~ gouwa$
BTW, if this reply solve your problem, kindly follow the Problem Solved Button to mart it as solved.
I have enough success to move forward to try to get our software installed on the SD card now. I am sure I will have other questions when I want to write to EMMC but I will wait for your new ROM version.