Age | Commit message (Collapse) | Author |
|
Do not depend on U-Boot environment for setting the Linux kernel command
line from the boot script.
Use standard APPEND variable to specify the kernel command line, stop
using ${defargs}, ${setup} and ${vidargs} from U-Boot environment.
APPEND is the standard OE variable to set the kernel command line, it is
for example used in OE-core rootfs-postcommands.bbclass to add "ro" to
the command line and part of the official documentation.
U-Boot ${tdxargs} is still supported and its content is added to the
command line.
Remove consoleblank=0 since this is already the kernel default.
Link: https://docs.yoctoproject.org/dev/kernel-dev/faq.html#how-do-i-change-the-linux-kernel-command-line
Related-to: ELB-5619
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
With the kernel moving 32 bit device trees in subdirectories starting
with kernel 6.5 the toradex machine configuration files provide the
variable KERNEL_DTB_PREFIX.
The fit image configuration name is constructed from KERNEL_DTB_PREFIX
plus the dtb file name. Make use of the KERNEL_DTB_PREFIX variable to
construct the configuration used for booting.
As we now also set KERNEL_DTB_PREFIX for the 64 bit machines the inline
python works for all machines, thus drop the DTB_PREFIX overrides.
Related-to: ELB-5262
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Not like ARM machines, which the devicetrees locate at
arch/arm/boot/dts in kernel source and the devicetree names directly
built into fitImage by bitbake.
For i.MX8 machines instead, the devicetrees locate at a vendor specific
subdirectory, take NXP as a example, they are under
arch/arm64/boot/dts/freescale, so bitbake builds them into fitImage
also with a "freescale_" prefix to the real devicetree name.
We should distinguish these two situations in boot.scr, let's introduce
a variable KERNEL_DTB_PREFIX to achieve that, and set it to
"freescale_" for i.MX8 machines.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit f22922827754e40a0cbdbd929826b13e68e0a6c7)
|
|
This is the result of automated script (0.9.3) conversion:
+# meta-toradex-distro
+vars = vars + ["preempt-rt","tdx","upstream"]
+# meta-toradex-* machines
+vars = vars + ["apalis-","colibri-","verdin-","tegra124"]
+# meta-freescale
+vars = vars + ["imx","mx6","mx7","mx8","use-mainline-bsp","use-nxp-bsp"]
../openembedded-core/scripts/contrib/convert-overrides.py .
converting the metadata to use ":" as the override character instead of "_".
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
We cant use a single KERNEL_BOOTCMD for both fit/non-fit kernel images,
that makes a invalid bootcmd being used in boot.scr either for fit
or for non-fit image.
Let's change to explicitly use 'bootm' for booting fitimage.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit c4bd1adef88e337f37cf3c88d53a7d61d3a4441b)
|
|
When the kernel image type is fitimage, load it to ${ramdisk_addr_r}
and boot it from there.
A new variable fitconf_fdt_overlays is introduced to collect overlays
boot configs from overlays.txt file, and it would be passed to boot
command.
Related-to: TOR-1700
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 412c94d34b9e4c585cf2cc15592b67eb0b0037ea)
|
|
The reason we inherit nopackages was that there was no files being
packaged at that moment, but this makes it impossible for a bbappend
to add packages, let's drop it.
Now torizoncore decides to add a ostree-uboot-env package in this
recipe.
Related-to: TOR-1335
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit 7b7a2f85e2fcea83c15b1819479506d7d18914bc)
|
|
Provide KERNEL_IMAGE value for boot.scr. Use Image.gz for imx8
machines.
Relates-to: ELB-1372
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
|
|
A new virtual recipe u-boot-default-script has been introduced in
meta-freescale-3rdparty and it's being included by WKS_FILE_DEPENDS,
u-boot-distro-boot should PROVIDES it.
Also change to deploy boot.scr-${MACHINE} instead of boot.scr, to be
consistent with other u-boot-default-script recipes.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
- Inherit nopackages since it does not generate any non-empty packages.
- Drop do_compile, we can run mkimage directly in do_deploy task.
- Drop 'S = "${WORKDIR}"', we do not have to explicitly set it, the
default S would be good enough.
- Do not install DEPLOYDIR, that is not necessary, it's already done
in deploy.bbclass.
- Do not set noexec flag to do_install, do_populate_sysroot, they are
basically empty tasks, making do_populate_sysroot noexec also will
cause QA warning when u-boot-distro-boot is set to DEPENDS in other
recipes.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
This creates a distro boot script boot.scr and deploys it into
the ${DEPLOYDIR}.
Moved here from meta-toradex-torizon u-boot-distro-boot-ostree.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|