* [meta-fsl-arm-extra][PATCHv2 0/4] Add support for the Crystalfontz boards
@ 2013-08-23 16:28 Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 1/4] barebox 2013.08.0: add support for the cfa10036 Alexandre Belloni
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Alexandre Belloni @ 2013-08-23 16:28 UTC (permalink / raw)
To: meta-freescale; +Cc: Maxime Ripard, jimwall, brian
The following series adds support for the various CrystalFontz boards:
cfa-10036
cfa-10037
cfa-10049
cfa-10055
cfa-10056
cfa-10057
cfa-10058
The first patch adds support for the mainline barebox.
The second patch adds support for the imx-bootlets.
The third patch adds a recipe for the cfa kernel, based on 3.10.
The last patch adds the machine configuration. It is named cfa10036 as this is
the base for all the other boards.
This series depends on my series on meta-fsl-arm
Changes in v2:
- Took into account all the comments but kept the link creation for the kernel
and the dtbs.
Alexandre Belloni (4):
barebox 2013.08.0: add support for the cfa10036
imx-bootlets: add a recipe for barebox and cfa-10036 support
linux-cfa: add a kernel recipe supporting Crystalfontz boards
cfa10036: Add cfa10036 machine configuration
conf/machine/cfa10036.conf | 38 +++
.../barebox/barebox-2013.08.0/cfa10036/defconfig | 44 ++++
recipes-bsp/barebox/barebox_2013.08.0.bbappend | 3 +
.../imx-bootlets/cfa10036-support.patch | 271 +++++++++++++++++++++
.../imx-bootlets/imx-bootlets_10.12.01.bbappend | 4 +-
recipes-kernel/linux/linux-cfa-3.10/defconfig | 177 ++++++++++++++
recipes-kernel/linux/linux-cfa_3.10.bb | 33 +++
7 files changed, 569 insertions(+), 1 deletion(-)
create mode 100644 conf/machine/cfa10036.conf
create mode 100644 recipes-bsp/barebox/barebox-2013.08.0/cfa10036/defconfig
create mode 100644 recipes-bsp/barebox/barebox_2013.08.0.bbappend
create mode 100644 recipes-bsp/imx-bootlets/imx-bootlets/cfa10036-support.patch
create mode 100644 recipes-kernel/linux/linux-cfa-3.10/defconfig
create mode 100644 recipes-kernel/linux/linux-cfa_3.10.bb
--
1.8.1.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [meta-fsl-arm-extra][PATCHv2 1/4] barebox 2013.08.0: add support for the cfa10036
2013-08-23 16:28 [meta-fsl-arm-extra][PATCHv2 0/4] Add support for the Crystalfontz boards Alexandre Belloni
@ 2013-08-23 16:28 ` Alexandre Belloni
2013-08-24 18:22 ` Otavio Salvador
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support Alexandre Belloni
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Alexandre Belloni @ 2013-08-23 16:28 UTC (permalink / raw)
To: meta-freescale; +Cc: Maxime Ripard, jimwall, brian
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
.../barebox/barebox-2013.08.0/cfa10036/defconfig | 44 ++++++++++++++++++++++
recipes-bsp/barebox/barebox_2013.08.0.bbappend | 3 ++
2 files changed, 47 insertions(+)
create mode 100644 recipes-bsp/barebox/barebox-2013.08.0/cfa10036/defconfig
create mode 100644 recipes-bsp/barebox/barebox_2013.08.0.bbappend
diff --git a/recipes-bsp/barebox/barebox-2013.08.0/cfa10036/defconfig b/recipes-bsp/barebox/barebox-2013.08.0/cfa10036/defconfig
new file mode 100644
index 0000000..277a3ec
--- /dev/null
+++ b/recipes-bsp/barebox/barebox-2013.08.0/cfa10036/defconfig
@@ -0,0 +1,44 @@
+CONFIG_ARCH_MXS=y
+CONFIG_ARCH_IMX28=y
+CONFIG_MACH_CFA10036=y
+CONFIG_AEABI=y
+CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_MMU=y
+CONFIG_TEXT_BASE=0x43000000
+CONFIG_MALLOC_SIZE=0x800000
+CONFIG_BROKEN=y
+CONFIG_LONGHELP=y
+CONFIG_HUSH_FANCY_PROMPT=y
+CONFIG_CMDLINE_EDITING=y
+CONFIG_AUTO_COMPLETE=y
+CONFIG_CONSOLE_ACTIVATE_ALL=y
+CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
+CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/crystalfontz-cfa10036/env"
+CONFIG_DEBUG_INFO=y
+CONFIG_CMD_EDIT=y
+CONFIG_CMD_SLEEP=y
+CONFIG_CMD_SAVEENV=y
+CONFIG_CMD_EXPORT=y
+CONFIG_CMD_PRINTENV=y
+CONFIG_CMD_READLINE=y
+CONFIG_CMD_MENU=y
+CONFIG_CMD_MENU_MANAGEMENT=y
+CONFIG_CMD_ECHO_E=y
+CONFIG_CMD_MTEST=y
+CONFIG_CMD_MTEST_ALTERNATIVE=y
+CONFIG_CMD_BOOTM_SHOW_TYPE=y
+CONFIG_CMD_BOOTM_OFTREE=y
+CONFIG_CMD_RESET=y
+CONFIG_CMD_GO=y
+CONFIG_CMD_OFTREE=y
+CONFIG_CMD_TIMEOUT=y
+CONFIG_CMD_PARTITION=y
+CONFIG_CMD_GPIO=y
+# CONFIG_SPI is not set
+CONFIG_I2C=y
+CONFIG_MCI=y
+CONFIG_MCI_STARTUP=y
+CONFIG_MCI_MXS=y
+CONFIG_FS_EXT4=y
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_LFN=y
diff --git a/recipes-bsp/barebox/barebox_2013.08.0.bbappend b/recipes-bsp/barebox/barebox_2013.08.0.bbappend
new file mode 100644
index 0000000..90ed76a
--- /dev/null
+++ b/recipes-bsp/barebox/barebox_2013.08.0.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
+
+PRINC := "${@int(PRINC) + 1}"
--
1.8.1.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support
2013-08-23 16:28 [meta-fsl-arm-extra][PATCHv2 0/4] Add support for the Crystalfontz boards Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 1/4] barebox 2013.08.0: add support for the cfa10036 Alexandre Belloni
@ 2013-08-23 16:28 ` Alexandre Belloni
2013-08-24 18:24 ` Otavio Salvador
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 3/4] linux-cfa: add a kernel recipe supporting Crystalfontz boards Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 4/4] cfa10036: Add cfa10036 machine configuration Alexandre Belloni
3 siblings, 1 reply; 10+ messages in thread
From: Alexandre Belloni @ 2013-08-23 16:28 UTC (permalink / raw)
To: meta-freescale; +Cc: Maxime Ripard, jimwall, brian
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
.../imx-bootlets/cfa10036-support.patch | 271 +++++++++++++++++++++
.../imx-bootlets/imx-bootlets_10.12.01.bbappend | 4 +-
2 files changed, 274 insertions(+), 1 deletion(-)
create mode 100644 recipes-bsp/imx-bootlets/imx-bootlets/cfa10036-support.patch
diff --git a/recipes-bsp/imx-bootlets/imx-bootlets/cfa10036-support.patch b/recipes-bsp/imx-bootlets/imx-bootlets/cfa10036-support.patch
new file mode 100644
index 0000000..9483af4
--- /dev/null
+++ b/recipes-bsp/imx-bootlets/imx-bootlets/cfa10036-support.patch
@@ -0,0 +1,271 @@
+Add cfa10036 support
+
+Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
+
+diff --git a/Makefile b/Makefile
+index 367738c..a9c5d21 100644
+--- a/Makefile
++++ b/Makefile
+@@ -16,6 +16,9 @@ endif
+ ifeq ($(BOARD), iMX28_EVK)
+ ARCH = mx28
+ endif
++ifeq ($(BOARD), cfa10036)
++ARCH = mx28
++endif
+
+ all: build_prep gen_bootstream
+
+diff --git a/boot_prep/Makefile b/boot_prep/Makefile
+index 0267ede..86570fc 100644
+--- a/boot_prep/Makefile
++++ b/boot_prep/Makefile
+@@ -23,6 +23,30 @@ MEM_TYPE ?= MEM_DDR1
+ CFLAGS = -g -Wall -I$(INCLUDEDIR) -I$(INCLUDEDIR)/mach -I./ -O -D$(MEM_TYPE)
+ LDFLAGS = -static -nostdlib -T $(BOOT_LAYOUT)
+
++# The board defines STMP CPU family and peripherial components
++# So, set ARCH and HW_OBJS variables for each supported board
++# separately.
++ifeq ($(BOARD), stmp37xx_dev)
++ARCH = 37xx
++HW_OBJS = $(LRADC_OBJS)
++CFLAGS += -DSTMP37XX -DBOARD_STMP37XX_DEV
++endif
++ifeq ($(BOARD), stmp378x_dev)
++ARCH = mx23
++HW_OBJS = $(LRADC_OBJS)
++CFLAGS += -DSTMP378X -DBOARD_STMP378X_DEV
++endif
++ifeq ($(BOARD), iMX28_EVK)
++ARCH = mx28
++HW_OBJS = $(LRADC_OBJS)
++CFLAGS += -DMX28 -DBOARD_MX28_EVK
++endif
++ifeq ($(BOARD), cfa10036)
++ARCH = mx28
++HW_OBJS = $(LRADC_OBJS)
++CFLAGS += -DMX28 -DBOARD_CFA10036
++endif
++
+ # Generic code
+ CORE_OBJS = init-$(ARCH).o debug.o
+
+diff --git a/boot_prep/init-mx28.c b/boot_prep/init-mx28.c
+index a1e4752..480a1c2 100644
+--- a/boot_prep/init-mx28.c
++++ b/boot_prep/init-mx28.c
+@@ -752,17 +752,17 @@ void DDR2EmiController_EDE1116_200MHz(void)
+ DRAM_REG[24] = 0x00000000;
+ DRAM_REG[25] = 0x00000000;
+ DRAM_REG[26] = 0x00010101;
+- DRAM_REG[27] = 0x01010101;
++ DRAM_REG[27] = 0x01010101; // 0000000 1 0000000 1 0000000 1 0000000 1
+ DRAM_REG[28] = 0x000f0f01;
+- DRAM_REG[29] = 0x0f02020a;
++ DRAM_REG[29] = 0x0f02010a; // 0000 1111 00000 010 00000 001 0000 1010
+ DRAM_REG[30] = 0x00000000;
+- DRAM_REG[31] = 0x00010101;
+- DRAM_REG[32] = 0x00000100;
++ DRAM_REG[31] = 0x00010101; // 000000000000000 1(8 banks) 0000000 1 0000000 1
++ DRAM_REG[32] = 0x00000100; // 0000000000000000 0000000 1(REDUC) 0000000 0(REG_DIMM_ENABLE)
+ DRAM_REG[33] = 0x00000100;
+ DRAM_REG[34] = 0x00000000;
+- DRAM_REG[35] = 0x00000002;
++ DRAM_REG[35] = 0x00000002; // 000000000000000 0 0000000 0 0000 0010
+ DRAM_REG[36] = 0x01010000;
+- DRAM_REG[37] = 0x07080403;
++ DRAM_REG[37] = 0x07080503; // 0000 0111 0000 1000 00000 101(CAS5) 0000 0011
+ DRAM_REG[38] = 0x06005003;
+ DRAM_REG[39] = 0x0a0000c8;
+ DRAM_REG[40] = 0x02009c40;
+@@ -1300,12 +1300,54 @@ void poweron_vdda()
+ HW_POWER_VDDACTRL_WR( BF_POWER_VDDACTRL_TRG(0xC) | BF_POWER_VDDACTRL_BO_OFFSET(7)
+ | BF_POWER_VDDACTRL_LINREG_OFFSET(2) );
+ }
++
++/*
++ * Check memory range for valid RAM. A simple memory test determines
++ * the actually available RAM size between addresses `base' and
++ * `base + maxsize'.
++ * Copied and pasted from barebox common/memsize.c file
++ */
++long get_ram_size(long *base, long maxsize)
++{
++ volatile long *addr;
++ long cnt;
++ long val;
++ long size;
++ int i = 0;
++
++ for (cnt = (maxsize / sizeof (long)) >> 1; cnt > 0; cnt >>= 1) {
++ addr = base + cnt; /* pointer arith! */
++ *addr = ~cnt;
++ }
++
++ addr = base;
++ *addr = 0;
++
++ for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
++ addr = base + cnt; /* pointer arith! */
++ val = *addr;
++ if (val != ~cnt) {
++ size = cnt * sizeof (long);
++ return (size);
++ }
++ }
++
++ return (maxsize);
++}
++
+ int _start(int arg)
+ {
+ unsigned int value;
+- volatile int *pTest = 0x40000000;
+- int i;
+-
++ int memsize;
++
++#ifdef BOARD_CFA10036
++ /* Remove all the previous DUART muxing */
++ HW_PINCTRL_MUXSEL6_CLR((3 << 4) | (3 << 6));
++ HW_PINCTRL_MUXSEL7_CLR((3 << 0) | (3 << 2));
++ HW_PINCTRL_MUXSEL7_CLR((3 << 16) | (3 << 18));
++ /* Mux only the DUART to pins actually used for this function */
++ HW_PINCTRL_MUXSEL6_SET((2 << 4) | (2 << 6));
++#else
+ //boot rom wrong use debug uart port.
+ //If fuse burned, the below two line can be removed.
+ HW_PINCTRL_MUXSEL7_CLR(0xF);
+@@ -1315,6 +1357,7 @@ int _start(int arg)
+ * which cause uboot can't input
+ */
+ HW_PINCTRL_MUXSEL7_SET(0x30000);
++#endif
+
+ #ifdef MEM_MDDR
+ /* set to mddr mode*/
+@@ -1374,28 +1417,8 @@ int _start(int arg)
+
+ change_cpu_freq();
+
+-#if 0
+- for (i = 0; i <= 40; i++) {
+- printf("mem %x - 0x%x\r\n",
+- i, *(volatile int*)(0x800E0000 + i * 4));
+- }
+-#endif
+-
+- /*Test Memory;*/
+- printf("start test memory accress\r\n");
+- printf("ddr2 0x%x\r\n", pTest);
+- for (i = 0; i < 1000; i++)
+- *pTest++ = i;
+-
+- pTest = (volatile int *)0x40000000;
+-
+- for (i = 0; i < 1000; i++) {
+- if (*pTest != (i)) {
+- printf("0x%x error value 0x%x\r\n", i, *pTest);
+- }
+- pTest++;
+- }
+- printf("finish simple test\r\n");
++ memsize = get_ram_size((long *)0x40000000, 0x10000000);
++ printf("finish simple test memory size = 0x%xMB\r\n", memsize >> 20);
+ return 0;
+ }
+
+diff --git a/linux_prep/Makefile b/linux_prep/Makefile
+index 19b02a9..b33e4c1 100644
+--- a/linux_prep/Makefile
++++ b/linux_prep/Makefile
+@@ -69,6 +69,11 @@ ARCH = mx28
+ HW_OBJS = $(LRADC_OBJS)
+ CFLAGS += -DMX28 -DBOARD_MX28_EVK
+ endif
++ifeq ($(BOARD), cfa10036)
++ARCH = mx28
++HW_OBJS = $(LRADC_OBJS)
++CFLAGS += -DMX28 -DBOARD_CFA10036
++endif
+
+ # Generic code
+ CORE_OBJS = entry.o resume.o cmdlines.o setup.o keys.o
+diff --git a/linux_prep/board/cfa10036.c b/linux_prep/board/cfa10036.c
+new file mode 100644
+index 0000000..b084ed4
+--- /dev/null
++++ b/linux_prep/board/cfa10036.c
+@@ -0,0 +1,51 @@
++/*
++ * Platform specific data for the STMP37XX development board
++ *
++ * Vladislav Buzov <vbuzov@embeddedalley.com>
++ *
++ * Copyright 2008 SigmaTel, Inc
++ * Copyright 2008 Embedded Alley Solutions, Inc
++ * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.
++ *
++ * This file is licensed under the terms of the GNU General Public License
++ * version 2. This program is licensed "as is" without any warranty of any
++ * kind, whether express or implied.
++ */
++#include <setup.h>
++#include <keys.h>
++#include <lradc_buttons.h>
++
++/************************************************
++ * LRADC keyboard data *
++ ************************************************/
++int lradc_keypad_ch = LRADC_CH1;
++int lradc_vddio_ch = LRADC_CH10;
++
++struct lradc_keycode lradc_keycodes[] = {
++ { 100, KEY4 },
++ { 306, KEY5 },
++ { 626, KEY6 },
++ { 932, KEY7 },
++ { 1260, KEY8 },
++ { 1584, KEY9 },
++ { 1757, KEY10 },
++ { 2207, KEY11 },
++ { 2525, KEY12 },
++ { 2831, KEY13 },
++ { 3134, KEY14 },
++ { -1, 0 },
++};
++
++/************************************************
++ * Magic key combinations for Armadillo *
++ ************************************************/
++u32 magic_keys[MAGIC_KEY_NR] = {
++ [MAGIC_KEY1] = KEY4,
++ [MAGIC_KEY2] = KEY6,
++ [MAGIC_KEY3] = KEY10,
++};
++
++/************************************************
++ * Default command line *
++ ************************************************/
++char cmdline_def[] = "console=ttyAMA0,115200";
+diff --git a/linux_prep/cmdlines/cfa10036.txt b/linux_prep/cmdlines/cfa10036.txt
+new file mode 100644
+index 0000000..486ffe8
+--- /dev/null
++++ b/linux_prep/cmdlines/cfa10036.txt
+@@ -0,0 +1 @@
++console=ttyAMA0,115200 root=/dev/mmcblk0p3 rw rootwait
+diff --git a/linux_prep/include/mx28/platform.h b/linux_prep/include/mx28/platform.h
+index d4063f8..3d1f1d7 100644
+--- a/linux_prep/include/mx28/platform.h
++++ b/linux_prep/include/mx28/platform.h
+@@ -19,6 +19,8 @@
+
+ #if defined (BOARD_MX28_EVK)
+ #define MACHINE_ID 2531
++#elif defined (BOARD_CFA10036)
++#define MACHINE_ID 4142
+ #else
+ #error "Allocate a machine ID for your board"
+ #endif
diff --git a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
index 8f39b93..110b619 100644
--- a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
+++ b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
@@ -1,6 +1,8 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-PRINC := "${@int(PRINC) + 2}"
+PRINC := "${@int(PRINC) + 3}"
# Board specific patches
SRC_URI_append_imx233-olinuxino = " file://imx233-olinuxino.patch"
+
+SRC_URI_append_cfa10036 = " file://cfa10036-support.patch"
\ No newline at end of file
--
1.8.1.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm-extra][PATCHv2 3/4] linux-cfa: add a kernel recipe supporting Crystalfontz boards
2013-08-23 16:28 [meta-fsl-arm-extra][PATCHv2 0/4] Add support for the Crystalfontz boards Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 1/4] barebox 2013.08.0: add support for the cfa10036 Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support Alexandre Belloni
@ 2013-08-23 16:28 ` Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 4/4] cfa10036: Add cfa10036 machine configuration Alexandre Belloni
3 siblings, 0 replies; 10+ messages in thread
From: Alexandre Belloni @ 2013-08-23 16:28 UTC (permalink / raw)
To: meta-freescale; +Cc: Maxime Ripard, jimwall, brian
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
recipes-kernel/linux/linux-cfa-3.10/defconfig | 177 ++++++++++++++++++++++++++
recipes-kernel/linux/linux-cfa_3.10.bb | 33 +++++
2 files changed, 210 insertions(+)
create mode 100644 recipes-kernel/linux/linux-cfa-3.10/defconfig
create mode 100644 recipes-kernel/linux/linux-cfa_3.10.bb
diff --git a/recipes-kernel/linux/linux-cfa-3.10/defconfig b/recipes-kernel/linux/linux-cfa-3.10/defconfig
new file mode 100644
index 0000000..ab8732e
--- /dev/null
+++ b/recipes-kernel/linux/linux-cfa-3.10/defconfig
@@ -0,0 +1,177 @@
+CONFIG_SYSVIPC=y
+CONFIG_NO_HZ=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_TASKSTATS=y
+CONFIG_TASK_DELAY_ACCT=y
+CONFIG_TASK_XACCT=y
+CONFIG_TASK_IO_ACCOUNTING=y
+CONFIG_IKCONFIG=y
+CONFIG_IKCONFIG_PROC=y
+# CONFIG_UTS_NS is not set
+# CONFIG_IPC_NS is not set
+# CONFIG_PID_NS is not set
+# CONFIG_NET_NS is not set
+CONFIG_PERF_EVENTS=y
+# CONFIG_COMPAT_BRK is not set
+CONFIG_MODULES=y
+CONFIG_MODULE_FORCE_LOAD=y
+CONFIG_MODULE_UNLOAD=y
+CONFIG_MODULE_FORCE_UNLOAD=y
+CONFIG_MODVERSIONS=y
+CONFIG_BLK_DEV_INTEGRITY=y
+# CONFIG_IOSCHED_DEADLINE is not set
+# CONFIG_IOSCHED_CFQ is not set
+# CONFIG_ARCH_MULTI_V7 is not set
+CONFIG_GPIO_PCA953X=y
+CONFIG_ARCH_MXS=y
+# CONFIG_ARM_THUMB is not set
+CONFIG_PREEMPT_VOLUNTARY=y
+CONFIG_AEABI=y
+# CONFIG_COMPACTION is not set
+CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
+CONFIG_FPE_NWFPE=y
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_INET=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
+CONFIG_SYN_COOKIES=y
+# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
+# CONFIG_INET_XFRM_MODE_TUNNEL is not set
+# CONFIG_INET_XFRM_MODE_BEET is not set
+# CONFIG_INET_LRO is not set
+# CONFIG_INET_DIAG is not set
+# CONFIG_IPV6 is not set
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+# CONFIG_FIRMWARE_IN_KERNEL is not set
+CONFIG_CMA=y
+# CONFIG_BLK_DEV is not set
+CONFIG_CFAFIQ=y
+CONFIG_SCSI=y
+CONFIG_BLK_DEV_SD=y
+CONFIG_NETDEVICES=y
+CONFIG_MII=y
+CONFIG_ENC28J60=y
+# CONFIG_WLAN is not set
+# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
+CONFIG_INPUT_EVDEV=y
+CONFIG_INPUT_EVBUG=y
+# CONFIG_KEYBOARD_ATKBD is not set
+CONFIG_KEYBOARD_GPIO=y
+# CONFIG_INPUT_MOUSE is not set
+CONFIG_INPUT_MISC=y
+CONFIG_INPUT_GPIO_ROTARY_ENCODER=y
+# CONFIG_SERIO is not set
+CONFIG_VT_HW_CONSOLE_BINDING=y
+CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
+# CONFIG_LEGACY_PTYS is not set
+# CONFIG_DEVKMEM is not set
+CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+# CONFIG_HW_RANDOM is not set
+CONFIG_I2C=y
+# CONFIG_I2C_COMPAT is not set
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_GPIO=y
+CONFIG_I2C_GPIO=y
+CONFIG_I2C_MXS=y
+CONFIG_SPI=y
+CONFIG_SPI_GPIO=y
+CONFIG_SPI_MXS=y
+CONFIG_SPI_SPIDEV=y
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_PCA953X_IRQ=y
+CONFIG_GPIO_74X164=y
+CONFIG_W1=y
+CONFIG_W1_MASTER_GPIO=y
+CONFIG_W1_SLAVE_THERM=y
+CONFIG_SENSORS_IIO_HWMON=y
+CONFIG_SENSORS_MXS_CPU=y
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
+CONFIG_FB=y
+CONFIG_FB_MXS=y
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
+CONFIG_LCD_CLASS_DEVICE=y
+CONFIG_LCD_HX8357=y
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+# CONFIG_BACKLIGHT_GENERIC is not set
+CONFIG_BACKLIGHT_PWM=y
+CONFIG_FB_SSD1307=y
+CONFIG_SOUND=y
+CONFIG_SND=y
+CONFIG_SND_SOC=y
+CONFIG_SND_MXS_SOC=y
+CONFIG_SND_SOC_MXS_SGTL5000=y
+CONFIG_HID_LOGITECH_DJ=m
+CONFIG_USB=y
+CONFIG_USB_DEBUG=y
+CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_ACM=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_STORAGE_DEBUG=y
+CONFIG_USB_CHIPIDEA=y
+CONFIG_USB_CHIPIDEA_UDC=y
+CONFIG_USB_CHIPIDEA_HOST=y
+CONFIG_USB_CHIPIDEA_DEBUG=y
+CONFIG_USB_PHY=y
+CONFIG_USB_MXS_PHY=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_ETH=y
+CONFIG_USB_ETH_EEM=y
+CONFIG_MMC=y
+CONFIG_MMC_MXS=y
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_HEARTBEAT=y
+CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_DS1307=m
+CONFIG_DMADEVICES=y
+CONFIG_MXS_DMA=y
+CONFIG_STAGING=y
+CONFIG_MXS_LRADC=y
+CONFIG_IIO=y
+CONFIG_NAU7802=y
+CONFIG_PWM_MXS=y
+CONFIG_EXT3_FS=y
+# CONFIG_DNOTIFY is not set
+CONFIG_FSCACHE=m
+CONFIG_FSCACHE_STATS=y
+CONFIG_CACHEFILES=m
+CONFIG_TMPFS=y
+CONFIG_TMPFS_POSIX_ACL=y
+# CONFIG_MISC_FILESYSTEMS is not set
+CONFIG_NFS_FS=y
+CONFIG_NFS_V3_ACL=y
+CONFIG_NFS_V4=y
+CONFIG_ROOT_NFS=y
+CONFIG_PRINTK_TIME=y
+CONFIG_FRAME_WARN=2048
+CONFIG_MAGIC_SYSRQ=y
+CONFIG_UNUSED_SYMBOLS=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_LOCKUP_DETECTOR=y
+CONFIG_TIMER_STATS=y
+CONFIG_PROVE_LOCKING=y
+CONFIG_DEBUG_INFO=y
+CONFIG_BLK_DEV_IO_TRACE=y
+CONFIG_STRICT_DEVMEM=y
+CONFIG_DEBUG_USER=y
+CONFIG_DEBUG_LL=y
+CONFIG_DEBUG_IMX28_UART=y
+CONFIG_EARLY_PRINTK=y
+CONFIG_CRYPTO_CRC32C=m
+CONFIG_CRYPTO_ARC4=y
+# CONFIG_CRYPTO_ANSI_CPRNG is not set
+# CONFIG_CRYPTO_HW is not set
+CONFIG_CRC16=y
+CONFIG_CRC_ITU_T=m
+CONFIG_CRC7=m
+CONFIG_AVERAGE=y
diff --git a/recipes-kernel/linux/linux-cfa_3.10.bb b/recipes-kernel/linux/linux-cfa_3.10.bb
new file mode 100644
index 0000000..2c2a723
--- /dev/null
+++ b/recipes-kernel/linux/linux-cfa_3.10.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "Linux kernel for Crystalfontz boards"
+SECTion = "kernel"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+inherit kernel
+require recipes-kernel/linux/linux-dtb.inc
+
+SRC_URI = "git://github.com/crystalfontz/cfa_10036_kernel \
+ file://defconfig"
+
+SRCREV = "552d876f4737ffeb18c9139ede3c439bdcafca94"
+
+S = "${WORKDIR}/git"
+
+# create symlinks that are the defaults of barebox
+pkg_postinst_kernel-devicetree_append () {
+ for DTB_FILE in ${KERNEL_DEVICETREE}
+ do
+ DTB_BASE_NAME=`basename ${DTB_FILE} | awk -F "." '{print $1}'`
+ DTB_BOARD_NAME=`echo ${DTB_BASE_NAME} | awk -F "-" '{print $2}'`
+ DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
+ update-alternatives --install /${KERNEL_IMAGEDEST}/oftree-${DTB_BOARD_NAME} oftree-${DTB_BOARD_NAME} devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
+ done
+}
+
+pkg_postinst_kernel-image_append () {
+ update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${MACHINE} ${KERNEL_IMAGETYPE}-${MACHINE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
+}
+
+COMPATIBLE_MACHINE = "cfa10036"
+
--
1.8.1.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [meta-fsl-arm-extra][PATCHv2 4/4] cfa10036: Add cfa10036 machine configuration
2013-08-23 16:28 [meta-fsl-arm-extra][PATCHv2 0/4] Add support for the Crystalfontz boards Alexandre Belloni
` (2 preceding siblings ...)
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 3/4] linux-cfa: add a kernel recipe supporting Crystalfontz boards Alexandre Belloni
@ 2013-08-23 16:28 ` Alexandre Belloni
2013-08-24 18:29 ` Otavio Salvador
3 siblings, 1 reply; 10+ messages in thread
From: Alexandre Belloni @ 2013-08-23 16:28 UTC (permalink / raw)
To: meta-freescale; +Cc: Maxime Ripard, jimwall, brian
This configuration supports the following Crystalfontz boards:
- cfa-10036
- cfa-10037
- cfa-10049
- cfa-10055
- cfa-10056
- cfa-10057
- cfa-10058
which are all based on the cfa-10036.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
conf/machine/cfa10036.conf | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 conf/machine/cfa10036.conf
diff --git a/conf/machine/cfa10036.conf b/conf/machine/cfa10036.conf
new file mode 100644
index 0000000..aa6c9d2
--- /dev/null
+++ b/conf/machine/cfa10036.conf
@@ -0,0 +1,38 @@
+#@TYPE: Machine
+#@NAME: Crystalfontz CFA-10036
+#@SOC: i.MX28
+#@DESCRIPTION: Machine configuration for CFA-10036
+
+include conf/machine/include/mxs-base.inc
+
+SOC_FAMILY = "mxs:mx28"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-cfa"
+PREFERRED_VERSION_barebox = "2013.08.0"
+
+IMAGE_BOOTLOADER = "barebox"
+BAREBOX_BINARY = "barebox"
+
+IMXBOOTLETS_MACHINE = "cfa10036"
+
+KERNEL_IMAGETYPE = "zImage"
+KERNEL_DEVICETREE = "imx28-cfa10036.dtb"
+KERNEL_DEVICETREE += "imx28-cfa10037.dtb"
+KERNEL_DEVICETREE += "imx28-cfa10049.dtb"
+KERNEL_DEVICETREE += "imx28-cfa10055.dtb"
+KERNEL_DEVICETREE += "imx28-cfa10056.dtb"
+KERNEL_DEVICETREE += "imx28-cfa10057.dtb"
+KERNEL_DEVICETREE += "imx28-cfa10058.dtb"
+
+#we need the kernel to be installed in the final image
+IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
+
+SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
+IMAGE_FSTYPES ?= "tar.bz2 ext3 barebox.mxsboot-sdcard sdcard"
+
+SERIAL_CONSOLE = "115200 ttyAMA0"
+
+MACHINE_FEATURES = "apm usbgadget usbhost vfat"
+
+# Gstreamer plugin
+MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin"
--
1.8.1.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm-extra][PATCHv2 1/4] barebox 2013.08.0: add support for the cfa10036
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 1/4] barebox 2013.08.0: add support for the cfa10036 Alexandre Belloni
@ 2013-08-24 18:22 ` Otavio Salvador
0 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2013-08-24 18:22 UTC (permalink / raw)
To: Alexandre Belloni
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On Fri, Aug 23, 2013 at 1:28 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
I am fine with the patch but please drop PRINC as OE-Core now has PRServer.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support Alexandre Belloni
@ 2013-08-24 18:24 ` Otavio Salvador
2013-08-24 21:34 ` Alexandre Belloni
0 siblings, 1 reply; 10+ messages in thread
From: Otavio Salvador @ 2013-08-24 18:24 UTC (permalink / raw)
To: Alexandre Belloni
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On Fri, Aug 23, 2013 at 1:28 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
...
> --- a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
> +++ b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
> @@ -1,6 +1,8 @@
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> -PRINC := "${@int(PRINC) + 2}"
> +PRINC := "${@int(PRINC) + 3}"
>
> # Board specific patches
> SRC_URI_append_imx233-olinuxino = " file://imx233-olinuxino.patch"
> +
> +SRC_URI_append_cfa10036 = " file://cfa10036-support.patch"
> \ No newline at end of file
Please fix this.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm-extra][PATCHv2 4/4] cfa10036: Add cfa10036 machine configuration
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 4/4] cfa10036: Add cfa10036 machine configuration Alexandre Belloni
@ 2013-08-24 18:29 ` Otavio Salvador
0 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2013-08-24 18:29 UTC (permalink / raw)
To: Alexandre Belloni
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On Fri, Aug 23, 2013 at 1:28 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> This configuration supports the following Crystalfontz boards:
> - cfa-10036
> - cfa-10037
> - cfa-10049
> - cfa-10055
> - cfa-10056
> - cfa-10057
> - cfa-10058
>
> which are all based on the cfa-10036.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
> conf/machine/cfa10036.conf | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
> create mode 100644 conf/machine/cfa10036.conf
>
> diff --git a/conf/machine/cfa10036.conf b/conf/machine/cfa10036.conf
> new file mode 100644
> index 0000000..aa6c9d2
> --- /dev/null
> +++ b/conf/machine/cfa10036.conf
> @@ -0,0 +1,38 @@
> +#@TYPE: Machine
> +#@NAME: Crystalfontz CFA-10036
> +#@SOC: i.MX28
> +#@DESCRIPTION: Machine configuration for CFA-10036
> +
> +include conf/machine/include/mxs-base.inc
> +
> +SOC_FAMILY = "mxs:mx28"
> +
> +PREFERRED_PROVIDER_virtual/kernel = "linux-cfa"
> +PREFERRED_VERSION_barebox = "2013.08.0"
The barebox version shouldn't be fixed here. We ought to provide a
single one here and in case it is updated we're fine as it is
supported by the official one.
> +IMAGE_BOOTLOADER = "barebox"
> +BAREBOX_BINARY = "barebox"
> +
> +IMXBOOTLETS_MACHINE = "cfa10036"
> +
> +KERNEL_IMAGETYPE = "zImage"
> +KERNEL_DEVICETREE = "imx28-cfa10036.dtb"
> +KERNEL_DEVICETREE += "imx28-cfa10037.dtb"
> +KERNEL_DEVICETREE += "imx28-cfa10049.dtb"
> +KERNEL_DEVICETREE += "imx28-cfa10055.dtb"
> +KERNEL_DEVICETREE += "imx28-cfa10056.dtb"
> +KERNEL_DEVICETREE += "imx28-cfa10057.dtb"
> +KERNEL_DEVICETREE += "imx28-cfa10058.dtb"
I'd use:
KERNEL_DEVICETREE = "imx28-cfa10036.dtb \
imx28-cfa10037.dtb \
..."
But this is style so you can choose what you prefer.
> +#we need the kernel to be installed in the final image
# we ...
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support
2013-08-24 18:24 ` Otavio Salvador
@ 2013-08-24 21:34 ` Alexandre Belloni
2013-08-25 17:13 ` Otavio Salvador
0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Belloni @ 2013-08-24 21:34 UTC (permalink / raw)
To: Otavio Salvador
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On 24/08/2013 20:24, Otavio Salvador wrote:
> On Fri, Aug 23, 2013 at 1:28 PM, Alexandre Belloni
> <alexandre.belloni@free-electrons.com> wrote:
>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ...
>> --- a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
>> +++ b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
>> @@ -1,6 +1,8 @@
>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>>
>> -PRINC := "${@int(PRINC) + 2}"
>> +PRINC := "${@int(PRINC) + 3}"
Should I remove the PRINC there too ?
>> # Board specific patches
>> SRC_URI_append_imx233-olinuxino = " file://imx233-olinuxino.patch"
>> +
>> +SRC_URI_append_cfa10036 = " file://cfa10036-support.patch"
>> \ No newline at end of file
> Please fix this.
>
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support
2013-08-24 21:34 ` Alexandre Belloni
@ 2013-08-25 17:13 ` Otavio Salvador
0 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2013-08-25 17:13 UTC (permalink / raw)
To: Alexandre Belloni
Cc: meta-freescale@yoctoproject.org, Maxime Ripard, jimwall, brian
On Sat, Aug 24, 2013 at 6:34 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> On 24/08/2013 20:24, Otavio Salvador wrote:
>> On Fri, Aug 23, 2013 at 1:28 PM, Alexandre Belloni
>> <alexandre.belloni@free-electrons.com> wrote:
>>> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
>> ...
>>> --- a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
>>> +++ b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bbappend
>>> @@ -1,6 +1,8 @@
>>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>>>
>>> -PRINC := "${@int(PRINC) + 2}"
>>> +PRINC := "${@int(PRINC) + 3}"
> Should I remove the PRINC there too ?
just don't change it
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-08-25 17:13 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23 16:28 [meta-fsl-arm-extra][PATCHv2 0/4] Add support for the Crystalfontz boards Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 1/4] barebox 2013.08.0: add support for the cfa10036 Alexandre Belloni
2013-08-24 18:22 ` Otavio Salvador
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 2/4] imx-bootlets: add a recipe for barebox and cfa-10036 support Alexandre Belloni
2013-08-24 18:24 ` Otavio Salvador
2013-08-24 21:34 ` Alexandre Belloni
2013-08-25 17:13 ` Otavio Salvador
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 3/4] linux-cfa: add a kernel recipe supporting Crystalfontz boards Alexandre Belloni
2013-08-23 16:28 ` [meta-fsl-arm-extra][PATCHv2 4/4] cfa10036: Add cfa10036 machine configuration Alexandre Belloni
2013-08-24 18:29 ` Otavio Salvador
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.