Skip to contentSkip to conversation

board: add support for Intel Galileo Gen 2

PATCH Superseded Kinsella 1 participant 1 message Jul 29, 2015

v2 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

Kinsella

#0 lore raw

PATCH v2 1/1 board: add support for Intel Galileo Gen 2

Initial version of Galileo Gen 2 support.
Includes:-

* Toplevel build root configuration
* Github based 3.8.7 Kernel
* Upstream 3.8.7
* Linux 3.8.7 Kernel Driver Patches
* Linux 3.8.7 configuration
* Grub configuration
* Mdev configuration
* Script to automatically create SD for Galileo
* Patch to binutils to omit LOCK prefix

---
 board/intel/galileo/S10mdev                        |   25 +
 board/intel/galileo/create-boot-sd.sh              |   86 +
 board/intel/galileo/force_hotplug                  |    3 +
 board/intel/galileo/grub.cfg                       |   14 +
 board/intel/galileo/linux-3.8.config               | 3067 ++++++++++++++++++++
 board/intel/galileo/mdev.conf                      |   38 +
 .../binutils/2.25/default-lock-prefix.patch        |   11 +
 board/intel/galileo/post-build.sh                  |    5 +
 configs/galileo_defconfig                          |   18 +
 9 files changed, 3267 insertions(+)
 create mode 100644 board/intel/galileo/S10mdev
 create mode 100755 board/intel/galileo/create-boot-sd.sh
 create mode 100755 board/intel/galileo/force_hotplug
 create mode 100644 board/intel/galileo/grub.cfg
 create mode 100644 board/intel/galileo/linux-3.8.config
 create mode 100644 board/intel/galileo/mdev.conf
 create mode 100644 board/intel/galileo/patches/binutils/2.25/default-lock-prefix.patch
 create mode 100755 board/intel/galileo/post-build.sh
 create mode 100644 configs/galileo_defconfig
board/intel/galileo/S10mdev new file +25 -0
new file mode 100644
index 0000000..4f6756b
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Start mdev....
+#
+
+case "$1" in
+  start)
+    echo "Starting mdev..."
+    echo /sbin/mdev >/proc/sys/kernel/hotplug
+    echo "Triggering pci hotplug events"
+    cd /sys/devices/pci0000:00
+    find . -name uevent -exec /sbin/force_hotplug {} \;
+    /sbin/mdev -s
+    ;;
+  stop)
+    ;;
+  restart|reload)
+    ;;
+  *)
+    echo "Usage: $0 {start|stop|restart}"
+    exit 1
+esac
+
+exit $?
+
board/intel/galileo/create-boot-sd.sh new file +86 -0

86 lines not on this page · raw message

board/intel/galileo/force_hotplug new file +3 -0
new file mode 100755
index 0000000..d19ea00
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo add > $1
board/intel/galileo/grub.cfg new file +14 -0
new file mode 100644
index 0000000..bf9e354
@@ -0,0 +1,14 @@
+set default="0"
+set timeout="1"
+
+#assumes that dos partition table is being used.
+#assumes linux is on the second partion of the sdcard
+
+menuentry "Buildroot" {
+    #Grub2 supports fat/ext2, its safe to put the kernel on the Linux parition
+    #set root tells grub to seach the 2nd partition for the bzImage
+    set root=(hd0,msdos2)
+
+    #Set Linux to boot from the 2nd partition, SD/MMC support is baked into the kernel
+    linux /boot/bzImage root=/dev/mmcblk0p2 console=ttyS1,115200n8 reboot=efi,warm apic=debug rw
+}
board/intel/galileo/linux-3.8.config new file +3067 -0

2,872 lines not on this page · raw message

board/intel/galileo/mdev.conf new file +38 -0
new file mode 100644
index 0000000..f13b7b6

Lines of this file are not shown. View the raw message.

board/intel/galileo/patches/binutils/2.25/default-lock-prefix.patch new file +11 -0
new file mode 100644
index 0000000..7814ae4

Lines of this file are not shown. View the raw message.

board/intel/galileo/post-build.sh new file +5 -0
new file mode 100755
index 0000000..e90f646

Lines of this file are not shown. View the raw message.

configs/galileo_defconfig new file +18 -0
new file mode 100644
index 0000000..6c17e2c

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.1.0

Part of the diff is not shown here. View the raw message.