Age | Commit message (Collapse) | Author |
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The machine configurations provide a list of built device tree files.
Use said variable to modify update.sh rather than maintaining the same
list in the machine configuartion and update.sh.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
The legacy update procedure was not deploying the proper hardware
specific device tree.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Switch to the generic compressed Kernel image type (zImage) instead of
the U-Boot specific uImage format.
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@gmail.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Move from a recovery u-boot.imx to download first the SPL which
immediately goes into SDP download mode again and then download
u-boot.img.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Deploy the device tree for the Colibri iMX6ULL 512MB Wi-Fi / BT
and choose the write one to flash into its UBI partition.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
For Apalis TK1 Mainline we can use the generic script from the library.
Remove the script with a symlink.
For Apalis TK1 we now use a ext4 rootfs. Thus the genext3fs script
is no longer needed. Don't deploy it.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Do no longer hard-code conf_blk_offset now that we reliably determine
it in check_configblock.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Unfortunately as loadaddr is equal to fdt_addr_r on some modules and
equal to kernel_addr_r on others using it together with any of the
others may cause issues. Therefore no longer make use of loadaddr and
consistently use fdt_addr_r instead.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
The config block check aka check_configblock may fail during update
depending on the size of the hardware area boot partition which may
lead to the config block not getting properly migrated or updated if
still using parts of the legacy update procedure. This patch fixes
this by iterating over various sizes.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Improve on the config block locations checked for migration from
WinCE/WEC. Now also takes vendor part of the Boot Configuration Table
aka BCT into account.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
If a dtb file has more than one dot the current logic fails.
e.g. 'device.tree.dtb' will be truncated at the first dot to 'device'
while it should be 'device.tree'.
Fix by removing awk in favour of letting basename also remove
the .dtb extension.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Use ext4 by default for TK1 modules.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Use ext4 by default for iMX6 modules.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Deploy Ixora V1.1 device tree for Apalis iMX6.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
If an image creates a rootfs which is exactly a multiple of 64 MByte then
the scripts never detects that the last chunk has been read and
'run update' never completes.
Fix that by explicitely setting filesize to 0 when a file read fails.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
As reported by our customer our current ext3 generation script lacks
copying any extended file attributes as well e.g. as required for
capabilities or ACLs.
Reported-by: Felix Ruess <felix.ruess@roboception.de>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
As the kernel is no longer part of the rootfilesystem, add its
version to the version.txt file.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Starting with the following commit
tdx-image-fstype.inc: rename U_BOOT_BINARY to UBOOT_BINARY
we no longer deploy a symlink 'u-boot.imx' to the u-boot binary.
Thus only use u-boot-nand.imx in the update.sh script.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Deploy Aster device tree for Colibri iMX7.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Deploy Aster device tree for Colibri iMX6.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Deploy Aster device tree for Colibri Vybrid.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Increase MIN_PARTITION_FREE_SIZE as a provision for customers running
NVIDIA JetPack on Apalis TK1.
Add a note about having to change apalis-t30_bin/apalis_t30.img.cfg
resp. colibri-t30_bin/colibri_t30.img.cfg as well if changing BCT.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
|
|
Add dummy U-Boot update scripts to avoid do_imagedeploy build failure.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
|
|
Before using the SPL to setup the DDR we had two U-Boot variants for
Apalis iMX6, one for the commercial and one for the industrial
temperature range modules.
With the SPL that is decided at runtime and one does not need to
run a module specific 'run updateXXX' command.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Do not save/restore config block in create_bcb since we use this
command in flashing from scratch.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Occasionally especially on Colibri T20 running our ./update.sh -d
script calling tegrarcm failed as follows:
[user@host Colibri_T20_LinuxImageV2.7]$ ./update.sh -d -r 512 -v V1_2
Colibri T20 rootfs detected
bct file: ../colibri-t20_bin/colibri_t20-512-v12-nand.bct
bootloader file: ../colibri-t20_bin/u-boot-dtb-tegra.bin
load addr 0x80108000
entry addr 0x80108000
device id: 0x7820
uid: 0x0428104041a16557
RCM version: 2.1
downloading miniloader to target at address 0x40008000 (132976 bytes)...
miniloader downloaded successfully
./tegrarcm: retreiving platform info: Resource temporarily unavailable
Upon which usually a second attempt actually worked.
Fix this inconvenience by increasing the RCM communication USB timeout
to 5000ms.
Note that this requires a newer tegrarcm which is now provided from
the meta-toradex-tegra layer.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Currently our update.sh script limits the partition size to around
2GB by default so even after our automatic resizing only 2GB of the
4GB of available eMMC space can be used.
Set a higher and saner default EMMC_SIZE to allow automatic resizing
to the full EMMC space available.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Use run update_rootfs to update the rootfs.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Currently our update.sh script limits the partition size to around
8GB by default so even after our automatic resizing only 8GB of the
16GB of available eMMC space can be used.
Set a higher and saner default EMMC_SIZE to allow automatic resizing
to the full EMMC space available.
Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Our current update procedure reads the rootfs payload in pre
split files of 64 MB size. However due to the workaround for
u-boot counting in hex and split did in decimal, the number of
chunks is limited to 89 resulting in a maximum size of 5.5GB.
Update the u-boot counting procedure to count in 3 digits from
the current 2 digits. This allows more than 800 plus chunks
which should take care of rootfs size and any future eMMC
update requirements.
Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Now that we split the rootfs file by default for both Ethernet as
well as SD card update, it is no longer required to deploy the
rootfs.ext3 file which also saves space. Only deploy the split
rootfs files.
Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Our current update procedure requires the rootfs payload to fit in
one file on a FAT filesystem. This limits its usable size to 4GB.
Use the process of splitting up the files in 64MB chunks and then
doing the update which is also what the Ethernet update scripts
currently follow.
However due to the workaround for u-boot counting in hex and split
did in decimal, the number of chunks is limited to 89 resulting in
a maximum size of 5.5GB. We will remove the limitation in a follow
up patch.
Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
This changes the update scripts for a system which boots an SPL into
static RAM which configures the DDR RAM, loads U-Boot proper into DDR
and passes execution to U-Boot.
The SPL is only written by the explicit update_spl command or when the
script does not find a valid U-Boot in eMMC.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Newer U-Boot versions no longer write a BCB which includes the work
around for errata e9609. However, we need to be able to upgrade
modules which still have such BCB on-disk. Use the following process
to upgrade modules:
1. Use the old U-Boot to flash a new U-Boot using the old format
2. Use the new U-Boot to replace the old BCB with the new BCB
3. Use the new U-Boot to flash the new U-Boot using the new format
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
This requires to adjust the path to include files, e.g.:
-require recipes/images/trdx-image-fstype.inc
+require recipes-images/images/trdx-image-fstype.inc
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
|