Create SD card image - boot code 0x80502008 and H0x80501003

Started by ovdl, November 18, 2017, 12:45:43 AM

Previous topic - Next topic

ovdl

Hi all,

So I've a i.mx233 board and tried to create a SDCARD with the Olimex image. However, on the debug console I only get these 'error codes':
0x80502008
H0x80501003

From these instructions, https://www.olimex.com/Products/OLinuXino/iMX233/_resources/OPEN-EMBEDDED-README.TXT, I followed step 1 through 16. Then I downloaded the image from https://www.olimex.com/wiki/IMX233 (https://drive.google.com/file/d/0BwplT87k9SCgR3VWUDNKVUo4Ulk/view?usp=sharing). This resulted in imx233_debian_3_11_wifi_RTL8188_AX8877_LAN9512_GPIO_2G_preliminary.img

I wrote that image with the following command:
$ sudo dd if=imx233_debian_3_11_wifi_RTL8188_AX8877_LAN9512_GPIO_2G_preliminary.img of=/dev/sdb

But I think there's still something wrong with the SDCard. Partitions seem to be ok:
Command (m for help): p

Disk /dev/sdb: 3,5 GiB, 3790602240 bytes, 7403520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1        2048   34815   32768   16M 53 OnTrack DM6 Aux3
/dev/sdb2       34816 3909631 3874816  1,9G 83 Linux

Does someone have any idea how to get the board starting from the sdcard? I did search but all links to images (even those in the README) are generating 404 not founds.

I really would like to have the board show something more than those two codes ;o)

Thanks!
Onno.

JohnS

The SD card looks OK (superficially i.e. partitions and sizes).

Another thread on here had codes and refers to http://sasamy.narod.ru/IMX23_ROM_Error_Codes.pdf
with
#define ERROR_ROM_LDR_SIGNATURE (ERROR_ROM_GROUP | ERROR_ROM_LOADER_GROUP | 0x3)
0x80501003 The file signature or file version is incorrect

So either it's not reading the SD (jumper wrong? badly inserted? ...) or actually the SD image did not fully write.

(Or something I've not guessed at!)

It's worth a web search for the code (and add imx233 to the search) and see if anyone else's comments help.  E.g. if boot fails it may try USB and so on.

John

ovdl

Hi John,

Thanks for your reply. I indeed searched on the error codes. Have tried about everything I could find:
- Trying another SD card
- Wrote BCB to the last sector of the SD card (at least I think I did it right)
- rechecked all pins of the sdcard socket were connected to the CPU.

I'm going to try if it can boot from USB. Maybe that would work. Unfortunately this means I need to solder some things. ;) If I manage to get it working, I'll post an update.

EDIT: By the way: I also tried a bare minimum by only building a u-boot and writing it to the SD on first partition.

KR,
Onno.

JohnS

I think just u-boot would not work as you need bootlet(s) - but do read the manuals.

John

ovdl

Quote from: JohnS on November 20, 2017, 06:29:12 PM
I think just u-boot would not work as you need bootlet(s) - but do read the manuals.

John

Hi John,

The reason I tried uboot only is only to check if the sdcard is being read succesfully. I managed to blow the following fuse:
SD_MBR_BOOT(3)

However still getting the same error codes. Double checked the sdcard pins, all are connected. Jumpers are set to boot from SD. Only thing I still need to try is another sdcard. But any additional troubleshooting tips are welcome. :$

Regards,
Onno.

ovdl

Ok, so I tried 3 different SDCards (2x 4GB and one 8GB) but still same error codes:
0x80502008
          H0x80501003
0x80502008
          H0x80501003

I followed the steps @ https://github.com/koliqi/imx23-olinuxino/

Hopefully today some time to recheck connections and power levels.

LubOlimex

Hey!

What the error codes means might be checked in this document: http://sasamy.narod.ru/IMX23_ROM_Error_Codes.pdf

The two errors are probably because of improper preparation of the microSD card with a proper image.

Did you test with the ArchLinux image: https://www.olimex.com/wiki/images/6/6d/Imx233_kernel_2.6_ARCH_FS_WIFI_release_5.torrent ?

Which iMX233 board exactly do you have?

Best regards,
Lub/OLIMEX

Technical support and documentation manager at Olimex

ovdl

Hi Lub,

Never saw your update. Due to circumstances not able to work on this anymore the last years. Rebooting my iMX233 project again. Regarding your question about which board: I've build my own based on the iMX233. ;o) However to rule out SDCard and other issues, lately I've also bought your iMX233-olinuxino-micro together with the (s)jtag set. As I want to use that, known working, board as a reference to try and debug my board. And see what I can debug about this issue with SJTAG.

Sorry I forgot to mention in the initial post, that it was a non-olimex iMX233 board. I posted it here merely with the hope someone has some more info on the H0x80501003 error.

Meanwhile I created a working SDCard (for now only with u-boot) which works in the iMX233-olinuxino-micro but my own board still shows the H0x80501003 (ERROR_ROM_LDR_SIGNATURE) Error.

So as I know the u-boot/SD is correct, I'm going to dig deeper in why my own board won't start.

Best regards,
Onno.

ovdl

Ok .. so I finally figured out the problem. Somehow pin 2 (LCD_D0) didn't get soldered properly on the CPU side so when setting the boot mode, it never got set to SD Card on SSP1.

After a quick re-solder of that pin, it finally went into the correct mode.
D3+D0 closed (without sd card): = SD/MMC master on SSP1
0x80502008                                                                           
          0x8020a014 <<< Same code as on OLinuXino-Micro without sd card!

So victory for that. Now trying to fix the next problems. ;)
With the u-boot image it's only displaying HTLC repeatedly. When using Jann's "sd_mmc_bootstream.raw", I end up with:
HTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFC
PowerPrep start initialize power...
Battery Voltage = 0.00V
No battery or bad battery                                       detected!!!.Disabling battery                                   voltage measuHTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLC
PowerPrep start initialize power...
(REPEAT)

So need first to review the board again. I've seen a similar issue in another post on this forum.

At least all thanks for providing hints/info.

KR,
Onno.