Welcome, Guest

Author Topic: Create SD card image - boot code 0x80502008 and H0x80501003  (Read 1352 times)

ovdl

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Create SD card image - boot code 0x80502008 and H0x80501003
« on: November 18, 2017, 12:45:43 AM »
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

  • Hero Member
  • *****
  • Posts: 1696
  • Karma: +33/-45
Re: Create SD card image - boot code 0x80502008 and H0x80501003
« Reply #1 on: November 18, 2017, 12:46:01 PM »
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
« Last Edit: November 18, 2017, 12:47:54 PM by JohnS »

ovdl

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Create SD card image - boot code 0x80502008 and H0x80501003
« Reply #2 on: November 20, 2017, 04:46:16 PM »
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

  • Hero Member
  • *****
  • Posts: 1696
  • Karma: +33/-45
Re: Create SD card image - boot code 0x80502008 and H0x80501003
« Reply #3 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

ovdl

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Create SD card image - boot code 0x80502008 and H0x80501003
« Reply #4 on: December 02, 2017, 10:35:03 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

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Create SD card image - boot code 0x80502008 and H0x80501003
« Reply #5 on: December 03, 2017, 10:39:05 AM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1798
  • Karma: +46/-2
Re: Create SD card image - boot code 0x80502008 and H0x80501003
« Reply #6 on: December 04, 2017, 09:17:03 AM »
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