Skip to content

Commit b7f52c6

Browse files
committed
install u-boot to eMMC during NVMe installation
1 parent 8960867 commit b7f52c6

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cros_pre_src_prepare_apply_patches() {
2+
eapply ${XPRESSREAL_OPENFYDE_BASHRC_FILEPATH}/001-install-bootloader-to-emmc-for-nvme-installation.patch
3+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- a/chromeos-install.sh
2+
+++ b/chromeos-install.sh
3+
@@ -921,6 +921,21 @@
4+
copy_partition "${PARTITION_NUM_MINIOS_B}" "${SRC}" "${DST}" 1 1 false # 10
5+
fi
6+
7+
+ # Install u-boot to eMMC for NVMe boot
8+
+ if [ "${DST}" = "/dev/nvme0n1" ]; then
9+
+ echo "Install u-boot to eMMC."
10+
+ /sbin/sfdisk /dev/mmcblk0 <<-EOF
11+
+ label: gpt
12+
+ size=64M, type=uefi
13+
+EOF
14+
+ /usr/sbin/mkfs.fat -F 32 /dev/mmcblk0p1
15+
+
16+
+ tracked_mount -t vfat /dev/mmcblk0p1 "${TMPMNT}"
17+
+ cp -f /boot/u-boot.bin-rtd1619b_emmc "${TMPMNT}/"
18+
+ tracked_umount "${TMPMNT}"
19+
+ sync
20+
+ fi
21+
+
22+
do_post_install
23+
24+
# Force data to disk before we declare done.

0 commit comments

Comments
 (0)