Wetek Hub LE11 AMLGX, uboot stops half way...

  • Dear LE team,

    So happy to get LE11 support for our good/old Wetek Hub, I installed AMLGX wetek Hub box image to flash.

    Following the wiki page, I booted the 'box' image from SD card, then used emmctool to write the 'wetek-hub board' image to eMMC.
    (I had to first 'zero' the eMMC because emmctool did not like the labels on it).

    But now on boot, I can see from the serial port that the boot process stops halfway (console log below).

    if I type 'boot' on the uboot prompt, it will continue and complete booting, and I get LE running just fine...

    Any idea how to make boot complete at once?

    Thanks!

  • I've seen this on my own board, and I think the cause is noise on the UART pins which is interpreted as a keypress (hence it enters u-boot). If you remove the UART cable does it boot normally?

  • sadly, even with the UART cable removed it will not complete the boot.

    I noticed that this only happens on first booting after connecting the unit to power. Once manually 'boot'ing the first time, one can use the remote or 'shutdown now' to 'sleep' the device. Turning on the device with the remote after sleeping results in a complete boot.

    is there any way to configure uboot to use a specific character to stop booting? like 'press space to stop booting process'...

    Thanks,

  • Wake from suspend works as you've already gone past the initial cold boot stage where the problem occurs. To be honest I have no idea how to solve this. On my own Hub box boot fails reliably with UART connected and works once I disconnect it. I've believed this to be a self-created problem, because I had to resolder the UART pins to get it working due to joints on the PCB going dry and breaking connections, and my poor quality soldering job (at the time done with a prehistoric plumbing soldering iron) was the cause of the problem.

    I'll have to speak to kernel maintainers for ideas.

  • just wanted to update this issue in case someone else hit the same problem.

    the only way I could 'fix' this problem was to solder a wire and hold the RX line of the UART to high (3.3V)... not the nicest solution, but at least it allows me to keep using the 'hub' for a longer time....

  • gonp Can you boot from SD card (so emmc is not in-use) and then (re)write this image to emmc:

    https://chewitt.libreelec.tv/testing/LibreELEC-AMLGX.arm-11.0.1-wetek-hub.img.gz

    I've modifed U-Boot with the content from this patch, but I'm nowhere near a Hub board to test it:

    Bootloader-Builder/0003-Autoboot-keyboard-beaglebone-fixes.patch at fix/autoboot · BrianAdams/Bootloader-Builder
    create sanity in the insanity. Contribute to BrianAdams/Bootloader-Builder development by creating an account on GitHub.
    github.com

    The patch should cause u-boot to pause if input is detected on the <space> key, and then you have 15 seconds to type "stop" to enter the u-boot console else it resets and boots again. The possible flaw is that constant noise might result in persistent triggering of the pause and reset cycle, but the first step is to ensure the changes are present in the image linked above. If yes, then we can fine-tune the behaviour.

  • Hi chewitt,

    I wrote that image to flash... but still the same, gets stuck on uboot.

    see UART output below.

    Thanks,

  • I've dug my own Hub out, and mine is definitely bad joints on the UART connector. If I press the connector from a certain angle (forcing the bad joint to connect) it boots fine. If the cable is just connected it always ends up in the u-boot console. In current state, that means it's great for experimenting with u-boot though.