HOW TO - install linux on emmc without etcher or USB adapter
#2
(07-28-2018, 02:12 AM)dukla2000 Wrote: Thought I would log a confirmation it is perfectly possible to setup a new ROCKPro64 with linux without:

1) etcher (or the Pine utility) - there is no aarch64 version of etcher which is kinda limiting for those of us already using arm systems for our daily driver!
2) I didn't order the Pine emmc/USB adapter to save money and reduce the order value/import tax hit.

The steps are pretty simple: yeah they rely on dd heavily and most of the time it works fine for me.

1) Download your image of choice, I went with bionic-minimal-rockpro64-0.7.9-1067-arm64.img.xz
2) Unzip the image,
Code:
$unxz bionic-minimal-rockpro64-0.7.9-1067-arm64.img.xz
3) Get an sdcard (pref 2GB or 4GB, see step 6 below) in your pc. Check where it is and dd the image to it. Mine was /dev/sda so
Code:
$sudo dd if=bionic-minimal-rockpro64-0.7.9-1067-arm64.img of=/dev/sda bs=4M
4) I find my 'bad dd flashes' can usually be sorted at this stage by removing and reinserting the sdcard and running fsck on the dos and linux partitions. Any problems (apart from not removed cleanly bit on dos partition) then repeat step 3 above.
5) Insert (blank/new) emmc in ROCKPro64, and sdcard, and boot. Should come up fine on the sdcard. And resize the / partition automatically.
6) As per Bullet64 instructions here, copy the image from the sdcard to the emmc. Make sure you have a small sdcard to keep the elapsed time of this step under control. And it must be smaller than the emmc else you will be in trouble.
Code:
$sudo dd if=/dev/mmcblk0 of=/dev/mmcblk1 bs=4M
7) Reboot and manually resize the / partition

Code:
rock64@rockpro64:/usr/local/sbin$ sudo ./resize_rootfs.sh


Should be done. Enjoy

Thanks for linking to my forum.

I miss this
Code:
bs=4M

I will add this. Thank for the hint.
Sorry for any mistakes. English is not my native language

1. Quartz64 Model B, 4GB RAM

2. Quartz64 Model A, 4GB RAM

3. RockPro64 v2.1

https://linux-nerds.org/


Messages In This Thread
RE: HOW TO - install linux on emmc without etcher or USB adapter - by Bullet64 - 07-28-2018, 04:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Video How to Install Google PlayStore NightCrawler504 2 5,321 04-08-2020, 02:20 PM
Last Post: pino88
  load root on NVMe and /boot on eMMC Vikk42 4 8,664 07-18-2019, 12:42 PM
Last Post: stuartiannaylor
Video Video and Guide to install Android to emmc no emmc to usb adapter NightCrawler504 0 3,364 04-21-2019, 07:19 PM
Last Post: NightCrawler504
Thumbs Up Tutorial[ Seagate Disks ]: Install Seagate OpenSeaChest Utilities tuxd3v 41 75,729 04-08-2019, 10:10 AM
Last Post: Neo2018

Forum Jump:


Users browsing this thread: 1 Guest(s)