* [PATCH 0/3] ARM: i.MX6Q: Add support for Embedsky E9 board, part 2
@ 2015-10-31 13:25 Anton Bondarenko
2015-10-31 13:25 ` [PATCH 1/3] embedsky-e9: defconfig for Embedsky E9 Anton Bondarenko
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Anton Bondarenko @ 2015-10-31 13:25 UTC (permalink / raw)
To: s.hauer, barebox
Added missing default config file and small cleanups in DTS.
Config is based on
http://lists.infradead.org/pipermail/barebox/2014-July/020025.html
from Andrey Panov.
Added barebox_update command for barebox self update.
WARNING: partition table need to be updated to avoid partition
table erase.
Anton Bondarenko (3):
embedsky-e9: defconfig for Embedsky E9
embedsky-e9: enable barebox_update command for booter update
embedsky-e9: cleanup and reorder DTS nodes
arch/arm/boards/embedsky-e9/board.c | 6 ++
arch/arm/configs/embedsky-e9_defconfig | 117 +++++++++++++++++++++++++++++++++
arch/arm/dts/imx6q-embedsky-e9.dtsi | 77 ++++++++++------------
3 files changed, 156 insertions(+), 44 deletions(-)
create mode 100644 arch/arm/configs/embedsky-e9_defconfig
--
2.6.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/3] embedsky-e9: defconfig for Embedsky E9
2015-10-31 13:25 [PATCH 0/3] ARM: i.MX6Q: Add support for Embedsky E9 board, part 2 Anton Bondarenko
@ 2015-10-31 13:25 ` Anton Bondarenko
2015-10-31 13:25 ` [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update Anton Bondarenko
2015-10-31 13:25 ` [PATCH 3/3] embedsky-e9: cleanup and reorder DTS nodes Anton Bondarenko
2 siblings, 0 replies; 6+ messages in thread
From: Anton Bondarenko @ 2015-10-31 13:25 UTC (permalink / raw)
To: s.hauer, barebox
It is a small board based on i.MX6 Quad with 2G of RAM.
http://en.embedsky.com/product_info.php?cateid=169&id=169
Signed-off-by: Andrey Panov <rockford@yandex.ru>
Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
---
arch/arm/configs/embedsky-e9_defconfig | 116 +++++++++++++++++++++++++++++++++
1 file changed, 116 insertions(+)
create mode 100644 arch/arm/configs/embedsky-e9_defconfig
diff --git a/arch/arm/configs/embedsky-e9_defconfig b/arch/arm/configs/embedsky-e9_defconfig
new file mode 100644
index 0000000..3dc0f3b
--- /dev/null
+++ b/arch/arm/configs/embedsky-e9_defconfig
@@ -0,0 +1,116 @@
+CONFIG_ARCH_IMX=y
+CONFIG_IMX_MULTI_BOARDS=y
+CONFIG_MACH_EMBEDSKY_E9=y
+CONFIG_IMX_IIM=y
+CONFIG_IMX_IIM_FUSE_BLOW=y
+CONFIG_IMX_OCOTP=y
+CONFIG_THUMB2_BAREBOX=y
+CONFIG_ARM_BOARD_APPEND_ATAG=y
+CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_ARM_UNWIND=y
+CONFIG_MMU=y
+CONFIG_TEXT_BASE=0x27800000
+CONFIG_MALLOC_SIZE=0x4000000
+CONFIG_EXPERIMENTAL=y
+CONFIG_MALLOC_TLSF=y
+CONFIG_KALLSYMS=y
+CONFIG_RELOCATABLE=y
+CONFIG_HUSH_FANCY_PROMPT=y
+CONFIG_CMDLINE_EDITING=y
+CONFIG_AUTO_COMPLETE=y
+CONFIG_MENU=y
+CONFIG_CONSOLE_ACTIVATE_ALL=y
+CONFIG_DEFAULT_COMPRESSION_LZO=y
+CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
+CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/embedsky-e9/env"
+CONFIG_BAREBOXENV_TARGET=y
+CONFIG_BAREBOXCRC32_TARGET=y
+CONFIG_RESET_SOURCE=y
+CONFIG_CMD_DMESG=y
+CONFIG_LONGHELP=y
+CONFIG_CMD_IOMEM=y
+CONFIG_CMD_MEMINFO=y
+CONFIG_CMD_ARM_MMUINFO=y
+CONFIG_CMD_BOOTM_SHOW_TYPE=y
+CONFI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CMD_OF_PROPERTY=y
+CONFIG_CMD_OFTREE=y
+CONFIG_CMD_TIME=y
+CONFIG_NET=y
+CONFIG_NET_NFS=y
+CONFIG_NET_NETCONSOLE=y
+CONFIG_OFDEVICE=y
+CONFIG_OF_BAREBOX_DRIVERS=y
+CONFIG_DRIVER_NET_FEC_IMX=y
+CONFIG_DRIVER_SPI_IMX=y
+CONFIG_I2C=y
+CONFIG_I2C_IMX=y
+CONFIG_MTD=y
+CONFIG_MCI=y
+CONFIG_MCI_STARTUP=y
+CONFIG_MCI_MMC_BOOT_PARTITIONS=y
+CONFIG_MCI_IMX_ESDHC=y
+CONFIG_SRAM=y
+CONFIG_MXS_APBH_DMA=y
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED=y
+CONFIG_FS_CRAMFS=y
+CONFIG_FS_EXT4=y
+CONFIG_FS_TFTP=y
+CONFIG_FS_NFS=y
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_WRITE=y
+CONFIG_FS_FAT_LFN=y
+CONFIG_FS_UIMAGEFS=y
+CONFIG_LZO_DECOMPRESS=y
--
2.6.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update
2015-10-31 13:25 [PATCH 0/3] ARM: i.MX6Q: Add support for Embedsky E9 board, part 2 Anton Bondarenko
2015-10-31 13:25 ` [PATCH 1/3] embedsky-e9: defconfig for Embedsky E9 Anton Bondarenko
@ 2015-10-31 13:25 ` Anton Bondarenko
2015-11-02 8:17 ` Sascha Hauer
2015-10-31 13:25 ` [PATCH 3/3] embedsky-e9: cleanup and reorder DTS nodes Anton Bondarenko
2 siblings, 1 reply; 6+ messages in thread
From: Anton Bondarenko @ 2015-10-31 13:25 UTC (permalink / raw)
To: s.hauer, barebox
Simplify booter update with barebox_update command.
NOTE: current MBR partition table will be overwritten.
Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
---
arch/arm/boards/embedsky-e9/board.c | 6 ++++++
arch/arm/configs/embedsky-e9_defconfig | 1 +
2 files changed, 7 insertions(+)
diff --git a/arch/arm/boards/embedsky-e9/board.c b/arch/arm/boards/embedsky-e9/board.c
index e8aac0c..3730985 100644
--- a/arch/arm/boards/embedsky-e9/board.c
+++ b/arch/arm/boards/embedsky-e9/board.c
@@ -41,6 +41,7 @@
#include <mach/usb.h>
#include <envfs.h>
#include <bootsource.h>
+#include <bbu.h>
#define PHY_ID_RTL8211E 0x001cc915
#define PHY_ID_MASK 0xffffffff
@@ -81,6 +82,11 @@ static int e9_devices_init(void)
defaultenv_append_directory(defaultenv_e9);
+ bbu_register_std_file_update("sdcard.barebox", 0, "/dev/mmc1.barebox",
+ filetype_arm_barebox);
+ bbu_register_std_file_update("emmc.barebox", 0, "/dev/mmc3.barebox",
+ filetype_arm_barebox);
+
return 0;
}
device_initcall(e9_devices_init);
diff --git a/arch/arm/configs/embedsky-e9_defconfig b/arch/arm/configs/embedsky-e9_defconfig
index 3dc0f3b..ed82563 100644
--- a/arch/arm/configs/embedsky-e9_defconfig
+++ b/arch/arm/configs/embedsky-e9_defconfig
@@ -83,6 +83,7 @@ CONFIG_CMD_FLASH=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_I2C=y
CONFIG_CMD_SPI=y
+CONFIG_CMD_BAREBOX_UPDATE=y
CONFIG_CMD_OF_NODE=y
CONFIG_CMD_OF_PROPERTY=y
CONFIG_CMD_OFTREE=y
--
2.6.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 3/3] embedsky-e9: cleanup and reorder DTS nodes
2015-10-31 13:25 [PATCH 0/3] ARM: i.MX6Q: Add support for Embedsky E9 board, part 2 Anton Bondarenko
2015-10-31 13:25 ` [PATCH 1/3] embedsky-e9: defconfig for Embedsky E9 Anton Bondarenko
2015-10-31 13:25 ` [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update Anton Bondarenko
@ 2015-10-31 13:25 ` Anton Bondarenko
2015-11-02 8:23 ` Sascha Hauer
2 siblings, 1 reply; 6+ messages in thread
From: Anton Bondarenko @ 2015-10-31 13:25 UTC (permalink / raw)
To: s.hauer, barebox
Removed duplicate ldb node. Removed disabled nodes
Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
---
arch/arm/dts/imx6q-embedsky-e9.dtsi | 77 ++++++++++++++++---------------------
1 file changed, 33 insertions(+), 44 deletions(-)
diff --git a/arch/arm/dts/imx6q-embedsky-e9.dtsi b/arch/arm/dts/imx6q-embedsky-e9.dtsi
index f117cae..e4d9c12 100644
--- a/arch/arm/dts/imx6q-embedsky-e9.dtsi
+++ b/arch/arm/dts/imx6q-embedsky-e9.dtsi
@@ -91,41 +91,6 @@
};
-&audmux {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_audmux>;
- status = "okay";
-};
-
-&fec {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_enet>;
- phy-mode = "rgmii";
- phy-supply=<®_3p3v>;
- status = "okay";
-};
-
-&i2c1 {
- clock-frequency = <100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c1>;
- status = "okay";
-
-};
-
-&i2c2 {
- clock-frequency = <100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c2>;
- status = "okay";
-};
-
-&i2c3 {
- clock-frequency = <100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c3>;
- status = "okay";
-};
&iomuxc {
pinctrl-names = "default";
@@ -302,7 +267,39 @@
};
};
-&ldb {
+&audmux {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_audmux>;
+ status = "okay";
+};
+
+&fec {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_enet>;
+ phy-mode = "rgmii";
+ phy-supply=<®_3p3v>;
+ status = "okay";
+};
+
+&i2c1 {
+ clock-frequency = <100000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c1>;
+ status = "okay";
+
+};
+
+&i2c2 {
+ clock-frequency = <100000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c2>;
+ status = "okay";
+};
+
+&i2c3 {
+ clock-frequency = <100000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";
};
@@ -382,11 +379,3 @@
&sata {
status = "okay";
};
-
-&usdhc3 {
- status = "disabled";
-};
-
-&ecspi1 {
- status = "disabled";
-};
--
2.6.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update
2015-10-31 13:25 ` [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update Anton Bondarenko
@ 2015-11-02 8:17 ` Sascha Hauer
0 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2015-11-02 8:17 UTC (permalink / raw)
To: Anton Bondarenko; +Cc: barebox
On Sat, Oct 31, 2015 at 02:25:08PM +0100, Anton Bondarenko wrote:
> Simplify booter update with barebox_update command.
> NOTE: current MBR partition table will be overwritten.
>
> Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
> ---
> arch/arm/boards/embedsky-e9/board.c | 6 ++++++
> arch/arm/configs/embedsky-e9_defconfig | 1 +
> 2 files changed, 7 insertions(+)
>
> diff --git a/arch/arm/boards/embedsky-e9/board.c b/arch/arm/boards/embedsky-e9/board.c
> index e8aac0c..3730985 100644
> --- a/arch/arm/boards/embedsky-e9/board.c
> +++ b/arch/arm/boards/embedsky-e9/board.c
> @@ -41,6 +41,7 @@
> #include <mach/usb.h>
> #include <envfs.h>
> #include <bootsource.h>
> +#include <bbu.h>
>
> #define PHY_ID_RTL8211E 0x001cc915
> #define PHY_ID_MASK 0xffffffff
> @@ -81,6 +82,11 @@ static int e9_devices_init(void)
>
> defaultenv_append_directory(defaultenv_e9);
>
> + bbu_register_std_file_update("sdcard.barebox", 0, "/dev/mmc1.barebox",
> + filetype_arm_barebox);
> + bbu_register_std_file_update("emmc.barebox", 0, "/dev/mmc3.barebox",
> + filetype_arm_barebox);
Please use imx6_bbu_internal_mmc_register_handler(). This will not
overwrite the partition table.
Sascha
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] embedsky-e9: cleanup and reorder DTS nodes
2015-10-31 13:25 ` [PATCH 3/3] embedsky-e9: cleanup and reorder DTS nodes Anton Bondarenko
@ 2015-11-02 8:23 ` Sascha Hauer
0 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2015-11-02 8:23 UTC (permalink / raw)
To: Anton Bondarenko; +Cc: barebox
On Sat, Oct 31, 2015 at 02:25:09PM +0100, Anton Bondarenko wrote:
> Removed duplicate ldb node. Removed disabled nodes
>
> Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
> ---
> arch/arm/dts/imx6q-embedsky-e9.dtsi | 77 ++++++++++++++++---------------------
> 1 file changed, 33 insertions(+), 44 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/arch/arm/dts/imx6q-embedsky-e9.dtsi b/arch/arm/dts/imx6q-embedsky-e9.dtsi
> index f117cae..e4d9c12 100644
> --- a/arch/arm/dts/imx6q-embedsky-e9.dtsi
> +++ b/arch/arm/dts/imx6q-embedsky-e9.dtsi
> @@ -91,41 +91,6 @@
>
> };
>
> -&audmux {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_audmux>;
> - status = "okay";
> -};
> -
> -&fec {
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_enet>;
> - phy-mode = "rgmii";
> - phy-supply=<®_3p3v>;
> - status = "okay";
> -};
> -
> -&i2c1 {
> - clock-frequency = <100000>;
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_i2c1>;
> - status = "okay";
> -
> -};
> -
> -&i2c2 {
> - clock-frequency = <100000>;
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_i2c2>;
> - status = "okay";
> -};
> -
> -&i2c3 {
> - clock-frequency = <100000>;
> - pinctrl-names = "default";
> - pinctrl-0 = <&pinctrl_i2c3>;
> - status = "okay";
> -};
>
> &iomuxc {
> pinctrl-names = "default";
> @@ -302,7 +267,39 @@
> };
> };
>
> -&ldb {
> +&audmux {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_audmux>;
> + status = "okay";
> +};
> +
> +&fec {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_enet>;
> + phy-mode = "rgmii";
> + phy-supply=<®_3p3v>;
> + status = "okay";
> +};
> +
> +&i2c1 {
> + clock-frequency = <100000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_i2c1>;
> + status = "okay";
> +
> +};
> +
> +&i2c2 {
> + clock-frequency = <100000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_i2c2>;
> + status = "okay";
> +};
> +
> +&i2c3 {
> + clock-frequency = <100000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_i2c3>;
> status = "okay";
> };
>
> @@ -382,11 +379,3 @@
> &sata {
> status = "okay";
> };
> -
> -&usdhc3 {
> - status = "disabled";
> -};
> -
> -&ecspi1 {
> - status = "disabled";
> -};
> --
> 2.6.2
>
>
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-11-02 8:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-31 13:25 [PATCH 0/3] ARM: i.MX6Q: Add support for Embedsky E9 board, part 2 Anton Bondarenko
2015-10-31 13:25 ` [PATCH 1/3] embedsky-e9: defconfig for Embedsky E9 Anton Bondarenko
2015-10-31 13:25 ` [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update Anton Bondarenko
2015-11-02 8:17 ` Sascha Hauer
2015-10-31 13:25 ` [PATCH 3/3] embedsky-e9: cleanup and reorder DTS nodes Anton Bondarenko
2015-11-02 8:23 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox