Deriving a new Array from an existing Array:
['■','●','▲'].slice(1, 3) ⟼ ['●','▲']
['■','●','■'].filter(x => x==='■') ⟼ ['■','■']
['▲','●'].map(x => x+x) ⟼ ['▲▲','●●']
['▲','●'].flatMap(x => [x,x]) ⟼ ['▲','▲','●','●']
diskutil list
to identify the disk number, e.g. /dev/disk2
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=image.img of=/dev/rdisk2
/Volumes/boot
.
config.txt
, add this as the last line of the file: dtoverlay=dwc2
cmdline.txt
, add this as a parameter, just after the rootwait
parameter: modules-load=dwc2,g_ether