11-08-2019, 01:45 PM
(This post was last modified: 11-11-2019, 01:54 AM by Wizzard.
Edit Reason: fix
)
Not really a guide, just want to share my findings with dual booting using SD card.
I have installed Ubuntu Linux and wanted to install Chromium OS on eMMC too.
So, download Chromium OS from ayufan's github: https://github.com/ayufan-rock64/chromiu...8d6.img.xz
Unzip it using unxz and write to SD card.
Copy the partitions ROOT-A and STATE from SD card to eMMC in Gparted. If your Linux partition takes whole eMMC, first resize it when booted Linux from SD card.
Mount original ROOT-A partition on SD card and edit /boot/extlinux/extlinux.conf: replace "${bootdevice}p${bootdevice_part}" by the location of copied ROOT-A partition on your eMMC, in my case it was "mmcblk1p8".
Mount copied ROOT-A partition on your eMMC and edit /sbin/chromeos_startup: replace the line 212: STATE_DEV="${ROOTDEV_TYPE}${PARTITION_NUM_STATE}" by the partition number of your STATE partition on your eMMC, in my case it was 9, so my line is STATE_DEV="${ROOTDEV_TYPE}9"
That is all. Now you should be able to boot Chromium OS from eMMC using booting SD card or default Linux without SD card.
Similar way works for booting Recalbox from eMMC (confirmed).
I have installed Ubuntu Linux and wanted to install Chromium OS on eMMC too.
So, download Chromium OS from ayufan's github: https://github.com/ayufan-rock64/chromiu...8d6.img.xz
Unzip it using unxz and write to SD card.
Code:
unxz chromiumos-rockpro64-R77-12371.7.104.g78f88d6.img.xz
sudo dd if=chromiumos-rockpro64-R77-12371.7.104.g78f88d6.img of=/dev/mmcblk0 bs=4M status=progress
Copy the partitions ROOT-A and STATE from SD card to eMMC in Gparted. If your Linux partition takes whole eMMC, first resize it when booted Linux from SD card.
Mount original ROOT-A partition on SD card and edit /boot/extlinux/extlinux.conf: replace "${bootdevice}p${bootdevice_part}" by the location of copied ROOT-A partition on your eMMC, in my case it was "mmcblk1p8".
Mount copied ROOT-A partition on your eMMC and edit /sbin/chromeos_startup: replace the line 212: STATE_DEV="${ROOTDEV_TYPE}${PARTITION_NUM_STATE}" by the partition number of your STATE partition on your eMMC, in my case it was 9, so my line is STATE_DEV="${ROOTDEV_TYPE}9"
That is all. Now you should be able to boot Chromium OS from eMMC using booting SD card or default Linux without SD card.
Similar way works for booting Recalbox from eMMC (confirmed).