Difference between revisions of "i.MX53 SODIMM PC Flashing images"
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:i.MX53 SODIMM PC - Development | + | [[Category:i.MX53 SODIMM PC - Development Kit]] |
[[Category:i.MX53 SODIMM PC Recovery]] | [[Category:i.MX53 SODIMM PC Recovery]] | ||
<!-- --> | <!-- --> | ||
Line 5: | Line 5: | ||
This section describes flashing Barebox, Linux kernel and filesystem images.<br /><br /> | This section describes flashing Barebox, Linux kernel and filesystem images.<br /><br /> | ||
− | If module | + | If module could not start loading Barebox from its memory, recover bootloader by following [[i.MX53_SODIMM_PC_Loading_bootloader|these steps]] first. |
== Flashing bootloader == | == Flashing bootloader == | ||
Line 11: | Line 11: | ||
[[image:i.MX25_SODIMM_Base_Board-Serial_boot.jpg|400px]]<br /><br /> | [[image:i.MX25_SODIMM_Base_Board-Serial_boot.jpg|400px]]<br /><br /> | ||
− | Make sure FTFP server is up and running. Download the [http://downloads.voipac.com/files/i.MX53_SODIMM_PC- | + | Make sure FTFP server is up and running. Download the [http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/barebox/binaries/barebox-2012.09.0-vmx53-vpac2.bin latest image] and store it into the TFTP directory.<br /><br /> |
A local network without DHCP control is recommended. Define network parameters for this network first: | A local network without DHCP control is recommended. Define network parameters for this network first: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | eth0.ipaddr=192.168.0. | + | eth0.ipaddr=192.168.0.154 |
eth0.netmask=255.255.255.0 | eth0.netmask=255.255.255.0 | ||
eth0.gateway=192.168.0.1 | eth0.gateway=192.168.0.1 | ||
eth0.serverip=192.168.0.77 | eth0.serverip=192.168.0.77 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Network_settings. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Network_settings.png|580px]]<br /><br /> |
Erase NAND Flash memory: | Erase NAND Flash memory: | ||
Line 26: | Line 26: | ||
erase /dev/nand0 | erase /dev/nand0 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit- | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Erasing_NAND.png|580px]]<br /><br /> |
Download bootloader image from TFTP server: | Download bootloader image from TFTP server: | ||
Line 32: | Line 32: | ||
tftp vmx53/barebox.bin /dev/nand0.barebox.bb | tftp vmx53/barebox.bin /dev/nand0.barebox.bb | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Loading_Barebox. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Loading_Barebox.png|580px]]<br /><br /> |
− | Power off the board and disconnect the JTAG cable as it is not needed anymore. Switch the module to the normal boot mode by changing H902 jumper | + | Power off the board and disconnect the JTAG cable as it is not needed anymore. Switch the module to the normal boot mode by changing H902 jumper on the base board (short pins 2 and 3 together):<br /> |
[[image:i.MX25_SODIMM_Base_Board-Direct_boot.jpg|400px]]<br /><br /> | [[image:i.MX25_SODIMM_Base_Board-Direct_boot.jpg|400px]]<br /><br /> | ||
Power on the board. The module boots from the new Barebox stored in its memory:<br /> | Power on the board. The module boots from the new Barebox stored in its memory:<br /> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Barebox_booting. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Barebox_booting.png|580px]]<br /><br /> |
== Flashing Linux kernel == | == Flashing Linux kernel == | ||
− | Download [http://downloads.voipac.com/files/i.MX53_SODIMM_PC- | + | Download [http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/linux/binaries/zImage-3.12.13_vmx53_20151129.bin the latest kernel image] and store into the TFTP directory.<br /><br /> |
Before loading the image, set the server address and update the bootloader: | Before loading the image, set the server address and update the bootloader: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
eth0.serverip=192.168.0.77 | eth0.serverip=192.168.0.77 | ||
− | update barebox tftp | + | update barebox tftp vmx53/barebox-2012.09.0-vmx53-vpac2.bin |
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Updating_kernel. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Updating_kernel.png|580px]]<br /><br /> |
Restore bootloader environment to the default state and reset the board afterwards: | Restore bootloader environment to the default state and reset the board afterwards: | ||
Line 54: | Line 54: | ||
erase /dev/nand0.bareboxenv | erase /dev/nand0.bareboxenv | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Erasing_kernel. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Erasing_kernel.png|580px]]<br /><br /> |
− | Update Linux image (using the latest official Voipac | + | Update Linux image (using the latest official Voipac image is highly recommended): |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | #update kernel tftp | + | #update kernel tftp vmx53/zImage-2.6.35.3-vmx53-vpac0.bin |
− | update kernel tftp | + | update kernel tftp vmx53/zImage-3.12.13_vmx53_20151129.bin |
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Flashing_kernel. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Flashing_kernel.png|580px]]<br /><br /> |
== Flashing filesystem == | == Flashing filesystem == | ||
− | Download [http://downloads.voipac.com/files/i.MX53_SODIMM_PC- | + | Download [http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-ubifs-bb-1-18-vmx53-vpac0.bin the latest filesystem] and store into the TFTP directory.<br /><br /> |
Update the stored filesystem image: | Update the stored filesystem image: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | update rootfs tftp | + | update rootfs tftp vmx53/rootfs-ubifs-bb-1-18-vmx53-vpac0.bin |
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Flashing_filesystem. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Flashing_filesystem.png|580px]]<br /><br /> |
− | Reset the board.The module boots with newly downloaded files. The default vmx53 login is '''root''' without set password: | + | Reset the board. The module boots with newly downloaded files. The default vmx53 login is '''root''' without set password: |
− | [[image:i.MX53_SODIMM_PC-Development_Kit-Running_Linux. | + | [[image:i.MX53_SODIMM_PC-Development_Kit-Running_Linux.png|580px]] |
Latest revision as of 22:09, 23 October 2021
This section describes flashing Barebox, Linux kernel and filesystem images.
If module could not start loading Barebox from its memory, recover bootloader by following these steps first.
Flashing bootloader
Enable serial boot mode by placing a link between pins 1 and 2 of H902 (BOOTMODE) header:
Make sure FTFP server is up and running. Download the latest image and store it into the TFTP directory.
A local network without DHCP control is recommended. Define network parameters for this network first:
eth0.ipaddr=192.168.0.154 eth0.netmask=255.255.255.0 eth0.gateway=192.168.0.1 eth0.serverip=192.168.0.77
Erase NAND Flash memory:
erase /dev/nand0
Download bootloader image from TFTP server:
tftp vmx53/barebox.bin /dev/nand0.barebox.bb
Power off the board and disconnect the JTAG cable as it is not needed anymore. Switch the module to the normal boot mode by changing H902 jumper on the base board (short pins 2 and 3 together):
Power on the board. The module boots from the new Barebox stored in its memory:
Flashing Linux kernel
Download the latest kernel image and store into the TFTP directory.
Before loading the image, set the server address and update the bootloader:
eth0.serverip=192.168.0.77 update barebox tftp vmx53/barebox-2012.09.0-vmx53-vpac2.bin
Restore bootloader environment to the default state and reset the board afterwards:
erase /dev/nand0.bareboxenv
Update Linux image (using the latest official Voipac image is highly recommended):
#update kernel tftp vmx53/zImage-2.6.35.3-vmx53-vpac0.bin update kernel tftp vmx53/zImage-3.12.13_vmx53_20151129.bin
Flashing filesystem
Download the latest filesystem and store into the TFTP directory.
Update the stored filesystem image:
update rootfs tftp vmx53/rootfs-ubifs-bb-1-18-vmx53-vpac0.bin
Reset the board. The module boots with newly downloaded files. The default vmx53 login is root without set password: