Age | Commit message (Collapse) | Author |
|
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>
|
|
Create a static UBI volume to store the Cortex-M4 firmware. Use
0xE0000 which makes the three static volumes exactly 9MiB.
Signed-off-by: Stefan Agner <stefan.agner@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>
|
|
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
To be more in-line with all our other modules change update_dtb to
update_fdt also on all our NAND based modules and document it as such.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
U-Boot delivered with V2.6 Alpha1 does not have SoC type detection
which can be used to load the device tree (imx7s/imx7d). Flash
U-Boot first and reset to make sure we use the new U-Boot to flash
the rest of the components.
The later corrected the commit message.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Write kernel and device tree into seperate UBI Volumes. This
allows to use a lot less UBI/UBIFS support in U-Boot, which
should lower the risk of hitting bugs in this area.
Signed-off-by: Stefan Agner <stefan.agner@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>
|
|
Use static UBI volumes on Colibri T20.
Fix update over ethernet on Colibri Vybrid
Signed-off-by: Dominik Sliwa <dominik.sliwa@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>
|
|
If executing the command fails, the exit code will be <> 1 which
leads to an imeadiate exit (due to set -e). Avoid exiting by
adding "|| true" to the sanity check commands.
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>
|
|
Since we introduced set -e commands which fail will exit silently.
This leads to no error message when the grep which tests for
specified parameters failed.
We could solve it with || true, but it seems more lightweight to
just test for the strings inside the if statement. It also checks
for the full length (e.g. disallows "25" as RAM size).
The later fixed only 256 MB RAM size copy paste issue.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-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>
|
|
Adjusted update scripts for fast boot mode migration as per the
following article on our developer website:
http://developer.toradex.com/knowledge-base/linux-booting#eMMC_Fast_Boot_Mode_ApalisColibri_iMX6
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
e.g. look for files in ${board} subdirectory rather than in the media's root.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Write kernel and device tree into seperate UBI Volumes. This
allows to use a lot less UBI/UBIFS support in U-Boot, which
should lower the risk of hitting bugs in this area. Boot times
are also slightly faster (measurements showed an improvement of
~150ms).
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
When using TFTP update, the rootfs must be in decimal numbered chunks on the
tftp server. U-Boot reads the chunks, but does count hexadecimal thus
limiting the number of chunks to 10.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
The U-Boot binary for the IT temperature range changed names from
u-boot-it.imx to u-boot.imx-it.
The flash_*.scr scripts did still use the old name resulting in the U-Boot
not being found on the SD card or TFTP server.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-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>
|
|
The command 'mmc partconf 0 1 1 0' seems to have no effect when it is in the
middle of our migration cmdline resulting in U-Boot still being loaded from
the user partition.
Putting it as the last command seems to solve the issue.
http://developer.toradex.com/software-resources/arm-family/linux/linux/release-details?view=all&issue=14774
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
With the cfgblock command in U-Boot we now have a better solution.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Don't write the eMMC twice on Apalis in the not migrate case.
|
|
|
|
Up until now, U-Boot for Colibri VF50/VF61 did not had an
environment variable board_name. Use the soc environment
variable to set the board_name.
|
|
To avoid code duplication call fwd_blk from fwd_mmc. This adds
one more indirection, but since flash_mmc.img is a compatibility
script anyway it is not the common case...
|
|
Source the update script only if loading succeeded. This avoids
loops if board_name is not set. Also add a test if board_name is
really set since this variable is/was not available in older
U-Boots.
|
|
Further generalise U-Boot update scripts by using ${board_name} instead
of hard coding module name like apalis_t30, colibri_t20 or colibri_t30.
|
|
Even though our downstream L4T based kernel does not use any
device tree stuff prepare for easy deployment thereof by using the
correct dtb name.
In the Ethernet aka TFTP update case this actually fixes an issue where
it previously tried to TFTP the whole ${board_name} directory which at
least on my setup failed with a permission denied which it retried
forever.
|
|
Update our U-Boot update scripts to accommodate our new unified eMMC
layout:
boot area partition 1 aka primary eMMC boot sector:
with U-Boot boot loader and the U-Boot environment before the
configblock at the end of that boot area partition
Handle migration of boot loader and configblock on Apalis/Colibri iMX6.
When doing a full update also explicitly flash kernel and FDT from the
update medium in order to allow for easy updating thereof.
|
|
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
|
|
Switch to using the temperature Chamber validated 800 MHz BCT
Apalis_T30_2GB_800Mhz.bct.
Please note that for now this is a fixed 800 MHz BCT which does not
allow for memory DVFS (e.g. 400/800 MHz switching like currently only
possible on Colibri T30).
|
|
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.
|