Browse Source

Initial commit

Thomas Buck 3 years ago
commit
a7e15ec94c

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
1
+.DS_Store
2
+/output
3
+/Makefile

+ 3
- 0
.gitmodules View File

@@ -0,0 +1,3 @@
1
+[submodule "buildroot"]
2
+	path = buildroot
3
+	url = git://git.buildroot.net/buildroot

+ 0
- 0
Config.in View File


+ 2
- 0
README.md View File

@@ -0,0 +1,2 @@
1
+# CamCorder-Buildroot
2
+

+ 152
- 0
board/olinuxino/linux-3.18.config View File

@@ -0,0 +1,152 @@
1
+CONFIG_SYSVIPC=y
2
+CONFIG_NO_HZ=y
3
+CONFIG_HIGH_RES_TIMERS=y
4
+CONFIG_PERF_EVENTS=y
5
+# CONFIG_COMPAT_BRK is not set
6
+CONFIG_MODULES=y
7
+CONFIG_MODULE_FORCE_LOAD=y
8
+CONFIG_MODULE_UNLOAD=y
9
+CONFIG_MODULE_FORCE_UNLOAD=y
10
+CONFIG_MODVERSIONS=y
11
+CONFIG_BLK_DEV_INTEGRITY=y
12
+# CONFIG_ARCH_MULTI_V7 is not set
13
+CONFIG_ARCH_MXS=y
14
+# CONFIG_ARM_THUMB is not set
15
+CONFIG_PREEMPT_VOLUNTARY=y
16
+CONFIG_AEABI=y
17
+CONFIG_ARM_APPENDED_DTB=y
18
+CONFIG_ARM_ATAG_DTB_COMPAT=y
19
+CONFIG_CMDLINE="console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait"
20
+CONFIG_NET=y
21
+CONFIG_PACKET=y
22
+CONFIG_UNIX=y
23
+CONFIG_INET=y
24
+CONFIG_IP_PNP=y
25
+CONFIG_IP_PNP_DHCP=y
26
+CONFIG_SYN_COOKIES=y
27
+CONFIG_CFG80211=y
28
+CONFIG_CFG80211_WEXT=y
29
+CONFIG_MAC80211=y
30
+CONFIG_DEVTMPFS=y
31
+CONFIG_DEVTMPFS_MOUNT=y
32
+# CONFIG_FIRMWARE_IN_KERNEL is not set
33
+CONFIG_MTD=y
34
+CONFIG_MTD_CMDLINE_PARTS=y
35
+CONFIG_MTD_BLOCK=y
36
+CONFIG_MTD_DATAFLASH=y
37
+CONFIG_MTD_SST25L=y
38
+CONFIG_MTD_NAND=y
39
+CONFIG_MTD_NAND_GPMI_NAND=y
40
+CONFIG_MTD_UBI=y
41
+# CONFIG_BLK_DEV is not set
42
+CONFIG_EEPROM_AT24=y
43
+CONFIG_EEPROM_93CX6=y
44
+CONFIG_SCSI=y
45
+CONFIG_BLK_DEV_SD=y
46
+CONFIG_NETDEVICES=y
47
+# CONFIG_ETHERNET is not set
48
+CONFIG_USB_USBNET=y
49
+CONFIG_USB_NET_SMSC95XX=y
50
+CONFIG_RTL8187=m
51
+CONFIG_ATH_CARDS=m
52
+CONFIG_ATH9K_HTC=m
53
+CONFIG_RT2X00=m
54
+CONFIG_RT73USB=m
55
+CONFIG_RT2800USB=m
56
+CONFIG_RT2800USB_RT53XX=y
57
+CONFIG_RT2800USB_RT55XX=y
58
+CONFIG_RT2800USB_UNKNOWN=y
59
+CONFIG_RTL_CARDS=m
60
+CONFIG_RTL8192CU=m
61
+# CONFIG_RTLWIFI_DEBUG is not set
62
+CONFIG_ZD1211RW=m
63
+# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
64
+CONFIG_INPUT_EVDEV=y
65
+# CONFIG_INPUT_KEYBOARD is not set
66
+# CONFIG_INPUT_MOUSE is not set
67
+# CONFIG_SERIO is not set
68
+CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
69
+# CONFIG_LEGACY_PTYS is not set
70
+# CONFIG_DEVKMEM is not set
71
+CONFIG_SERIAL_AMBA_PL011=y
72
+CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
73
+CONFIG_SERIAL_MXS_AUART=y
74
+# CONFIG_HW_RANDOM is not set
75
+CONFIG_I2C=y
76
+# CONFIG_I2C_COMPAT is not set
77
+CONFIG_I2C_CHARDEV=y
78
+CONFIG_I2C_MXS=y
79
+CONFIG_SPI=y
80
+CONFIG_SPI_GPIO=m
81
+CONFIG_SPI_MXS=y
82
+CONFIG_PTP_1588_CLOCK=y
83
+CONFIG_GPIO_SYSFS=y
84
+# CONFIG_HWMON is not set
85
+CONFIG_WATCHDOG=y
86
+CONFIG_STMP3XXX_RTC_WATCHDOG=y
87
+CONFIG_REGULATOR=y
88
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
89
+CONFIG_FB=y
90
+CONFIG_FB_MXS=y
91
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
92
+CONFIG_LCD_CLASS_DEVICE=y
93
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
94
+CONFIG_BACKLIGHT_PWM=y
95
+CONFIG_FRAMEBUFFER_CONSOLE=y
96
+CONFIG_LOGO=y
97
+CONFIG_SOUND=y
98
+CONFIG_SND=y
99
+CONFIG_SND_HRTIMER=y
100
+# CONFIG_SND_SUPPORT_OLD_API is not set
101
+# CONFIG_SND_VERBOSE_PROCFS is not set
102
+# CONFIG_SND_DRIVERS is not set
103
+# CONFIG_SND_ARM is not set
104
+# CONFIG_SND_SPI is not set
105
+# CONFIG_SND_USB is not set
106
+CONFIG_SND_SOC=y
107
+CONFIG_USB=y
108
+CONFIG_USB_EHCI_HCD=y
109
+CONFIG_USB_STORAGE=y
110
+CONFIG_USB_CHIPIDEA=y
111
+CONFIG_USB_CHIPIDEA_HOST=y
112
+CONFIG_USB_MXS_PHY=y
113
+CONFIG_MMC=y
114
+CONFIG_MMC_MXS=y
115
+CONFIG_LEDS_CLASS=y
116
+CONFIG_LEDS_GPIO=y
117
+CONFIG_LEDS_TRIGGER_TIMER=y
118
+CONFIG_LEDS_TRIGGER_ONESHOT=y
119
+CONFIG_LEDS_TRIGGER_HEARTBEAT=y
120
+CONFIG_LEDS_TRIGGER_BACKLIGHT=y
121
+CONFIG_LEDS_TRIGGER_GPIO=y
122
+CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
123
+CONFIG_RTC_CLASS=y
124
+CONFIG_RTC_DRV_STMP=y
125
+CONFIG_DMADEVICES=y
126
+CONFIG_MXS_DMA=y
127
+CONFIG_STAGING=y
128
+CONFIG_MXS_LRADC=y
129
+CONFIG_IIO=y
130
+CONFIG_IIO_SYSFS_TRIGGER=y
131
+CONFIG_PWM=y
132
+CONFIG_PWM_MXS=y
133
+CONFIG_EXT4_FS=y
134
+CONFIG_TMPFS=y
135
+CONFIG_TMPFS_POSIX_ACL=y
136
+# CONFIG_MISC_FILESYSTEMS is not set
137
+# CONFIG_NETWORK_FILESYSTEMS is not set
138
+CONFIG_PRINTK_TIME=y
139
+CONFIG_FRAME_WARN=2048
140
+CONFIG_UNUSED_SYMBOLS=y
141
+CONFIG_DEBUG_FS=y
142
+CONFIG_STRICT_DEVMEM=y
143
+CONFIG_DEBUG_USER=y
144
+CONFIG_KEYS=y
145
+CONFIG_CRYPTO_DEFLATE=y
146
+CONFIG_CRYPTO_LZO=y
147
+# CONFIG_CRYPTO_ANSI_CPRNG is not set
148
+CONFIG_CRYPTO_DEV_MXS_DCP=y
149
+CONFIG_CRC_CCITT=y
150
+CONFIG_CRC_ITU_T=y
151
+CONFIG_CRC7=m
152
+CONFIG_FONTS=y

+ 122
- 0
board/olinuxino/mxs-bootlets/mxs-bootlets-01-olinuxino.patch View File

@@ -0,0 +1,122 @@
1
+Forward-ported patch from https://github.com/koliqi/imx23-olinuxino
2
+for mxs-bootlets-10.12.01
3
+
4
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5
+
6
+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
7
+--- imx-bootlets-src-10.12.01/linux_prep/board/imx23_olinuxino_dev.c	1969-12-31 21:00:00.000000000 -0300
8
++++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/board/imx23_olinuxino_dev.c	2013-05-17 15:07:33.282961551 -0300
9
+@@ -0,0 +1,54 @@
10
++/*
11
++ * Platform specific data for the IMX23_OLINUXINO development board
12
++ *
13
++ * Fadil Berisha <fadil.r.berisha@gmail.com>
14
++ *
15
++ * Copyright 2008 SigmaTel, Inc
16
++ * Copyright 2008 Embedded Alley Solutions, Inc
17
++ * Copyright 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
18
++ *
19
++ * This file is licensed under the terms of the GNU General Public License
20
++ * version 2. This program is licensed "as is" without any warranty of any
21
++ * kind, whether express or implied.
22
++ *
23
++ * http://www.opensource.org/licenses/gpl-license.html
24
++ * http://www.gnu.org/copyleft/gpl.html
25
++ */
26
++#include <setup.h>
27
++#include <keys.h>
28
++#include <lradc_buttons.h>
29
++
30
++/************************************************
31
++ * LRADC keyboard data *
32
++ ************************************************/
33
++int lradc_keypad_ch = LRADC_CH0;
34
++int lradc_vddio_ch = LRADC_CH6;
35
++
36
++struct lradc_keycode lradc_keycodes[] = {
37
++ { 100, KEY4 },
38
++ { 306, KEY5 },
39
++ { 601, KEY6 },
40
++ { 932, KEY7 },
41
++ { 1260, KEY8 },
42
++ { 1424, KEY9 },
43
++ { 1707, KEY10 },
44
++ { 2207, KEY11 },
45
++ { 2525, KEY12 },
46
++ { 2831, KEY13 },
47
++ { 3134, KEY14 },
48
++ { -1, 0 },
49
++};
50
++
51
++/************************************************
52
++ * Magic key combinations for Armadillo *
53
++ ************************************************/
54
++u32 magic_keys[MAGIC_KEY_NR] = {
55
++ [MAGIC_KEY1] = KEY4,
56
++ [MAGIC_KEY2] = KEY6,
57
++ [MAGIC_KEY3] = KEY10,
58
++};
59
++
60
++/************************************************
61
++ * Default command line *
62
++ ************************************************/
63
++char cmdline_def[] = "console=ttyAMA0,115200";
64
+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
65
+--- imx-bootlets-src-10.12.01/linux_prep/cmdlines/imx23_olinuxino_dev.txt	1969-12-31 21:00:00.000000000 -0300
66
++++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/cmdlines/imx23_olinuxino_dev.txt	2013-05-17 15:07:49.663496106 -0300
67
+@@ -0,0 +1,3 @@
68
++console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait
69
++console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait
70
++console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait
71
+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
72
+--- imx-bootlets-src-10.12.01/linux_prep/core/setup.c	2010-11-04 04:35:38.000000000 -0300
73
++++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/core/setup.c	2013-05-17 15:08:39.246114205 -0300
74
+@@ -84,6 +84,8 @@
75
+ #include "../../mach-mx28/includes/registers/regsrtc.h"
76
+ #elif defined(STMP378X)
77
+ #include "../../mach-mx23/includes/registers/regsrtc.h"
78
++#elif defined(IMX23_OLINUXINO)
79
++#include "../../mach-mx23/includes/registers/regsrtc.h"
80
+ #endif
81
+
82
+ #define NAND_SECONDARY_BOOT          0x00000002
83
+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
84
+--- imx-bootlets-src-10.12.01/linux_prep/include/mx23/platform.h	2010-11-04 04:35:38.000000000 -0300
85
++++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/include/mx23/platform.h	2013-05-17 15:09:21.006476997 -0300
86
+@@ -19,6 +19,8 @@
87
+
88
+ #if defined (BOARD_STMP378X_DEV)
89
+ #define	MACHINE_ID	0xa45
90
++#elif defined (BOARD_IMX23_OLINUXINO_DEV)
91
++#define MACHINE_ID	0x1009
92
+ #else
93
+ #error "Allocate a machine ID for your board"
94
+ #endif
95
+diff -Nura imx-bootlets-src-10.12.01/linux_prep/Makefile imx-bootlets-src-10.12.01-olinuxino/linux_prep/Makefile
96
+--- imx-bootlets-src-10.12.01/linux_prep/Makefile	2010-11-04 04:35:38.000000000 -0300
97
++++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/Makefile	2013-05-17 15:09:53.554539143 -0300
98
+@@ -69,6 +69,11 @@
99
+ HW_OBJS = $(LRADC_OBJS)
100
+ CFLAGS += -DMX28 -DBOARD_MX28_EVK
101
+ endif
102
++ifeq ($(BOARD), imx23_olinuxino_dev)
103
++ARCH = mx23
104
++HW_OBJS = $(LRADC_OBJS)
105
++CFLAGS += -DIMX23_OLINUXINO -DBOARD_IMX23_OLINUXINO_DEV
106
++endif
107
+
108
+ # Generic code
109
+ CORE_OBJS = entry.o resume.o cmdlines.o setup.o keys.o
110
+diff -Nura imx-bootlets-src-10.12.01/Makefile imx-bootlets-src-10.12.01-olinuxino/Makefile
111
+--- imx-bootlets-src-10.12.01/Makefile	2010-11-04 04:35:38.000000000 -0300
112
++++ imx-bootlets-src-10.12.01-olinuxino/Makefile	2013-05-17 15:23:53.709956619 -0300
113
+@@ -16,6 +16,9 @@
114
+ ifeq ($(BOARD), iMX28_EVK)
115
+ ARCH = mx28
116
+ endif
117
++ifeq ($(BOARD), imx23_olinuxino_dev)
118
++ARCH = mx23
119
++endif
120
+
121
+ all: build_prep gen_bootstream
122
+

+ 57
- 0
board/olinuxino/readme.txt View File

@@ -0,0 +1,57 @@
1
+This configuration is intended as a base image.
2
+It includes kernel and firmware support for the common USB WiFi hardware.
3
+Packages for WiFi support are up to the user, you'll probably want
4
+one or more of: hostapd, iw, wireless_tools and/or wpa_supplicant.
5
+
6
+It also pulls up the console on the serial port, not on TV output.
7
+
8
+You'll need a spare MicroSD card with Freescale's special partition layout.
9
+This is basically two partitions:
10
+
11
+1) Type 53, the bootstrap + bootloader/kernel partition, should be 16MB.
12
+2) Anything you like, for this example an ext2 partition, type 83 (linux).
13
+
14
+Assuming you see your MicroSD card as /dev/sdc you'd need to do, as root
15
+and from the buildroot project top level directory:
16
+(remember to replace /dev/sdc* with the appropiate device name!)
17
+
18
+***** WARNING: Double check that /dev/sdc is your MicroSD card *****
19
+*****      It might be /dev/sdb or some other device name      *****
20
+***** Failure to do so may result in you wiping your hard disk *****
21
+
22
+1. Unmount the filesystem(s) if they're already mounted, usually...
23
+
24
+   # for fs in `grep /dev/sdc /proc/mounts|cut -d ' ' -f 1`;do umount $fs;done
25
+
26
+   ...should work
27
+
28
+2. Blank the partition table out
29
+
30
+   # dd if=/dev/zero of=/dev/sdc bs=1024 count=1024
31
+
32
+3. Set up the partitions
33
+
34
+   # fdisk /dev/sdc
35
+   n
36
+   p
37
+   1
38
+   <ENTER>
39
+   +16MB
40
+   t
41
+   53
42
+   n
43
+   p
44
+   2
45
+   <ENTER>
46
+   <ENTER>
47
+   w
48
+
49
+4. Fill up the first (bootstrap + kernel) partition
50
+   # dd if=output/images/imx23_olinuxino_dev_linux.sb bs=512 of=/dev/sdc1 seek=4
51
+
52
+5. Fill up the second (filesystem) partition
53
+   # dd if=output/images/rootfs.ext2 of=/dev/sdc2 bs=512
54
+
55
+6. Remove the MicroSD card from your linux PC and put it into your olinuxino.
56
+
57
+7. Boot! You're done!

+ 1
- 0
buildroot

@@ -0,0 +1 @@
1
+Subproject commit ecf55c3f0276d2afb1a5f62e2e183bda730b8bac

+ 44
- 0
configs/olinuxino_defconfig View File

@@ -0,0 +1,44 @@
1
+# Architecture
2
+BR2_arm=y
3
+BR2_arm926t=y
4
+
5
+# Patches (mxs-bootlets)
6
+BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/board/olinuxino"
7
+
8
+# System
9
+BR2_TARGET_GENERIC_GETTY=y
10
+BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
11
+
12
+# Filesystem
13
+BR2_TARGET_ROOTFS_EXT2=y
14
+# BR2_TARGET_ROOTFS_TAR is not set
15
+
16
+# Linux headers same as kernel, a 3.18 series
17
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
18
+
19
+# Bootloader
20
+BR2_TARGET_MXS_BOOTLETS=y
21
+BR2_TARGET_MXS_BOOTLETS_CUSTOM_PATCH_DIR="$(BR2_EXTERNAL)/board/olinuxino"
22
+BR2_TARGET_MXS_BOOTLETS_CUSTOM_BOARD=y
23
+BR2_TARGET_MXS_BOOTLETS_CUSTOM_BOARD_NAME="imx23_olinuxino_dev"
24
+
25
+# Kernel
26
+BR2_LINUX_KERNEL=y
27
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
28
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.18.2"
29
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
30
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL)/board/olinuxino/linux-3.18.config"
31
+BR2_LINUX_KERNEL_APPENDED_ZIMAGE=y
32
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx23-olinuxino"
33
+
34
+# For automatic firmware loading
35
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
36
+
37
+# Firmware for WiFi
38
+BR2_PACKAGE_LINUX_FIRMWARE=y
39
+BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_7010=y
40
+BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9271=y
41
+BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT73=y
42
+BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT2XX=y
43
+BR2_PACKAGE_LINUX_FIRMWARE_RTL_81XX=y
44
+BR2_PACKAGE_ZD1211_FIRMWARE=y

+ 0
- 0
external.mk View File


Loading…
Cancel
Save