Welcome! Log In Create A New Profile

Advanced

Akitio MyCloud Mini UART/SPI/JTAG help please...

Posted by Drew Nucci 
Drew Nucci
Akitio MyCloud Mini UART/SPI/JTAG help please...
March 22, 2023 04:47PM
Hello, I have also bricked my Akitio mycloud mini. I am an amature at figuring out hw to use jtag/uart/spi to flash my rom back to the tsop48 chip on the board. I have been using a raspberry pi pico with code installed on it from various githubs to try and figure out how to flash the nand. so far i have gotten the low hanging fruit and figured out how to hook up the pico to veiw the serial output in putty... this is what i used for code:
Uart Bridge

[/code]

Attempting to set PLLA to 750MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000F0000
plla_ctrl2 : 0x001D01A0
plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testingMemory test failed, reverting to default PLL configAttempting to set PLLA to 500MHz ...
plla_ctrl0 : 0x0000012A
plla_ctrl1 : 0x003C0000
plla_ctrl2 : 0x007700D0
plla_ctrl3 : 0x000000BD
PLLA Set

, Image 0
Failed to correct error
Hdr len: 0x00CFACE5
Hdr CRC: 0xB9CBAD92
read failed, Image 1
Failed to correct error
Hdr len: 0x00CFACE5
Hdr CRC: 0xB9CBAD92

[/code]

As I suspected, there is no image on the nand.

I was toying with using Pico Flasher and adapting it for my uses and flashing the NAND through SPI but i dont know what contact points to use (which i can probably figure out through the data sheet for the nand Hynix Datasheet) but where that plan falls apart is my lack of understanding of NAND chip timings and how the software needs to be augmented to be usable.

Finally, i looked into JTAG. I soldered headers on where "J10" is marked on the board and i am fairly certain it follows this convention Akition MyCloud Mini JTAG header and that led me to this git: JTAGenum which uses a rapberry pi (experimentally, which i have plenty of) to enumerate the jtag port and all its functions.

I have a serious lack of programming knowledge. I can solder and fix hardware, but anything software and how it all integrates and talks to each other i have a serious lack of understanding. (not for lack of trying though.)

If anyone would care to help/guide me on this last piece of what software/setup/ commands through, UART?SPI/JTAG, i can use to reflash my nand. I have original FW provided to me from AKITIO (apparently each FW is custom with each mac address added to the file). So if i can figure out how to flash the file I have, I think I will have a working mycloud again, not to mention the (intended) ability to run OpenWRT on the cloud device, as well as document the procedure and missing info on all Akitio Wiki's...

thanks for any help....
Re: Akitio MyCloud Mini UART/SPI/JTAG help please...
March 22, 2023 07:23PM
Drew Nucci,


This is another OXNAS device same as Pogo V3. Usually people unbrick it by booting from HDD fist, and then reflash NAND.

Wiki thread
https://forum.doozan.com/read.php?2,23630

Quote

Booting Debian on Pogoplug

<snip>

How to boot Pogo V3 from SATA (to unbrick), 2nd How to Post[/b]

Either of these above 2 tutorial can be used. The 2nd one is a bit more organized.

=====

It is a bit unclear if you are connecting Serial Console (UART), or JTAG at the moment?

Your boot log showed the SPL is running, but the u-boot image was corrupted, or non existant.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Drew Nucci
Re: Akitio MyCloud Mini UART/SPI/JTAG help please...
March 22, 2023 07:38PM
That's the issue... I can't connect to UART or JTAG without some setup help... I can connect to serial to get the console output which I showed above, but it wont accept commands... I don't know how else to set it up so I may get it to stop looping through unable to load image 0 and 1...

this is the full readout:

Stage-1 Bootloader 五 10月 28 10:36:29 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testingMemory test failed, reverting to default PLL configAttempting to set PLLA to 500MHz ...
  plla_ctrl0 : 0x0000012A
  plla_ctrl1 : 0x003C0000
  plla_ctrl2 : 0x007700D0
  plla_ctrl3 : 0x000000BD
PLLA Set

, Image 0
Failed to correct error
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 1
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 read failed, Image 0
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 1
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 0
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 1
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 0
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 1
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 0
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17
 CRC fail, Image 1
  Hdr len: 0x0001AC3C
  Hdr CRC: 0xB931AD17

Re: Akitio MyCloud Mini UART/SPI/JTAG help please...
March 22, 2023 09:41PM
Drew,

> That's the issue... I can't connect to UART or
> JTAG without some setup help... I can connect to
> serial to get the console output which I showed
> above, but it wont accept commands...

What you said above was what I meant. And it is very promising that you can see output from serial.

This SoC boots with 2 loaders, SPL (Stage-1 Bootloader) and U-Boot.
> Stage-1 Bootloader 五 10月 28 10:36:29 CST 2011
> Attempting to set PLLA to 750MHz ...
>   plla_ctrl0 : 0x0000000A
>   plla_ctrl1 : 0x000F0000
>   plla_ctrl2 : 0x001D01A0
>   plla_ctrl3 : 0x00000017
> PLLA Set
> 
> Setup memory, testingMemory test failed, reverting
> to default PLL configAttempting to set PLLA to
> 500MHz ...
>   plla_ctrl0 : 0x0000012A
>   plla_ctrl1 : 0x003C0000
>   plla_ctrl2 : 0x007700D0
>   plla_ctrl3 : 0x000000BD
> PLLA Set
At this point it will attemp to load u-boot image from NAND
> , Image 0
> Failed to correct error
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 1
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  read failed, Image 0
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 1
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 0
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 1
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 0
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 1
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 0
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17
>  CRC fail, Image 1
>   Hdr len: 0x0001AC3C
>   Hdr CRC: 0xB931AD17

Apparently it failed. So u-boot is not running, therefore there is no prompt for you to input.

And usually the quickest way to unbrick is to prepare a special HDD as described in the 2 tutorials. When the box starts, it will boot from SATA port right away (and ignore NAND), and then use the SPL and u-boot images on the HDD raw sectors.

Once you can boot the images from HDD raw sector, you can see u-boot countdown, and interrupt it to get to the prompt. Once you get to the u-boot prompt, you can restore the FW. Or you can also run Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Drew Nucci
Re: Akitio MyCloud Mini UART/SPI/JTAG help please...
March 23, 2023 12:54AM
Awesome, thank you for the info!!! I'm sorry if I seem a bit clueless (I am!)... I will try this tomorrow and see what I can get working... thanks again for taking the time to explain that to me!
Re: Akitio MyCloud Mini UART/SPI/JTAG help please...
December 03, 2023 09:02AM
Drew Nucci Wrote:
-------------------------------------------------------
> Awesome, thank you for the info!!! I'm sorry if I
> seem a bit clueless (I am!)... I will try this
> tomorrow and see what I can get working... thanks
> again for taking the time to explain that to me!


I need the original FW to be the last resort to flash my nand.

I encountered the same problem as you. With the help of bodhi, I successfully installed Debian 12 from HDD and was able to start the machine, but I still want to know what happened to my Stock FW.

My Stock FW can start U-BOOT 1.1.2 and boot into uImage smoothly, but it cannot successfully mount ubi's rootfs. It is currently under comprehensive research, and this is an opportunity to enter this fascinating world of Embeded systems.

At present, I still encounter many problems, and I am working hard to acquire knowledge and slowly have all the concepts.

What you said about how to flash Stock FW to NAND in Linux system is completely achievable. Of course, you can also use U-BOOT.
Or, the JTAG method you mentioned. (This is also the method I have thought about and purchased J-FLASH related equipment.)

If you can provide STOCK FW, I would be very grateful.


You can see this post
https://forum.doozan.com/read.php?4,136213,136213#msg-136213
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: