Welcome! Log In Create A New Profile

Advanced

Forgot to erase flash before writting uboot. Bricked?

Posted by J. Carlos 
J. Carlos
Forgot to erase flash before writting uboot. Bricked?
January 29, 2017 02:41PM
Hello.

I was upgrading my uboot to last version, but I forgot to erase the flash, i.e., to do:

flash_erase /dev/mtd0 0 4

I did all the following steps.

Now I can not boot. Is my dockstar bricked?

Thanks.
Re: Forgot to erase flash before writting uboot. Bricked?
January 29, 2017 02:44PM
J. Carlos,

Yes. It is bricked. And the Dockstar does not have UART booting. So the only way you can recover is connecting JTAG.

But on the slim chance that it might have worked and something else was the problem, you can try to boot with uEnv.txt in /boot folder. See the instruction in the u-boot installation thread.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 01/29/2017 02:46PM by bodhi.
I'm not even able to access uboot using a serial console.

Can you give me a URL to how to recove using JTAG?

Thanks.
Re: Forgot to erase flash before writting uboot. Bricked?
January 29, 2017 02:58PM
It is in the sticky Wiki thread up above:

Quote

Serial Console & JTAG console

Repair Pogo E02 with Raspberry PI (JTAG) and OpenOCD
Serial Port connector - what are people using to make it work
Serial Console hookup - GoFlex Net (external link)
Serial Console hookup - Pogoplug E02 and Pogoplug Pro V3 (external link)
OSX Serial/Net Console
Use Phone Jack - Phone Jack Serial Console Pics

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Forgot to erase flash before writting uboot. Bricked?
January 29, 2017 03:00PM
With that link it seems I have to buy a BusPirate card.

But there is also this link: http://forum.doozan.com/read.php?3,21789

I have a raspberry pi. Am I understanding correctly that link shows how to use a raspberry pi as a JTAG board??

Thanks.
Re: Forgot to erase flash before writting uboot. Bricked?
January 29, 2017 03:29PM
J. Carlos Wrote:
-------------------------------------------------------
> With that link it seems I have to buy a BusPirate
> card.
>
> But there is also this link: http://forum.doozan.c
> om/read.php?3,21789
>
> I have a raspberry pi. Am I understanding correctl
> y that link shows how to use a raspberry pi as a J
> TAG board??
>
> Thanks.

Yes, it is a pretty good instruction on how to do that.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
But can I use it for a dockstar, and not a Pogo?

What's the equivalent of J1's Pogo connector in my dockstar?

Thanks.
Re: Forgot to erase flash before writting uboot. Bricked?
January 29, 2017 03:45PM
J. Carlos Wrote:
-------------------------------------------------------
> But can I use it for a dockstar, and not a Pogo?
>
> What's the equivalent of J1's Pogo connector in my
> dockstar?
>
> Thanks.

You can use the Dockstar cfg from Redox. But the Pogo E02 and Dockstar have the same SoC so it most likely will work using Pogo E02 cfg. The J1 connector is also the same, iirc. You will see when you open the Dockstar.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Sorry, but I'm not able to make a correspondence between this:

## Raspi ## Note: be careful and donĀ“t mix GPIO and Pin number on Raspi!
## we use the Pins from SPI Interface (violett) 19,21,23,26 and 22 + 20 for GND see GPIO schematic Raspi

GPIO--------Pin#--color BP ---------- JTAG Pogo E02 (Wire colors from Buspirate cable)

GND ------- 20 - (Brown) GND ----------- GND (1)
GPIO 10 --- 19 - (Grey) MOSI ----------- TDI (2)
GPIO 9 ---- 21 - (Black) MISO ---------- TDO (4)
GPIO 11 --- 23 - (Violett) CLK --------- CLK (5)
GPIO 25 --- 22 - (White) CS ------------ TMS (6)
GPIO 7 --- 26 - (Blue) AUX/TRST ------- RES (7)

and this:

https://lunarius.fe80.eu/blog/files/openwrt/dockstar/jtag-dockstar-pinout.png

Where are CLK, TMS and RES in my dockstar?

Thanks
Sorry, I can see TMS, but not CLK and RES ...
Perhaps CLK is TCK and RES is n_TRST?
Re: Forgot to erase flash before writting uboot. Bricked?
January 29, 2017 04:37PM
J. Carlos Wrote:
-------------------------------------------------------
> Perhaps CLK is TCK and RES is n_TRST?

Please post these questions in Joerg's thread: http://forum.doozan.com/read.php?3,21789. Joerg probably had this thread notification and will hopefully come around and answer them.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
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: