Jump to content
  • 0

HCL stuck in U-Boot after update


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 post
Share on other sites
  • Answers 57
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

easier than you might think, this is the SOM used in HCL https://grinn-global.com/site/assets/files/1665/chilisom_datasheet.pdf   (actually this is the v1.1 used on HCL, no idea how many changes

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 -       

generally you can boot from lot of source, if you manage to set it:   https://processors.wiki.ti.com/index.php/AM335x_board_bringup_tips https://processors.wiki.ti.com/index.php/The_Boo

Posted Images

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

 

image.png.4e2ff3f1fca5f3aac84fe42c632f1257.png

  • Like 1
Link to post
Share on other sites
  • 0
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 

Damn, I hope can replace it

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

Link to post
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 post
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 post
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 post
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 post
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 post
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


https://grinn-global.com/site/assets/files/1665/chilisom_datasheet.pdf   (actually this is the v1.1 used on HCL, no idea how many changes are between 1.2 and 1.1 -> http://web.archive.org/web/20160803214631/http://grinn-global.com:80/ChiliSOM_GCS2_Series_Datasheet.pdf )

https://wiki.grinn-global.com/doku.php?id=chilisom:chiliboard

https://wiki.grinn-global.com/doku.php?id=chilisom:buildroot:quick_start#run_firmware_on_chilisom

 

... and before you waste time, here you will find some files for that SOM (e.g. image for sdcard)  https://static.grinn-global.com/chilisom/

Edited by tinman
  • Like 1
  • Thanks 1
Link to post
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)  https://static.grinn-global.com/chilisom/

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 post
Share on other sites
  • 0

So the boot sequence is: NAND->NANDI2C->MMC0->UART0

 

Spoiler

 

Spoiler

hcl_front_1.thumb.jpg.1d602c4ed4afae1b176c8f24dbbd1782.jpg

 

 

And the back side

 

Spoiler

hcl_back_1.thumb.jpg.beb0931dde4e7e877887e13bf890d298.jpg

 

Link to post
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:

clear_boot_flag() {
	echo 88 > /sys/class/gpio/export
	echo out > /sys/class/gpio/gpio88/direction	
	echo 1 > /sys/class/gpio/gpio88/value
	sleep 1

	led_power on
}

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.

hcl_u-boot_spl_2011.09.00000.img hcl_uart_boot.ttl hcl_u-boot_2011.09.00000_bootdelay.bin

Link to post
Share on other sites
  • 0

Hello jack.daniels @,

 

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 post
Share on other sites
  • 0
On 7/15/2020 at 12:42 PM, jack.daniels said:

 

hcl_back_1.thumb.jpg.beb0931dde4e7e877887e13bf890d298.jpg

 

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

Link to post
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 post
Share on other sites
  • 0

 jack.daniels @

What i am doing wrong?

 

I can't read any log 

 

Set up port

 

Spoiler

image.png.70be53d1d9cf5b9501e7eb9aaa878699.png

 

 

no any connection , wait and nothing

Spoiler

image.png.5bfb26091bb5f493830d52d636d67c4b.png

 

I try  change port TX and RX,  wait and nothing

 

Spoiler

image.png.7cb96648a673eb4d6c62f290f11026f1.png

 

 

What i am doing wrong?

 

Link to post
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...