A temporary workaround until the systemd recipe in OE-Core
is fixed to correct the build-time dependency in PACKAGECONFIG[efi].
Signed-off-by: Matt Madison <matt@madison.systems>
imported from OE-Core hardknott, and rename the
recipes to be 'gcc-for-nvcc' instead of including
a repeat of the major version number.
Signed-off-by: Matt Madison <matt@madison.systems>
There is no count++ logic when mounting root device fails, so it will
hang which is certainly wrong, fix it.
When "rootwait" kernel parameter is being used, it should wait for root
device present infinitely.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Dont assume boot device is /dev/mmcblk0p1, there is a variable
TNSPEC_BOOTDEV in machine conf is for that purpose, use that.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
When foundslotsfx is not set true, it does not have to wait for
APP$slotsfx partition, that can delay the boot.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
OE-Core has reworked how the IMAGE_NAME and IMAGE_NAME_SUFFIX
variables are used - the suffix now gets embedded in IMAGE_NAME.
To account for this, adjust the tegra-specific image bbclasses
to drop ${IMAGE_NAME_SUFFIX} references, and adjust the recipes
for the ESP and initrd images to nullify IMAGE_NAME_SUFFIX, since
we don't really want '.rootfs' in the resultant artifact names
in those cases.
Signed-off-by: Matt Madison <matt@madison.systems>
| /build/tmp/work/armv8a_tegra-lmp-linux/tegra-flash-reboot/1.0-r0/reboot-recovery.c:8:15: error: call to undeclared function 'syscall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
| return (int) syscall(SYS_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, arg);
| ^
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
to allow the user to wipe an attached NVMe drive if switching
back to booting from internal storage during initrd flashing.
Signed-off-by: Matt Madison <matt@madison.systems>
The initrd-flash kernel/initrd image has to be the Android
(cboot-style) image type, and now that we have a separate
variable in the machine configs to specify that, use that
variable to set INITRAMFS_FSTYPES in the recipe.
Signed-off-by: Matt Madison <matt@madison.systems>
* Booted via RCM boot process, running entirely within
the initramfs
* Accepts command sequence from host for handling specific
flashing steps
* Programs boot device (SPI flash or mmcblk0bootX devices)
from signed binaries sent from host
* Exports storage devices via USB gadget to host for
partitioning/writing
Signed-off-by: Matt Madison <matt@madison.systems>
to provide a small utility to reboot into recovery mode,
which can't be done with busybox's reboot command.
Signed-off-by: Matt Madison <matt@madison.systems>
On SDcard-based systems (e.g., Xavier NX devkit), even after
/dev/mmcblk0p1 shows up in the filesystem, you can get a mount
failure because it's not fully ready. For now, just try it
up to 5 times with a 1 second delay between tries to work around
this.
Signed-off-by: Matt Madison <matt@madison.systems>
Stock L4T puts a different 'root=' setting into the kernel image
in the two kernel partitions and/or writes the extlinux.conf differently
based on which slot is being updated. To avoid having to do that,
and since the bootloader itself doesn't update the kernel command line
to indicate which boot chain we should be using, parse the
BootChainFwCurrent EFI variable to make that determination instead.
Signed-off-by: Matt Madison <matt@madison.systems>
* Ran convert-overrides.py to generate the initial changes
* Manual cleanup afterwards (which was a lot, due to our
extensive use of overrides).
Signed-off-by: Matt Madison <matt@madison.systems>
The combination of hashequiv and the improved pseudo tracking
in OE-Core prevents the enabling of sstate packages for the
initramfs image. Temporarily work around these failures by
overriding the hash reporting function until something better
is worked out.
Signed-off-by: Matt Madison <matt@madison.systems>
Patches for the issues with FBIO_WAITFORVSYNC and FBIOPAN_DISPLAY
have been applied to the kernel, so this patch is no longer needed.
Signed-off-by: Matt Madison <matt@madison.systems>
for adding to an SDK build to get the minimal set of
packages necessary for cross-compiling CUDA projects.
Signed-off-by: Matt Madison <matt@madison.systems>
The tegrafb driver doesn't support some of the ioctls
that psplash uses, so add a patch to address that
for tegra platforms.
Signed-off-by: Matt Madison <matt@madison.systems>
cboot appears to mangle the initrd at boot time when it
exceeds a couple of MiB in size, but only if it has
been built separately and combined with the kernel using
mkbootimg. This does not happen when the initrd is
built into the kernel directly, so work around the cboot
issue by switching to bundling the initramfs into the
kernel on the non-u-boot platforms.
Signed-off-by: Matt Madison <matt@madison.systems>
Don't depend on VIRTUAL-RUNTIME_base-utils, which could
bulk up the image considerably. Use busybox instead, but
add a variable for it so users can override thet setting
should they wish to do so.
Also add ${ROOTFS_BOOTSTRAP_INSTALL} as is done in other
initramfs recipes, for processing any postinst scripts,
and set FORCE_RO_REMOVE to 1 to have the rootfs creator
remove packages after construction, just as if we had
'read-only-rootfs' set in IMAGE_FEATURES.
(For #239)
Signed-off-by: Matt Madison <matt@madison.systems>
Remove the explicity runtime dependency on
VIRTUAL-RUNTIME_base-utils. We don't really want the
full set of base-utils, just busybox, and we'll let
that get included by the initramfs recipe.
Also fix the permission bits on directories created here
so they match what's done in base-files. Otherwise, rpm
will complain during rootfs creation if base-files happens
to get included in the initrafms.
Finally, set this recipe as compatible only with tegra platforms,
and clean up some unneeded overrides.
(For #239)
Signed-off-by: Matt Madison <matt@madison.systems>
to make sure that the 'cksum' command is included in
the busybox build. The tegra210 bootloader update
script requires it.
Signed-off-by: Matt Madison <matt@madison.systems>
to replace the default wired network configuration file
from OE-Core with one that disables LLDP on tegra platforms.
(#146)
Signed-off-by: Matt Madison <matt@madison.systems>
creating a cboot-compatible kernel+initrd bundle for
flashing to the kernel partition on cboot-only systems.
Signed-off-by: Matt Madison <matt@madison.systems>
and name them with prefix 'tegra' instead of 'tegraXXX',
since they apply across multiple tegra platforms.
Signed-off-by: Matt Madison <matt@madison.systems>
use the cboot rootfs locator scriptlet if the tegra target is
configured to use cboot instead of u-boot.
Signed-off-by: Matt Madison <matt@madison.systems>
to allow users to set that variable in their local configuration
without it affecting the size of the initrd.
Signed-off-by: Matt Madison <matt@madison.systems>