1 diff -ruN imx-bootlets-10.05.02.orig/linux_prep/board/imx23_olinuxino_dev.c imx-bootlets-10.05.02/linux_prep/board/imx23_olinuxino_dev.c
2 --- imx-bootlets-10.05.02.orig/linux_prep/board/imx23_olinuxino_dev.c 1970-01-01 01:00:00.000000000 +0100
3 +++ imx-bootlets-10.05.02/linux_prep/board/imx23_olinuxino_dev.c 2013-05-19 00:11:40.000000000 +0200
6 + * Platform specific data for the IMX23_OLINUXINO development board
8 + * Fadil Berisha <fadil.r.berisha@gmail.com>
10 + * Copyright 2008 SigmaTel, Inc
11 + * Copyright 2008 Embedded Alley Solutions, Inc
12 + * Copyright 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
14 + * This file is licensed under the terms of the GNU General Public License
15 + * version 2. This program is licensed "as is" without any warranty of any
16 + * kind, whether express or implied.
18 + * http://www.opensource.org/licenses/gpl-license.html
19 + * http://www.gnu.org/copyleft/gpl.html
23 +#include <lradc_buttons.h>
25 +/************************************************
26 + * LRADC keyboard data *
27 + ************************************************/
28 +int lradc_keypad_ch = LRADC_CH0;
29 +int lradc_vddio_ch = LRADC_CH6;
31 +struct lradc_keycode lradc_keycodes[] = {
46 +/************************************************
47 + * Magic key combinations for Armadillo *
48 + ************************************************/
49 +u32 magic_keys[MAGIC_KEY_NR] = {
50 + [MAGIC_KEY1] = KEY4,
51 + [MAGIC_KEY2] = KEY6,
52 + [MAGIC_KEY3] = KEY10,
55 +/************************************************
56 + * Default command line *
57 + ************************************************/
58 +char cmdline_def[] = "console=ttyAMA0,115200";
59 diff -ruN imx-bootlets-10.05.02.orig/linux_prep/cmdlines/imx23_olinuxino_dev.txt imx-bootlets-10.05.02/linux_prep/cmdlines/imx23_olinuxino_dev.txt
60 --- imx-bootlets-10.05.02.orig/linux_prep/cmdlines/imx23_olinuxino_dev.txt 1970-01-01 01:00:00.000000000 +0100
61 +++ imx-bootlets-10.05.02/linux_prep/cmdlines/imx23_olinuxino_dev.txt 2013-05-19 00:12:56.000000000 +0200
63 +noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait ssp1=mmc
64 diff -ruN imx-bootlets-10.05.02.orig/linux_prep/core/setup.c imx-bootlets-10.05.02/linux_prep/core/setup.c
65 --- imx-bootlets-10.05.02.orig/linux_prep/core/setup.c 2010-05-14 06:56:28.000000000 +0200
66 +++ imx-bootlets-10.05.02/linux_prep/core/setup.c 2013-05-19 00:11:40.000000000 +0200
68 #include "../../mach-mx28/includes/registers/regsrtc.h"
69 #elif defined(STMP378X)
70 #include "../../mach-mx23/includes/registers/regsrtc.h"
71 +#elif defined(IMX23_OLINUXINO)
72 +#include "../../mach-mx23/includes/registers/regsrtc.h"
75 #define NAND_SECONDARY_BOOT 0x00000002
76 diff -ruN imx-bootlets-10.05.02.orig/linux_prep/include/mx23/platform.h imx-bootlets-10.05.02/linux_prep/include/mx23/platform.h
77 --- imx-bootlets-10.05.02.orig/linux_prep/include/mx23/platform.h 2010-05-14 06:56:28.000000000 +0200
78 +++ imx-bootlets-10.05.02/linux_prep/include/mx23/platform.h 2013-05-19 00:11:40.000000000 +0200
81 #if defined (BOARD_STMP378X_DEV)
82 #define MACHINE_ID 0xa45
84 +#elif defined (BOARD_IMX23_OLINUXINO_DEV)
85 +#define MACHINE_ID 0x1009
88 #error "Allocate a machine ID for your board"
90 diff -ruN imx-bootlets-10.05.02.orig/linux_prep/Makefile imx-bootlets-10.05.02/linux_prep/Makefile
91 --- imx-bootlets-10.05.02.orig/linux_prep/Makefile 2010-05-14 06:56:28.000000000 +0200
92 +++ imx-bootlets-10.05.02/linux_prep/Makefile 2013-05-19 00:11:40.000000000 +0200
94 HW_OBJS = $(LRADC_OBJS)
95 CFLAGS += -DMX28 -DBOARD_MX28_EVK
97 +ifeq ($(BOARD), imx23_olinuxino_dev)
99 +HW_OBJS = $(LRADC_OBJS)
100 +CFLAGS += -DIMX23_OLINUXINO -DBOARD_IMX23_OLINUXINO_DEV
104 CORE_OBJS = entry.o resume.o cmdlines.o setup.o keys.o
105 diff -ruN imx-bootlets-10.05.02.orig/Makefile imx-bootlets-10.05.02/Makefile
106 --- imx-bootlets-10.05.02.orig/Makefile 2010-05-14 06:56:28.000000000 +0200
107 +++ imx-bootlets-10.05.02/Makefile 2013-05-19 00:15:02.000000000 +0200
111 DFT_IMAGE=$(DEV_IMAGE)/boot/zImage
112 -DFT_UBOOT=$(DEV_IMAGE)/boot/u-boot
113 +DFT_UBOOT=../boot/u-boot
115 -BOARD ?= stmp378x_dev
116 +BOARD ?= imx23_olinuxino_dev
118 ifeq ($(BOARD), stmp37xx_dev)
121 ifeq ($(BOARD), iMX28_EVK)
124 +ifeq ($(BOARD), imx23_olinuxino_dev)
128 all: build_prep gen_bootstream
133 rm -f sd_mmc_bootstream.raw
134 + rm -f linux_prep/board/*.o
135 + rm -f power_prep/*.o
136 $(MAKE) -C linux_prep clean ARCH=$(ARCH)
137 $(MAKE) -C boot_prep clean ARCH=$(ARCH)
138 $(MAKE) -C power_prep clean ARCH=$(ARCH)
139 diff -ruN imx-bootlets-10.05.02.orig/uboot.db imx-bootlets-10.05.02/uboot.db
140 --- imx-bootlets-10.05.02.orig/uboot.db 2010-05-14 06:56:28.000000000 +0200
141 +++ imx-bootlets-10.05.02/uboot.db 2013-05-19 00:11:40.000000000 +0200
144 power_prep="./power_prep/power_prep";
145 sdram_prep="./boot_prep/boot_prep";
146 - image="/home/b18647/repos/ltib_latest/rootfs/boot/u-boot";
147 + image="../boot/u-boot";