Permalink
Browse files

Add olinuxino support packages

  • Loading branch information...
kzyapkov committed Jul 14, 2012
1 parent 31c967b commit 1bc1ebf8a23fe544ff40d68909d5aba8a06e9ce2
Showing with 5,763 additions and 0 deletions.
  1. +33 −0 alarm/elftosb/PKGBUILD
  2. +36 −0 alarm/imx-bootlets-olinuxino/PKGBUILD
  3. +19 −0 alarm/imx-bootlets-olinuxino/imx233-olinuxino-maxi.patch
  4. +19 −0 alarm/imx-bootlets-olinuxino/linux-fix-paths.patch
  5. +30 −0 alarm/imx-bootlets-olinuxino/linux_prep-fix-cmdlines.patch
  6. +68 −0 core/kernel26-olinuxino/0001-mx53_loco-add-USR-led-support.patch
  7. +58 −0 core/kernel26-olinuxino/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch
  8. +23 −0 core/kernel26-olinuxino/002_Return_ERESTARTSYS_from_IPU_GET_EVENT.patch
  9. +50 −0 core/kernel26-olinuxino/003_Sanitise_ipu_interrupt_return_value.patch
  10. +41 −0 core/kernel26-olinuxino/1130-ENGR00157473-MX5X-UART-disable-UART2-DMA-to-make-G.patch
  11. +48 −0 core/kernel26-olinuxino/1132-ENGR00155891-mx53_loco-enable-mc34708-s-WDI-functio.patch
  12. +29 −0 core/kernel26-olinuxino/1134-ENGR00159738-v4l2-correct-wrong-parameter-when-V4l2.patch
  13. +33 −0 core/kernel26-olinuxino/1136-ENGR00161215-1-arch-arm-Add-two-new-IOCTLs-in-mxc_v.patch
  14. +49 −0 core/kernel26-olinuxino/1137-ENGR00161215-2-vpu-Add-ioctls-for-querying-and-sett.patch
  15. +820 −0 core/kernel26-olinuxino/1139-ENGR00162464-update-pm4-microcode-pm4_microcode_r18.patch
  16. +434 −0 core/kernel26-olinuxino/1140-ENGR00162711-DA9053-Add-dummy-write-for-DA9053-I2C.patch
  17. +86 −0 core/kernel26-olinuxino/1141-ENGR00162708-MX5-Add-I2C-dummy-write-and-mask-nONKE.patch
  18. +33 −0 core/kernel26-olinuxino/1142-ENGR00163698-MX53-ARD-fix-typo-error-for-pwm1-pad-d.patch
  19. +109 −0 core/kernel26-olinuxino/1143-ENGR00162578-DMA-mx5-increase-DMA-Zone-size-to-112.patch
  20. +37 −0 core/kernel26-olinuxino/1144-ENGR00169603-MX53-ARD-FlexCAN-Set-lp_apm-as-clock.patch
  21. +35 −0 core/kernel26-olinuxino/1145-ENGR00170342-PWM-fix-pwm-output-can-t-be-set-to-100.patch
  22. +80 −0 core/kernel26-olinuxino/1146-ENGR00170244-1-ARM-AHCI-Enable-PDDQ-mode-when-no-d.patch
  23. +53 −0 core/kernel26-olinuxino/1147-ENGR00170244-2-ARM-AHCI-Enable-PDDQ-mode-when-no-d.patch
  24. +31 −0 core/kernel26-olinuxino/NFS-Fix-nfsroot-support.patch
  25. +241 −0 core/kernel26-olinuxino/NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch
  26. +315 −0 core/kernel26-olinuxino/PKGBUILD
  27. +1,632 −0 core/kernel26-olinuxino/config
  28. +32 −0 core/kernel26-olinuxino/dm9601-support-for-usb-ethernet-0x0fe6-0x9700.patch
  29. +30 −0 core/kernel26-olinuxino/egalax_ts-enable-single-event-support.patch
  30. +864 −0 core/kernel26-olinuxino/imx233-olinuxino.patch
  31. +51 −0 core/kernel26-olinuxino/kernel26.install
  32. +79 −0 core/kernel26-olinuxino/mx28-removecpufreq.patch
  33. +42 −0 core/kernel26-olinuxino/mxs-duart-use-ttyAMA-for-device-name.patch
  34. +40 −0 core/kernel26-olinuxino/no-unaligned-access.patch
  35. +51 −0 core/kernel26-olinuxino/smsc95xx-randomize-mac-once.patch
  36. +79 −0 core/kernel26-olinuxino/w1-fix-support-multiple-master.patch
  37. +53 −0 core/kernel26-olinuxino/wire-up-sys_accept4-on-ARM.patch
View
@@ -0,0 +1,33 @@
+# Contributor: Kiril Zyapkov <kiril.zyapkov@gmail.com>
+pkgname=elftosb
+pkgver=10.12.01
+pkgrel=1
+pkgdesc="Helper utility for freescale imx platforms"
+arch=(arm)
+url="http://freescale.com"
+license=('MIT')
+makedepends=()
+source=(
+ "http://repository.timesys.com/buildsources/e/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
+ "http://repository.timesys.com/buildsources/e/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver-libm.patch")
+md5sums=(
+ 'e8005d606c1e0bb3507c82f6eceb3056'
+ 'b4b758eb116914e284d6d12872948131')
+
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 < ../$pkgname-$pkgver-libm.patch
+ make all
+}
+
+package() {
+ mkdir -p $pkgdir/usr/local/bin
+ install -D -m 755 $srcdir/$pkgname-$pkgver/bld/linux/elftosb $pkgdir/usr/local/bin/ || return 1
+ install -D -m 755 $srcdir/$pkgname-$pkgver/bld/linux/keygen $pkgdir/usr/local/bin/ || return 1
+ install -D -m 755 $srcdir/$pkgname-$pkgver/bld/linux/sbtool $pkgdir/usr/local/bin/ || return 1
+ cd $pkgdir/usr/local/bin
+ ln -sf elftosb elftosb2
+}
+
+# vim:set ts=2 sw=2 et:
@@ -0,0 +1,36 @@
+# Contributor: Kiril Zyapkov <kiril.zyapkov@gmail.com>
+pkgname=imx-bootlets-olinuxino
+pkgver=10.12.01
+pkgrel=1
+pkgdesc="Bootlets for the i.MX233 Freescale processor"
+arch=(arm)
+url="http://freescale.com"
+license=('MIT')
+makedepends=()
+source=("http://download.ossystems.com.br/bsp/freescale/source/imx-bootlets-src-${pkgver}.tar.gz"
+ "linux_prep-fix-cmdlines.patch"
+ "linux-fix-paths.patch"
+ "imx233-olinuxino-maxi.patch")
+md5sums=('cf0ab3822dca694b930a051501c1d0e4'
+ '5d2ceded7e8ece6245063098090ac4fe'
+ '2d38235c047194c65b6119363be55211'
+ 'a3ecd391021d32723c34c955a3e2a0f5')
+
+build() {
+ cd ${srcdir}/imx-bootlets-src-${pkgver}
+ patch -Np1 -i ../linux_prep-fix-cmdlines.patch
+ patch -Np1 -i ../linux-fix-paths.patch
+ patch -Np1 -i ../imx233-olinuxino-maxi.patch
+
+ BOARD=stmp378x_dev make linux_prep boot_prep power_prep
+}
+
+package() {
+ cd ${srcdir}/imx-bootlets-src-${pkgver}
+ mkdir -p ${pkgdir}/boot/imx-bootlets-olinuxino
+ install -m 0644 linux.bd ${pkgdir}/boot/imx-bootlets-olinuxino
+ install -m 0644 power_prep/power_prep ${pkgdir}/boot/imx-bootlets-olinuxino
+ install -m 0644 boot_prep/boot_prep ${pkgdir}/boot/imx-bootlets-olinuxino
+ install -m 0644 linux_prep/output-target/linux_prep ${pkgdir}/boot/imx-bootlets-olinuxino
+}
+# vim:set ts=2 sw=2 et:
@@ -0,0 +1,19 @@
+mx23/platform: set machine ID
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
+
+diff --git a/linux_prep/include/mx23/platform.h b/linux_prep/include/mx23/platform.h
+index ed58d79..3cbe2eb 100644
+--- a/linux_prep/include/mx23/platform.h
++++ b/linux_prep/include/mx23/platform.h
+@@ -18,7 +18,7 @@
+ #define __37XX_PLATFORM_H
+
+ #if defined (BOARD_STMP378X_DEV)
+-#define MACHINE_ID 0xa45
++#define MACHINE_ID 0x1009
+ #else
+ #error "Allocate a machine ID for your board"
+ #endif
@@ -0,0 +1,19 @@
+diff --git a/linux.bd b/linux.bd
+index c4956d0..036a609 100644
+--- a/linux.bd
++++ b/linux.bd
+@@ -4,10 +4,10 @@ options {
+ flags = 0x01;
+ }
+ sources {
+- power_prep="./power_prep/power_prep";
+- sdram_prep="./boot_prep/boot_prep";
+- linux_prep="./linux_prep/output-target/linux_prep";
+- zImage = "./zImage";
++ power_prep="imx-bootlets-olinuxino/power_prep";
++ sdram_prep="imx-bootlets-olinuxino/boot_prep";
++ linux_prep="imx-bootlets-olinuxino/linux_prep";
++ zImage = "zImage";
+ }
+
+ section (0) {
@@ -0,0 +1,30 @@
+imx-bootlets: Fix cmdlines for Linux boot
+
+This adapt the cmdlines for the partitioning layout used on the
+generated SD cards.
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
+
+diff --git a/linux_prep/cmdlines/iMX28_EVK.txt b/linux_prep/cmdlines/iMX28_EVK.txt
+index 6bc36b9..6cf89a0 100644
+--- a/linux_prep/cmdlines/iMX28_EVK.txt
++++ b/linux_prep/cmdlines/iMX28_EVK.txt
+@@ -1 +1 @@
+-console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait
++console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait
+diff --git a/linux_prep/cmdlines/stmp378x_dev.txt b/linux_prep/cmdlines/stmp378x_dev.txt
+index 9a717eb..fdb7390 100644
+--- a/linux_prep/cmdlines/stmp378x_dev.txt
++++ b/linux_prep/cmdlines/stmp378x_dev.txt
+@@ -1,6 +1,3 @@
+-console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait lcd_panel=lms430 no_console_suspend
+-console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait lcd_panel=lms350
+-console=ttyAM0,115200 ssp1=spi1 ubi.mtd=2 root=ubi0:rootfs0 rootfstype=ubifs lcd_panel=lms430
+-
+-
+-
++console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait ssp1=mmc lcd_panel=lms430 no_console_suspend
++console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait ssp1=mmc lcd_panel=lms350
++console=ttyAMA0,115200 ssp1=spi1 ubi.mtd=2 root=ubi0:rootfs0 rootfstype=ubifs lcd_panel=lms430
@@ -0,0 +1,68 @@
+From 564ac4b9d7da4cc8e6fdca33ca45d19649dc3366 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com>
+Date: Wed, 7 Mar 2012 23:24:54 +0100
+Subject: [PATCH] mx53_loco: add USR led support
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Eric Bénard <eric@eukrea.com>
+---
+ arch/arm/mach-mx5/mx53_loco.c | 27 +++++++++++++++++++++++++++
+ 1 files changed, 27 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/mach-mx5/mx53_loco.c b/arch/arm/mach-mx5/mx53_loco.c
+index c8417da..c91952b 100644
+--- a/arch/arm/mach-mx5/mx53_loco.c
++++ b/arch/arm/mach-mx5/mx53_loco.c
+@@ -835,6 +835,28 @@ static void __init fixup_mxc_board(struct machine_desc *desc, struct tag *tags,
+ }
+ }
+
++static struct gpio_led gpio_leds[] = {
++ {
++ .name = "USR",
++ .default_trigger = "heartbeat",
++ .active_low = 0,
++ .gpio = USER_LED_EN,
++ },
++};
++
++static struct gpio_led_platform_data gpio_led_info = {
++ .leds = gpio_leds,
++ .num_leds = ARRAY_SIZE(gpio_leds),
++};
++
++static struct platform_device leds_gpio = {
++ .name = "leds-gpio",
++ .id = -1,
++ .dev = {
++ .platform_data = &gpio_led_info,
++ },
++};
++
+ static void __init mx53_loco_io_init(void)
+ {
+ mxc_iomux_v3_setup_multiple_pads(mx53_loco_pads,
+@@ -865,6 +887,10 @@ static void __init mx53_loco_io_init(void)
+ gpio_request(DISP0_POWER_EN, "disp0-power-en");
+ gpio_direction_output(DISP0_POWER_EN, 1);
+
++ /* USR LED */
++ gpio_request(USER_LED_EN, "user-led-en");
++ gpio_direction_output(USER_LED_EN, 1);
++ gpio_free(USER_LED_EN);
+ }
+
+ /*!
+@@ -979,6 +1005,7 @@ static void __init mxc_board_init(void)
+ loco_add_device_buttons();
+ pm_power_off = da9053_power_off;
+ pm_i2c_init(I2C1_BASE_ADDR - MX53_OFFSET);
++ platform_device_register(&leds_gpio);
+ }
+
+ static void __init mx53_loco_timer_init(void)
+--
+1.7.7.6
+
@@ -0,0 +1,58 @@
+From 64bc6f1bfac43096d0102be252392f31405273ec Mon Sep 17 00:00:00 2001
+From: Greg KH <gregkh@suse.de>
+Date: Thu, 5 Aug 2010 13:53:35 -0700
+Subject: [PATCH 2/2] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
+
+We really shouldn't be asking userspace to create new root filesystems.
+So follow along with all of the other in-kernel filesystems, and provide
+a mount point in sysfs.
+
+For cgroupfs, this should be in /sys/fs/cgroup/ This change provides
+that mount point when the cgroup filesystem is registered in the kernel.
+
+Acked-by: Paul Menage <menage@google.com>
+Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
+Cc: Li Zefan <lizf@cn.fujitsu.com>
+Cc: Lennart Poettering <lennart@poettering.net>
+Cc: Kay Sievers <kay.sievers@vrfy.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+---
+ kernel/cgroup.c | 13 ++++++++++++-
+ 1 files changed, 12 insertions(+), 1 deletions(-)
+
+diff --git a/kernel/cgroup.c b/kernel/cgroup.c
+index 7a14a97..cd81c18 100644
+--- a/kernel/cgroup.c
++++ b/kernel/cgroup.c
+@@ -1621,6 +1621,8 @@ static struct file_system_type cgroup_fs_type = {
+ .kill_sb = cgroup_kill_sb,
+ };
+
++static struct kobject *cgroup_kobj;
++
+ static inline struct cgroup *__d_cgrp(struct dentry *dentry)
+ {
+ return dentry->d_fsdata;
+@@ -3885,9 +3887,18 @@ int __init cgroup_init(void)
+ hhead = css_set_hash(init_css_set.subsys);
+ hlist_add_head(&init_css_set.hlist, hhead);
+ BUG_ON(!init_root_id(&rootnode));
++
++ cgroup_kobj = kobject_create_and_add("cgroup", fs_kobj);
++ if (!cgroup_kobj) {
++ err = -ENOMEM;
++ goto out;
++ }
++
+ err = register_filesystem(&cgroup_fs_type);
+- if (err < 0)
++ if (err < 0) {
++ kobject_put(cgroup_kobj);
+ goto out;
++ }
+
+ proc_create("cgroups", 0, NULL, &proc_cgroupstats_operations);
+
+--
+1.6.6.1
+
@@ -0,0 +1,23 @@
+commit 0ffabfea6c190d28e25587c95e282eb777b3feb2
+Author: Phil Endecott <git@chezphil.org>
+Date: Mon Oct 31 21:21:41 2011 +0000
+
+ Return ERESTARTSYS from IPU_GET_EVENT
+
+Index: git/drivers/mxc/ipu/ipu_device.c
+===================================================================
+--- git.orig/drivers/mxc/ipu/ipu_device.c 2012-01-24 15:34:37.000000000 +0100
++++ git/drivers/mxc/ipu/ipu_device.c 2012-01-31 16:21:19.599303457 +0100
+@@ -411,8 +411,10 @@
+
+ r = get_events(&info);
+ if (r == -1) {
+- wait_event_interruptible_timeout(waitq,
+- (pending_events != 0), 2 * HZ);
++ if (wait_event_interruptible_timeout(waitq,
++ (pending_events != 0), 2 * HZ)) < 0) {
++ return -ERESTARTSYS;
++ }
+ r = get_events(&info);
+ }
+ ret = -1;
@@ -0,0 +1,50 @@
+commit 7237ebd59bf1cd8bcc9508ec4bc5674dc7cc6c58
+Author: Phil Endecott <git@chezphil.org>
+Date: Tue Nov 1 18:16:56 2011 +0000
+
+ Sanitise ipu interrupt return value, and loop waiting for interrupt
+
+diff --git a/drivers/mxc/ipu3/ipu_device.c b/drivers/mxc/ipu3/ipu_device.c
+index 1955f09..d66b8f8 100644
+--- a/drivers/mxc/ipu3/ipu_device.c
++++ b/drivers/mxc/ipu3/ipu_device.c
+@@ -311,7 +311,7 @@ static int mxc_ipu_ioctl(struct inode *inode, struct file *file,
+ structure and pass the pointer in arg */
+ {
+ ipu_event_info info;
+- int r = -1;
++ int r;
+
+ if (copy_from_user
+ (&info, (ipu_event_info *) arg,
+@@ -319,7 +319,7 @@ static int mxc_ipu_ioctl(struct inode *inode, struct file *file,
+ return -EFAULT;
+
+ r = get_events(&info);
+- if (r == -1) {
++ while (r == -1) {
+ if ((file->f_flags & O_NONBLOCK) &&
+ (irq_info[info.irq].irq_pending == 0))
+ return -EAGAIN;
+@@ -328,13 +328,15 @@ static int mxc_ipu_ioctl(struct inode *inode, struct file *file,
+ return -ERESTARTSYS;
+ }
+ r = get_events(&info);
++ if (r == -1) {
++ /* Shouldn't happen? */
++ printk(KERN_ERR "no events after waiting\n");
++ }
+ }
+- ret = -1;
+- if (r == 0) {
+- if (!copy_to_user((ipu_event_info *) arg,
+- &info, sizeof(ipu_event_info)))
+- ret = 0;
+- }
++ if (copy_to_user((ipu_event_info *) arg,
++ &info, sizeof(ipu_event_info)))
++ return -EFAULT;
++ ret = 0;
+ }
+ break;
+ case IPU_ALOC_MEM:
@@ -0,0 +1,41 @@
+From f7702086585465f6ccaa33ae815535e8ff10f025 Mon Sep 17 00:00:00 2001
+From: Zhang Jiejing <jiejing.zhang@freescale.com>
+Date: Fri, 23 Sep 2011 11:05:04 +0800
+Subject: [PATCH] ENGR00157473 MX5X: UART: disable UART2 DMA to make GPS work.
+
+After enable DMA, GPS will keep report these DMA error:
+
+ UART: DMA_ERROR: sr1:2010 sr2:508b
+ UART: DMA_ERROR: sr1:2050 sr2:508a
+ UART: DMA_ERROR: sr1:2050 sr2:508b
+ UART: DMA_ERROR: sr1:10 sr2:1083
+ UART: DMA_ERROR: sr1:50 sr2:1082
+ UART: DMA_ERROR: sr1:2010 sr2:508b
+ UART: DMA_ERROR: sr1:2050 sr2:508a
+ UART: DMA_ERROR: sr1:2010 sr2:508b
+ UART: DMA_ERROR: sr1:2010 sr2:508b
+ UART: DMA_ERROR: sr1:2010 sr2:508b
+ UART: DMA_ERROR: sr1:50 sr2:1083
+
+Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
+(cherry picked from commit ddaf091fd3f5fae56b3c83f5cf59ee4f189f0a40)
+---
+ arch/arm/mach-mx5/serial.h | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/arch/arm/mach-mx5/serial.h b/arch/arm/mach-mx5/serial.h
+index 6ed55da..b142fdb 100644
+--- a/arch/arm/mach-mx5/serial.h
++++ b/arch/arm/mach-mx5/serial.h
+@@ -45,7 +45,7 @@
+ #define UART1_DMA_ENABLE 0
+ /* UART 2 configuration */
+ #define UART2_UCR4_CTSTL -1
+-#define UART2_DMA_ENABLE 1
++#define UART2_DMA_ENABLE 0
+ #define UART2_DMA_RXBUFSIZE 512
+ #define UART2_UFCR_RXTL 16
+ #define UART2_UFCR_TXTL 16
+--
+1.5.4.4
+
Oops, something went wrong.

0 comments on commit 1bc1ebf

Please sign in to comment.