Hello everyone,
We are using iMX6 SOM similar to TinyRex with WinCE (Windows Compact Embedded) 2013 OS and eboot (Ethernet Bootloader) as the bootloader. The bootloader is stored in a SPI flash. Our bootup process is that on start-up, the bootloader loads an OS image from a predefined location in eMMC and downloads it into RAM to boot up. But recently we're facing an issue where the bootloader fails sometimes to load the OS during boot i.e the bootloader gets stuck/crashes while reading an OS image that's stored in eMMC and therefore the OS doesn't boot up. The occurrence of this issue is rare and once this issue happens, we've to wait for a couple of minutes to start again or else the bootloader will again get stuck as mentioned above. After waiting sometime and switching on the machine, the OS boots up normally.
This issue doesn't happen on each and every SOM. We suspected that the affected SOMs' bootloader must have been corrupted in some way and tried to take a dump of boot partition (SPI flash) with MFGTool using the dd command on a couple of SOMs with this issue. On analyzing the dumps, we didn't find anything unusual in them.
Also we discovered that reflashing bootloader using MFGTool solves this issue(Not sure whether permanently or temporarily). Basically the MFGTool erases the boot partition first using flash_erase command (flash_erase /dev/mtd0 0 0) and then flashes bootloader image using dd command (dd if=$FILE of=/dev/mtd0 bs=512). After reflashing we haven't faced this issue yet. But we don’t support bootloader reflashing in field since it's a complicated procedure.
We don't have much/aren't aware of debugging facilities available for our platform. The memory dumps were the best we could do. We're perplexed because we're unsure whether it's hardware or a software issue. What makes it even more worse is that this issue doesn't have any pattern and is totally random(sometimes happens 2 in 5 times and sometimes 1 in 20 times or maybe none), so it's tough to pinpoint the root cause.
Has anyone else faced a similar issue? Any advice, suggestion or help will be much appreciated. Thanks.
We are using iMX6 SOM similar to TinyRex with WinCE (Windows Compact Embedded) 2013 OS and eboot (Ethernet Bootloader) as the bootloader. The bootloader is stored in a SPI flash. Our bootup process is that on start-up, the bootloader loads an OS image from a predefined location in eMMC and downloads it into RAM to boot up. But recently we're facing an issue where the bootloader fails sometimes to load the OS during boot i.e the bootloader gets stuck/crashes while reading an OS image that's stored in eMMC and therefore the OS doesn't boot up. The occurrence of this issue is rare and once this issue happens, we've to wait for a couple of minutes to start again or else the bootloader will again get stuck as mentioned above. After waiting sometime and switching on the machine, the OS boots up normally.
This issue doesn't happen on each and every SOM. We suspected that the affected SOMs' bootloader must have been corrupted in some way and tried to take a dump of boot partition (SPI flash) with MFGTool using the dd command on a couple of SOMs with this issue. On analyzing the dumps, we didn't find anything unusual in them.
Also we discovered that reflashing bootloader using MFGTool solves this issue(Not sure whether permanently or temporarily). Basically the MFGTool erases the boot partition first using flash_erase command (flash_erase /dev/mtd0 0 0) and then flashes bootloader image using dd command (dd if=$FILE of=/dev/mtd0 bs=512). After reflashing we haven't faced this issue yet. But we don’t support bootloader reflashing in field since it's a complicated procedure.
We don't have much/aren't aware of debugging facilities available for our platform. The memory dumps were the best we could do. We're perplexed because we're unsure whether it's hardware or a software issue. What makes it even more worse is that this issue doesn't have any pattern and is totally random(sometimes happens 2 in 5 times and sometimes 1 in 20 times or maybe none), so it's tough to pinpoint the root cause.
Has anyone else faced a similar issue? Any advice, suggestion or help will be much appreciated. Thanks.
Comment