Add basic support for i.MX27ADS board
PATCH 1/1 Add basic support for i.MX27ADS board
This patch adds basic support on OpenEmbedded for i.MX27ADS board.
It uses the mainline kernel instead Freescale one. The mainline doesn't have support for USB, Camera, etc.
--- conf/machine/mx27ads.conf | 19 + recipes/linux/mx27ads-kernel/mx27ads_defconfig | 1105 ++++++++++++++++++++++++ recipes/linux/mx27ads-kernel_2.6.30.bb | 44 + 3 files changed, 1168 insertions(+), 0 deletions(-) create mode 100644 conf/machine/mx27ads.conf create mode 100644 recipes/linux/mx27ads-kernel/mx27ads_defconfig create mode 100644 recipes/linux/mx27ads-kernel_2.6.30.bb
conf/machine/mx27ads.conf new file +19 -0
@@ -0,0 +1,19 @@ +#@TYPE: Machine +#@Name: Freescale MX27ADS +#@DESCRIPTION: Machine configuration for Freescale MX27ADS + +TARGET_ARCH = "arm" + +MACHINE_FEATURES = "kernel26 apm alsa ext2 pcmcia usbhost usbgadget" + +GUI_MACHINE_CLASS = "smallscreen" + +PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}-kernel" + +require conf/machine/include/tune-arm926ejs.inc + +# used by sysvinit_2 +SERIAL_CONSOLE = "115200 ttymxc0" + +# used by opie-collections.inc +ROOT_FLASH_SIZE = "32"
(quoted diff) +0 -0
b/recipes/linux/mx27ads-kernel/mx27ads_defconfig
new file mode 100644
index 0000000..16b1dc9
recipes/linux/mx27ads-kernel/mx27ads_defconfig new file +1105 -0
1,105 lines not on this page · raw message
(quoted diff) +0 -0
b/recipes/linux/mx27ads-kernel_2.6.30.bb
new file mode 100644
index 0000000..d47f6fc
recipes/linux/mx27ads-kernel_2.6.30.bb new file +27 -0
@@ -0,0 +1,44 @@ +SECTION = "kernel" +DESCRIPTION = "Linux kernel for the MX27ADS" +LICENSE = "GPL" +PR = "r2" + +PV = "2.6.30" + +SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2 \ + file://mx27ads_defconfig" + +S = "${WORKDIR}/linux-2.6.30" + +COMPATIBLE_HOST = 'arm.*-linux' +COMPATIBLE_MACHINE = "mx27ads" + +inherit kernel + +ARCH = "arm" +RPROVIDES_kernel-image += "hostap-modules" + +#CMDLINE_ROOT = "root=/dev/mtdblock4 rootfstype=jffs2 mem=32M@0x00000000" +#CMDLINE = "${CMDLINE_ROOT} ${CMDLINE_CONSOLE}" + +do_configure_prepend() { + install -m 0644 ${WORKDIR}/mx27ads_defconfig ${S}/defconfig + + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" ==
"linux-uclibcgnueabi" ]; then
+ echo "CONFIG_AEABI=y" >> ${S}/.config
+ echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
+ else
+ echo "# CONFIG_AEABI is not set" >> ${S}/.config
+ echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config
+ fi
+
+ sed -e '/CONFIG_AEABI/d' \
+ -e '/CONFIG_OABI_COMPAT=/d' \
+ '${S}/defconfig' >>'${S}/.config'+
+
+# echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config
+
+ yes '' | oe_runmake oldconfig
+
+}
Signature · 1 line
1.6.0.4
Quoted 4 lines · Alan Carvalho de Assis
This patch adds basic support on OpenEmbedded for i.MX27ADS board.
It uses the mainline kernel instead Freescale one. The mainline doesn't have support for USB, Camera, etc.
Since this is using mainline kernel, you should start a linux_2.6.30.bb (based on 2.6.29) and add DEFAULT_PREFERENCE_mx27ads = "1" to that, rather than adding a new kernel recipe. The machine.conf looks fine otherwise, however.
Signature · 1 line
Tom Rini
Quoted 11 lines · Tom Rini
Quoted 4 lines · Alan Carvalho de Assis
This patch adds basic support on OpenEmbedded for i.MX27ADS board.
It uses the mainline kernel instead Freescale one. The mainline doesn't have support for USB, Camera, etc.
Since this is using mainline kernel, you should start a linux_2.6.30.bb (based on 2.6.29) and add
DEFAULT_PREFERENCE_mx27ads= "1" to that, rather than adding a new kernel recipe. The machine.conf looks fine otherwise, however.
There is linux_2.6.30.bb already:
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=492df3085e1a7125d44a592a883032e93e8bc0e9
Signature · 1 line
Denys
Quoted 6 lines · Tom Rini
Since this is using mainline kernel, you should start a linux_2.6.30.bb (based on 2.6.29) and add
DEFAULT_PREFERENCE_mx27ads= "1" to that, rather than adding a new kernel recipe. The machine.conf looks fine otherwise, however.
Thank you!
I will to adapt it and submit again.
Alan