summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel
diff options
context:
space:
mode:
authorAlexander Kurz <akurz@blala.de>2017-04-23 19:37:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-24 15:33:27 +0200
commit2c506afbadcd546dcc54a0e8599e454fd4aecfdc (patch)
tree68860ea5f9314ccf7c837f208cd7d65fddd592c2 /arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel
parent13ed8eeaf0e7efc72991b9d92d1758297aa9c338 (diff)
downloadbarebox-2c506afbadcd546dcc54a0e8599e454fd4aecfdc.tar.gz
barebox-2c506afbadcd546dcc54a0e8599e454fd4aecfdc.tar.xz
ARM: i.MX50: Add support for i.MX50 based Amazon Kindle e-book readers
The Kindle Model No. D01100 (Kindle Wi-Fi), D01200 (Kindle Touch) and EY21 (Kindle Paperwhite) are refered as the Kindle 4th and 5th generation. Those models are based on an i.MX50 SoC and use LPDDR1 or LPDDR2 Memory. The devices boot in internal boot mode from a build-in eMMC, alternatively some devices may be set into USB-downloader mode by pressing a specific key at startup. Add support for the i.MX50 based Kindle device and make barebox a drop-in replacement for the factory shipped u-boot image. Notable features: - Support for eMMC, USB, UART, I2C, SPI and Keys (except keyboard). - LPDDR1 and LPDDR2 setup is done via DCD, the same imximage may be used for USB-startup and for installation. - Support for vendor specific ATAGs that are required for the Kindle-System. - usbserial barebox console access by pressing Select button at startup, alternatively full console support on connector J14. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel')
-rw-r--r--arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel b/arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel
new file mode 100644
index 0000000000..a43ee0cc92
--- /dev/null
+++ b/arch/arm/boards/kindle-mx50/defaultenv-kindle-mx50/boot/mmc_kernel
@@ -0,0 +1,15 @@
+#!/bin/sh
+# Boot the Amazon factory-shipped kernel uimage stored on
+# the eMMC at CONFIG_MMC_BOOTFLASH_ADDR 0x41000
+
+# Purge the OF tree to enable passing of ATAGs
+oftree -f
+
+# The same machine type introduced with freescale ENGR00124359
+armlinux_architecture=2955
+
+armlinux_system_serial="$global.board.ocotp_serial"
+
+global linux.bootargs.dyn.root="root=/dev/mmcblk0p1 rootwait ro"
+
+bootm -c /dev/disk0.kernel