Skip to contentSkip to conversation

fri2: Add linux-yocto-tiny_3.4 support

PATCH In review Darren Hart 2 participants 6 messages Oct 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 fri2: Add linux-yocto-tiny_3.4 support

Add support for the tiny KTYPE via a liunx-yocto-tiny bbappend for the 3.4 kernel. With this kernel, DISTRO="poky-tiny" can be used with the fri2 and fri2-noemgd machines.

---
 .../linux/linux-yocto-tiny_3.4.bbappend            |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 meta-fri2/recipes-kernel/linux/linux-yocto-tiny_3.4.bbappend
meta-fri2/recipes-kernel/linux/linux-yocto-tiny_3.4.bbappend new file +14 -0
new file mode 100644
index 0000000..bc96859
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+COMPATIBLE_MACHINE_fri2 = "fri2"
+KMACHINE_fri2 = "fri2"
+KBRANCH_fri2 = "standard/tiny/base"
+#SRCREV_machine_pn-linux-yocto-tiny_fri2 ?= "449f7f520350700858f21a5554b81cc8ad23267d"
+SRCREV_meta_pn-linux-yocto-tiny_fri2 ?= "2ec32d511b62d44b63e8560a9b1d6895a5dac695"
+
+
+COMPATIBLE_MACHINE_fri2-noemgd = "fri2-noemgd"
+KMACHINE_fri2-noemgd = "fri2"
+KBRANCH_fri2-noemgd = "standard/tiny/base"
+#SRCREV_machine_pn-linux-yocto-tiny_fri2-noemgd ?= "449f7f520350700858f21a5554b81cc8ad23267d"
+SRCREV_meta_pn-linux-yocto-tiny_fri2-noemgd ?= "2ec32d511b62d44b63e8560a9b1d6895a5dac695"
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 2/3 fri2: README: Correct typographical and wording errors

Correct minor issues reported by Steve S.

---
 meta-fri2/README |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
meta-fri2/README +3 -3
index a866174..05b7257 100644
@@ -154,8 +154,8 @@ example:
 # eject /dev/sdf
 
 This should give you a bootable USB flash device.  Insert the device
-into a bootable USB socket on the target, and power on.  This should
-result in a system booted to the Sato graphical desktop.
+into one of the USB host ports on the target, and power on.  This
+should result in a system booted to the Sato graphical desktop.
 
 If you want a terminal, use the arrows at the top of the UI to move to
 different pages of available applications, one of which is named
@@ -242,7 +242,7 @@ e. GPIO
 -------
 The FRI2 has two I2C PCA555x GPIO devices used for internal control
 signals. These have not been exposed in the current release of the
-BSP, but may be in the future. Regardless, these do would not provide
+BSP, but may be in the future. Regardless, these would not provide
 general purpose IO with which to read or drive additional signals.
 
 f. MMC
Signature · 1 line
1.7.5.4
#3 lore raw

PATCH 3/3 fri2: Add grub-efi workaround for USB keyboard initialization

In reply to Darren Hart

The Fastboot firmware will sometimes fail to init the USB keyboard when connected directly in 1.0 mode (works fine through a 2.0 hub). By adding the USB modules to the grub-efi build, we can ensure the keyboard will be available in the grub menu at the expense of about a second in boot time.

---
 .../recipes-bsp/grub/grub-efi-native_2.00.bbappend |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 meta-fri2/recipes-bsp/grub/grub-efi-native_2.00.bbappend
meta-fri2/recipes-bsp/grub/grub-efi-native_2.00.bbappend new file +11 -0
new file mode 100644
index 0000000..c6904ef
@@ -0,0 +1,11 @@
+# The Intel provided Fast Boot Firmware may not initialize the USB keyboard
+# before launching the grub.efi payload. Ensure GRUB has keyboard control by
+# building in the usb, usb_keyboard, and ohci modules.
+
+do_mkimage() {
+	./grub-mkimage -p /EFI/BOOT -d ./grub-core/ \
+	               -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \
+	               boot linux ext2 fat serial part_msdos part_gpt normal efi_gop \
+	               usb usb_keyboard ohci
+}
+
Signature · 1 line
1.7.5.4
Acked-by on v1 1/3
#5 lore raw
In reply to Darren Hart
Quoted 5 lines · Darren Hart

Add support for the tiny KTYPE via a liunx-yocto-tiny bbappend for the 3.4 kernel. With this kernel, DISTRO="poky-tiny" can be used with the fri2 and fri2-noemgd machines.

Quoted 25 lines
---
 .../linux/linux-yocto-tiny_3.4.bbappend            |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 meta-fri2/recipes-kernel/linux/linux-yocto-tiny_3.4.bbappend
meta-fri2/recipes-kernel/linux/linux-yocto-tiny_3.4.bbappend new file +14 -0
new file mode 100644
index 0000000..bc96859
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+COMPATIBLE_MACHINE_fri2 = "fri2"
+KMACHINE_fri2 = "fri2"
+KBRANCH_fri2 = "standard/tiny/base"
+#SRCREV_machine_pn-linux-yocto-tiny_fri2 ?= "449f7f520350700858f21a5554b81cc8ad23267d"
+SRCREV_meta_pn-linux-yocto-tiny_fri2 ?= "2ec32d511b62d44b63e8560a9b1d6895a5dac695"
+
+
+COMPATIBLE_MACHINE_fri2-noemgd = "fri2-noemgd"
+KMACHINE_fri2-noemgd = "fri2"
+KBRANCH_fri2-noemgd = "standard/tiny/base"
+#SRCREV_machine_pn-linux-yocto-tiny_fri2-noemgd ?= "449f7f520350700858f21a5554b81cc8ad23267d"
+SRCREV_meta_pn-linux-yocto-tiny_fri2-noemgd ?= "2ec32d511b62d44b63e8560a9b1d6895a5dac695"
Acked-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] fri2: README: Correct typographical and wording errors

In reply to Darren Hart
Quoted 4 lines · Darren Hart

Correct minor issues reported by Steve S.

Quoted 28 lines
---
 meta-fri2/README |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
meta-fri2/README +3 -3
index a866174..05b7257 100644
@@ -154,8 +154,8 @@ example:
 # eject /dev/sdf
 
 This should give you a bootable USB flash device.  Insert the device
-into a bootable USB socket on the target, and power on.  This should
-result in a system booted to the Sato graphical desktop.
+into one of the USB host ports on the target, and power on.  This
+should result in a system booted to the Sato graphical desktop.
 
 If you want a terminal, use the arrows at the top of the UI to move to
 different pages of available applications, one of which is named
@@ -242,7 +242,7 @@ e. GPIO
 -------
 The FRI2 has two I2C PCA555x GPIO devices used for internal control
 signals. These have not been exposed in the current release of the
-BSP, but may be in the future. Regardless, these do would not provide
+BSP, but may be in the future. Regardless, these would not provide
 general purpose IO with which to read or drive additional signals.
 
 f. MMC
Acked-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] fri2: Add grub-efi workaround for USB keyboard initialization

In reply to Darren Hart
Quoted 7 lines · Darren Hart

The Fastboot firmware will sometimes fail to init the USB keyboard when connected directly in 1.0 mode (works fine through a 2.0 hub). By adding the USB modules to the grub-efi build, we can ensure the keyboard will be available in the grub menu at the expense of about a second in boot time.

Quoted 22 lines
---
 .../recipes-bsp/grub/grub-efi-native_2.00.bbappend |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 meta-fri2/recipes-bsp/grub/grub-efi-native_2.00.bbappend
meta-fri2/recipes-bsp/grub/grub-efi-native_2.00.bbappend new file +11 -0
new file mode 100644
index 0000000..c6904ef
@@ -0,0 +1,11 @@
+# The Intel provided Fast Boot Firmware may not initialize the USB keyboard
+# before launching the grub.efi payload. Ensure GRUB has keyboard control by
+# building in the usb, usb_keyboard, and ohci modules.
+
+do_mkimage() {
+	./grub-mkimage -p /EFI/BOOT -d ./grub-core/ \
+	               -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \
+	               boot linux ext2 fat serial part_msdos part_gpt normal efi_gop \
+	               usb usb_keyboard ohci
+}
+