I'm trying to find all errors on @balbes150 905x image, the issues are:
1) on boot
[FAILED] Failed to start Hostname Service.
[FAILED] Failed to start Network Manager Wait Online.
2) nand-sata-install
Current root is returning a strange path: LABEL=ROOTFS
302 root_partition=$(cat /proc/cmdline | sed -e 's/^.*root=//' -e 's/ .*$//')
root@amlogic-s905x:~# cat /proc/cmdline
root=LABEL=ROOTFS rootflags=data=writeback rw console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0 hdmimode=720p60hz m_bpp=24 fsck.repair=yes net.ifnames=0 mac=00:15:18:01:81:31
We also have a problem with emmc device
Error: The device /dev/mmcblk1 is so small that it cannot possibly store a file system or partition table. Perhaps you selected the wrong device?
Error: The device /dev/mmcblk1 is so small that it cannot possibly store a file system or partition table. Perhaps you selected the wrong device?
Error: The device /dev/mmcblk1 is so small that it cannot possibly store a file system or partition table. Perhaps you selected the wrong device?
Error: The device /dev/mmcblk1 is so small that it cannot possibly store a file system or partition table. Perhaps you selected the wrong device?
Error: The device /dev/mmcblk1 is so small that it cannot possibly store a file system or partition table. Perhaps you selected the wrong device?
3) dmesg / kernel errors
[ 0.000000] linux,ppmgr: 0x0000000078200000 - 0x000000007a200000 (32 MiB)[ 0.000000] linux,codec_mm_cma: 0x0000000066800000 - 0x0000000073800000 (208 MiB)
[ 0.000000] linux,picdec: 0x0000000078200000 - 0x0000000078200000 (0 MiB)
[ 0.000000] Reserved memory: incorrect alignment of CMA region
[ 0.000000] linux,codec_mm_reserved: 0x0000000074100000 - 0x0000000078200000 (65 MiB)
[ 0.000000] fdt Reserved memory total: 402 MiB
[ 0.000000] cma: Reserved 8 MiB at 66000000
[ 0.000000] On node 0 totalpages: 519424
[ 0.647863] clkmsr: Gxl msr_clk_reg0=ffffff800006075c,msr_clk_reg2=ffffff8000062764
[ 0.650302] aml_iomap: amlogic iomap probe done
[ 0.650939] pinmux-gxl c1109880.pinmux: Init pinux probe!
[ 0.652185] pinmux-gxl c1109880.pinmux: Probed amlogic pinctrl driver
[ 0.652672] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0xbc)
[ 0.652709] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0xbc)
[ 0.652879] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0xbc)
[ 0.652908] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0xbc)
[ 0.655451] codec_mm has 2 memory regions
[ 0.655505] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_cma ok
[ 0.655529] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_reserved ok
[ 0.655641] codec_mm has 2 memory regions
[ 0.655664] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_cma ok
[ 0.655685] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_reserved ok
[ 0.657635] vpu: driver version: v02
[ 0.657678] vpu: load vpu_clk: 666667000Hz(7)
[ 0.657779] vpu: vpu_probe OK
[ 0.659312] tv_vout: tvout_probe
[ 0.659340] tv_vout: major number 254 for disp
[ 0.659352] vout_notify: vout_register_server
[ 0.659363] tv_vout: register tv module server ok
[ 0.659463] tv_vout: tvout_probe OK
[ 0.660085] canvas_probe reg=00000000c8838000,size=400
[ 0.660122] canvas maped reg_base =ffffff8000184000
[ 0.664344] rdma_probe
[ 2.590447] meson-rng c8834000.rng: hwrng registered
[ 2.594299] loop: module loaded
[ 2.595295] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 2.596090] tun: Universal TUN/TAP device driver, 1.6
[ 2.596113] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 2.648928] hdmitx: plugin
[ 2.741198] amlogic-new-usb2 d0078000.usb2phy: USB2 phy probe:phy_mem:0xd0078000, iomap phy_base:0xffffff80001ba000
[ 2.741447] amlogic-new-usb3 d0078080.usb3phy: This phy has no usb port
[ 2.741481] amlogic-new-usb3 d0078080.usb3phy: USB3 phy probe:phy_mem:0xd0078080, iomap phy_base:0xffffff80001bc080
[ 2.741999] mousedev: PS/2 mouse device common for all mice
[ 2.743182] USB Video Class driver (1.1.1)
[ 2.744089] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[ 2.744280] cpufreq-hotplug: cpufreq_gov_dbs_init: assumes CONFIG_NO_HZ
[ 2.744441] cpu cpu0: bL_cpufreq_init: CPU 0 initialized
[ 2.746648] cpu cpu4: bL_cpufreq_init: CPU 4 initialized
[ 4.543802] c11084c0.serial: ttyS1 at MMIO 0xc11084c0 (irq = 58, base_baud = 1500000) is a meson_uart
[ 4.553701] dwc_otg: usb0: type: 2 speed: 0, config: 0, dma: 0, id: 0, phy: d0078000, ctrl: 0
[ 4.561709] dwc_otg_driver_probe host only, not probe usb_otg!!!
[ 4.568023] meson-gpu-clkgen c883c000.gpu_clk: can't request region for resource [mem 0xc883c000-0xc883cfff]
[ 4.577777] meson-gpu-clkgen: probe of c883c000.gpu_clk failed with error -16
[ 4.585240] hdmitx: system: hdmitx_hdcp_init
[ 4.868852] emmc:pdata->caps = c0000d47
[ 4.872790] emmc:pdata->caps2 = 18060
[ 4.876590] storage 1, boot 1
[ 4.879690] get_storage_dev return 1
[ 4.910259] normal card in
[ 4.918796] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[ 5.008814] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[ 5.009399] ion_dev has 1 memory regions
[ 5.029124] fb: osd_init_module
[ 5.029348] fb: viu vsync irq: 35
[ 5.030273] fb: failed to init reserved memory
[ 5.034853] tv_vout: tv_set_current_vmode[759]fps_target_mode=16
[ 5.040993] tv_vout: mode is 16,sync_duration_den=1,sync_duration_num=60
[ 6.060585] 6unifykey: device unifykeys created ok
[ 6.065362] 6aml_unifykeys_init done!
[ 6.069139] PPMGRDRV: warn: ppmgr module init func called
[ 6.074777] PPMGRDRV: err: ppmgr_driver_probe called
[ 6.079734] ppmgr has 1 memory regions
[ 6.083619] PPMGRDRV: info: ppmgr_dev major:232
[ 6.088616] PPMGRDRV: info: ppmgr_probe done
[ 6.542486] audio_dsp: [dsp]register dsp to char divece(257)
[ 6.549117] amaudio: amaudio: driver amaudio succuess!
[ 6.553817] amlvid:err: amlvideo_init called
[ 6.557715] amlvid:err: amlvideo_create_instance called
[ 6.564008] amlvid:err: v4l2_dev.name=:amlvideo-000
[ 6.568967] amlvideo-000: V4L2 device registered as video10
[ 6.574874] [RX]-hdmirx: hdmirx_init.
[ 6.578201] ESM HLD: Initializing...
[ 6.849342] input input1: key 116 up
[ 6.853760] input: cec_input as /devices/virtual/input/input2
[ 6.858808] cectx aocec: aml_cec_probe(): no hdmirx reg resource
[ 6.864611] cectx aocec: aml_cec_probe(): no hhi reg resource
[ 6.870589] cectx aocec: aml_cec_probe(): can't find hdmirx
[ 6.877313] cec: wake up flag:0
[ 6.881408] aml_aes_dma c883e000.aml_aes: Aml AES_dma
[ 7.158993] aml_snd_card: headphone detection disable=1
[ 7.162483] aml_snd_card: no spk event delay time set
[ 7.168047] aml_snd_m8_card aml_m8_snd.47: T9015-audio-hifi <-> I2S.40 mapping ok
[ 7.175606] aml_snd_m8_card aml_m8_snd.47: dit-hifi <-> SPDIF.41 mapping ok
[ 7.182298] aml_snd_m8_card aml_m8_snd.47: pcm2bt-pcm <-> PCM.42 mapping ok
[ 7.189168] aml_snd_m8_card aml_m8_snd.47: ASoC: no source widget found for LOUTL
[ 7.196709] aml_snd_m8_card aml_m8_snd.47: ASoC: Failed to add route LOUTL -> direct -> Ext Spk
[ 7.205526] aml_snd_m8_card aml_m8_snd.47: ASoC: no source widget found for LOUTR
[ 7.213110] aml_snd_m8_card aml_m8_snd.47: ASoC: Failed to add route LOUTR -> direct -> Ext Spk
[ 7.229669] aml_snd_card: audio use jtag pinmux as i2s output, read val =ffffffff
[ 8.562936] usb usb2: SerialNumber: xhci-hcd.0.auto
[ 8.568513] hub 2-0:1.0: USB hub found
[ 8.572608] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 8.579306] aml_vrtc rtc.32: setting system clock to 2015-01-01 00:00:14 UTC (1420070414)
[ 8.588658] gxbb_pm: enter meson_pm_probe!
[ 8.594847] gxbb_pm: meson_pm_probe done
[ 8.601893] cpucore_cooling_register, max_cpu_core_num:4
[ 8.608223] cpucore_cooling_register, max_cpu_core_num:4
[ 8.628551] aml_istbt_dev_ready NULL
[ 8.632656] ALSA device list:
[ 8.636630] #0: AML-M8AUDIO
[ 11.528107] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[ 11.547452] systemd[1]: Mounted POSIX Message Queue File System.
[ 11.561244] systemd[1]: Mounted Debug File System.
[ 11.574443] systemd[1]: Mounted Huge Pages File System.
[ 11.587878] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[ 11.598590] systemd[1]: Failed to start Load Kernel Modules.
[ 11.618008] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[ 11.626685] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[ 11.636116] systemd[1]: Started Set console keymap.
[ 11.651753] systemd[1]: Started Restore / save the current clock.
[ 11.670622] systemd[1]: Time has been changed
[ 11.713706] systemd[1]: Starting Apply Kernel Variables...
4) WiFi
I copied the WiFi files extracted from original Beelink GT1 Android image to /lib/firmware/brcm, but I'm getting these errors:
[ 77.851826] F1 signature read @0x18000000=0x15264345
[ 77.855166] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x6 pkg:0x2
[ 77.855833] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 77.856284] dhd_conf_read_config: kso_enable = 0
[ 77.856372] dhd_conf_set_fw_name_by_chip: firmware_path=/lib/firmware/brcm/fw_bcm43455c0_ag.bin
[ 77.856381] dhdsdio_download_firmware: set use_rxchain 0
[ 77.856386] dhdsdio_download_firmware: set txglomsize 40
[ 77.856392] sdioh_set_mode: set txglom_mode to multi-desc
[ 77.856397] Final fw_path=/lib/firmware/brcm/fw_bcm43455c0_ag.bin
[ 77.856402] Final nv_path=/lib/firmware/brcm/
[ 77.856407] Final conf_path=/lib/firmware/brcm/config.txt
[ 77.905834] dhdsdio_download_nvram: error reading nvram file: -21
[ 77.905849] _dhdsdio_download_firmware: dongle nvram file download failed
[ 77.905889] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 77.905898] dhd_prot_ioctl : bus is down. we have nothing to do
[ 77.905904] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 77.905958] wifi_platform_set_power = 0
[ 77.905964] ======== PULL WL_REG_ON LOW! ========
[ 77.905969] wl_android_wifi_on: Failed
[ 77.905976] dhd_open : wl_android_wifi_on failed (-35)
[ 77.905984] dhd_stop: Enter ffffffc050c6d800
[ 77.905989] wl_android_wifi_off in 1
[ 77.905995] wl_android_wifi_off in 2: g_wifi_on=0
[ 77.905999] wl_android_wifi_off out
[ 77.906004] dhd_stop: Exit
[ 77.906013] dhd_open: Exit ret=-1
4) Mali drivers
tar xvzf Mali_OpenCL_SDK_v1.1.0.tar.gz
cd Mali_OpenCL_SDK_v1.1.0/samples/hello_world_opencl
make
export LD_LIBRARY_PATH=Mali_OpenCL_SDK_v1.1.0/lib
Result:
root@amlogic-s905x:~/Mali_OpenCL_SDK_v1.1.0/samples/hello_world_opencl# ./hello_world_opencl
OpenCL error: Unknown error
Retrieving OpenCL platforms failed. common.cpp:233
Failed to create an OpenCL context. hello_world_opencl.cpp:39
Tried to modprobe mali, no success yet. There is an interesting Amlogic repository with gpu drivers: http://openlinux.amlogic.com:8000/download/ARM/gpu/