Skip to contentSkip to conversation

ARM: boards: kindle mx50: adapt MCI name to DTS

PATCH Applied Alexander Kurz 2 participants 2 messages May 20, 2019 – May 21, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: boards: kindle mx50: adapt MCI name to DTS

From: Alexander Kurz <[email protected]>

The MCI instances got aliases in the DTS from linux upstream which changed the eMMC devicename e.g. from disk0 to mmc2. Adapt to this.

---
 Documentation/boards/imx/amazon-kindle-4-5.rst                     | 4 ++--
 arch/arm/boards/kindle-mx50/board.c                                | 2 +-
 arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
Documentation/boards/imx/amazon-kindle-4-5.rst +2 -2
index 26f072e28..f71ffe176 100644
@@ -68,5 +68,5 @@ e.g. for the D01100 just write the imx-header and the application section:
 .. code-block:: console
 
         $ loady -t usbserial
-        $ memcpy -b -s barebox-kindle-d01100.img -d /dev/disk0.boot0.imx_header 1024 0 2048
-        $ memcpy -b -s barebox-kindle-d01100.img -d /dev/disk0.boot0.self 4096 0 253952
+        $ memcpy -b -s barebox-kindle-d01100.img -d /dev/mmc2.boot0.imx_header 1024 0 2048
+        $ memcpy -b -s barebox-kindle-d01100.img -d /dev/mmc2.boot0.self 4096 0 253952
arch/arm/boards/kindle-mx50/board.c +1 -1
index fb1d4c937..bfcb9b83b 100644
@@ -98,7 +98,7 @@ static void kindle_rev_init(void)
 	int ret;
 	size_t size;
 	void *buf;
-	const char userdata[] = "/dev/disk0.boot0.userdata";
+	const char userdata[] = "/dev/mmc2.boot0.userdata";
 	ret = read_file_2(userdata, &size, &buf, 128);
 	if (ret && ret != -EFBIG) {
 		pr_err("Could not read board info from %s\n", userdata);
arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel +1 -1
index 4f2cabd54..b8d93be59 100644
@@ -12,4 +12,4 @@ armlinux_system_serial="$global.board.ocotp_serial"
 
 global linux.bootargs.dyn.root="root=/dev/mmcblk0p1 rootwait ro"
 
-bootm -c /dev/disk0.kernel
+bootm -c /dev/mmc2.kernel
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer Applied
#1 lore raw
Quoted 11 lines · Alexander Kurz

From: Alexander Kurz <[email protected]>

The MCI instances got aliases in the DTS from linux upstream which changed the eMMC devicename e.g. from disk0 to mmc2. Adapt to this.

---
 Documentation/boards/imx/amazon-kindle-4-5.rst                     | 4 ++--
 arch/arm/boards/kindle-mx50/board.c                                | 2 +-
 arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox