Use character not block devices with dd(1) like the rest
authorkn <kn@openbsd.org>
Wed, 29 Mar 2023 00:25:47 +0000 (00:25 +0000)
committerkn <kn@openbsd.org>
Wed, 29 Mar 2023 00:25:47 +0000 (00:25 +0000)
All other dd invocations in installer code, INSTALL.* instructions and
dd(1) EXAMPLES use the disk's "raw device".

distrib/arm64/ramdisk/install.md
distrib/armv7/ramdisk/install.md

index e28b6d5..74c431d 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.39 2023/03/29 00:16:14 kn Exp $
+#      $OpenBSD: install.md,v 1.40 2023/03/29 00:25:47 kn Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@ md_installboot() {
                done)
                ;;
        pine64)
-               dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/${_disk}c \
+               dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/r${_disk}c \
                    bs=1024 seek=8 status=none
                ;;
        rpi)
index 3ee6c9e..d6e9ea8 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.54 2023/03/29 00:16:14 kn Exp $
+#      $OpenBSD: install.md,v 1.55 2023/03/29 00:25:47 kn Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -63,9 +63,9 @@ md_installboot() {
                ;;
        cubox|wandboard)
                cp $_mdec/*.dtb /mnt/mnt/
-               dd if=$_mdec/SPL of=/dev/${_disk}c bs=1024 seek=1 \
+               dd if=$_mdec/SPL of=/dev/r${_disk}c bs=1024 seek=1 \
                    status=none
-               dd if=$_mdec/u-boot.img of=/dev/${_disk}c bs=1024 seek=69 \
+               dd if=$_mdec/u-boot.img of=/dev/r${_disk}c bs=1024 seek=69 \
                    status=none
                ;;
        nitrogen)
@@ -81,7 +81,7 @@ md_installboot() {
                ;;
        cubie)
                cp $_mdec/*.dtb /mnt/mnt/
-               dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/${_disk}c \
+               dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/r${_disk}c \
                    bs=1024 seek=8 status=none
                ;;
        esac