Espressobin V5 lost brain function - complete melt down

Necessary files for UART mode can be found here ;
https://minio.k-space.ee/minio/armbian/dl/espressobin/u-boot/rescue/

Thank you very much! In the supplied link, I don't understand the final numbers in the various uart image files like 800_800, 600_600. Is this some sort of screen resolution or something? I have the V5 which I understand means I have DDR3 memory and the label of 1G indicates that I have 1G memory and by viewing the board and seeing the dual chips, that narrows down my selection to the 2CS version. The question is, what do the dual numbers following that mean, and how do I know which to select? Thanks!

I suspect it's some kind of clock speed

Yes, it is the bus speed !
Lowest = more stable but less fast...

Well unfortunately something else must be hosed. After several syntax attempts I finally came up with one that worked. Note that the command is changed since I put all my install files and the command file in the same directory. I successfully loaded the files from the 600 library or the slowest bus speed ...


oem@Laptop:/media/oem/4EF2DA17F2DA02DF/openwrt$ sudo ./WtpDownload_linux -P UART -C 0 -R 115200 -B TIM_ATF.bin -I wtmi_h.bin -I boot-image_h.bin -E
Start time: 12/02/20 17:42:46
WtpDownload for 32-bit Host (Target Images Downloading Tool)

Trusted version for TIM and NTIM
Version:      3.3.11.15
Release Date: 04.May.2017

Verbose mode disabled...

/dev/ttyUSB0
+++
Image ID: TIMH (0x54494d48)
Image ID: WTMI (0x57544d49)
Image ID: OBMI (0x4f424d49)

Number of files to download: 3
+++
Version: 3401
Date: 5152016
Processor: ARMA
+++++++++++++++++++++

Download time for image 1->0hr:0min:0s
Success: Download file complete for image 1
++
Version: 3401
Date: 5152016
Processor: ARMA
++++++++++++++++++++++++++++++++++++++++
+++++++++

Download time for image 2->0hr:0min:1s
Success: Download file complete for image 2
++
Version: 3401
Date: 5152016
Processor: ARMA
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++

++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
((( MANY ROWS OF THESE DELETED FOR DISPLAY PURPOSES )))
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
+++++++++

Download time for image 3->0hr:1min:13s
Success: Download file complete for image 3
++
Finish time: 01/00/00 00:00:00


WtpDownload Complete! Device:

Success: WtpDownload Exiting with Success Code!

Now once this completed, I would assume that re-plugging the device from UART mode back to standard as it was shipped would give me something new on the console. It didn't. I got the same old ">" and "E" that I had before....

Must be hosed!


E
>
E
>
E
>?
h/? - print this help screen
r yyyyyyyy - read register/memory at address yyyyyyyy in hex
w yyyyyyyy zzzzzzzz - write zzzzzzzz to address yyyyyyyy in hex
j yyyyyyyy - jump to address yyyyyyyy in hex
x y - change the boot mode, where y is in hex
a - UART control passed to AP CPU ROM
c - UART control passed to CM3 CPU ROM
>
E
>
E
>
E

**** additional note ... pressing the reset button over and over only gives me an additional >, >>, >>>, >>>>, etc.

I just checked Globalscape to see if maybe my board is still in warranty. LOL 30 days - that's thirty days LOL.

after you have booted by uart, you need to flash again the bootloader...
uard mode is just for load and booting, not flashing...

you may use also the fresh uboot from openwrt : here ->


the trusted firmware folders contains UART boot files and flashable uboot

Verified HOWTO :
HOWTO

Requirements : (for v7 1G eMMC)

https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa53/
https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa53/trusted-firmware-a-espressobin-v7-1gb-emmc/
http://wiki.espressobin.net/tiki-index.php?page=Ports+and+Interfaces#Boot_selection
https://github.com/MarvellEmbeddedProcessors/A3700-utils-marvell/blob/A3700_utils-armada-18.12-fixed/wtptp/linux/WtpDownload_linux

SWITCH OFF
SWITCH TO UART BOOT
SWITCH ON
USB PLUG


gerald@P3530:~/Téléchargements/FLASH/uart-images$ ../WtpDownload_linux -P UART -C 0 -R 115200 -B ./TIM_ATF.bin -I ./wtmi_h.bin -I ./boot-image_h.bin -E && minicom -D /dev/ttyUSB0
gerald@P3530:~/Téléchargements/FLASH/uart-images$ ../WtpDownload_linux -P UART -C 0 -R 115200 -B ./TIM_ATF.bin -I ./wtmi_h.bin -I ./boot-image_h.bin -E && minicom -D /dev/ttyUSB0
Start time: 12/04/20 19:19:05
WtpDownload for 32-bit Host (Target Images Downloading Tool)

Trusted version for TIM and NTIM
Version:      3.3.11.15
Release Date: 04.May.2017

Verbose mode disabled...

/dev/ttyUSB0
+++
Image ID: TIMH (0x54494d48)
Image ID: WTMI (0x57544d49)
Image ID: OBMI (0x4f424d49)

Number of files to download: 3
+++
Version: 3401
Date: 5152016
Processor: ARMA
+++++++++++++++++++++

Download time for image 1->0hr:0min:0s
Success: Download file complete for image 1
++
Version: 3401
Date: 5152016
Processor: ARMA
++++++++++++++++++++++++++++++++++++++++
+++++++++

Download time for image 2->0hr:0min:1s
Success: Download file complete for image 2
++
Version: 3401
Date: 5152016
Processor: ARMA
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++
+++++++++

Download time for image 3->0hr:1min:23s
Success: Download file complete for image 3
++
Finish time: 01/00/00 00:00:00


WtpDownload Complete! Device:

Success: WtpDownload Exiting with Success Code!
Download Time:0hr:1min:27s

Bienvenue dans minicom 2.7.90

OPTIONS: I18n 
Compilé le Jul 26 2020, 10:44:57.
Port /dev/ttyUSB0, 19:20:24

Tapez CTRL-A Z pour voir l'aide concernant les touches spéciales



PRESS A KEY AT UBOOT BOOTING

U-Boot 2020.10 (Dec 02 2020 - 22:46:01 +0000)

DRAM:  1 GiB
Comphy-0: USB3_HOST0    5 Gbps    
Comphy-1: PEX0          2.5 Gbps  
Comphy-2: SATA0         5 Gbps    
SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: ncq led only pmp fbss pio slum part sxs 
PCIE-0: Link up
MMC:   sdhci@d0000: 0, sdhci@d8000: 1
Loading Environment from SPIFlash... SF: Detected mx25u3235f with page size 256B
OK                                                                              
Model: Globalscale Marvell ESPRESSOBin Board (eMMC)                             
Net:   eth0: neta@30000 [PRIME]                                                 
Hit any key to stop autoboot:  0                                                
=> 
=> usb reset                                                                    
resetting USB...                                                                
Bus usb@58000: Register 2000104 NbrPorts 2                                      
Starting the controller                                                         
USB XHCI 1.00                                                                   
Bus usb@5e000: USB EHCI 1.00                                                    
scanning bus usb@58000 for devices... 2 USB Device(s) found                     
scanning bus usb@5e000 for devices... 1 USB Device(s) found                     
	   scanning usb for storage devices... 1 Storage Device(s) found            
=> ls usb 0:1 FLASH                                                             
			./                                                                  
			../                                                                 
   990724   flash-image.bin                                                     
   381930   uart-images.tgz                                                     
			uart-images/                                                        
   248208   WtpDownload_linux                                                   
                                                                                
3 file(s), 3 dir(s)                                                             
                                                                                
=>    
=> bubt FLASH/flash-image.bin spi usb                                           
Burning U-Boot image "FLASH/flash-image.bin" from "usb" to "spi"                
Bus usb@58000: Register 2000104 NbrPorts 2                                      
Starting the controller                                                         
USB XHCI 1.00                                                                   
Bus usb@5e000: USB EHCI 1.00                                                    
scanning bus usb@58000 for devices... 2 USB Device(s) found                     
scanning bus usb@5e000 for devices... 1 USB Device(s) found                     
Image checksum...OK!                                                            
SF: Detected mx25u3235f with page size 256 Bytes, erase size 4 KiB, total 4 MiB 
Erasing 991232 bytes (242 blocks) at offset 0 ...Done!                          
Writing 990724 bytes from 0x5000000 to offset 0 ...Done!                        
=> reset                                                                        
resetting ...                                                                   
>

UNPLUG
SWITCH TO SPI BOOT
PLUGIN

TIM-1.0                                                                        
WTMI-devel-18.12.1-d346beb08c                                                   
WTMI: system early-init                                                         
SVC REV: 4, CPU VDD voltage: 1.027V                                             
NOTICE:  Booting Trusted Firmware                                               
NOTICE:  BL1: v2.3():reboot-15129-gd346beb08c (Marvell-devel-18.12.0)           
NOTICE:  BL1: Built : 22:46:01, Dec  2 2020                                     
NOTICE:  BL1: Booting BL2                                                       
NOTICE:  BL2: v2.3():reboot-15129-gd346beb08c (Marvell-devel-18.12.0)           
NOTICE:  BL2: Built : 22:46:01, Dec  2 2020                                     
NOTICE:  BL1: Booting BL31                                                      
NOTICE:  BL31: v2.3():reboot-15129-gd346beb08c (Marvell-devel-18.12.0)          
NOTICE:  BL31: Built : 22:46:01                                                 
                                                                                
U-Boot 2020.10 (Dec 02 2020 - 22:46:01 +0000)                                   
                                                                                
DRAM:  1 GiB                                                                    
Comphy-0: USB3_HOST0    5 Gbps                                                  
Comphy-1: PEX0          2.5 Gbps                                                
Comphy-2: SATA0         5 Gbps                                                  
SATA link 0 timeout.                                                            
AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode                       
flags: ncq led only pmp fbss pio slum part sxs                                  
PCIE-0: Link up                                                                 
MMC:   sdhci@d0000: 0, sdhci@d8000: 1                                           
Loading Environment from SPIFlash... SF: Detected mx25u3235f with page size 256B
OK                                                                              
Model: Globalscale Marvell ESPRESSOBin Board (eMMC)                             
Net:   eth0: neta@30000 [PRIME]                                                 
Hit any key to stop autoboot:  0                                                
=>

HIT A KEY
... and then use UBOOT command to fix MAC and BOOTCMD ...

Did you see that
a) my console will not connect or display when the board is plugged to UART mode

b) the process completes successfully after the command:
./WtpDownload_linux -P UART -C 0 -R 115200 -B ./TIM_ATF.bin -I ./wtmi_h.bin -I ./boot-image_h.bin -E && minicom -D /dev/ttyUSB0

c) the console software will still not connect when board plugged to UART mode

d) returning to SPI mode shows the same condition on the console with no indication that UBOOT is running.

I don't understand, the last thing you posted was Uboot saying:

U-Boot 2020.10 (Dec 02 2020 - 22:46:01 +0000)                                   
                                                                                
DRAM:  1 GiB                                                                    
...
...
Hit any key to stop autoboot:  0                                                

This is a message from U-boot telling you it's about to boot. So what is it that you are having issues with?

You have to interrupt the uboot when and just after it is loaded by UART, then you have to reflash uboot with bubt command line... and only then you can access your uboot from SPI booting...

Look inside my logs, in the HOWTO, all commands are shown

1 Like

>E
is correct when the bootloader is corrupt, your console is working

PS : take care to remove hardware handshake in the minicom options !

Do you have uboot starting up ?
Can you interrupt the boot ?

UART is just for loading so you may had the uboot starting from memory !

Need to be flashed correctly

1 Like

UBOOT means something on the console except E and >, is this correct?

The problem is that before the UART load I see E and > from the console and after the UART load completes successfully, I also see only E and > on the console. There is no Marvel command line or anything like in the documentation. ANd each time I press the ENTER key it changes from E to > and back to E and back to >. If I press the reset button on the board, each time I press the reset button the number of arrows grow. For example if I press the reset button 4 times, the console will appear >>>>

I do not under stand the order. PRESS A KEY AT UBOOT BOOTING

  • with board plugged to UART, the console will not connect
  • the command Wtptp..... is loaded from the Linux terminal window
  • the command completes.
  • you say here to PRESS A KEY AT UBOOT BOOTING
  • I cannot see UBOOT if I do not have an active console session, is this not correct?
  • I must replug to SPI mode correct to get the console?
  • when I did this before, there was as if I had done nothing and the console was still corrupt

After this command finishes on my laptop Linux distribution, then what?

Do I use minicon at that very moment, without re-plugging the board to something other than UART?

What parameter are you suggesting and how to I set that up, I have not used minicon before.

How can minicon connect if still in UART mode?

This command will execute minicom to USB console at the end of WTPDownload and will give you access to the system, so if you KEYPRESS at the UBOOT loading (the one loaded and started by WTPDownload) you then be able to BUBT (flash uboot) and repair/recover/rescue your EspressoBin !

You only change the bootmode to UART from SPI to get this possibility of loading uboot into memory with WTPDownload...
You will only get back to SPI mode from UART mode when you will have successfully repair/reflash a ne uboot to NOR (SPI) with the BUBT command

You will always get ">" from UART MODE, but get a "=>" or "Marvell >", depending of the uboot version, from uboot...
The objective of the method of recovery is to load into memory a UART version of UBOOT...
This will be temporary, because it's not flashed but only loaded in memory, so a RESET or a POWERCYCLE will empty memory back...

2 Likes

yes

you need to do a CTRL+A and CTRL+Z and then go to O (options), then serial port config, then disable Hardware Handshake (F)...
If not done, your console will not get keypress from your keyboard !!!


NOTIC+-------------------------------------------------------------------+
NOTIC|                 Résumé des commandes de Minicom                   |
NOTIC|                                                                   |   
NOTIC|              Les commandes peuvent ĂȘtre appelĂ©es p                |   
NOTIC|                                                                   |   
     |               Fonctions principales           Autres fonctions    |   
U-Boo|                                                                   |      
     | Répertoire.........D  Exécuter un script.G | Effacer l'écran....C |      
DRAM:| Envoyer fichiers...S  Recevoir fichiers..R | Configurer Minicom.O |      
Comph| ParamĂštres de comm.P  Ajouter LF.........A | Suspendre minicom..J |      
Comph| Capture act/désact.L  Raccrocher.........H | Sortir et ràz......X |      
Comph| Envoyer « break »..F  Initialiser modem..M | Quitter sans ràz...Q |      
SATA | Réglages du term...T  Exécuter Kermit....K | Touches du curseur.I |      
AHCI | Coupure des lignes.W  Écho local act/dĂ©s.E | Écran d'aide.......Z |      
flags| Coller fichier.....Y  Basculer horodat...N | DĂ©filer haut.......B |      
PCIE-| Ajout retour char..U                                              |      
MMC: |                                                                   |      
Loadi|     Sélectionnez une commande ou tapez Entrée pour revenir.       |e 256B
OK   +-------------------------------------------------------------------+
DRAM:  1 GiB+-----------[configuration]-----------+                             
Comphy-0: US| Noms de fichiers et chemins         |                             
Comphy-1: PE| Protocoles de transfert             |                             
Comphy-2: SA| Configuration du port série         |                             
SATA link 0 | Modem et appel                      |                             
AHCI 0001.03| Écran et clavier                    |A mode                       
flags: ncq l| Enregistrer config. sous dfl        |                             
PCIE-0: Link| Enregistrer la configuration sous
  |                             
MMC:   sdhci| Sortir                              |                             
Loading Envi+-------------------------------------+x25u3235f with page size 256B

NOTI| A -                Port série : /dev/ttyUSB0                          |
NOTI| B - Emplacement fichier verr. : /var/lock                             |
    | C -     Prog. d'appel entrant :                                       |
U-Bo| D -     Prog. d'appel sortant :                                       |   
    | E -         Débit/Parité/Bits : 115200 8N1                            |   
DRAM| F - ContrÎle de flux matériel : Non                                   |   
Comp| G - ContrĂŽle de flux logiciel : Non                                   |   
Comp| H -     RS485 Enable      : No                                        |   
Comp| I -   RS485 Rts On Send   : No                                        |   
SATA| J -  RS485 Rts After Send : No                                        |   
AHCI| K -  RS485 Rx During Tx   : No                                        |   
flag| L -  RS485 Terminate Bus  : No                                        |   
PCIE| M - RS485 Delay Rts Before: 0                                         |   
MMC:| N - RS485 Delay Rts After : 0                                         |   
Load|                                                                       |56B
OK  |    Changer quel réglage ?                                             |

Then you can save to default settings (if not, you'll need to redo these options configuration at net minicom usage)...

You must do all the process of powercycle, plug wtpdownload && minicom if you get not access to UBOOT, or if WTPDownload is not successfull...

Yes, need minicom to be started as fast as possible and KEYPRESS be send to the EBIN to interrupt UBOOT loading...

No !
Not before you have recover / reflash a new version to your EBIN NOR MEMORY...
WTPDownload is not permanent...

2 Likes

You may get "=>" or "Marvell >" depends of the version of uboot you load...
Get a preference for the OpenWRT version of UBOOT (latest version !)

2 Likes

No I have not received that message, you may have picked up the example where this is from someone trying to help me.

1 Like

Got it. yeah, a little hard to follow. I'm glad I never got into this situation with my espressobin... I guess there's a reason i'm sticking to RPi these days and it's to avoid this kind of loss of time. I mean, I spend enough time tinkering with small computers as it is!
:slight_smile: