Age | Commit message (Collapse) | Author |
|
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>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
|
|
The script fails when -m is given but rootfs/etc/issue fails to provide
the version info.
While at it correct wrong text output on i.MX 6 based modules.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
|
|
update.sh guesses the module type from rootfs/etc/issue which works for images
created from our meta-toradex recipes.
If another rootfs is used one has to edit etc/issue.
Overcome that requirement by providing a -m parameter which allows forcing
the targeted module type.
Not giving -m or '-m 0' keeps the old behaviour.
see 'update.sh -h' for valid values.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Eliminate the following warning:
cp: warning: source file ‘colibri-imx6_bin/u-boot.imx’ specified more than once
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
The binary/symlink mkfs.vfat seems to be considered outdated, it
is only deployed if one configures dosfstools with the flag
--enable-compat-symlinks.
Switch to mkfs.fat which seems to be the official binary to create
FAT filesystems now.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Add exit trap to report unexpected exits (due to set -e). Note that
this traps every exit, also explicit calls to exit. Therefor register
the trap only during the sequencial image generating/coping part,
after the sanity checks...
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Use "command" instead of "which" for sanity checks. This is preferable
to several reasons, see:
http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script
Also always use or (||) syntax to avoid bash script exits. Tested to
be working on Ubuntu, Fedora and Arch Linux.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
By omitting an explicit exit code after the recovery command we
will get the exit code of the last command. This makes sense,
since we would be able to tell whether recovery actually succeeded
or not.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Unix commands usually exit successfully when help was explicitly
asked for. However, in case arguments are incomplete or otherwise
wrong, exit with error.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
printf allows to print escape sequences (e.g. for colored output)
and is part of the POSIX standard.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
This has been missing since our move to boot from the eMMC boot partition.
While at it clarify update.sh help. _it applies only to
Apalis iMX6 IT modules.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Change the name form u-boot-it.imx to u-boot.imx-it.
This prepares for the upcomming move of the i.MX 6 based modules BSP
to meta-fsl-arm-extra.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Further clean-up and unify our update scripts:
- Universally mention Ethernet aka TFTP, SD card and USB flash drive as
possible update media.
- Universally mention detailed recovery/update procedures being
available on our developer website.
- Universally split usage and flashing instructions (-f).
- Make sure we don't exceed the 80 characters line length limit.
- Fix various spelling issues.
|
|
Now that both Apalis/Colibri iMX6 as well as Apalis/Colibri T30 will
use the same eMMC layout also concerning boot loader, environment and
configblock locations in the primary eMMC boot area partition update
resp. description.
|
|
The following commit:
f463f754048ebc3325025f0e1506b03cf14203a5
update.sh: use moduletype specific folder for output files
moved the output folder check above the module type selection which now
fails in case of debug aka recovery mode only operation with the
following error:
does not exist, exiting
This patch fixes this by not erring out in the debug aka recovery mode
only operation if no output folder is set.
|
|
With update.sh one creates files on e.g. a SD-card or a tftp server
which enables updating the SW on a module from U-Boot running on
said module.
This commit adds a module type specific directory on that output media
so that update data for multiple module types can be stored on one media.
Generic U-Boot scripts in the media's root directory do select the
matching update data depending on module type.
|
|
|
|
To flash a large rootfs over tftp the rootfs must be split into chunks
of 64MB on the tftp server.
Add the option '-c' to the update.sh script which does this automatically.
Use 64MB chunks on all module types.
|
|
While at it:
- remove the default directory for the -o parameter
- cleanup text and sort variables
|
|
Follow the rename imx6q-apalis-eval_v1_0.dtb to imx6q-apalis_v1_0-eval.dtb
in the kernel.
The v1_0 denotes the Apalis module version, not the evaluation board version.
|
|
Now that we exit on failure the test for a user accessible parted must not
return an error code.
|
|
On recent Ubuntu distributions gawk no longer supports awk -V which makes
the test fail.
Simulate our awk use case and test the result instead.
Additionally set 'set -e' to exit immediately on errors. Fix places where
a command returns not zero in 'normal' situations.
E.g. A full disk leads otherwise to funny effects.
Allow relative OUT_DIR.
|
|
The eMMC layout comments are confusing and in some regards outdated.
Clean it up.
While at it move the calculation of the rootfs file system size to
the rootfs creation to not confuse the rootfs file system size with
the size of the rootfs partition.
|
|
U-Boot now has the command cfgblock which can be used to create a valid
configblock.
Alternatively one can be created with create_configblock.sh.
|
|
Was Boot and arm
|
|
Also deploy an additional device tree supporting a Colibri iMX6 with
Analog Camera Module.
|
|
Make the option -o mandatary, used to default to /media/KERNEL
While at it synchronize the files again.
|
|
Update to latest version (SVN r671) of burnflash.
|
|
Pull out common files of the module specific trees into the common library
directory and symlink the files.
|