Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HG680P can't boot using 5.15 kernel #197

Closed
rapdodge opened this issue Mar 24, 2022 · 15 comments
Closed

HG680P can't boot using 5.15 kernel #197

rapdodge opened this issue Mar 24, 2022 · 15 comments

Comments

@rapdodge
Copy link

Device: Fiberhome HG680P
RAM: 1GB
I don't know why when using kernel 5.15, this device could not enter armbian...

And it keeps looping...

Thank you before

set vddee to 1000 mv


U-Boot 2015.01 (Aug 15 2018 - 12:27:30)

DRAM:  1 GiB
Relocation Offset is: 36ec9000
gpio: pin GPIOAO_6 (gpio 106) value is 0
gpio: pin GPIOH_8 (gpio 57) value is 1
gpio: pin GPIOH_9 (gpio 58) value is 0
gpio: pin GPIOAO_9 (gpio 109) value is 0
gpio: pin GPIOAO_5 (gpio 105) value is 1
register usb cfg[0][1] = 0000000037f5f9d8
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300)
vpp: vpp_init
boot_device_flag : 1
Nand PHY Ver:1.01.001.0006 (c) 2013 Amlogic Inc.
init bus_cycle=6, bus_timing=7, system=5.0ns
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
MMC:   aml_priv->desc_buf = 0x0000000033ec9dd0
aml_priv->desc_buf = 0x0000000033ecc0f0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
[mmc_init] mmc init success
mmc read lba=0x14000, blocks=0x400
      Amlogic multi-dtb tool
      Multi dtb detected
gpio: pin GPIOAO_6 (gpio 106) value is 0
gpio: pin GPIOH_8 (gpio 57) value is 1
gpio: pin GPIOH_9 (gpio 58) value is 0
gpio: pin GPIOAO_9 (gpio 109) value is 0
gpio: pin GPIOAO_5 (gpio 105) value is 1
GPIOAO_4 value board_id_gpio = 1
saradc: check dts: FDT_ERR_BADMAGIC, load default parameters
-----board_version[7]
      unified board, board id adc = 7
Fiberhome GPIOAO_4 power on!!!!!      Multi dtb tool version: v2 .
      Support 4 dtbs.
        aml_dt soc: gxl platform: p212 variant: 1g
        dtb 0 soc: gxl   plat: p212   vari: 1g
        dtb 1 soc: gxl   plat: p212   vari: 1gs
        dtb 2 soc: gxl   plat: p212   vari: 2g
        dtb 3 soc: gxl   plat: p212   vari: 2gs
      Find match dtb: 0
start dts,buffer=0000000033ece970,dt_addr=0000000033ecf170
parts: 12
00:      logo   0000000002000000 1
01:  recovery   0000000002000000 1
02:       rsv   0000000000800000 1
03:       tee   0000000000800000 1
04:     crypt   0000000002000000 1
05:      misc   0000000002000000 1
06: instaboot   0000000020000000 1
07:      boot   0000000002000000 1
08:    system   0000000040000000 1
09:     cache   0000000020000000 2
10:    params   0000000000800000 4
11:      data   ffffffffffffffff 4
get_dtb_struct: Get emmc dtb OK!
overide_emmc_partition_table: overide cache
[mmc_get_partition_table] skip partition cache.
Partition table get from SPL is :
        name                        offset              size              flag
===================================================================================
   0: bootloader                         0            400000                  0
   1: reserved                     2400000           4000000                  0
   2: cache                        6c00000          20000000                  2
   3: env                         27400000            800000                  0
   4: logo                        28400000           2000000                  1
   5: recovery                    2ac00000           2000000                  1
   6: rsv                         2d400000            800000                  1
   7: tee                         2e400000            800000                  1
   8: crypt                       2f400000           2000000                  1
   9: misc                        31c00000           2000000                  1
  10: instaboot                   34400000          20000000                  1
  11: boot                        54c00000           2000000                  1
  12: system                      57400000          40000000                  1
  13: params                      97c00000            800000                  4
  14: data                        98c00000         139400000                  4
mmc read lba=0x12000, blocks=0x2
mmc read lba=0x12002, blocks=0x2
mmc_read_partition_tbl: mmc read partition OK!
eMMC/TSD partition table have been checked OK!
mmc env offset: 0x27400000
In:    serial
Out:   serial
Err:   serial
reboot_mode=cold_boot
board_late_init,defenv!
hpd_state=0
cvbs performance type = 6, table = 1
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
      Amlogic multi-dtb tool
      Multi dtb detected
gpio: pin GPIOAO_6 (gpio 106) value is 0
gpio: pin GPIOH_8 (gpio 57) value is 1
gpio: pin GPIOH_9 (gpio 58) value is 0
gpio: pin GPIOAO_9 (gpio 109) value is 0
gpio: pin GPIOAO_5 (gpio 105) value is 1
GPIOAO_4 value board_id_gpio = 1
saradc: check dts: FDT_ERR_BADMAGIC, load default parameters
-----board_version[7]
      unified board, board id adc = 7
Fiberhome GPIOAO_4 power on!!!!!      Multi dtb tool version: v2 .
      Support 4 dtbs.
        aml_dt soc: gxl platform: p212 variant: 1g
        dtb 0 soc: gxl   plat: p212   vari: 1g
        dtb 1 soc: gxl   plat: p212   vari: 1gs
        dtb 2 soc: gxl   plat: p212   vari: 2g
        dtb 3 soc: gxl   plat: p212   vari: 2gs
      Find match dtb: 0
Net:   dwmac.c9410000
wipe_data=successful
wipe_cache=successful
upgrade_step=2
[OSD]load fb addr from dts
[OSD]failed to get fb addr for logo
[OSD]use default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]load fb addr from dts
[OSD]failed to get fb addr for logo
[OSD]use default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=3840, height=2160
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
gpio: pin GPIOAO_2 (gpio 102) value is 1
InUsbBurn
noSof
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0
card in
[mmc_init] mmc init success
Device: SDIO Port B
Manufacturer ID: 3
OEM: 5344
Name: ASTran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
mmc clock: 40000000
Bus Width: 4-bit
reading s905_autoscript
1654 bytes read in 33 ms (48.8 KiB/s)
## Executing script at 01020000
start amlogic old u-boot
## Error: "bootfromsd" not defined
reading boot_android
** Unable to read file boot_android **
** Bad device usb 0 **
reading u-boot.ext
606670 bytes read in 140 ms (4.1 MiB/s)
## Starting application at 0x01000000 ...


U-Boot 2021.04-00056-g13ac02db31-dirty (Apr 28 2021 - 22:52:02 +0800) p212

Model: Amlogic Meson GXL (S905X) P212 Development Board
SoC:   Amlogic Meson GXL (S905X) Revision 21:a (82:2)
DRAM:  1 GiB
MMC:   mmc@70000: 0, mmc@72000: 1, mmc@74000: 2
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
starting USB...
Bus usb@c9000000: dwc3_meson_gxl_get_phys: usb2 ports: 2
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@c9000000 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
1123 bytes read in 2 ms (547.9 KiB/s)
## Executing script at 08000000
Start AMLOGIC mainline U-boot
## Error: "bootfromsd" not defined
** Reading file would overwrite reserved memory **
Failed to load 'uEnv.txt'
"Synchronous Abort" handler, esr 0x96000010
elr: 000000000105271c lr : 0000000001050990 (reloc)
elr: 000000003ffac71c lr : 000000003ffaa990
x0 : 000000003df8adb0 x1 : 0000000044000000
x2 : 0000000000000463 x3 : 0000000000000000
x4 : 0000000000000463 x5 : 0000000000000000
x6 : 0000000000000000 x7 : 0000000000000000
x8 : 0000000000000008 x9 : 0000000000000000
x10: 0000000000000044 x11: 000000003df4c3cc
x12: 0000000000000250 x13: 000000003df4c3ec
x14: 0000000000000000 x15: 000000003df4e8c0
x16: 000000003ff69574 x17: 0000000000000000
x18: 000000003df57de0 x19: 0000000000000000
x20: 0000000044000000 x21: 000000003df8adb0
x22: 0000000000000000 x23: 000000003ffce498
x24: 0000000000000000 x25: 0000000000000001
x26: 000000000000000a x27: 0000000000000000
x28: 0000000000000463 x29: 000000003df4c500

Code: d2800003 eb03005f 540001c1 d65f03c0 (f8636824)
Resetting CPU ...

resetting ...
~~~~....................................................................set vcck to 1120 mv
set vddee to 1000 mv
@rapdodge
Copy link
Author

Visual: #196 (comment)

@ophub
Copy link
Owner

ophub commented Mar 24, 2022

#60

I test can be used.

From your log, did you change the uEnv.txt file wrong?
Snip20220324_8

@rapdodge
Copy link
Author

#60

I test can be used.

From your log, did you change the uEnv.txt file wrong? Snip20220324_8

I havent change anything, just injecting it on my sdcard using balenaetcher, ejecting, and inserting it on my stb...

@ophub
Copy link
Owner

ophub commented Mar 24, 2022

You write the firmware of the 5.4 kernel to the tf card or usb, boot from the 5.4 kernel, and then update it through armbian-update 5.15.31

@rapdodge
Copy link
Author

got it, will try it, and will inform you again after i'm testing it

@rapdodge
Copy link
Author

Closing this issue at the moment, my device got brick after run armbian-install to installing it to the MMC...

@ophub
Copy link
Owner

ophub commented Mar 24, 2022

How to restore the original Android TV system

This is a device that has been on the market for many years and has been running steadily. Is there a new variant now?

@rapdodge
Copy link
Author

rapdodge commented Mar 24, 2022

I dont know, this device is from some cable internet provider, i think its already hard modified to the board...
image
Now it's just dot dot dot... Still figuring out to making it back... Already try bootcard maker...

[0x10103005]Romcode/Initialize DDR/Download

@rapdodge
Copy link
Author

Update

If i read Indonesian forum about this STB, i can assume maybe when i want to injecting it to emmc, and it may make the EMMC error... Until now, there is no way to fixing it

Can you make the emmc install like the balbes150 making it? If I'm not forget, the file is install-aml.sh

Thank you

@ophub
Copy link
Owner

ophub commented Mar 24, 2022

I don't have one. You can ask him for one.

@rapdodge
Copy link
Author

rapdodge commented Mar 24, 2022

Update

This STB can back up... Using an image to make can access OS again

But when i'm using nand-sata-install, this is happen

image

Any tutorial to bypassing this?

Image File
(Thanks to Allam and Jonesq)

@ophub
Copy link
Owner

ophub commented Mar 24, 2022

Is this written to the tv system? Or backup emmc?

I haven't used it, you go to the website to download this mirror to check his partition expansion method.

@rapdodge
Copy link
Author

I'm writing that image to sdcard, and inserting it to sdcard slot on my stb, and, i'm turning it on, and it work, and now, still thinking to fixing it

@rapdodge
Copy link
Author

rapdodge commented Mar 24, 2022

Dear @ophub,

I manage to get balbes150 install-aml.sh for s905x soc, can you take a look and customizing it for fit on your images especially for HG680P and B860H

Best regards,
install-aml.sh.txt
Original image from balbes150

@ophub
Copy link
Owner

ophub commented Mar 24, 2022

It cannot be universal, the partition format is different, and the settings of the mount file are different.

You can install his firmware and use it. He is the main developer of armbian, and his firmware design is the most reasonable.

@fachos fachos mentioned this issue Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants