Bricked my B3 after u-boot flash [Solved]

Got problems with your B2 or B3? Share and get helped!
mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Bricked my B3 after u-boot flash [Solved]

Post by mintz » 06 Sep 2015, 18:12

Here's what I did

Compiled U-Boot-B3 (link) natively on the B3 (updated to ver. 2.6). u-boot.kwb file was made without error.
Flashed the u-boot with the following commands:
flash_erase /dev/mtd0 0 0
Erasing 64 Kibyte @ b0000 -- 100 % complete
mtd_debug write /dev/mtd0 0 $(stat --printf '%s' "u-boot.kwb" ) "u-boot.kwb"
Copied 257376 bytes from u-boot.kwb to address 0x00000000 in flash
The flashing went without errors. I even checked and compared the contents of /dev/mtd0 and u-boot.kwb. They were identical.

After reboot my B3 is bricked. The front LED stays WHITE. I tried to use a rescue disk but instead of GREEN it is now YELLOW and doesn't seem to work anymore. I think the u-boot is screwed somehow...

What is my option now? Is there instruction on how I can unbrick it with serial cable?
Last edited by mintz on 16 Jan 2016, 12:40, edited 1 time in total.

MouettE
Site admin
Posts: 275
Joined: 06 Oct 2011, 19:45

Re: Bricked my B3 after u-boot flash

Post by MouettE » 07 Sep 2015, 11:29

The changed colors are normal. Seeing white (normal u-boot mode)/yellow (rescue u-boot mode) is perfectly normal ; I will add a comment on the README.md file in github to reflect this change. Your flash operation seems to have worked.

Did you give your b3 enough time to boot on either normal or rescue mode ? You should see this pattern of colors :

Normal : white (u-boot) -> purple (kernel) -> blue (system ready)
Rescue : yellow (u-boot) -> green (kernel and system ready)

If nothing works, you can flash the 3tb flash image directly from usb using instructions from the wiki page http://wiki.excito.com/w/index.php?titl ... _3TB_disks

mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Bricked my B3 after u-boot flash

Post by mintz » 17 Sep 2015, 09:19

It doesn't seem that I can get the unit to read from USB at all. I've tried with different USB sticks but it never get it to read from them at all. The light lit yellow (usb in, reset button held down/plug in power) and stay yellow forever. No HDD activity at all even when the INSTALL and FORMAT flags were set.

Does the u-boot have control over the "reset procedure" or is it hardware?

MouettE
Site admin
Posts: 275
Joined: 06 Oct 2011, 19:45

Re: Bricked my B3 after u-boot flash

Post by MouettE » 17 Sep 2015, 10:27

The flashing procedure that u-boot runs does not reset the board. It is normal that the led remains yellow forever when trying to flash from u-boot. You need to remove then reapply power to restart with the flashed version. The LED should then turn purple.

In order for this procedure to work, the install folder on the key must ONLY contains the u-boot.kwb file. If install files are found, u-boot will run them instead of trying to flash.

mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Bricked my B3 after u-boot flash

Post by mintz » 17 Sep 2015, 13:49

No matter what I do I cannot get my B3 to read the USB. I've tried the standard 2.4.1.1 install image, u-boot and even burned a live Gento image (Win32DiskImager). Nothing reads.

Somehow it doesn't want to read the USB drives. I've tried to plug in my 2.5 drive to see if the ports were damaged but it powers on so I guess there is no loose contact there.

Is there any other way to reset?

MouettE
Site admin
Posts: 275
Joined: 06 Oct 2011, 19:45

Re: Bricked my B3 after u-boot flash

Post by MouettE » 17 Sep 2015, 14:02

mintz wrote:Is there any other way to reset?
If nothing works then the only way to recover is to use a serial cable.

mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Bricked my B3 after u-boot flash

Post by mintz » 17 Sep 2015, 14:04

Where can I learn more about this and which serial cable is needed? Would a USB to Serial cable do?

MouettE
Site admin
Posts: 275
Joined: 06 Oct 2011, 19:45

Re: Bricked my B3 after u-boot flash

Post by MouettE » 17 Sep 2015, 14:10

Begin by reading this : http://wiki.excito.com/w/index.php?titl ... cess_on_B3 . There are also a few posts in the forum. Be sure to buy a proper RS232/TTL adapter as indicated in the wiki article.

Gordon
Posts: 1377
Joined: 10 Aug 2011, 03:18

Re: Bricked my B3 after u-boot flash

Post by Gordon » 17 Sep 2015, 15:10

MouettE wrote: Be sure to buy a proper RS232/TTL adapter as indicated in the wiki article.
Negative! Buy the Pi connector cable. It will save you a tenner and provides exactly the three wires you need. The cable comes with connectors that will fit standard print headers, so you can simply choose which method you want to use to connect it to your B3 board. Cut of the connectors to use the points as explained in the wiki, or solder on headers (on the revision boards) to (dis)connect the cable whenever you like. Or use the edge connector so you can connect the cable to any B3 board without needing any soldering (in the image that the link refers to you can see the soldered on pin headers right next to the battery. If you do decide for the pin headers do be careful not to let them stick out too far underneath, as this will result in problems with connecting a drive.

mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Bricked my B3 after u-boot flash

Post by mintz » 17 Sep 2015, 15:31

I googled this pi connector and only find ribbon-type cables. Do you have a link for one such cable?
I'm ordering a RS232/TTL - USB cable with separate wires anyway. Always handy to have one :D

Also if you guys also have a link for the edge connector it is much appreciated. I'm kinda a cable hoarder.


mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Bricked my B3 after u-boot flash

Post by mintz » 17 Sep 2015, 19:21

Thanks, guys. Just ordered the cables. Cannot wait to do this :D

mintz
Posts: 25
Joined: 31 Dec 2012, 08:03

Re: Bricked my B3 after u-boot flash

Post by mintz » 28 Dec 2015, 07:34

Can somebody provide me with an usable binary u-boot.kwb for the B3? Also it would help tremendously if somebody can provide me pointer and instruction on how to flash u-boot with serial access.

MouettE
Site admin
Posts: 275
Joined: 06 Oct 2011, 19:45

Re: Bricked my B3 after u-boot flash

Post by MouettE » 28 Dec 2015, 14:34

There are many ways to do that. But first can you post here the output from the serial console when you apply power to the B3 ?

ahoff
Posts: 92
Joined: 01 Apr 2008, 20:50
Location: Swe

Re: Bricked my B3 after u-boot flash

Post by ahoff » 31 Dec 2015, 09:37

What size should the U-boot.kwb file have? I can see that mintz file from the first post is 257376 bytes. When I compile from git (U-Boot-B3), it's 255772 bytes and compiling from the downloaded master.zip (U-Boot-B3-Master) it's 255760 bytes. what is the right sha1sum for u-boot.kwb?
Åke Hoff
Örskogen
Sweden

Post Reply