| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made
it an error to overwrite an image using mkfs.vfat:
mkfs.vfat: file XXXX/tmp/work/nitrogen6x-poky-linux-gnueabi/network-demo-image/1.0-r0/boot.img already exists
mkfs.fat 3.0.28 (2015-05-16)
WARNING: exit code 1 from a shell command.
This patch fixes the problem by removing any old/stale images before
trying to create the VFAT file system images.
Change-Id: I74e02fd512b43315b29698f534192632d7780df2
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a recipe, which uses the fsl-eula-unpack bbclass, defines the
variable LIC_FILES_CHKSUM like
LIC_FILES_CHKSUM = "[...]"
(not using "+=") the content of ${FSL_EULA_FILE}, which is added in
fsl-eula-unpack, is overwritten. So the EULA isn't deployed to the
${LICENSE_DIRECTORY}.
Using 'LIC_FILES_CHKSUM_append' should work in any cases.
Signed-off-by: Stefan Christ <s.christ@phytec.de>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The md5 checksum in LIC_FILES_CHKSUM was taken from an older version of
the Freescale EULA. This leads to build errors like
ERROR: imx-gpu-viv: md5 data is not matching for
file://[...]/meta-fsl-arm/EULA;md5=6df184a9b1950b68e17fdcd7513bdb97
ERROR: imx-gpu-viv: The new md5 checksum is
acdb807ac7275fe32f9f64992e111241
Signed-off-by: Stefan Christ <s.christ@phytec.de>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the file which contains the Freescale EULA to variable
LIC_FILES_CHKSUM, so the EULA is deployed in the folder
${LICENSE_DIRECTORY}/${PN}/
for all recipes which use the bbclass fsl-eula-unpack.
Add a vardepsexclude to variable LIC_FILES_CHKSUM to share the sstate
cache across multiple build directories. See commit
commit e8c6cf822889c02b76db03f2e9c6915a1bda1c06
Author: Christopher Larson <kergoth@gmail.com>
Date: Wed Oct 23 22:30:41 2013 +0000
fsl-eula-unpack: add FSL_EULA_FILE to vardepsexclude
Signed-off-by: Stefan Christ <s.christ@phytec.de>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The shell command sync flushes all filesystem buffers in the system. On
a bigger multiuser system there are multiple gigs of data sometimes in
the buffer which then are written out to disk at once. It's better to
only flush the specific file with dd's option 'fsync'.
Change-Id: I6476444dbbc28e4f8756066e531734ef1de71fdb
Signed-off-by: Stefan Christ <s.christ@phytec.de>
Tested-by: Nikolay Dimitrov <picmaster@mail.bg>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
| |
When MACHINE_SOCARCH_SUFFIX is empty a duplicated architecture will be
included in PACKAGE_ARCHS. The expected behaviour is to not include
duplicated values and raise an error in case a MACHINE_SOCARCH package
tries to be build.
Change-Id: I98d936409554e4e7725c8af6c0a0a0344ddec751
Reported-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
| |
The 'bb.parse.SkipPackage' exception was missing a 'raise' call to
proper inform the BitBake tool parsing system about the error, now the
package is properly skipped when necessary.
Change-Id: Ie736186c8e459eea55c1455547e1da8f7111e165
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
| |
The .scmversion file needs to be located in the Git source, otherwise
the build system does not use it.
This fixes the regression introduced in f69b21d
(fsl-kernel-localversion.bbclass: Fix building using out-of-tree).
Change-Id: I7f06279f5b1f9aee18d1a5a39a22b27f4c34f365
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that all MACHINE_SOCARCH feeds are part of PACKAGE_EXTRA_ARCHS.
oe-core now puts packages into feed dirs dependent on the used instruction sets.
http://cgit.openembedded.org/openembedded-core/commit/?id=3e760031f91fb87c3e2f62b77a117eb41164f259
This is true also for packages in MACHINE_SOCARCH, i.e. we get in deploy/ipk for
an angstrom based build:
armv7ahf-vfp-neon-mx6qdl armv7at2hf-vfp-neon-mx6qdl
so we must put both into PACKAGE_EXTRA_ARCHS.
TUNE_FEATURES defines if arm and/or thumb feeds are possible with the
current configuration.
Change-Id: I47ed7c3a5cbdc488801cd9198e822f9845565559
Signed-off-by: Max Krummenacher <max.oss.09@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
| |
This patch introduces a new base SoC family "vf". The family includes
all Freescale Vybrid SoC based modules, which is the single core
(vf50/VF5xx) or dual core (vf60/VF6xx) variant.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
| |
Few comments are using bytes instead of block. Also remove useless
seek=1
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
| |
The U-Boot 2009.08 has been removed so every version now supported
does not use padding. This patch drops the code which added the
possibility of use old U-Boot version but which was unused for long
time.
Reported-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The binary files packages provided by Freescale need to have the
specialized unpack method called before the OE-Core original one. This
unsures that the source is available when sanity tests are done.
This fixes following warning:
,----
| WARNING: .../libfslcodec/4.0.2-r0/libfslcodec-4.0.2 ('S') don't
| exist, you must set 'S' to a proper value
`----
Change-Id: Ie85c5b2abdc34449503b543e5fc8d8e914ac0c1c
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since OE-Core:df9975f4 (kernel: Fix non linux-yocto builds) the way
the build of kernel is done has change. Now the source code is moved
placed at STAGING_KERNEL_DIR and the build is done at ${WORKDIR}/build
which is B.
This patch adapts the configure task prepending to cope with those changes.
Change-Id: I9ea4254ffd56e4b7201daf9a90b52756a399c0f6
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
| |
The U-Boot mainline uses 69K as offset so we ought to use it here;
this aligns the SD card image layout to work out of box with all
U-Boot mainline based SPL boards.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
| |
Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This class allow for easy extending of U-Boot recipes to easy the
LOCALVERSION handling, allowing to reuse of code between different
U-Boot recipes
The following options are supported:
SCMVERSION Puts the Git hash in U-Boot local version
LOCALVERSION Value used in LOCALVERSION (default to '+fslc')
This about avoid code duplication among Layerscape and i.MX.
Change-Id: Icec618092d1f70606051619b6f6118f50e7f1ba5
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This class allow for easy extending of kernel recipes to easy the
LOCALVERSION handling, allowing to reuse of code between different
kernel recipes
The following options are supported:
SCMVERSION Puts the Git hash in kernel local version
LOCALVERSION Value used in LOCALVERSION (default to '+fslc')
This about avoid code duplication among Layerscape and i.MX.
Change-Id: I3999dbdc2cb761063fe5f83dea65ddb14adec80c
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
| |
This adds support to generate the U-Boot image for use with NAND
(uboot.mxsboot-nand) and allows for custom params to be given for
mxsboot using the MXSBOOT_NAND_ARGS variable which should be defined
in the machine definition file.
Signed-off-by: Alexey Ignatov <lexszero@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
| |
When IMAGE_BOOTLOADER is empty we shouldn't add '':do_deploy as
dependency as it does not exist. So handle this corner case to allow
bootloader-less images to build fine.
Change-Id: I04dc81bbb4184f79e88e1693239f2628a9819d7d
Reported-by: Ilya Smelykh <ilya.smelykh@gmail.com>
Reported-by: Tarek El-Sherbiny <tarek.elsherbiny@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
| |
Clean bitbake warning:
WARNING: PACKAGE_GROUP is deprecated, please use FEATURE_PACKAGES instead
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
|
|
|
|
|
|
|
|
|
| |
Instead of depending of all tasks of recipes, we should depend on the
required task so we can start building the rootfs earlier in the build
process and earn some build time gain.
Change-Id: I770afe79edba0320ae697f9bcdaf340fbcb09eeb
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
| |
Manage the initramfs requirements for Manufacturing Tool use and allow
future addition of new filesystem support if needed.
Change-Id: Ia3a1f0d32d1a12209262096162adeb36909c509b
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
| |
Since the image_types.bbclass is not cd'ing to ${DEPLOY_DIR_IMAGE}
anymore, the imx-bootlets code need to be reworked to take this into
account.
Change-Id: Ic7890557e93b47997590143047816ecb0378ad13
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the image_types.bbclass is not cd'ing to ${DEPLOY_DIR_IMAGE}
anymore, do that in a subshell before generating the boostream.
This fixes the following build failure:
ERROR: Error: The image creation script
'.../core-image-minimal/1.0-r0/temp/create_image.barebox.mxsboot-sdcard' returned 1:
error: unable to find command file imx-bootlets-barebox_ivt.bd-cfa10058
Change-Id: I5881c6bc333bef42a3f61d07b7bbd6c87c7d45e7
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
|
|
|
|
|
|
|
|
| |
The sdcard requires the rootfs filesystem to be built before using it
so we must make this dependency explicit.
Change-Id: Ibacba4c2ff5250785b50d6a7bc7ddf77f6309bb6
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
| |
s/PACHAGE_ARCH/PACKAGE_ARCH
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
|
|
|
|
| |
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
|
|
|
|
|
|
|
|
|
| |
If the SPL_BINARY value is not empty, then the class will use
an alternative code path for copying U-Boot on the SD card.
u-boot.img is used (not .imx), and the SPL binary is prepended.
With empty SPL_BINARY values, the behavior is just like before.
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
|
|
|
|
| |
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
|
|
|
|
|
|
|
|
|
|
|
| |
FSL_EULA_FILE is defined with :=, which means it contains a full absolute path
to the layer directory. If this is allowed to make it into the task checksum,
it becomes impossible to use the shared states for these recipes without
having meta-fsl-arm in the exact same path in the filesystem it was in when
the sstate archives were created. Add FSL_EULA_FILE to
do_unpack[vardepsexclude].
Signed-off-by: Christopher Larson <kergoth@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allow to easy reuse of binary packages among similar SoCs. The
usual use for this is to share SoC specific packages among different
boards. The class can be used to share GPU packages for i.MX53 boards
(as all them share the AMD GPU) and i.MX6 based boards (as all them
share Vivante GPU).
It inspects the database and identify if the package provides or
depends on one of subarch provided values and if it does, it sets the
PACKAGE_ARCH for MACHINE_SUBARCH value otherwise if it matches in the
machine specific filter, it sets it to MACHINE_ARCH.
This reduces the amount of packages we build, for example in case of
core-image-x11 we:
$ ls -l tmp/deploy/rpm/cortexa9hf_vfp_neon_mx6/*.rpm | wc -l
75
So we reuse 75 binaries; these would be build otherwise.
It being dynamically set or statically set it has following benefits:
* correctness: it is easier to ensure the system behaves as expected
* correctness for non-tracked recipes: new recipes, if depending on
virtual/kernel or GPU has the right architecture choosen, without a
.bbappend file for them
* safeness: non-expert users get a more adequate behavior as the
complexity of choosing the right architecture is simplified for them
* easy maintenance: it is easier for me, as maintainer, to maintain a
code which decides what to do than having hundreds of bbappend files
for it
Change-Id: Icb0a8060e862c8eeb166c45d1b39c40de07b01d8
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
| |
Change-Id: Ibe7afdd6e4c2f5db73b42cf6b39df9756bdb9fb8
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
|
|
|
|
|
|
|
| |
The Vybrid SoCs use same image layout as other i.MX so use it.
Change-Id: I0e1de1b917aed249196bef463ae1017c65254ef5
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
| |
Use the KERNEL_IMAGETYPE variable, making the class configurable for all
supported kernel image types.
This patch is tested with a 3rd-party board and a sabrelite board.
Signed-off-by: S. Fricke <sfricke@data-modul.com>
|
|
|
|
|
|
|
|
| |
Create first partition on SD card as fat32. As boot.img is formatted
as vfat, this will ensure information in partition table matches
actual partition type.
Signed-off-by: Vladan Jovanovic <vladan.jovanovic@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The mxsboot-sdcard image is the current way we use to generate the
U-Boot bootstream blob during image generation however Yocto image
system enforces some naming schema so the symbolic links does work and
we weren't following those. This patch uses the '${IMAGE_NAME}'
variable and the proper image suffix so the symbolic links now fully
work.
Fixes [YOCTO #3871].
Change-Id: I7f96dcdd58e0a726b8084c1f87ff10732fe259df
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
| |
.dtb file is copied to 'Boot' partition, the same partition
uImage is placed.
Now, more than one .dtb can be copied, if board conf file
determinates more than one .dts file.
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some machines might want to provide boot scripts for use. This now can
be accomplished using BOOT_SCRIPTS variable in following format:
<source>:<destination>
Thus any file in deploy directory can be installed in the boot
partition of the sdcard, easily.
Change-Id: Ic1eafd2be3559b5c9da43dcc6f54f1b480dbc647
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
| |
Some machines might come with a bootloader in an internal flash (a SPI
NOR, for example) so not requiring a boot loader in the image.
Change-Id: Id1a69c6c6b60639694a64b2b7badd16ee4b0d2f7
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
| |
This commit fixes an unbound local exception caused by save_cwd not
being defined when fsl-eula is not true.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
| |
The imx-bootlets (and per design elftosb) enforce the use of offset so
we skip the first 1024KiB from the disk and start from there instead
of 4MiB as done for other SoCs.
Change-Id: I51e2989ef2007aa752e67f7d1b38a9de5c1ff9c8
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SD image file was 4G in size but actually the rootfs partition was only
60MB (in some images).
The image file size is not fixed anymore but calculated inside this
class. In this way we will setup the partition for rootfs to fit the
ext file used as SDIMG_ROOTFS. By default the free space is calculated
with IMAGE_OVERHEAD_FACTOR which is by default 1.3. If more free space
is needed this can be overwritten.
IMAGE_ROOTFS_ALIGNMENT set at 4096. This should be the best value for a
SD card.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
|
|
|
|
|
|
|
|
|
| |
This class provides the mechanism used for unpacking
the .bin file downloaded by HTTP and handle the EULA acceptance.
Change-Id: I88857c7dac94568c5bced4e712744087638de68a
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Daiane Angolini <daiane.angolini@freescale.com>
|
|
|
|
|
|
|
|
|
| |
The code where failing if used with no dtb files available in deploy
directory.
Change-Id: Ib08e23f3d7761b0991fcce009fb93290d698f7c3
Reported-by: Tim Michals <tcmichals@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|\
| |
| |
| |
| |
| |
| | |
* freescale/denzil:
image_types_fsl.bbclass: Calculate BOOT_BLOCKS for new boot partition num
linux-imx (2.6.35.3): Kernel patches from Freescale GIT
linux-imx (2.6.35.3): reduce delta against kernel source mx5_defconfig
|
| |
| |
| |
| |
| |
| |
| |
| | |
The empty 1K at the beginning of the disk is no longer a partition, so
the numbers reported by parted have shifted by one.
Signed-off-by: Jeremy Stashluk <jstashluk@dekaresearch.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The bootrom boots from a fixed 1K offset so we don't need a partition
there and having one makes udev or kernel to probe for it and output
error messages in bootlog:
,----[ boot error messages ]
| ...
| EXT4-fs (mmcblk0p1): VFS: Can't find ext4 filesystem
| EXT3-fs (mmcblk0p1): error: can't find ext3 filesystem on dev mmcblk0p1.
| EXT2-fs (mmcblk0p1): error: can't find an ext2 filesystem on dev mmcblk0p1.
| FAT: bogus number of reserved sectors
| VFS: Can't find a valid FAT filesystem on dev mmcblk0p1.
| cramfs: wrong magic
| FAT: bogus number of reserved sectors
| VFS: Can't find a valid FAT filesystem on dev mmcblk0p1.
| ...
`----
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The bootrom boots from a fixed 1K offset so we don't need a partition
there and having one makes udev or kernel to probe for it and output
error messages in bootlog:
,----[ boot error messages ]
| ...
| EXT4-fs (mmcblk0p1): VFS: Can't find ext4 filesystem
| EXT3-fs (mmcblk0p1): error: can't find ext3 filesystem on dev mmcblk0p1.
| EXT2-fs (mmcblk0p1): error: can't find an ext2 filesystem on dev mmcblk0p1.
| FAT: bogus number of reserved sectors
| VFS: Can't find a valid FAT filesystem on dev mmcblk0p1.
| cramfs: wrong magic
| FAT: bogus number of reserved sectors
| VFS: Can't find a valid FAT filesystem on dev mmcblk0p1.
| ...
`----
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
|/
|
|
|
|
|
|
|
|
| |
To support new kernel, which use Device Tree for description of
hardware and machine, the image generation needs to be reworked.
U-Boot supports it out of box, so it just need to be available for
reading while the imx-bootlets we need to append the dtb file on the
very end of the zImage file.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|