Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

HCL stuck in U-Boot after update


AJD

Question

I initiated an update of the HCL via the App a few days ago. After that the contact was lost.
I have tried all recovery options I have found with no luck.

I opened up the HCL and discovered the AM3354 module inside.
I then found the console port (3pins: 0V, Rx and Tx. 3.3V level signals) and see that it is stuck in U-Boot:

U-Boot 2011.09-00010-g16f5006-dirty (Dec 18 2013 - 20:28:15)

I2C:   ready

DRAM:  128 MiB
WARNING: Caches not enabled
No daughter card present
Did not find a recognized configuration, assuming General purpose EVM in Profile 0 with Daughter board
NAND:  HW ECC Hamming Code selected
256 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
Error: Bad compare! failed
NAND read from offset c0000 failed -74
*** Warning - readenv() failed, using default environment

Net:   cpsw
Hit any key to stop autoboot:  0
U-Boot# help
U-Boot# printenv
U-Boot#

 

It stops in U-Boot as there are some memory failure, but it does not respond to any known command.

It reboots every 8th minute.

 

The LEDs are flashing as in recovery mode, but HCL is not visible on the net and and it does do not respond on 192.168.81.1 when PC is connected directly.

I find that a bit strange. Is U-Boot really holding the recovery web server?

 

If command interface had worked, it could maybe be possible to restore the on board flash using TFTP.

Link to comment
Share on other sites

Recommended Posts

  • 0

P2 header, near LAN. If the U12 on the bottom side (near P2 header) is not populated, you will need to solder two bridges (not between middle pins ...)

 

1 - <----> - 6

2 -          - 5

3 - <----> - 4

 

Please login or register to see this image.

/monthly_2020_07/image.png.4e2ff3f1fca5f3aac84fe42c632f1257.png" />

  • Like 1
Link to comment
Share on other sites

  • 0

Please login or register to see this code.

Damn, I hope can replace it

No command prompt displayed for me, btw U-Boot#

Link to comment
Share on other sites

  • 0
On 7/11/2020 at 9:30 PM, tinman said:

P2 header, near LAN. If the U12 on the bottom side (near P2 header) is not populated, you will need to solder two bridges (not between middle pins ...)

 

1 - <----> - 6

2 -          - 5

3 - <----> - 4

I did not solder anything. Is this the reason I cant run U-boot commands?

Link to comment
Share on other sites

  • 0
13 minutes ago, jack.daniels said:

I did not solder anything.

 

on my HCL there was missing IC, that why i soldered these bridges,

 

Quote

Is this the reason I cant run U-boot commands?

 

timeout seems to be set to 0, i wasn't able to enter uboot as well, so yeah :(

 

EDIT: it might be as well compiled for specific key, haven't tested that.

Edited by tinman
Link to comment
Share on other sites

  • 0
On 1/31/2020 at 2:48 PM, AJD said:

Hit any key to stop autoboot:  0
U-Boot# help
U-Boot# printenv
U-Boot#

As You can see, its possible somehow. May be its about 3.3v Rx level. I will find 3v3 UART and test again

@tinman ???

Link to comment
Share on other sites

  • 0

If no luck with NAND U-Boot image, may be its possible to boot the AM335x from UART? And send full featured U-Boot image by UART

Link to comment
Share on other sites

  • 0

generally you can boot from lot of source, if you manage to set it:

 

Please login or register to see this link.

Please login or register to see this link.

Please login or register to see this link.

  • Like 1
Link to comment
Share on other sites

  • 0
8 minutes ago, tinman said:

generally you can boot from lot of source, if you manage to set it:

Yeah, but need to locate SYSBOOT pins somehow. And on balled CPU its a hard task

Link to comment
Share on other sites

  • 0
1 hour ago, jack.daniels said:

And on balled CPU its a hard task

 

easier than you might think, this is the SOM used in HCL


Please login or register to see this link.

   (actually this is the v1.1 used on HCL, no idea how many changes are between 1.2 and 1.1 -> 

Please login or register to see this link.

 )

Please login or register to see this link.

Please login or register to see this link.

 

... and before you waste time, here you will find some files for that SOM (e.g. image for sdcard)  

Please login or register to see this link.

Edited by tinman
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 0

Great links, thanks

1 hour ago, tinman said:

... and before you waste time, here you will find some files for that SOM (e.g. image for sdcard)  

Please login or register to see this link.

SDcard image not need, much easier will be to run UART boot. I hope it will work.

There are plenty of new SPL/U-Boot images, the one in my HCL (which is still alive and i can dump it) is year 2011.

Edited by jack.daniels
Link to comment
Share on other sites

  • 0

Hi, I have managed to recover my HCL using the debug port.

Patching the R9 left side to GND the board started in UART boot.

I have reflashed system and recovery kernels from uart u-boot (using tera term app) . And managed to boot the system.

It was not easy, because HCL has some kind of WatchDog timer, witch restarts the board every few minutes. Its designed to reset system on unsuccessfull boot. When linux is running the timer cleared by the script:

Please login or register to see this code.

But I had no luck to perform it using u-boot gpio commands (as far as I understand, it should be gpio set 2 24)

 

Attaching the files for you: spl, u-boot and tera term macro for boot the board.

 

The original u-boot image was patched to add 10 seconds bootdelay (ignoring env value)

Unfortunately, I dod not manage to find the UBI enabled u-boot image to be able to install Custom Recovery rootfs with UART.

Stock recovey has console login disabled, so can only watch the linux log.

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

Hello

Please login or register to see this link.

 

Please login or register to see this link.

,

 

I have problem after update crash, home center lite not up to recovery mode and network not up.

 

How you connect and fix it? Could you please tell me step by step? What cable do you use?

Link to comment
Share on other sites

  • 0
On 7/15/2020 at 12:42 PM, jack.daniels said:

 

Please login or register to see this attachment.

 

Hi, sad to hear this. But don't despair with it. Use any UART (or USB-to-UART) 3.3V logic cable

Link to comment
Share on other sites

  • 0
1 hour ago, Dasis said:

How you connect(what is pinout )?

As far as i remember it was:

GND -> GND of UART

Tx -> Rx of UART

Rx -> Tx of UART

From up to down as shown on the photo above.

Port setup is: 115200 N 8

You may use any serial terminall applicetion, but I sugest to try TeraTerm.

  • Like 1
Link to comment
Share on other sites

  • 0

 

Please login or register to see this link.

 

Please login or register to see this link.

What i am doing wrong?

 

I can't read any log 

 

Set up port

 

Please login or register to see this spoiler.

 

 

What i am doing wrong?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...