summaryrefslogtreecommitdiff
path: root/recipes-images/images/files
AgeCommit message (Collapse)Author
2018-09-13tdx-image-fstype: configure update.sh from KERNEL_DEVICE_TREEMax Krummenacher
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>
2018-06-18apalis-tk1/apalis-tk1-mainline: deploy hw specific devicetreeMarcel Ziswiler
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>
2018-03-22apalis/colibri: switch to zimage instead of uimageBhuvanchandra DV
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>
2018-03-22tdx-image-fstype: move to a spl/u-boot recovery download chainMax Krummenacher
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>
2017-11-27colibri-imx6ull: add dtb for wifi variantMax Krummenacher
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>
2017-10-03legacy update script: deploy v1.2 device tree as wellMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2017-10-03legacy update script: cleanup imagefile handlingMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2017-10-03apalis-tk1*: cleanup use of genext scriptMax Krummenacher
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>
2017-10-03flash_blk/eth.scr: apalis/colibri_t30: fix conf_blk_offsetMarcel Ziswiler
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>
2017-10-03flash_blk/eth.scr: replace loadaddr by fdt_addr_rMarcel Ziswiler
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>
2017-10-03flash_blk/eth.scr: fix check_configblockMarcel Ziswiler
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>
2017-10-03flash_blk/eth.scr: apalis/colibri_t30: improve config block migrationMarcel Ziswiler
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>
2017-10-03images: add colibri-imx6ullMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-10-03update.sh: fix for dtb filenames containing multiple dotsMax Krummenacher
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>
2017-10-03recipes-images: images: Use ext4 by default for TK1 modulesSanchayan Maity
Use ext4 by default for TK1 modules. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-03recipes-images: images: Use ext4 by default for iMX6 modulesSanchayan Maity
Use ext4 by default for iMX6 modules. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-03recipes-images: imx6: Deploy Ixora V1.1 device tree for Apalis iMX6Sanchayan Maity
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>
2017-10-03flash_blk/eth.scr: fix exit condition in the emmc rootfs flashing loopMax Krummenacher
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>
2017-10-03genext3fs.sh: fix copying of extened file attributesMarcel Ziswiler
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>
2017-07-05colibri-imx7: update.sh: log kernel versionColibri-iMX7_LXDE-Image_2.7b3-20170630Colibri-iMX6_LXDE-Image_2.7b3-20170630Colibri-VF_LXDE-Image_2.7b3-20170630Colibri-T30_LXDE-Image_2.7b3-20170630Colibri-T20_LXDE-Image_2.7b3-20170630Apalis-iMX6_LXDE-Image_2.7b3-20170630Apalis-TK1_LXDE-Image_2.7b3-20170630Apalis-T30_LXDE-Image_2.7b3-20170630Max Krummenacher
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>
2017-07-05colibri-imx7: update.sh: use u-boot-nand.imx for recoveryMax Krummenacher
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>
2017-06-30recipes-images: colibri-imx7: deploy Aster device treeSanchayan Maity
Deploy Aster device tree for Colibri iMX7. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-06-30recipes-images: imx6: deploy Aster device treeSanchayan Maity
Deploy Aster device tree for Colibri iMX6. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-06-30recipes-images: colibri-vf: deploy Aster device treeSanchayan Maity
Deploy Aster device tree for Colibri Vybrid. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-06-30update.sh: increase min partition free size & add note about bct changeMarcel Ziswiler
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>
2017-06-30colibri-pxa: add dummy u-boot update scriptsMarcel Ziswiler
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>
2017-04-10genext3fs.sh: rename mnt/trdx-rootfs to mnt/tdx-rootfsMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
2017-04-07imx6: update.sh: remove -itMax Krummenacher
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>
2017-01-11flash scripts: fix create_bcb to work for flashing from scratchStefan Agner
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>
2017-01-11apalis/colibri_t20/t30/tk1: fix ./update.sh -d resp. tegrarcm issueMarcel Ziswiler
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>
2017-01-10tegra: update.sh: Remove Colibri T30 eMMC partition resizing limit of 2GBMarcel Ziswiler
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>
2017-01-10update.sh use the specific recovery u-boot binary nameMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2017-01-10flash scripts: fix Colibri iMX 7 noteStefan Agner
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>
2017-01-10images: update.sh: Add Apalis TK1 Mainline machineDominik Sliwa
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-01-10tegra: update.sh: Remove Apalis TK1 eMMC partition resizing limit of 8GBSanchayan Maity
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>
2017-01-10images: Remove update script limitation of 5GB rootfsSanchayan Maity
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>
2017-01-10update.sh: Do not deploy the rootfs.ext3Sanchayan Maity
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>
2017-01-10images: Remove rootfs size limitation of 4GB with update scriptsSanchayan Maity
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>
2017-01-10mx6: update scripts: change to use SPLMax Krummenacher
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>
2016-11-21flash scripts: implement FCB/BCB upgradeStefan Agner
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>
2016-09-28images: mv all files into recipes-image/imageMax Krummenacher
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>