Manjaro Linux - KDE-Plasma & XFCE for VIM1

Maybe you can Try the above mentioned method as manually update the kernel to 5.3-rc4
I am not sure about this.

did you try to do something w/ the 3 .deb files provided before by Nick ?

No. As manjaro is distro for mainline kernel we tried to build something close to mainline instead is using pre compiled kernel

After a second try, I confirm that applying the 3 debs on a clean ubuntu just reflashed to EMMC simply drive to bootloop w/ following traces:

resetting ...
GXL:BL1:9ac50e:a1974b;FEAT:ADFC318C;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 104501

BL2 Built : 20:32:17, Sep  8 2017.
gxl g6296b83 - xiaobo.gu@droid12

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 6
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 768MHz - PASS
Rank0: 1024MB(auto)-2T-11
Rank1: 1024MB(auto)-2T-11
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: 0x05100000, size: 0x0002c600
Load bl33 from eMMC, src: 0x00050200, des: 0x01000000, size: 0x00067000
NOTICE:  BL3-1: v1.0(release):a625749
NOTICE:  BL3-1: Built : 11:25:15, Aug 25 2017
[BL31]: GXL CPU setup!
NOTICE:  BL31: BL33 decompress pass
mpu_config_enable:ok
[Image: gxl_v1.1.3243-377db0f 2017-09-07 11:28:58 qiufang.dai@droid07]
OPS=0x82
9d 42 bd c7 a1 12 ec 2f 5f 6 30 b8 [0.333326 Inits done]
secure task start!
high task start!
low task start!
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Jun 04 2019 - 16:40:22)

DRAM:  2 GiB
Relocation Offset is: 76ead000
register usb cfg[0][1] = 0000000077f565a0
[CANVAS]canvas 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 = 0x0000000073ead6b0
aml_priv->desc_buf = 0x0000000073eaf9d0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
init_part() 293: PART_TYPE_AML
[mmc_init] mmc init success
dtb magic edfe0dd0
start dts,buffer=0000000073eb2200,dt_addr=0000000073eb2200
parts: 3
00:      logo   0000000000800000 1
01:   ramdisk   0000000002000000 1
02:    rootfs   ffffffffffffffff 4
init_part() 293: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
check pattern success
mmc env offset: 0x6c00000
In:    serial
Out:   serial
Err:   serial
reboot_mode=watchdog_reboot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-909: calc d965bb3e, store d965bb3e
_verify_dtb_checksum()-909: calc d965bb3e, store d965bb3e
dtb_read()-1031: total valid 2
dtb_read()-1098: do nothing
vpu: clk_level in dts: 7
vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300)
vpu: vpu_clk_gate_init_off
vpp: vpp_init
hpd_state=0
cvbs performance type = 6, table = 0
Net:   dwmac.c9410000amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0

upgrade_step=2
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x7dc00000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x7dc00000
[CANVAS]addr=0x7dc00000 width=3840, height=2160
amlkey_init() enter!
amlkey_init() 71: already init!
[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[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
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

gpio: pin GPIOAO_2 (gpio 102) value is 1
Product checking: pass! Hardware version: VIM1.V12
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0
reading boot.ini from mmc 0:1 ...
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
** Bad device mmc 0 **
cfgload: fatload: no boot.ini or empty file
reading boot.ini from mmc 1:5 ...
4819 bytes read in 5 ms (940.4 KiB/s)
cfgload: applying boot.ini...
cfgload: echo "Starting boot.ini..."
Starting boot.ini...
cfgload: setenv kernel_loadaddr "0x11000000"
cfgload: setenv dtb_loadaddr "0x1000000"
cfgload: setenv initrd_loadaddr "0x13000000"
cfgload: setenv env_loadaddr "0x20000000"
cfgload: setenv hdmiargs "logo=${display_layer},loaded,${fb_addr},${outputmode} vout=${outputmode},enable hdmimode=${hdmimode}"
cfgload: if test "X$lcd_exist" = "X1"; then setenv panelargs "panel_exist=${lcd_exist} panel_type=${panel_type}";fi;
cfgload: setenv boot_start booti ${kernel_loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
cfgload: setenv mmc_devplist "1 5"
cfgload: setenv mmc_devnums "0 1"
cfgload: setenv usb_devplist "1"
cfgload: setenv usb_devnums "0 1 2 3"
cfgload: setenv mark_prefix ""
cfgload: if test "$hostname" = "KVIM1"; then setenv ml_dtb "/dtb/amlogic/meson-gxl-s905x-khadas-vim.dtb"; else if test "$hostname" = "KVIM2"; then setenv ml_dtb "/dtb/amlogic/meson-gxm-khadas-vim2.dtb";fi;fi;
cfgload: for dev_num in ${mmc_devnums}; do for distro_bootpart in ${mmc_devplist}; do echo "Scanning mmc ${dev_num}:${distro_bootpart}..."; if load mmc ${dev_num}:${distro_bootpart} ${initrd_loadaddr} uInitrd; then if load mmc ${dev_num}:${distro_bootpart} ${kernel_loadaddr} zImage; then if load mmc ${dev_num}:${distro_bootpart} ${dtb_loadaddr} dtb.img || load mmc ${dev_num}:${distro_bootpart} ${dtb_loadaddr} ${ml_dtb}; then if load mmc ${dev_num}:${distro_bootpart} ${env_loadaddr} /boot/env.txt || load mmc ${dev_num}:${distro_bootpart} ${env_loadaddr} env.txt; then echo "Import env.txt"; env import -t ${env_loadaddr} ${filesize};fi;if test "X${rootdev}" = "X"; then echo "rootdev is missing! use default: root=LABEL=ROOTFS!";setenv rootdev "LABEL=ROOTFS";fi;if test "X${custom_ethmac}" != "X"; then echo "Found custom ethmac: ${custom_ethmac}, overwrite eth_mac!"; setenv eth_mac ${custom_ethmac};fi;if test "X${eth_mac}" = "X"; then echo "Set default mac address to ethaddr: ${ethaddr}!";setenv eth_mac ${ethaddr};setenv save_ethmac "yes";fi;if test -e mmc ${dev_num}:${boot_env_part} ${mark_prefix}.next; then echo "Booting mainline kernel...";setenv condev "console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0";else echo "Booting legacy kernel...";setenv condev "console=ttyS0,115200n8 console=tty0 no_console_suspend consoleblank=0";fi;if test "X${hwver}" = "XVIM2.V14"; then fdt addr ${dtb_loadaddr};fdt resize 65536;fdt set /fan hwver "VIM2.V14";fdt set /i2c@c11087c0/khadas-mcu hwver "VIM2.V14";fdt set /soc/cbus@c1100000/i2c@87c0/khadas-mcu hwver "VIM2.V14";fi;setenv bootargs "root=${rootdev} rootflags=data=writeback rw ${condev} ${hdmiargs} ${panelargs} fsck.repair=yes net.ifnames=0 ddr_size=${ddr_size} wol_enable=${wol_enable}  jtag=disable mac=${eth_mac} androidboot.mac=${eth_mac} save_ethmac=${save_ethmac} fan=${fan_mode} hwver=${hwver} coherent_pool=${dma_size}";run boot_start;fi;fi;fi;done;done;
Scanning mmc 0:1...
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
** Bad device mmc 0 **
Scanning mmc 0:5...
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
** Bad device mmc 0 **
Scanning mmc 1:1...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Scanning mmc 1:5...
8131214 bytes read in 241 ms (32.2 MiB/s)
15673352 bytes read in 451 ms (33.1 MiB/s)
** File not found dtb.img **
** File not found /dtb/amlogic/meson-gxl-s905x-khadas-vim.dtb **
"Synchronous Abort" handler, esr 0x96000004
ELR:     77f2b80c
LR:      77f2b860
x0 : 222163616d5f6874 x1 : 0000000077f39858
x2 : 0000000000000001 x3 : 0000000077f59360
x4 : 0000000077f58dc0 x5 : 0000000077f59360
x6 : 0000000077f58dc0 x7 : 0000000077f58dd0
x8 : 0000000000000001 x9 : 0000000000000000
x10: 000000000000000f x11: 0000000077f34158
x12: 0000000000000000 x13: 0000000000000000
x14: 0000000000000000 x15: 0000000000000000
x16: 0000000000000000 x17: 0000000000000000
x18: 0000000073e9ce28 x19: 222163616d5f6874
x20: 0000000073e9c840 x21: 0000000077f43c03
x22: 0000000077f43ba7 x23: 0000000001080000
x24: 0000000000000000 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000073eb49e0
x28: 0000000000000000 x29: 0000000073e9c7e0

Resetting CPU ...

resetting ...
GXL:BL1:9ac50e:a1974b;FEAT:ADFC318C;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;

i might be wrong @numbqq
but the issue seems to be the dtb, no ?

Updated about VIM3. Same img can be used for VIM3 but follow the process mentioned in this post.

1 Like

Manjaro 19.08 updated with Linux kernel 5.3.0-rc5
Neofetch

Video-load

Khadas VIM3 IMG
KDE 19.08 - Linux 5.3.0-rc5
Mate 19.08 - Linux 5.3.0-rc5
LXQT 19.08 - Linux 5.3.0-rc5
Server 19.08 - Linux 5.3.0-rc5

VIM3 Known Issues

  • No Wifi.
  • Graphical Glitch (Only when you use MVP or SM Player, VLC Works smooth with CPU Load) - Make sure to have a heatsink and a fan incase you use it fullscreen.
    Currently waiting for Wifi drivers.

If there is no audio then please follow balbes method.
For reasons not yet clear, the G12 has a conflict with this kernel with PULSEAUDIO. To turn the sound on models with G12 (s905x2 S922x a311d) you need to perform these steps.

  1. Remove package “pulseaudio”.
  2. Reboot the system.
  3. Run this file script g12_sound.sh.

When you remove the pulseaudio package, not volume control.
Alternatively, you can install the “pnmixer” or “kmixer” package that works with ALSA.

4 Likes

Update: Original post in quotes. These are images for running from SD card, as pointed out by ravelo. I should have known better. :crazy_face:

“*Hello Spikerguy, I have downloaded all four images, some more than once. *
All have been extracted using 7zip. However, every attempt to load the images in to the USB Burning Tool have resulted in an error, shown in the screencap below. Are these images designed for the tool?
*

*
I assume I have missed something, any ideas?
Thanks.

i think his images are meant to be burnt to sd card or usb drives only
use etcher on windows or try this on linux
xz -dc 'imagefile.xz’ | sudo dd bs=8M of=/dev/sdX status=progress

1 Like

Yes, I should have guessed. Thanks ravelo.

Update: Card burned successfully.
Note:VIM3 eMMC is loaded with Superceleron’s Pie.
Pulled VIM3 DTB from DTB folder, copied to Boot folder, renamed to DTB.img.
Ran AML-autoscript from update.
Unable to boot, goes on to Android.
I will reexamine my steps.
Also tried on VIM1 after changing DTB.
Evidently I am a bit rusty.

Dtb was already replaced for vim3, so no need to do anything just flash and boot.
Also just check if you can replace dtb to s922 and also try with a311d khadas vim3 coz my board is A311D but was working fine on s922 dtb.

Did you try upgrade mode to allow the board to boot from the usb?

1 Like

I did, but will try your other suggestions tomorrow. Not with the board at the moment.
Thanks for your efforts on the Manjaro.

This is a mistake. This option is no longer used. Proper configuration of the DTB performed by a simple editing of the file (uEnv.ini), with the name of the file used.

Yes, I realize that with your Armbian and others, however I missed the file in the Manjaro. I wanted to get back to it last night, but severe thunderstorms kept me away from the board. I will give it another go tomorrow. I will edit the file and give it a go.
Thanks.

1 Like

OK, I am running Manjaro. Success is sweet.:smile:
I have zero experience on Manjaro, looks very nice and runs well. Going to be a little learning curve with this distro for me. Nice package manager.
Previously runs had an error after running, “Etcher, failed to unmount volume”. It would attempt to boot but had errors and would drop to shell.


Switched to Rufus on a fully reformatted SD card.

Nice work @Spikerguy. Thanks for the assistance @ravelo and @balbes150.

3 Likes

I cannot easily retreive the link to lxde (or xfce) manjaro kernel 5.3-rc5 for VIM1, can anyone please give it below if it has been already published somewhere ?
tks!

Not sure I understand, are you referring to the links in this post above?

yes, that post showed only vim3 img links, i look for vim1 img

Is it not just a matter of modifying uEnv.ini with the VIM1 dtb from the dtb folder.

Once the SD card or flash drive has been burned with the image you chose, look for the DTB folder on the SD card or flash drive, the VIM1 dtb should be in there, I right click the appropriate dtb, select rename and copy the name.
Back out of that folder and look for uEnv.ini, open that with a text editor and replace what ever the named dtb is showing with the VIM1 one you copied the name of. Save the file.
I think the images are mostly universal, just modifying the uEnv.ini is required.

Hey ravelo,
Download from these links and flash it to usb.
After that in uEnv.ini change the name of dtb from vim3 to vim1 and it will boot.

Match the name if the dtb in dtb folder with dtb name in uenv.ini file

I hope you get this.

1 Like

i’ve just notices you said you tried on your vim1, so, does the mali450 really do some decoding during youtube fhd & 4k playback in a browser ?