Article 6DKPT Image is not of type ARM barebox image but of type MBR sector, update failed

Image is not of type ARM barebox image but of type MBR sector, update failed

by
Ricky12
from LinuxQuestions.org on (#6DKPT)
I have phyBOARD-MIRA i.MX6 development board from PHYTEC. It comes with preinstalled barebox bootloader on NAND Flash, and one can build embedded Linux distribution (more or less) easily using Yocto and documentation of PHYTEC.

I have built new embedded Linux distribution using Yocto (with new barebox), I have copied it to SD Card as shown later below, set switch S2 on phyBOARD-MIRA i.MX6 to ON so that Linux boots from SD Card, and I was happy with how it works. Barebox bootloader is still old Barebox from NAND Flash.

Now I am trying to flash everything from this SD Card to NAND Flash on embedded board. When I stop autoboot of embedded board and try flashing barebox like this:

Code:barebox_update -t nand /dev/mmc0.bareboxI get following error:

Quote:
UPDATE: Image is not of type ARM barebox image but of type MBR sector

update failed
This is what is written in documentation of PHYTEC:

Quote:
In case that your phyBOARD-Mira i.MX 6 does not start anymore due to a damaged bootloader, you need to boot from an SD card. This SD card must be formatted in a special way, because the i.MX 6 does not use file systems. Instead it is hard coded at which sectors of the SD card the i.MX 6 expects the bootloader.

Bitbake, a tool integrated in Yocto, builds an image with the ending *.sdcard which fulfills the requirements mentioned above. So we can copy this image to an SD card with the help of dd.

Now use the following command to create your bootable SD card:

Code:sudo dd if=phytecqt5demoimagephyboardmiraimx6*.sdcard
of=/dev/<DEVICE>
I am using dd to create bootable sd card, I am only using Cygwin dd instead on normal dd from Linux. They are probably same, but SD card seems to still have old NTFS or exFAT filesystem which is bad for my barebox. I have three components of embedded Linux distribution which stem from this *.sdcard file: barebox, linuximage and oftree, but MBR sector at the beginning of SD card seems to make SD card less usable.

Did anyone have similar problems, and is there anything more useful than this dd command?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments