Jump to content

X92 Amlogic S912 2GB Gigabit Lan


Matt Talbot

Recommended Posts

I have been trying to boot various images for a while. Recently I have tried the latest Armbian and Libreelec Images but without success. I have tried both usb and sd card.

 

Today I managed to get my serial UART connected to the box to see where things are stopping. I have attached a log from the serial console. I have tried just about every single dtb I can find and I have removed the dtb for it to load from emmc, it still fails at the same step.

 

I have waited over 15 mins and still nothing. Boot logo of the X92 is on the screen but nothing else.

 


GXM:BL1:dc8b51:76f1a5;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 114034

BL2 Built : 16:42:36, Nov  3 2016.
gxl g3eddb43 - xiaobo.gu@droid05

set vdd cpu_a to 1120 mv
set vdd cpu_b to 1050 mv
set vddee to 1000 mv
Board ID = 3
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 912MHz - PASS
Rank0: 1024MB(auto)-2T-13
Rank1: 1024MB(auto)-2T-13
DataBus test pass!
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010200, des: 0x01100000, size: 0x0000d600
Load bl31 from eMMC, src: 0x00020200, des: 0x10100000, size: 0x00015400
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x000a9a00
NOTICE:  BL3-1: v1.0(debug):2e39a99
NOTICE:  BL3-1: Built : 16:36:21, Sep 20 2016
aml log : bl31 normal boot !
[Image: gxl_v1.1.3154-065f772 2016-09-29 14:08:54 yan.wang@droid05]
OPS=0x82
c0 37 bc bf 4e 8 1f 9e 49 24 b0 14 [0.361644 Inits done]
secure task start!
high task start!
low task start!
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2015.01-gd4b2965-dirty (Jan 07 2017 - 16:03:55)

DRAM:  2 GiB
Relocation Offset is: 76ec9000
register usb cfg[0][1] = 0000000077f5f578
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 = 0x0000000073ec96b0
aml_priv->desc_buf = 0x0000000073ecb9d0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
[mmc_startup] mmc refix success
[mmc_init] mmc init success
mmc read lba=0x14000, blocks=0x400
      Amlogic multi-dtb tool
      Multi dtb detected
      Multi dtb tool version: v2 .
      Support 3 dtbs.
        aml_dt soc: gxm platform: q201 variant: 2g
        dtb 0 soc: gxm   plat: q201   vari: 1g
        dtb 1 soc: gxm   plat: q201   vari: 2g
        dtb 2 soc: gxm   plat: q201   vari: 3g
      Find match dtb: 1
start dts,buffer=0000000073ece270,dt_addr=0000000073ed9270
parts: 11
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   0000000060000000 1
09:     cache   0000000020000000 2
10:      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          60000000                  1
  13: data                        b7c00000         2ec200000                  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
hpd_state=1
[2160p30hz] is invalid for cvbs.
set hdmitx VIC = 95
config HPLL = 2970
HPLL: 0xc000027b
config HPLL done
j = 6  vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 95
rx version is 1.4 or below  div=10
hdmtix: set audio
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
      Amlogic multi-dtb tool
      Multi dtb detected
      Multi dtb tool version: v2 .
      Support 3 dtbs.
        aml_dt soc: gxm platform: q201 variant: 2g
        dtb 0 soc: gxm   plat: q201   vari: 1g
        dtb 1 soc: gxm   plat: q201   vari: 2g
        dtb 2 soc: gxm   plat: q201   vari: 3g
      Find match dtb: 1
Net:   dwmac.c9410000
wipe_data=successful
wipe_cache=successful
upgrade_step=0
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3d851000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3d851000
[CANVAS]canvas init
[CANVAS]addr=0x3d851000 width=3840, height=2160
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
[KM]Error:f[key_manage_query_size]L507:key[usid] 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
get_cpu_id flag_12bit=1
get_cpu_id flag_12bit=1
saradc - saradc sub-system

Usage:
saradc saradc open <channel>            - open a SARADC channel
saradc close    - close the SARADC
saradc getval   - get the value in current channel
saradc get_in_range <min> <max> - return 0 if current value in the range of current channel

InUsbBurn
noSof
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0
(Re)start USB...
USB0:   USB3.0 XHCI init start
Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 2 **
** Bad device usb 3 **
card in
[mmc_init] mmc init success
Device: SDIO Port B
Manufacturer ID: 3
OEM: 5344
Name: SL16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
mmc clock: 40000000
Bus Width: 4-bit
reading s905_autoscript
1641 bytes read in 5 ms (320.3 KiB/s)
## Executing script at 01020000
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 2 **
** Bad device usb 3 **
reading uInitrd
5175341 bytes read in 283 ms (17.4 MiB/s)
reading zImage
16887960 bytes read in 919 ms (17.5 MiB/s)
reading dtb.img
** Unable to read file dtb.img **
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
      Amlogic multi-dtb tool
      Multi dtb detected
      Multi dtb tool version: v2 .
      Support 3 dtbs.
        aml_dt soc: gxm platform: q201 variant: 2g
        dtb 0 soc: gxm   plat: q201   vari: 1g
        dtb 1 soc: gxm   plat: q201   vari: 2g
        dtb 2 soc: gxm   plat: q201   vari: 3g
      Find match dtb: 1
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    5175277 Bytes = 4.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
      Amlogic multi-dtb tool
      Single dtb detected
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   Loading Ramdisk to 739c7000, end 73eb67ed ... OK
   Loading Device Tree to 000000001fff2000, end 000000001ffff226 ... OK
signature:
fdt_instaboot: no instaboot image

Starting kernel ...

uboot time: 7276219 us
domain-0 init dvfs: 4
domain-1 init dvfs: 4

Hopefully you can help me get further.

 

Thanks

 

Matt

Edited by Matt Talbot
Inserted too much log code from my uart
Link to comment
Share on other sites

You need a version q201_2g

 

1 hour ago, Matt Talbot said:

aml_dt soc: gxm platform: q201 variant: 2g

 

Judging by the log , you don't have a file dtb.img in the root of the first partition (FAT). Add in the root the correct dtb (it means to copy from /dtb to the root of the file, and rename it to "dtb.img").

 

1 hour ago, Matt Talbot said:

reading dtb.img 

Unable to read file dtb.img

 

Link to comment
Share on other sites

It boots fine to a console on my UART adapter but I dont have a desktop on the TV, Just pieces of text from the boot sequence tabbed across the screen. Do I need to set something else for the desktop to work? Im using the mate image named Armbian_5.37_S9xxx_Ubuntu_xenial_3.14.29_mate_20180116.img.xz

 

Thanks again

 

Matt

 

Link to comment
Share on other sites

How to get X92 more fully working:

 

I can use the image Armbian_5.44_S9xxx_Debian_stretch_4.18.0-rc5_xfce_20180806.img.xz quite fine with the X92 2G/16G box.

  • However, you need to use the meson-gxm-vega-s96.dtb file instead of meson-gxm-q201.dtb (only change to q201 in s96 is activation of correct external gbit phy) to get Ethernet working.
  • Also for working WiFi, download firmware-nonfree and place the files "brcmfmac43455-sdio.bin  brcmfmac43455-sdio.clm_blob  brcmfmac43455-sdio.txt" from the brcm directory into /lib/firmware/brcm on the rootfs partition of SD card.
  • Bluetooth part currently not working.
  • No front display support.

Trying to build a complete matching dtb from original android os extracted dtb...

 

Br, Allwonder

Link to comment
Share on other sites

@Matt Talbot - can you please explain or even better post a picture of where to find the serial port connector on the x92 box?

 

a lot of thanks in advance and best wishes - hexdump

 

update: ok - i have found the connection points, but they are very small and close to the heat sink - on the back side there are four more connections points close to the serial ones from the front - are they for the serial connection too maybe? if yes, they might be easier to solder i think ... any hints are welcome

Link to comment
Share on other sites

  • Werner locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines