diff options
author | Phil Eichinger <phil.eichinger@gmail.com> | 2016-02-27 19:40:32 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2016-03-06 21:10:23 +0100 |
commit | 0e21743fe3305ac37f603e6e2a926853f8155c75 (patch) | |
tree | 1c50635bfa7afbc37404eed69e12bbc4747cd006 /board | |
parent | a3c486d3e85d0e7d3ec4e104b1a85006e87e404b (diff) | |
download | buildroot-0e21743fe3305ac37f603e6e2a926853f8155c75.tar.gz buildroot-0e21743fe3305ac37f603e6e2a926853f8155c75.zip |
configs/olimex_imx233_olinuxino: switch to u-boot
mxs-bootlets broke somewhere in between toolchain version bumps, leading to
boot failure.
Directly boot u-boot, as this is supported now, but it requires updated
partitioning (see readme.txt)
Drop mxs-bootlets patches, they aren't needed anymore.
Kernel is built as an uImage because the u-boot defconfig expects an
uImage on the second partition.
Tested on iMX233-OLinuXino-MINI hardware.
[Peter: adjust readme/config as suggested by Arnout]
Signed-off-by: Phil Eichinger <phil@zankapfel.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/olimex/imx233_olinuxino/mxs-bootlets/mxs-bootlets-01-olinuxino.patch | 122 | ||||
-rw-r--r-- | board/olimex/imx233_olinuxino/readme.txt | 35 |
2 files changed, 26 insertions, 131 deletions
diff --git a/board/olimex/imx233_olinuxino/mxs-bootlets/mxs-bootlets-01-olinuxino.patch b/board/olimex/imx233_olinuxino/mxs-bootlets/mxs-bootlets-01-olinuxino.patch deleted file mode 100644 index 54c3ca019e..0000000000 --- a/board/olimex/imx233_olinuxino/mxs-bootlets/mxs-bootlets-01-olinuxino.patch +++ /dev/null @@ -1,122 +0,0 @@ -Forward-ported patch from https://github.com/koliqi/imx23-olinuxino -for mxs-bootlets-10.12.01 - -Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> - -diff -Nura imx-bootlets-src-10.12.01/linux_prep/board/imx23_olinuxino_dev.c imx-bootlets-src-10.12.01-olinuxino/linux_prep/board/imx23_olinuxino_dev.c ---- imx-bootlets-src-10.12.01/linux_prep/board/imx23_olinuxino_dev.c 1969-12-31 21:00:00.000000000 -0300 -+++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/board/imx23_olinuxino_dev.c 2013-05-17 15:07:33.282961551 -0300 -@@ -0,0 +1,54 @@ -+/* -+ * Platform specific data for the IMX23_OLINUXINO development board -+ * -+ * Fadil Berisha <fadil.r.berisha@gmail.com> -+ * -+ * Copyright 2008 SigmaTel, Inc -+ * Copyright 2008 Embedded Alley Solutions, Inc -+ * Copyright 2009-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. -+ * -+ * http://www.opensource.org/licenses/gpl-license.html -+ * http://www.gnu.org/copyleft/gpl.html -+ */ -+#include <setup.h> -+#include <keys.h> -+#include <lradc_buttons.h> -+ -+/************************************************ -+ * LRADC keyboard data * -+ ************************************************/ -+int lradc_keypad_ch = LRADC_CH0; -+int lradc_vddio_ch = LRADC_CH6; -+ -+struct lradc_keycode lradc_keycodes[] = { -+ { 100, KEY4 }, -+ { 306, KEY5 }, -+ { 601, KEY6 }, -+ { 932, KEY7 }, -+ { 1260, KEY8 }, -+ { 1424, KEY9 }, -+ { 1707, 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 -Nura imx-bootlets-src-10.12.01/linux_prep/cmdlines/imx23_olinuxino_dev.txt imx-bootlets-src-10.12.01-olinuxino/linux_prep/cmdlines/imx23_olinuxino_dev.txt ---- imx-bootlets-src-10.12.01/linux_prep/cmdlines/imx23_olinuxino_dev.txt 1969-12-31 21:00:00.000000000 -0300 -+++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/cmdlines/imx23_olinuxino_dev.txt 2013-05-17 15:07:49.663496106 -0300 -@@ -0,0 +1,3 @@ -+console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait -+console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait -+console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait -diff -Nura imx-bootlets-src-10.12.01/linux_prep/core/setup.c imx-bootlets-src-10.12.01-olinuxino/linux_prep/core/setup.c ---- imx-bootlets-src-10.12.01/linux_prep/core/setup.c 2010-11-04 04:35:38.000000000 -0300 -+++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/core/setup.c 2013-05-17 15:08:39.246114205 -0300 -@@ -84,6 +84,8 @@ - #include "../../mach-mx28/includes/registers/regsrtc.h" - #elif defined(STMP378X) - #include "../../mach-mx23/includes/registers/regsrtc.h" -+#elif defined(IMX23_OLINUXINO) -+#include "../../mach-mx23/includes/registers/regsrtc.h" - #endif - - #define NAND_SECONDARY_BOOT 0x00000002 -diff -Nura imx-bootlets-src-10.12.01/linux_prep/include/mx23/platform.h imx-bootlets-src-10.12.01-olinuxino/linux_prep/include/mx23/platform.h ---- imx-bootlets-src-10.12.01/linux_prep/include/mx23/platform.h 2010-11-04 04:35:38.000000000 -0300 -+++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/include/mx23/platform.h 2013-05-17 15:09:21.006476997 -0300 -@@ -19,6 +19,8 @@ - - #if defined (BOARD_STMP378X_DEV) - #define MACHINE_ID 0xa45 -+#elif defined (BOARD_IMX23_OLINUXINO_DEV) -+#define MACHINE_ID 0x1009 - #else - #error "Allocate a machine ID for your board" - #endif -diff -Nura imx-bootlets-src-10.12.01/linux_prep/Makefile imx-bootlets-src-10.12.01-olinuxino/linux_prep/Makefile ---- imx-bootlets-src-10.12.01/linux_prep/Makefile 2010-11-04 04:35:38.000000000 -0300 -+++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/Makefile 2013-05-17 15:09:53.554539143 -0300 -@@ -69,6 +69,11 @@ - HW_OBJS = $(LRADC_OBJS) - CFLAGS += -DMX28 -DBOARD_MX28_EVK - endif -+ifeq ($(BOARD), imx23_olinuxino_dev) -+ARCH = mx23 -+HW_OBJS = $(LRADC_OBJS) -+CFLAGS += -DIMX23_OLINUXINO -DBOARD_IMX23_OLINUXINO_DEV -+endif - - # Generic code - CORE_OBJS = entry.o resume.o cmdlines.o setup.o keys.o -diff -Nura imx-bootlets-src-10.12.01/Makefile imx-bootlets-src-10.12.01-olinuxino/Makefile ---- imx-bootlets-src-10.12.01/Makefile 2010-11-04 04:35:38.000000000 -0300 -+++ imx-bootlets-src-10.12.01-olinuxino/Makefile 2013-05-17 15:23:53.709956619 -0300 -@@ -16,6 +16,9 @@ - ifeq ($(BOARD), iMX28_EVK) - ARCH = mx28 - endif -+ifeq ($(BOARD), imx23_olinuxino_dev) -+ARCH = mx23 -+endif - - all: build_prep gen_bootstream - diff --git a/board/olimex/imx233_olinuxino/readme.txt b/board/olimex/imx233_olinuxino/readme.txt index 1c36a61e74..a545f7bbb5 100644 --- a/board/olimex/imx233_olinuxino/readme.txt +++ b/board/olimex/imx233_olinuxino/readme.txt @@ -6,10 +6,11 @@ one or more of: hostapd, iw, wireless_tools and/or wpa_supplicant. It also pulls up the console on the serial port, not on TV output. You'll need a spare MicroSD card with Freescale's special partition layout. -This is basically two partitions: +This is basically three partitions: -1) Type 53, the bootstrap + bootloader/kernel partition, should be 16MB. -2) Anything you like, for this example an ext2 partition, type 83 (linux). +1) Type 53, the U-Boot partition, should be 16MB. +2) VFAT, place the kernel uImage there +3) Anything you like, for this example an ext2 partition, type 83 (linux). Assuming you see your MicroSD card as /dev/sdc you'd need to do, as root and from the buildroot project top level directory: @@ -43,15 +44,31 @@ and from the buildroot project top level directory: p 2 <ENTER> + +5M + t + 2 + 4 + n + p + 3 + <ENTER> <ENTER> w -4. Fill up the first (bootstrap + kernel) partition - # dd if=output/images/imx23_olinuxino_dev_linux.sb bs=512 of=/dev/sdc1 seek=4 +4. Fill up the first (U-Boot) partition + # dd if=output/images/u-boot.sd bs=512 of=/dev/sdc1 + +5. Create VFAT Filesystem + # mkfs.vfat /dev/sdc2 + +6. Mount and copy output/images/uImage.imx23-olinuxino to the VFAT partition, rename to uImage + # mount /dev/sdc2 /mnt + # cp output/images/uImages/uImage.imx23-olinuxino /mnt/uImage + # umount /mnt -5. Fill up the second (filesystem) partition - # dd if=output/images/rootfs.ext2 of=/dev/sdc2 bs=512 +7. Fill up the third (filesystem) partition + # dd if=output/images/rootfs.ext2 of=/dev/sdc3 bs=512 -6. Remove the MicroSD card from your linux PC and put it into your olinuxino. +8. Remove the MicroSD card from your linux PC and put it into your olinuxino. -7. Boot! You're done! +9. Boot! You're done! |