Fixes:
File "/home/retpolanne/Dev/orange-pi-one-plus-image/poky/scripts/lib/devtool/standard.py", line 839, in modify
if (os.path.exists(srcdir) and os.listdir(srcdir)) and (kernelVersion in staging_kerVer and staging_kbranch == kbranch):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'in ' requires string as left operand, not NoneType
While running devtool modify virtual/kernel.
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
With my device, around one boot out of 3 was not able to finish. I found that the mmc
order was not correct in that cases.
Fix: enforcing device order in DTS.
Traceback (most recent call last):
File "${TOPDIR}/../src/poky/scripts/devtool", line 338, in <module>
ret = main()
File "${TOPDIR}/../src/poky/scripts/devtool", line 325, in main
ret = args.func(args, config, basepath, workspace)
File "${TOPDIR}/../src/poky/scripts/lib/devtool/standard.py", line 834, in modify
if (os.path.exists(srcdir) and os.listdir(srcdir)) and (kernelVersion in staging_kerVer and staging_kbranch == kbranch):
TypeError: 'in <string>' requires string as left operand, not NoneType
Where 'kernelVersion' is None that cause an error.
In the code: "kernelVersion = rd.getVar('LINUX_VERSION')"
So LINUX_VERSION should be initialized
Signed-off-by: Ilja Byckevich <iljabyckevich@gmail.com>
This commit backports an u-boot patch that adds a compatible
string for the Allwinner Sun4i-A10 I2C controller.
This will fix the boot process freeze after SPL stage for A13 based machines
Signed-off-by: Sebastian Panceac <spanceac@gmail.com>
Fix following:
ERROR: Problem encountered: xlib based GLX requires at least one gallium driver
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Cortex-A8 architecture is ARMv7A.
Before this path fix the following failure was triggered when building for "olinuxino-a13"
machine:
"
[..]/meta-sunxi/conf/machine/include/sun5i.inc:3: Could not include required
file conf/machine/include/arm/armv8a/tune-cortexa8.inc
"
In kirkstone we use u-boot 2022.01 which added as mandatory usage of scp.
As it's used for power relates stuff and we don't need it atm set to to empty.
Without this fix generated u-boot cannot boot.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
This mutes bitbake warning:
----------------------------->8------------------------
WARNING: .../meta-sunxi/recipes-kernel/linux/linux-sunxi_3.4.bb:
URL: git://github.com/linux-sunxi/linux-sunxi.git;branch=sunxi-3.4;protocol=git uses git protocol which is no longer supported by github.
Please change to ;protocol=https in the url.
----------------------------->8------------------------
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
For some reason it was not updated since 2015 and
there seem to be quite some changes in the repo.
Also switch protocol for getting sources from GitHub
from git to https to get rid of the bitbake warning.
Signed-off-by: Alexey Brodkin <alexey.brodkin@gmail.com>
OE/Yocto is migration towards new override syntax,
current master (upcomming honister release) will not
tolerate "_" as override operator.
New override syntax will be backported to
dunfell, gatesgarth, hardknott releases.
Signed-off-by: Bartłomiej Burdukiewicz <bartlomiej.burdukiewicz@gmail.com>
Defaulting to the $MACHINE may lead to failure if the name was
longer than the limit of allowed volume label of fat (11 chars).
Signed-off-by: Marius Kriegerowski <marius.kriegerowski@gmail.com>
This reverts commit 58d382d598.
This change was not needed on master. The patch was already correctly
refreshed on the dunfell branch to be compatible with the v2020.01
U-Boot release. It was done in the following commit: d0bbc7334d
Current xradio driver have an issue that with 5.x kernel doesn't work properly.
Bump it to more maintained one which support also 5.x kernel.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Update the layer compatibility information to indicate this layer is
compatible with "dunfell".
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Update documentation to clarify how to select the use of mainline graphics
drivers lima and panfrost.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Enable open source GPU support for Mali Utgard GPUs (lima driver) and
Mali Midgard and Bifrost GPUs (panfrost driver).
The support is enabled by:
- enabling DRM kernel CONFIGs
- enabling lima, panfrost and kmsro in Mesa
- disabling the specific mali driver overrides in sunxi-mali.inc
To enable open source mainline graphics support just add the following
line in your local.conf:
MACHINEOVERRIDES .= ":use-mailine-graphics"
Please note that some machines may need a bigger CMA value to be able to
start Weston. To do that, add e.g. "cma=128M" to the kernel parameters.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Use .inc file to share common code and parameters. Also, always apply
orange-pi-zero wifi patch unconditionally: it is easier to spot build
issues while updating recipes if patch is applied regardless of the
machine we're building on.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
According to:
https://www.kernel.org/category/releases.html
version 5.4 is a longterm release, so:
- add longterm 5.4 series at 5.4.18
- update longterm 4.19 series to 4.19.103
- update stable to 5.5.3
- remove rc, as it quickly gets out of date. rc users will likely build
kernel from master outside of OE anyway
- set 5.4 as the preferred version for linux-mainline
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Update pya20 to version 0.2.12:
- support for Python2 has been removed in oe-core master (see commit
390f3edabfb1f68ed9766245291c5f44ea00cc38) so dependencies and classes
have been changed to use Python3. Without this change recipe parsing
fails on master, as distutils class doesn't exist anymore
- license has been fixed to be GPLv3 as declared in pyA20/__init__.py
- setup.py.patch is no longer needed
- pya20som has been removed, as machine olinuxino-a20som is supported by
pya20
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Add support for AMPAK 6212A module:
1) install kernel module
2) install firmware
3) create the required symlink with the AP6212 NVRAM file
Enable the support in the boards with the module, according to:
https://linux-sunxi.org/Table_of_Allwinner_based_boards
The link creation with compatible name works on kernels >= 5.0.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Remove pointless U-Boot PREFERRED_VERSION, as meta-sunxi no longer
provides its own u-boot recipe.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
The auto-RDEPENDs system reqires that all .so libraries have
proper soname set. If library soes not have soname set, it will
not be added to RDEPENDs list of other elf files.
Closes#240
Use the upstream U-Boot and simply bbappend the changes that are needed.
U-Boot 2018.09 no longer builds against master.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
sunxi-tools requires pkg-config native binary
which may be missing wihen pkgconfig class
is not inherited.
Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com>
In the latest OE, this file has been renamed. Since this board is
ARMv8-A, we should use the armv8-a config instead of the armv8 config.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
This change is an adaptation of commit 81e8a52e8e40e47 from poky/master.
Linux kernel build dependencies include bison since v4.16.
There were two different commits in poky adding those dependencies:
- poky/master: 81e8a52e8e40e47
- poky/sumo: 20e4d309e12bf10
However just adding bison-native to DEPENDS in linux or linux-yocto
class (as in poky/sumo) appears to be insufficient. The reason has
been clarified in 81e8a52e8e40e47 commit message:
"For linux-yocto, we also need to specify the compiler/tools dependencies
for the configme task since it executes before configure and hence the
main kernel build DEPENDS will not always be in the sysroot before it
executes. Without those dependencies the kernel will be incorrectly
configured (i.e. bison is missing) or the configuration will fail
the mitigation tests."
Layer meta-sunxi is compatible with multiple Yocto releases. Some of
those releases have been developed and tested with earlier kernels.
So they may not include new bison kernel build dependencies. That
is why it makes sense to specify new kernel build dependencies
explicitely in meta-sunxi kernel recipes rather than rely upon
upper layers.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
This has been assigned a value containing a typo since 2015, my
assumption is that this is not used and hence we can simply drop
it. The typo is that the address contains a 'O' character instead
of '0', the last one is a zero.
Either way the kernel.bbclass will set a default value, that is:
UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}"
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
v2017.03 no longer exists and produces warnings if set as preferred:
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version v2017.03% of u-boot not available (for item virtual/bootloader)
NOTE: versions of u-boot available: 1:2018.01 2:v2018.03+gitAUTOINC+f95ab1fb6e
NOTE: preferred version v2017.03% of u-boot not available (for item u-boot-dev)
NOTE: versions of u-boot available: 1:2018.01 2:v2018.03+gitAUTOINC+f95ab1fb6e
NOTE: preferred version v2017.03% of u-boot not available (for item u-boot)
NOTE: versions of u-boot available: 1:2018.01 2:v2018.03+gitAUTOINC+f95ab1fb6e
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Currently, only one of the exposed USB ports works because we haven't
loaded the sunxi musb driver, which enables the OTG port to act in host
mode.
After enabling this driver in the config, both ports work correctly.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Bump Linux kernel version to 4.15.
Notes:
- orange-pi-zero-plus2: drop patch fixing sdcard detect
-- this fix is already in 4.15
- H2+/H3 SoCs: in 4.15 ethernet works right out of the box
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
This fixes an important brcmfmac use-after-free error:
brcmfmac: change driver unbind order of the sdio function devices
commit 5c3de777bdaf48bd0cfb43097c0d0fb85056cab7 upstream.
commit 01b43f2e3cad60c626daa9b174667a202cee6987 in linux-4.14.y
Without this change, I notice this error regularly when loading the wifi
firmware on the nanopi neo air.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
The kernel-devicetree class now sets RDEPENDS_${KERNEL_PACKAGE_NAME}-base so we
needs to do the same, otherwise bitbake emits a warning. Reference change is
6c8c899 commit in oe-core.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Currently, using kernel config fragments is not working. If you try
adding one as documented in the Yocto Mega Manual [1], it will be
ignored.
There are two reasons for this:
- The config fragment logic is in kernel-yocto.bbclass, so we need to inherit
that (this is similar to what linux-raspberrypi does in meta-raspberrypi).
- We remove ${B}/.config, which undoes any config created by
kernel-yocto.
Fix this by inheriting kernel-yocto and not removing ${B}/.config. With
this patch, fragments are working. Note that we also need to add a few
variables (like KERNEL_KBUILD) to make kernel-yocto happy.
[1]
http://www.yoctoproject.org/docs/2.5/mega-manual/mega-manual.html#creating-the-append-file
Signed-off-by: Martin Kelly <mkelly@xevo.com>
We have devicetree and u-boot configs for the nanopi-neo-air, so add
them. As a basic test, this boots correctly on my nanopi-neo-air.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Orange Pi Zero Plus2 board is based on AllWinner H5 SoC.
For more details on its hardware see linux-sunxi wiki:
http://linux-sunxi.org/Xunlong_Orange_Pi_Zero_Plus_2
This patch enables basic support for orange-pi-zero-plus2 board:
- mainline kernel 4.14.2
- mainline u-boot 2017.11
- dts kernel patch that fixes boot from SD card
- dts kernel patch enabling AP6212 WiFi/BT chip
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Modify sdcard_image-sunxi bbclass to support both sun50i and older
SoC families. Major changes are as follows:
- update comments: disk layout info
- increase boot partition size: aarch64 unified kernels can be large
- kernel image in boot partition: replace explicit name by KERNEL_IMAGETYPE
- SPL image: replace explicit name by SPL_BINARY
- implement flexible DTB file location in boot partition
-- e.g. by defaut sun50i u-boot looks for dtb in allwinner subdirectory
-- follow kernel dtb naming conventions, e.g. allwinner/<board>.dtb
- copy aarch64 u-boot image to image
-- sunxi arm boards use unified u-boot/spl image
-- sunxi aarch64 boards use two different images
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
There is no common kernel defconfig for both arm and aarch64.
Create separate kernel defconfigs in arm and aarch64 subdirectories.
Proper defconfig will be selected in build time
according to target architecture.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Add support of sun50i SoC family to u-boot recipe:
- move SPL_BINARY to sunxi.inc and sunxi64.inc
-- different SoC families have different SPL_BINARY names
- create separate boot.cmd files for arm and aarch64
-- different kernel image types require different boot commands
- add atf-sunxi dependency
-- u-boot for aarch64 needs ATF BL31 binary
- add do_compile_sun50i[depends]
-- make sure that BL31 binary is already deployed before u-boot build
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Add ARM Trusted Firmware package for Allwinner arm64 chips.
There are different approaches to build bootloaders for aarch64
platforms. Allwinner approach is to build ATF first, and then
to build U-Boot using BL31 binary from ATF build.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Follow the same approach as in 32-bit sunxi SoC families:
- create sunxi64.inc: umbrella description for aarch64 sunxi
-- specify proper u-boot/spl image types
-- specify proper kernel image type
-- specify u-boot/kernel preferred providers
- create basic description of sun50i SoC family
-- sun50i SoC family is based on armv8
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
- remove older stable release recipes
- bump stable linux recipe to 4.14.2
- bump git linux recipe to 4.15-rc1
- rename linux to linux-mainline
Renaming kernel recipe from 'linux' to 'linux-mainline' is needed to
get ready for adding aarch64 support. The reason is in the value of
OVERRIDES environment variable. BitBake uses OVERRIDES to control what
variables are overridden after BitBake parses recipes and configuration
files. So packages names are not allowed to take values listed in
OVERRIDES. One of the OVERRIDES values is TARGET_OS:
TARGET_OS = linux${LIBCEXTENSION}${ABIEXTENSION}
For arm architecture TARGET_OS = "linux-gnueabi". However for aarch64
architecture TARGET_OS = "linux". As a result, in the case of aarch64
kernel package can not be named 'linux'. This patch renames kernel
package name to 'linux-mainline' in order to be able to maintain the
same kernel recipes for both arm and aarch64 boards.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Binman host tool in u-boot depends on libfdt library and pylibfdt module.
All the needed libraries and python modules are a part of u-boot.
This patch adds libfdt and pylibfdt to u-boot build:
- add required dependencies swig-native and python3-native
- fix python setup-tools issue: pass proper shared lib linker
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Remove the complete list of U-Boot licenses. Follow the poky and OE-core
approach and keep only umbrella reference to Licenses/README.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Update stable to 4.13.4 version thus removing backported patch and requirement
of git version for several boards (current stable 4.13 is newer than previous
git 4.11).
Additionally update git version to 4.14-rc3.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Adapt to upstream change in oe-core commit 03a00be: now Device Tree support is
automatically enabled when KERNEL_DEVICETREE is set.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
The older "IMAGE_DEPENDS_*" notation has been deprecated in favour of the
"do_image_...[depends]" notation.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
As suggested by Andrei Gherzan (see #178):
"The current implementation inherits sdcard_image-sunxi.bbclass
unconditionally which in turn, sets two depends on do_rootfs
unconditionally again.
This means that if I want to build an initramfs image in the
kernel image I will get a dependency loop."
Signed-off-by: Enrico Butera <ebutera@users.sourceforge.net>
Adjust the bootscript so that if U-Boot is loaded from the eMMC, then
kernel "root" parameter is set to use eMMC second partition.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Add support for eMMC for Olimex A20-OLinuXino Lime2 eMMC board by adding the
appropriate defconfig while waiting it is upstreamed in mainline U-Boot.
Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Fix the following build error when compiling u-boot-sunxi with gcc6:
linux/compiler-gcc6.h: No such file or directory
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Add machine description for Orange Pi Zero board. Detailed hardware
overview is available at the following linux-sunxi wiki page:
http://linux-sunxi.org/Orange_Pi_Zero
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Bump preferred u-boot release version and kernel git version:
- kernel 4.11.0-rc5
- u-boot 2017.03
Update preferred versions of u-boot and kernel for all the
boards that are using them: nanopi-neo, orange-pi-one, pcduino.
The purpose of this update is to get the latest features for
sun8i cores including SPI support and orange-pi-zero support
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
This enables CONFIG_THERMAL_OF by default for kernel config. It is
required to get Allwinner SoCs' temperature from the GPADC driver.
For detailed description see mainline kernel commit:
11937f69b65b08d3184b1ebc864668be4b6c5427
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Commit b36056af20e981433f143556d511dec5644930fc in oe-core master
(matching commit in poky master is a40f5d34065129ab19a3c981cbb38f854e9ae0ec)
moved some bits out of u-boot.inc (from oe-core) into u-boot-common_${PV}.inc. This
breaks many u-boot recipes in the wild, including u-boot_2016.09.01 from this layer
since the variable S itself results undefined.
Explicitly setting S fixes the issue.
Fixes the following compile error with GCC 6:
[...]/kernel-source/include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc6.h: No such file or directory
Signed-off-by: Jonathan Liu <net147@gmail.com>
The IMAGE_NAME variable already contains the date and time so it is
redundant to also include the date again with IMAGEDATESTAMP
when writing to image-version-info in the boot partition.
Signed-off-by: Jonathan Liu <net147@gmail.com>
IMAGEDATESTAMP may change while bitbake is running which can result in
a taskhash mismatch error for do_image_sunxi_sdimg.
Signed-off-by: Jonathan Liu <net147@gmail.com>
The image class assumes the working directory is the directory
containg the kernel and device tree files but this isn't always the
case.
Signed-off-by: Jonathan Liu <net147@gmail.com>
This will now error out during parsing instead of during do_compile as
well as having a better error message.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Previously ${EXTRA_OECONF} had been added to the 'make' invocations, but this
doesn't work if, say, EXTRA_OECONF is set to '--disable-shared'. What was
probably meant was to add ${EXTRA_OEMAKE}.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Add support for LinkSprite pcDuino1 device and its flavors
including pcduino-lite and pcduino-lite-wifi:
- add pcduino machine description
- enable CONFIG_SPI_SPIDEV in upstream kernel defconfig to provide simple userspace access
to SPI devices on Arduino shields
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
The current yocto master adds a patch for the beaglebone to the u-boot.inc, which breaks the build.
Explicitly set SRC_URI to prevent that.
Signed-off-by: Jens Lucius info@jenslucius.com
Remove image dependency on building fex files which are not needed
any more for mainline kernel (replaced by devicetree).
Add dependency for fex to linux-sunxi kernel.
Also update to latest sunxi-linux revision.
Signed-off-by: Jens Lucius <info@jenslucius.com>
- Update U-Boot from 2015.07 to 2015.10
- Update mainline kernel from 4.1.7 to 4.1.10
- Update git kernel from 4.3rc2 to 4.3rc6
Signed-off-by: Jens Lucius <info@jenslucius.com>
The sunxi-mali repository includes a test application, enable support for
building and generating a new package (sunxi-mali-test) so it can be included
in an image at the user's discretion.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
The mali driver supports OpenGL ES and doesn't require OpenGL in any way. It
is completely feasible to install mali and run OpenGL ES-only apps against it
without any need for OpenGL whatsoever.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
When building a second time, allow the 'rm' command to fail silently since
these files may have been removed from a failed previous build.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
The linux-sunxi 3.4 kernel could not be compiled with gcc5 (which
is standard in master now). Add two patches to make it compile again.
- Add missing compiler-gcc5.h
- Fix "multiple definition of `return_address'" errors
Open issue: All realtek wifi drivers fail to compile. Because of this
keep info to switch back to gcc4 in readme.
Signed-off-by: Jens Lucius <info@jenslucius.com>
When trying to build sunxi-mali with current master there is a strip
error introduced in a patch trying to strip the rootfs. Disable striping.
Also fix an error where external recipes would not find the libaries.
Signed-off-by: Jens Lucius <info@jenslucius.com>
Add installation of .pc and header files. Add compile patches to fix errors.
Original fix by raoulh, already included in meta-sunxi dora branch by naguirre.
Ported to master branch and no not switch away from sunxi-mali git repo, instead just
add the needed patches on top of it.
Signed-off-by: Jens Lucius <info@jenslucius.com>
If the user wants to build the sunxi version of the kernel they can specify
the PREFERRED_PROVIDER block in their conf/local.conf (i.e. they don't need to
edit the layer explicitly).
Also, now that gcc-5.2 is the default on master, inform the user how they can
continue to build the sunxi version (3.4%) version of the kernel by forcing
the compiler to version 4.9.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
The complete fel boot has been reworked, making it possible to boot
mainline u-boot via fel mode, also supports Allwinner H3, A80 and A88.
Signed-off-by: Jens Lucius <info@jenslucius.com>
- Update kernel from 4.1.3 to 4.1.7
- Update git kernel from 4.2rc4 to 4.3rc2
- Sync defconfig with latest version
Signed-off-by: Jens Lucius <info@jenslucius.com>
ext3 filesystem is getting deprecated in favor of ext4 and openembedded
will default to ext4 in the next release, so switch to ext4 as well.
Signed-off-by: Jens Lucius <info@jenslucius.com>
Mainline u-boot uses a different name for the configuration for the Mele G.
Use correct name for mainline, use old name for sunxi u-boot.
Signed-off-by: Jens Lucius <info@jenslucius.com>
* Fhandle: unbreak serial port console in systemd
* ikconfig: have /proc/config.gz available for reference
sysvipc, mqueues and bpf are useful for userspace that is more than just
busybox.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Systemd works a lot better with autofs, fuse and fanotify, so turn those
on.
Fuse and fanotify are also useful outside of systemd.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Per default use stable kernel by downloading tar.xz (fast download).
Optional use latest mainline kernel by git fetch. Must be enabled
in linux_git.bb by setting DEFAULT_PREFERENCE to "1".
Signed-off-by: Jens Lucius <info@jenslucius.com>
oe-core has updated dosfstools to the latest version 3.0.28 with mkfs.vfat
returning an error when a file already exists. Remove the old file before
creating a new one.
Issue discovered and fixed by Gary Thomas <gary@mlbassoc.com> for
RaspberryPi and Freescale layers.
Signed-off-by: Jens Lucius <info@jenslucius.com>
Add new stable 2015.07 mainline u-boot version.
Add correct mainline u-boot names to machine configs.
Add overwrite for different names for old sunxi u-boot.
Signed-off-by: Jens Lucius <info@jenslucius.com>
- Add back missing device tree definitions in machine files
- Switch to mainline kernel by default
- Add description to switch back to sunxi versions in README
Signed-off-by: Jens Lucius <info@jenslucius.com>
It uses 3 different SOC_FAMILY sun4i,sun5i,sun7i this list come from here http://sunxi.org/Allwinner_SoC_Family
Adding a new machine should be now more easy, as we have now to only create a new machine.conf file, set the right SOC_FAMILY and include the right arch inclue.
Move device tree configuration to machine files. Check for device tree
in sd card creation and include device tree file in first partition.
Signed-off-by: Jens Lucius <info@jenslucius.com>
Set the PREFERRED_PROVIDER_u-boot and _virtual/bootloader to u-boot.
Preperation for adding mainline u-boot.
Signed-off-by: Jens Lucius <info@jenslucius.com>
Set the preferred kernel to 3.4 in sunxi.inc. This makes it easier
to upgrade the kernel in a later commit without breaking build.
Signed-off-by: Jens Lucius <info@jenslucius.com>
Removing the linux.inc introduced an unnecessary dependency on meta-oe.
Add the latest linux.inc from meta-oe to the layer and change path.
Signed-off-by: Jens Lucius <info@jenslucius.com>
To resolve the race condition described in #15,
a patch was introduced to use the kernel source from staging dir
rather than deploy dir.
After the reorganization of the kernel source location by
6a1ff0e7ea
this no longer works.
Reverting the previous patch,
and introducing explicit rootfs dependency instead.
Signed-off-by: Kristof Robot <krirobo@gmail.com>
Add dependency on python and COMPATIBLE_MACHINE as pyA20 is only
compatible to three olimex boards right now.
Signed-off-by: Jens Lucius <info@jenslucius.com>
Unfortunately there is a difference between different boards when using pyA20
- the GPIO mappings.
Olimex tried to solve this by providing different packages for different boards.
Just made the receipe use different mappings.h, so it can be easily adjusted
to different boards in one receipe.
Signed-off-by: Jens Lucius <info@jenslucius.com>
pyA20 allows controlling GPIO, SPI and I2C on Allwinner boards from python.
Although it is named A20 it should work on A10, A13 and other CPUs.
Provided by Olimex for their boards but should work for others as well.
Tested on A20-OLinuXino-MICRO.
Signed-off-by: Jens Lucius <info@jenslucius.com>
This add the first 7 characters of the git sha-1 to the compiled in
u-boot version.
With this change the serial console displays the following version information:
U-Boot 2014.04-gee425f9 (Oct 01 2014 - 22:20:35) Allwinner Technology
Without the version looks like this:
U-Boot 2014.04 (Oct 01 2014 - 21:55:57) Allwinner Technology
Signed-off-by: Christian Ege <k4230r6@gmail.com>
Fixes the following warning:
"WARNING: sunxi-mali: No generic license file exists for:
proprietary-binary in any provider"
Signed-off-by: Jonathan Liu <net147@gmail.com>
KERNEL_IMAGETYPE is defined in kernel (linux_3.4.bb) and machine
(conf/machine/include/sunxi.inc). This can lead to problems when
trying to change the image type. Removed from kernel.
Signed-off-by: Jens Lucius <info@jenslucius.com>
The latest revision of U-Boot requires changing the U-Boot machine names for
olimex based boards, as these were changed in U-Boot.
U-Boot tested on Olimex A20 Olinuxino
Signed-off-by: Jens Lucius <info@jenslucius.com>
This fixes an issue with systemd >= 213, where it can't mount a
filesystem in /sys/fs/cgroups/systemd because sysfs didn't support
xattr.
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Recent u-boots (e.g. 2014.04-rc) need the _config appended to work, so
add that and sync the names with boards.cfg as well.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Changes include, but are not limited to:
* 32bit hdmi audio support
* MMC support for sun41
* SPI fixes
* AXP thermal support
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Without this explicit dependency,
a race condition would be present between the generation of the sd image
and the generation of the ext3 file,
which leads to corrupt SD images in some circumstances.
Based on meta-raspberrypi commit a760ea5fa2
This tidies the cubieboard and olinuxino defconfigs and converts the
cubie2, truck and mele defconfig to the savedefconfig format.
This has no functional changes, only cosmetic ones.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This options adds a ton of debug symbols leading to *very* large
binaries:
5.2M kernel-module-8188eu_3.4.79-r0.8_olinuxino_a20.ipk
4.9M kernel-module-8189es_3.4.79-r0.8_olinuxino_a20.ipk
3.6M kernel-module-8192cu_3.4.79-r0.8_olinuxino_a20.ipk
After this change:
244K kernel-module-8188eu_3.4.79-r0.12_olinuxino_a20.ipk
224K kernel-module-8189es_3.4.79-r0.12_olinuxino_a20.ipk
208K kernel-module-8192cu_3.4.79-r0.12_olinuxino_a20.ipk
End users don't need such detailed debug symbols.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
The firmware for these drivers breaks parallel make install with recent
versions of make:
| make[1]: *** No rule to make target
`/build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/work/olinuxino_a20-angstrom-linux-gnueabi/linux/3.4.79-r0/image/lib/firmware/./',
needed by
`/build/v2013.12/build/tmp-angstrom_v2013_12-eglibc/work/olinuxino_a20-angstrom-linux-gnueabi/linux/3.4.79-r0/image/lib/firmware/ti_3410.fw'.
Stop.
Since both of them are rarely used and virtually never on ARM systems
just disable them.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Also update defconfigs with upstream changes to enable CMA.
Runtime tested on Olinuxino-a13/Angstrom
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
The most important change is shipping the .so files in ${PN}, this is
needed for things like xf86-video-fbturbo to work properly. Also disable
the QA check this triggers.
Other fixes include:
* make recipe conform to OE style guide
* update to latest git
* remove unused INC_PR
* RPROVIDES_* is about packages, not about files, remove it
* Use default git protocol ('git') instead of 'http', which isn't
officially supported by github
* Add libUMP.so symlink for xf86-video-fbturbo
Runtime tested on olinuxino-a13/Angstrom
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
RPROVIDES specifies the libraries that are dynamically loaded
at runtime. This patch fixes "no package provides libGLESv2.so"
similar errors that occur when including packages like layer-management
of meta-ivi layer.
Fixing a race condition with virtual/kernel:do_deploy,
which needs to deploy the image before the IMAGE_CMD_sunxi-sdimg () code is being run
as part of image:do_rootfs, otherwise the following error would sometimes occur
when compiling with multiple threads (BB_NUMBER_THREADS=2):
"[..]/deploy/images/cubieboard2/uImage-cubieboard2.bin: No such file or directory"
Fixing this by using the kernel image in sysrootfs instead.
At the same time, also adding an explicit rootfs dependency on sunxi-board-fex:do_deploy because of
"${DEPLOY_DIR_IMAGE}/fex.bin", although this never seems to pose problems in practice.
Without this config file, avahi-daemon would not startup because of "Failed to create server: No suitable network protocol available" error, which is fixed by following configuration setting in /etc/avahi/avahi-daemon.conf:
disallow-other-stacks=yes
- add correct xorg config
- For mali-sunxi driver to work it also need library files from sunxi-mali-dev
package. Adding sunxi-mali-dev to XSERVER force the installation of
the -dev
There is a new recipe called sunxi-board-fex which cares about the
compiling of the FEX file for each machine. If there is a fex.bin file
available in the deploy directory and machine depends on it (see SD
image class) it will be added.
Only OLinuXino A10S uses it for now.
Signed-off-by: Tomas Novotny <novotny@rehivetech.com>
When using mainline kernel ≥ 5.2 it is now possible to use the mainline graphics drivers *lima* and *panfrost*, instead of the *mali* driver provided by ARM. To enable open source mainline graphics support add the following line in your `local.conf`:
MACHINEOVERRIDES .= ":use-mailine-graphics"
Performance
===========
The default machine settings are meant to be the lowest common denominator, maximizing generality.
Significantly better performance (2x-3x) can be achieved with the following settings:
**_Allwinner A20_**
For Allwinner A20 (Cubieboard2/CubieTruck), the following tuning options are recommended:
_Enable hardfloat, thumb2 and neon capabilities_
DEFAULTTUNE = "cortexa7hf-neon-vfpv4"
This tuning profile takes advantage of the Allwinner A20 hardfloat, neon and vfpv4 capabilities.
_Change CPU governor to ondemand, and tune settings_
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.