I’m trying to update my Apalis v1.1A module to the latest version of Linux and BSP using the method recommended in this application note: Flashing Embedded Linux to iMX6 Modules
I downloaded then unpacked Apalis-iMX6_LXDE-Image_2.7b3-20170630.tar.bz2 to my a directory on my host computer, which is running Ubuntu 12 LTS, then I executed: ~$ sudo sh -c "command -v mkfs.vfat" /sbin/mkfs.vfat /sbin/mkfs.vfat
then: ~$ sudo ln -s /sbin/mkfs.vfat /sbin/mkfs.fat
then, finally: $ sudo ./update.sh -o /media/3264-6261/
Here is the terminal output from the execution of ‘update.sh’:
[upload|fNWMO9889983gtTcIDPgnbX6gXU=]
Here is a look at the resulting directory of my FAT formatted SD Card:
[upload|TL4UcLxHWV3SRpwCBinQ4FCD3Wo=]
Can I trust that my SD Card will properly update my Apalis iMX6 module? If not, how can I resolve this issue?
With the method you use it never worked for me. These boards do not allow you to use the command “dd” as with others regularly. I use EasyInstaller. I can email you a linux image for apalis imx6q 2GB v1.1 for you to test.
I guess our usage of split in the update script is not compatible with whatever version Ubuntu 12.04 shipped with. Please upgrade to a later Ubuntu version or use the Toradex Easy Installer.
Yes, my Ubuntu 12.04 VM is a 32-bit version; however, due to several legacy SDKs still in active use on this development host, legacy a 64-bit version of Ubuntu is not possible. Is it possible for Toradex to rewrite / recompile recovery-linux.sh so that it is backward compatible with Ubuntu 12.04 32-bit? I’m not the only Toradex customer with this problem so rewriting the script would be a big benefit to your customer base.
It is not possible / practical for me to upgrade to a different version of Ubuntu on this development machine. Is it possible for Toradex to rewrite / recompile the update.sh so that it is backward compatible with Ubuntu 12.04 32-bit? I’m not the only Toradex customer with this problem so rewriting the script would be a big benefit to your customer base.
As Marcel mentions split in Ubuntu 12.04 is from a coreutils version which is older than coreutils 8.16. Thus it is missing the ability to set a starting number with the numeric-suffixes option.
If you cannot get away from Ubuntu 12.04 and you cannot update coreutils to 8.16 or later you could work around the issue by removing the ‘=100’ from the split command line in update.sh and rename the resulting artefacts by hand afterwards.
I am with Max, you should really consider moving to a newer, 64-bit distribution, especially when starting a new project. There are increasingly more use cases, where you will run into issues due to the memory limitations of a 32-bit architecture when working on a embedded project, and those are not only Toradex related (e.g. compile time errors when using link-time optimizations, since LTO typically requires a big address space or when compiling large frameworks such as web browser engines). After all, it is 2017…
I compiled a static linked 32-bit version of imx_usb, you can download it here. Replace the imx_usb file in the recovery/ subfolder of Toradex Easy Installer and recovery should work with a 32-bit distribution.