Commit Graph

893 Commits

Author SHA1 Message Date
Andrei Gherzan
2d40b00002 rpi-base.inc: Build rpi-poe dtb overlay
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-11 15:50:33 +01:00
Andrei Gherzan
c7330ac5e4 linux-raspberrypi: Build rpi poe fan driver
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-11 15:50:33 +01:00
Andrei Gherzan
aea27ba4c7 linux-raspberrypi: Update to 4.14.68
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-11 15:50:33 +01:00
Andrei Gherzan
50ee8d7e17 firmware: Update to 20180817
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-11 15:50:33 +01:00
Steve Pavao
ade31d6d01 rpi-hwup-image.bb: Modified the warning message in do_image_prepend()
When bitbaking image rpi-hwup-image, a warning message is generated
to inform he user that the image is deprecated.  The warning message
contains a suggestion of a non-deprecated image to use instead.

Previous to this commit, core-image-minimal was the suggested alternate
image.  This was a subpar suggestion, because rpi-hwup-image packages
the kernel modules in the image, but core-image-minimal does not.  This
can lead to confusion for the user, who may not immediately realize that
their kernel modules are no longer in the image.  With this commit, the
warning message now suggests core-image-base, which packages the kernel
modules in its image.

This change was suggested by Khem Raj on the Yocto project mailing list.

Signed-off-by: Steve Pavao <stevep@korgrd.com>
2018-09-06 20:00:49 +01:00
Andrei Gherzan
2a6e4883f9 raspberrypi3-64.conf: Define only the dtb files that are available for arch64
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-06 20:00:49 +01:00
Andrei Gherzan
99ebafd75a rpi-base.inc: Split overlays and dtbs from KERNEL_DEVICETREE
This is helpful for example in the cases where the kernel doesn't
provide all the dtbs in arm64 as in arm.

Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-06 20:00:49 +01:00
Andrei Gherzan
3204425178 linux-raspberrypi: Update to v4.14.58
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-06 20:00:49 +01:00
Andrei Gherzan
cf26c996ff raspberrypi3-64.conf: Include cm3 dtb
Add the CM3 dtb in the boot partition so we can boot this board as well with
this machine.

Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-09-06 20:00:49 +01:00
Martin Jansa
235036c3a8 sdcard_image-rpi.bbclass: use 4 spaces for indentation instead of mix of tabs and spaces
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-06 20:00:49 +01:00
Martin Jansa
f9e1ce03c5 sdcard_image-rpi: add dependency on rpi-u-boot-scr
* there is runtime dependency on rpi-u-boot-scr from u-boot itself:
  recipes-bsp/u-boot/u-boot_%.bbappend:RDEPENDS_${PN}_append_rpi = " rpi-u-boot-scr"
* but that's not enough to ensure that rpi-u-boot-scr:do_deploy is
  finished before do_image_rpi_sdimg and for
  ${DEPLOY_DIR_IMAGE}/boot.scr to exist in time

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-06 20:00:49 +01:00
Martin Jansa
2637389adb sdcard_image-rpi.bbclass: copy the DTB files with canonical name
* instead of using ${KERNEL_IMAGETYPE}-${DTB_BASE_NAME}.dtb use
  the entries from KERNEL_DEVICETREE
* basename is still needed because raspberrypi3-64 is using:
  broadcom/bcm2710-rpi-3-b.dtb and the ${DEPLOY_DIR_IMAGE} doesn't
  contain any directories for DTBs and we cannot remove broadcom/
  prefix, because then "make bcm2710-rpi-3-b.dtb" from
  kernel-devicetree.bbclass will fail with:
  make[3]: *** No rule to make target 'arch/arm64/boot/dts/bcm2710-rpi-3-b.dtb'.  Stop.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-06 20:00:49 +01:00
Khem Raj
391ea937a9 linux-raspberrypi: Update to 4.14.52+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-06 20:00:49 +01:00
Khem Raj
e0149506ce firmware: Update to 20180619 release
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-06 20:00:49 +01:00
Hugo Hromic
5cd289ac1b wiringpi: use lower-case in recipe directory name
Keep naming consistency.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-09-06 20:00:49 +01:00
Hugo Hromic
2cae48218b meta-raspberrypi: use generic licenses in ${COMMON_LICENSE_DIR} from Poky
Keep consistency with current practices.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-09-06 20:00:49 +01:00
Hugo Hromic
1801aa319c pi-bluetooth: use _git suffix in recipe filename
Keep naming consistency.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-09-06 20:00:49 +01:00
Hugo Hromic
a4ba2982e4 meta-raspberrypi: use _% suffix instead of specific versions for bbappends
Keep naming consistency and ensure they are still applied when the upstream recipes are updated.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-09-06 20:00:49 +01:00
Hugo Hromic
e1f746fa66 formfactor: use rpi instead of raspberrypi to apply to all rpi machines
Signed-off-by: Hugo Hromic <hhromic@gmail.com>
2018-09-06 20:00:49 +01:00
Anton Gerasimov
690e196f02 docs: document support for 802.15.4 hat
Signed-off-by: Anton Gerasimov <tossel@gmail.com>
2018-09-06 20:00:49 +01:00
Anton Gerasimov
42de47506a rpi-config: load at86rf233 overlay
Controlled with ENABLED_AT86RF variable

Signed-off-by: Anton Gerasimov <tossel@gmail.com>
2018-09-06 20:00:49 +01:00
Anton Gerasimov
a15dbd32c6 rpi-base.inc: install at86rf233 overlay
Controlled with ENABLE_AT86RF variable

Signed-off-by: Anton Gerasimov <tossel@gmail.com>
2018-09-06 20:00:49 +01:00
Eduardo Abinader
ed0cfd5b9e config_git.bb: Remove extra space
Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
2018-09-06 20:00:49 +01:00
Martin Jansa
05f21adb99 linux-firmware: remove duplicate ${PN}-bcm43455 package
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-08-10 12:01:01 +01:00
Martin Jansa
b35e827e53 linux-firmware: move ${PN}-cypress-license handling to oe-core recipe
* this will make this bbappend a bit more version agnostic
* depends on oe-core commits from:
  http://lists.openembedded.org/pipermail/openembedded-core/2018-July/153164.html
  to prevent including ${PN}-cypress-license package twice in PACKAGES
  http://lists.openembedded.org/pipermail/openembedded-core/2018-July/153165.html

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-08-10 12:01:01 +01:00
Mirza Krak
cdb2dad529 linux-raspberrypi: update 4.9 recipe to current HEAD
Contains the following changes:

    7f9c648dad64 drm/vc4: Move IRQ enable to PM path

which fixes an unbalanced IRQ enable warning, which was rapported
in #286

Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-07-20 15:07:55 +01:00
Martin Jansa
d45f13b11b linux-firmware: update LIC_FILES_CHKSUM for d114732 revision from oe-core
* unfortunately the LICENCE.cypress was updated in last upgrade:
  http://git.openembedded.org/openembedded-core/commit/?id=6be8744d1b8ee35eb47acd517cfa29b2a7f455d5
  ba51e86 Update Cypress license termination clause
  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/LICENCE.cypress?id=ba51e861f4444f51e7e83f778575a8146dc514d0

* and the same was now backported to sumo branch:
  http://git.openembedded.org/openembedded-core/commit/?h=sumo&id=087a50f4d8075a91fa6aa373a3dc05017e62f1f9

* it's unfortunate, because now meta-raspberrypi/master is compatible
  only with oe-core master after
  6be8744d1b8ee35eb47acd517cfa29b2a7f455d5
  it would be nice to upstream some of these changes to linux-firmware
  recipes and leave only the rpi specific packaging here

* and the same happened with sumo backport, so meta-raspberrypi/sumo
  will be compatible only with oe-core sumo after
  087a50f4d8075a91fa6aa373a3dc05017e62f1f9

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-07-20 12:25:40 +01:00
Peter A. Bigot
f2e2a4376e rpi-config: remove explicit device tree selection for raspberrypi3-64
The current firmware doesn't need this.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-14 16:56:30 +01:00
Peter A. Bigot
8632069f29 raspberrypi3-64.conf: add 3B+ device tree
Closes #253

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-14 16:56:30 +01:00
Peter A. Bigot
092d42cd82 linux-firmware: restore and merge bluez-firmware
The attempt to Raspbian updated firmware blobs in packages separate from
linux-firmware introduced unresolvable conflicts with the standard
linux-firmware roll-up package.  Revert to using an augmented
linux-firmware recipe that overrides and adds firmware from two Raspbian
repositories that have up-to-date images.

Closes #244

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-14 10:35:51 +01:00
Peter A. Bigot
6aa54e92e3 pi-bluetooth: create to provide standard raspbian script for bluetooth setup
Unique bluetooth device addresses are not assigned correctly with some
firmware, resulting in a fixed default address.  Use the same utility as
raspbian does to initialize the device.

Closes #236

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-11 14:55:25 +01:00
Peter A. Bigot
df56f0c6cc bluez-firmware-raspbian: create to hold non-free firmware
Remove the material covered by the Cypress license from the bluez5
package and move it to its own package, derived directly from the
upstream sources.

Closes #224

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-11 14:55:25 +01:00
Peter A. Bigot
1027038db7 bluez5: fix issues with systemd script
Type=simple is wrong: it allows bluetooth.service to start before the
uart is configured, resulting in hci0 command tx timeout errors.
Type=oneshot blocks follow-up units until the ExecStart completes.

Add RemainAfterExit since system state has changed as a result of the
unit.

Also add a BindsTo for the device that we're going to use.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-11 14:55:25 +01:00
Peter A. Bigot
dbee7838b7 bluez5: trivial fix to RDEPENDS
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-11 14:55:25 +01:00
Peter A. Bigot
0fd3728b1d linux-raspberrypi: Update to v4.14.39
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-11 14:55:25 +01:00
Peter A. Bigot
8cd71e771a firmware: Update to 20180417
stable #4

RaspberryPi 3B+ support

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-11 14:55:25 +01:00
Peter A. Bigot
d3709fa688 rpi-config: add helper to enable dwc2 peripheral support
Document and add support to easily enable USB gadget mode.

Also fix a spelling error.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-05 10:03:21 +01:00
Peter A. Bigot
07d06b04dd rpi-base.inc: add dwc2 overlay
This along with some module and connman magic allows a RaspberryPi Zero
Wireless to tether to a host over USB.

dtoverlay=dwc2,dr_mode=peripheral
modprobe g_ether
connman enable gadget
connman tether gadget on

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-05-05 10:03:21 +01:00
Khem Raj
cf9971fa8b xserver-xf86-config: Disable glamor for vc4 in general
We need this fix across 32bit and 64bit with vc4/mesa

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-04 22:08:38 +01:00
Khem Raj
4d689a792c webkitgtk: Add a bbappend to disable gst-gl on vc4
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-04 22:08:38 +01:00
Khem Raj
014408d1ac linux-raspberrypi: Disable serial on kernel cmdline if ENABLE_UART is unset
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-04 22:08:38 +01:00
Eduardo Abinader
070c894321 sdcard_image-rpi.bbclass: Fix a typo in comment
Only a small typo on bbclass header.

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
2018-05-04 15:11:47 +01:00
Paul Barker
693f36dded linux-raspberrypi: Drop CONFIG_OABI_COMPAT completely
There's no reason to support the old, outdated ARM OABI when upstream
linux-raspberrypi doesn't support this by default.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Paul Barker
2c7eab2d0d linux-raspberrypi: Drop inappropriate forced settings
CONFIG_BLK_DEV_DRBD: Deciding whether to use the in-kernel DRBD module or the
external drbd recipe in meta-networking is a policy decision and doesn't belong
in our BSP layer.

CONFIG_LEGACY_PTYS: These are legacy for a reason. They're not enabled in the
defconfig so they shouldn't be required for rpi devices. Let's drop this here,
it can be added back in a distro layer where (if) needed.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Paul Barker
d2ead7c039 linux-raspberrypi: Don't set CONFIG_CMDLINE
We force the command line at runtime via cmdline.txt anyway.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Paul Barker
66103edbb8 linux-raspberrypi: Drop support for CMDLINE_NFSROOT_USB
This is obsolete, undocumented and won't work anyway since we force the kernel
command line to ${CMDLINE} via the cmdline.txt file.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Paul Barker
be2d9b1bf6 linux-raspberrypi: Drop unnecessary configurations
KERNEL_ENABLE_CGROUPS: This is obsolete, all required config options for cgroups
are enabled by default.

KERNEL_INITRAMFS: Some of the config options we set are already enabled by
default.

UDEV_GE_141: This is long obsolete and all the required config options are
already set in the defconfig.

ARM_KEEP_OABI: AEABI=y and OABI_COMPAT=n are already set in the defconfig.

CONFIG_LOCALVERSION_AUTO: This setting is already disabled in the defconfig.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Paul Barker
92aac38577 Don't use RDEPENDS in recipes which don't create packages
RDEPENDS is fairly meaningless for recipes which don't create a package to be
installed into the rootfs. Instead we should be using DEPENDS to guarantee
correct ordering of build tasks.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Paul Barker
9b2cbacb07 Drop unnecessary dependencies and tasks
We have a few recipes which only deploy files that go into the boot partition
and do not create packages to be installed into the rootfs. These recipes don't
need to run the usual packaging tasks so we can drop them to speed up the build
a little.

We also have a bunch of recipes that don't need the usual toolchain as they just
copy files or invoke native commands like `mkimage`. So to speed up the build a
little more we can set INHIBIT_DEFAULT_DEPS to avoid an unnecessary dependency
on the toolchain.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00
Paul Barker
e059aaffdf linux-raspberrypi-dev: Update to v4.16.y
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-04-23 14:08:04 +01:00