aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2019-05-09 15:59:47 -0500
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2019-05-10 10:10:39 +0200
commitd7a873a777a6f51807e82a4afc370d63ebd50b4e (patch)
tree6b3f398257f0821f350ef6cc09d09f5cdb233bcc
parent70703d8a6f10422a10351b4262fc741ed9b8eada (diff)
downloadmeta-qcom-d7a873a777a6f51807e82a4afc370d63ebd50b4e.tar.gz
meta-qcom-d7a873a777a6f51807e82a4afc370d63ebd50b4e.tar.bz2
meta-qcom-d7a873a777a6f51807e82a4afc370d63ebd50b4e.zip
machine/*/dragonbard-845c: Set ext4 rootfs image to 4096 block size
Needed by QCOM UFS, set explicity because the block size is determined by mkfs.ext4 depending on the image size. Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> (cherry picked from commit ad91e9e7eba5d82cae3f492eebb8f66acf6f3177)
-rw-r--r--conf/machine/dragonboard-845c.conf3
-rw-r--r--conf/machine/include/qcom-sdm845.inc1
2 files changed, 4 insertions, 0 deletions
diff --git a/conf/machine/dragonboard-845c.conf b/conf/machine/dragonboard-845c.conf
index 8b82657..8cd10d4 100644
--- a/conf/machine/dragonboard-845c.conf
+++ b/conf/machine/dragonboard-845c.conf
@@ -19,3 +19,6 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
# XXX: The sda10 is userdata we need to create an Linux gpt to have more space
# and use rootfs
QCOM_BOOTIMG_ROOTFS ?= "sda10"
+
+# UFS partitions setup with 4096 logical sector size
+EXTRA_IMAGECMD_ext4 += " -b 4096 "
diff --git a/conf/machine/include/qcom-sdm845.inc b/conf/machine/include/qcom-sdm845.inc
index 2526d2f..4e2ab05 100644
--- a/conf/machine/include/qcom-sdm845.inc
+++ b/conf/machine/include/qcom-sdm845.inc
@@ -27,6 +27,7 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
"
IMAGE_FSTYPES ?= "ext4.gz"
+IMAGE_ROOTFS_ALIGNMENT = "4096"
QCOM_BOOTIMG_KERNEL_BASE ?= "0x80000000"
QCOM_BOOTIMG_PAGE_SIZE ?= "4096"