Manjaro ARM for the VIM3

Sure, you are right, It was my fault. I knew, that there are differences between u-boot versions and just wanted to compare uart log from both as a tried stock android version before and it was complaining about missing boot.ini.
Anyway I do read your posts carefully and of course I am going to do it with the exact steps as you recommended. I do not ignore your advice, just wanted to have both u-boot versions uart logs for comparison to see the whole process. I appreciate your help.
Martin

You can try it as your own risk, I tried mainline similarly like you did and ended up with a bricked device which I donā€™t want it to happen with you. Not surely cause of Mainline uboot but its still untested with Manjaro, so its better to let us test it and try we can advice you about it.

Thatā€™sy I adviced to do something which is already tested and wonā€™t get you in any trouble. But if you still want to experiment then its good you can try it.

You are right. I did not mention that I donā€™t need to have functional installation on my VIM3 as soon as possible.
For me it is more important to learn something about ARM SoC boards. Thatā€™s why I read the UART logs, then search in boot scripts and asked for help.

This evening I flashed Android over USB, it booted correctly, then inserted SD with Manjaro, it tooked more tries to boot, while it was stucking at Khadas boot logo. Removed the "rm " lines from the emmc install script, the script went without errors.

But no boot anymore:
this is link to uart log:

Thank you
Martin

Where is the output for the Install script?

Now insert the SD card which you used to run the install script, Then enable multi-boot, Once the device boots fine from SD card with Manjaro in it then Power it off and remove the sd card then it should boot fine.

UPDATE: @Martin_B I just found out that the install file in boot partition is outdated.
I will be updating the file in the new boot-vim package.

OK, I will wait for the updated package. Now I have fresh installed android on emmc, manjaro on SD and serial logging ready for testing.

Hopefully you donā€™t need to test, letā€™s see.

Hahaha

btw. I forgot to mention:
After burning manjaro 20-04 to SD, there are BOOT_MNJRO and ROOT_MNJRO parts.
After installing boot-vim3 unstable branch, /boot/uEnv.ini contains root=LABEL=ROOT, which I have to correct to ROOT_MNJRO by handā€¦

so let me know when updated install-aml-emmc.sh will be ready.
Thank you
Martin

Thanks, it works!
I installed the new version boot-vim3-2020.04-2 on SD, run the install-to-emmc script (I have script log, if you want to see it), rebooted with SD inserted, then shutdown, removed SD and booted successfully from eMMC.

There are some error messages from kernel panfrost driver (attached shortened dmesg).

Please only look at the uEnv.ini, while there is still root=LABEL=ROOT in boot-vim3-202.04-2, which probably will not work, since the default partition name after burning Manjaro img to SD is ROOT_MNJRO.

I have identified the reason for the odd behavior of my system during startup - I had jumper wires left in UART and connected to USB-to-serial device, which probably generated random signals to UART when not inserted into USB port of my PC. By inserting USB-to-serial or by removing wires from VIMā€™s GPIO, system started as expected.

Martin

dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.7.0-0.2 (spikerguy@Manjaro) (gcc version 9.2.0 (GCC), GNU ld (GNU Binutils) 2.33.1) #1 SMP PREEMPT Tue Apr 21 19:40:48 +03 2020
[    0.000000] Machine model: Khadas VIM3

00] Kernel command line: root=LABEL=ROOT_MNJRO rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x39086000-0x3d086000] (64MB)
[ 0.000000] Memory: 2922548K/3888128K available (15420K kernel code, 1432K rwdata, 6412K rodata, 1024K init, 937K bss, 179148K reserved, 786432K cma-reserved)
[ 0.000000] random: get_random_u64 called from cache_random_seq_create+0x80/0x150 with crng_init=0
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] irq_meson_gpio: 100 to 8 gpio interrupt mux initialized
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000271] Console: colour dummy device 80x25
[ 0.000601] printk: console [tty0] enabled
[ 0.000642] Calibrating delay loop (skipped), value calculated using timer frequencyā€¦ 48.00 BogoMIPS (lpj=96000)
[ 0.000664] pid_max: default: 32768 minimum: 301
[ 0.000807] LSM: Security Framework initializing
[ 0.000868] SELinux: Initializing.
[ 0.001000] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.001029] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.002726] rcu: Hierarchical SRCU implementation.
[ 0.005951] EFI services will not be available.
[ 0.006331] smp: Bringing up secondary CPUs ā€¦
[ 0.006958] Detected VIPT I-cache on CPU1
[ 0.007008] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.008118] CPU features: detected: ARM erratum 858921
[ 0.008125] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[ 0.008133] Detected VIPT I-cache on CPU2
[ 0.008155] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.008169] arch_timer: CPU2: Trapping CNTVCT access
[ 0.008176] CPU2: Booted secondary processor 0x0000000100 [0x410fd092]
[ 0.008790] Detected VIPT I-cache on CPU3
[ 0.008805] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.008811] arch_timer: CPU3: Trapping CNTVCT access
[ 0.008816] CPU3: Booted secondary processor 0x0000000101 [0x410fd092]
[ 0.009376] Detected VIPT I-cache on CPU4
[ 0.009391] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.009397] arch_timer: CPU4: Trapping CNTVCT access
[ 0.009402] CPU4: Booted secondary processor 0x0000000102 [0x410fd092]
[ 0.009970] Detected VIPT I-cache on CPU5
[ 0.009985] arch_timer: Enabling local workaround for ARM erratum 858921
[ 0.009991] arch_timer: CPU5: Trapping CNTVCT access
[ 0.009997] CPU5: Booted secondary processor 0x0000000103 [0x410fd092]
[ 0.010064] smp: Brought up 1 node, 6 CPUs
[ 0.010247] SMP: Total of 6 processors activated.
[ 0.010260] CPU features: detected: 32-bit EL0 Support
[ 0.010273] CPU features: detected: CRC32 instructions
[ 0.022902] CPU: All CPU(s) started at EL2
[ 0.022969] alternatives: patching kernel code
[ 0.024515] devtmpfs: initialized
[ 0.031670] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.031699] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.042654] xor: measuring software checksum speed
[ 0.079908] 8regs : 3321.000 MB/sec
[ 0.119943] 32regs : 3812.000 MB/sec
[ 0.159983] arm64_neon: 3541.000 MB/sec
[ 0.159991] xor: using function: 32regs (3812.000 MB/sec)
[ 0.160034] pinctrl core: initialized pinctrl subsystem
[ 0.160631] thermal_sys: Registered thermal governor ā€˜step_wiseā€™
[ 0.160937] DMI not present or invalid.
[ 0.161283] NET: Registered protocol family 16
[ 0.162410] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.162431] audit: initializing netlink subsys (disabled)
[ 0.162548] audit: type=2000 audit(0.160:1): state=initialized audit_enabled=0 res=1
[ 0.163666] cpuidle: using governor ladder
[ 0.163691] cpuidle: using governor menu
[ 0.163910] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.164012] ASID allocator initialised with 65536 entries
[ 0.164837] Serial: AMBA PL011 UART driver

[    1.694047] soc soc0: Amlogic Meson G12B (A311D) Revision 29:b (10:2) Detected
[    1.695638] pwm-regulator: supplied by regulator-dummy
[    1.695879] VCC_3V3: supplied by VSYS_3V3
[    1.695929] VCC_1V8: supplied by VCC_3V3
[    1.695982] VDDIO_AO1V8: supplied by VSYS_3V3
[    1.696050] EMMC_AO1V8: supplied by VCC_3V3
[    1.696297] pwm-regulator: supplied by regulator-dummy
[    1.699766] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
[    1.701614] Serial: AMBA driver
[    1.702060] ff803000.serial: ttyAML0 at MMIO 0xff803000 (irq = 14, base_baud = 1500000) is a meson_uart
[    2.722285] printk: console [ttyAML0] enabled
[    2.727158] ffd24000.serial: ttyAML6 at MMIO 0xffd24000 (irq = 21, base_baud = 1500000) is a meson_uart
[    2.735992] serial serial0: tty port ttyAML6 registered
[    2.749826] brd: module loaded
[    2.755202] loop: module loaded
[    2.757351] libphy: Fixed MDIO Bus: probed
[    2.758947] VFIO - User Level meta-driver version: 0.3

[    2.835423] Synopsys Designware Multimedia Card Interface Driver
[    2.841782] meson-gx-mmc ffe03000.sd: allocated mmc-pwrseq
[    2.877997] meson-gx-mmc ffe05000.sd: Got CD GPIO
[    2.914980] meson-gx-mmc ffe07000.mmc: allocated mmc-pwrseq
[    2.928038] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.930159] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.935758] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.942540] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.943341] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.949423] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
[    2.955336] ledtrig-cpu: registered to indicate activity on CPUs
[    2.961562] meson-sm: secure-monitor enabled
[    2.997371] zswap: loaded using pool lzo/zbud
[    3.001787] Key type ._fscrypt registered
[    3.005569] Key type .fscrypt registered
[    3.009499] Key type fscrypt-provisioning registered
 3.035442] VCC_5V: supplied by DC_IN
[    3.037386] USB_PWR: supplied by VCC_5V
[    3.094713] meson-drm ff900000.vpu: Queued 2 outputs on vpu
[    3.094867] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.101265] meson-drm ff900000.vpu: CVBS Output connector not available
[    3.137015] meson-dw-hdmi ff600000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[    3.141230] mmc2: new HS200 MMC card at address 0001
[    3.143158] mmcblk2: mmc2:0001 BJTD4R 29.1 GiB 
[    3.147882] meson-dw-hdmi ff600000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[    3.150984] mmcblk2boot0: mmc2:0001 BJTD4R partition 1 4.00 MiB
[    3.158771] meson-drm ff900000.vpu: bound ff600000.hdmi-tx (ops meson_dw_hdmi_ops)
[    3.164573] mmcblk2boot1: mmc2:0001 BJTD4R partition 2 4.00 MiB
[    3.171977] [drm] Initialized meson 1.0.0 20161109 for ff900000.vpu on minor 0
[    3.178413] mmcblk2rpmb: mmc2:0001 BJTD4R partition 3 4.00 MiB, chardev (243:0)
[    3.196053]  mmcblk2: p1 p2
[    3.462077] meson-dw-hdmi ff600000.hdmi-tx: HDMI infoframe: Auxiliary Video Information (AVI), version 2, length 13
[    3.462127] meson-dw-hdmi ff600000.hdmi-tx:     colorspace: YCbCr 4:4:4
[    3.462162] meson-dw-hdmi ff600000.hdmi-tx:     scan mode: Underscan
[    3.462195] meson-dw-hdmi ff600000.hdmi-tx:     colorimetry: ITU709
[    3.462225] meson-dw-hdmi ff600000.hdmi-tx:     picture aspect: 16:9
[    3.462256] meson-dw-hdmi ff600000.hdmi-tx:     active aspect: Same as Picture
[    3.462284] meson-dw-hdmi ff600000.hdmi-tx:     itc: No Data
[    3.462314] meson-dw-hdmi ff600000.hdmi-tx:     extended colorimetry: xvYCC 709
[    3.462344] meson-dw-hdmi ff600000.hdmi-tx:     quantization range: Default
[    3.462373] meson-dw-hdmi ff600000.hdmi-tx:     nups: Unknown Non-uniform Scaling
[    3.462402] meson-dw-hdmi ff600000.hdmi-tx:     video code: 16
[    3.462432] meson-dw-hdmi ff600000.hdmi-tx:     ycc quantization range: Limited
[    3.462460] meson-dw-hdmi ff600000.hdmi-tx:     hdmi content type: Graphics
[    3.462489] meson-dw-hdmi ff600000.hdmi-tx:     pixel repeat: 0
[    3.462526] meson-dw-hdmi ff600000.hdmi-tx:     bar top 0, bottom 0, left 0, right 0
[    3.462598] meson-dw-hdmi ff600000.hdmi-tx: HDMI infoframe: Source Product Description (SPD), version 1, length 25
[    3.462627] meson-dw-hdmi ff600000.hdmi-tx:     vendor: DW
[    3.462657] meson-dw-hdmi ff600000.hdmi-tx:     product: HDMI
[    3.462691] meson-dw-hdmi ff600000.hdmi-tx:     source device information: PC General (0x9)
[    3.521919] Console: switching to colour frame buffer device 240x67
[    3.668229] meson-drm ff900000.vpu: fb0: mesondrmfb frame buffer device
[    3.675280] meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
[    3.681343] meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
[    3.687539] meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
[    3.693413] meson8b-dwmac ff3f0000.ethernet: no reset control found
[    3.700487] meson8b-dwmac ff3f0000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[    3.706702] meson8b-dwmac ff3f0000.ethernet: 	DWMAC1000
[    3.711869] meson8b-dwmac ff3f0000.ethernet: DMA HW capability register supported
[    3.719284] meson8b-dwmac ff3f0000.ethernet: RX Checksum Offload Engine supported
[    3.726702] meson8b-dwmac ff3f0000.ethernet: COE Type 2
[    3.731876] meson8b-dwmac ff3f0000.ethernet: TX Checksum insertion supported
[    3.738862] meson8b-dwmac ff3f0000.ethernet: Wake-Up On Lan supported
[    3.745256] meson8b-dwmac ff3f0000.ethernet: Normal descriptors
[    3.751111] meson8b-dwmac ff3f0000.ethernet: Ring mode enabled
[    3.756888] meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.764963] libphy: stmmac: probed
[    3.768736] dwc3-meson-g12a ffe09000.usb: USB2 ports: 2
[    3.773368] dwc3-meson-g12a ffe09000.usb: USB3 ports: 1
[    3.781197] dwc2 ff400000.usb: supply vusb_d not found, using dummy regulator
[    3.785652] dwc2 ff400000.usb: supply vusb_a not found, using dummy regulator
[    3.792964] dwc2 ff400000.usb: EPs: 7, dedicated fifos, 712 entries in SPRAM
[    3.800109] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[    3.805114] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 1
[    3.812796] xhci-hcd xhci-hcd.3.auto: hcc params 0x0228fe6c hci version 0x110 quirks 0x0000000000010010
[    3.822026] xhci-hcd xhci-hcd.3.auto: irq 30, io mem 0xff500000
[    3.827998] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.07
[    3.836070] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.843227] usb usb1: Product: xHCI Host Controller
[    3.848055] usb usb1: Manufacturer: Linux 5.7.0-0.2 xhci-hcd
[    3.853665] usb usb1: SerialNumber: xhci-hcd.3.auto
[    3.858684] hub 1-0:1.0: USB hub found
[    3.862212] hub 1-0:1.0: 2 ports detected
[    3.866275] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[    3.871606] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 2
[    3.879199] xhci-hcd xhci-hcd.3.auto: Host supports USB 3.0 SuperSpeed
[    3.885678] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.893716] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.07
[    3.901878] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.909035] usb usb2: Product: xHCI Host Controller
[    3.913865] usb usb2: Manufacturer: Linux 5.7.0-0.2 xhci-hcd
[    3.919470] usb usb2: SerialNumber: xhci-hcd.3.auto
[    3.924448] hub 2-0:1.0: USB hub found
[    3.928019] hub 2-0:1.0: 1 port detected
[    3.934018] printk: console [netcon0] enabled
[    3.936200] netconsole: network logging started
[    3.941203] ALSA device list:
[    3.943620]   No soundcards found.
[    3.949126] Freeing unused kernel memory: 1024K
[    3.951607] Run /init as init process
[    3.955108]   with arguments:
[    3.955110]     /init
[    3.955111]   with environment:
[    3.955113]     HOME=/
[    3.955114]     TERM=linux
[    4.150778] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[    4.156968] input: adc-keys as /devices/platform/adc-keys/input/input1
[    4.200864] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    4.225108] usb 1-1: New USB device found, idVendor=1a40, idProduct=0801, bcdDevice= 1.00
[    4.229626] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.236736] usb 1-1: Product: USB 2.0 Hub
[    4.302607] hub 1-1:1.0: USB hub found
[    4.318547] hub 1-1:1.0: 4 ports detected
[    4.406788] EXT4-fs (mmcblk2p2): mounted filesystem with writeback data mode. Opts: data=writeback
[    4.624891] usb 1-1.1: new low-speed USB device number 3 using xhci-hcd
[    4.637175] systemd[1]: System time before build time, advancing clock.
[    4.693232] NET: Registered protocol family 10
[    4.717817] Segment Routing with IPv6
[    4.733899] systemd[1]: systemd 245.5-2-arch running in system mode. (+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[    4.756232] systemd[1]: Detected architecture arm64.
[    4.761128] usb 1-1.1: New USB device found, idVendor=03f0, idProduct=604a, bcdDevice= 1.00
[    4.769069] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.776310] usb 1-1.1: Product: HP USB Optical Mouse
[    4.781215] usb 1-1.1: Manufacturer: PixArt
[    4.827449] systemd[1]: Set hostname to <vim>.
[    4.848298] input: PixArt HP USB Optical Mouse as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.1/1-1.1:1.0/0003:03F0:604A.0001/input/input2
[    4.865643] hid-generic 0003:03F0:604A.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-xhci-hcd.3.auto-1.1/input0
[    4.980871] usb 1-1.2: new low-speed USB device number 4 using xhci-hcd
[    5.102015] usb 1-1.2: New USB device found, idVendor=0461, idProduct=0010, bcdDevice= 1.04
[    5.106751] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.113991] usb 1-1.2: Product: USB Keyboard
[    5.118212] usb 1-1.2: Manufacturer: NOVATEK
[    5.126368] systemd[1]: Configuration file /usr/lib/systemd/system/sound.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    5.137575] systemd[1]: Configuration file /usr/lib/systemd/system/khadas-utils.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    5.177287] systemd[1]: Configuration file /usr/lib/systemd/system/bluetooth-khadas.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    5.194183] random: systemd: uninitialized urandom read (16 bytes read)
[    5.198417] systemd[1]: Created slice system-getty.slice.
[    5.203192] input: NOVATEK USB Keyboard as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.2/1-1.2:1.0/0003:0461:0010.0002/input/input3
[    5.219215] random: systemd: uninitialized urandom read (16 bytes read)
[    5.223812] systemd[1]: Created slice system-modprobe.slice.
[    5.230892] random: systemd: uninitialized urandom read (16 bytes read)
[    5.236011] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    5.244478] systemd[1]: Created slice User and Session Slice.
[    5.249787] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    5.257295] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.265551] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[    5.274344] systemd[1]: Reached target Local Encrypted Volumes.
[    5.277188] hid-generic 0003:0461:0010.0002: input,hidraw1: USB HID v1.10 Keyboard [NOVATEK USB Keyboard] on usb-xhci-hcd.3.auto-1.2/input0
[    5.295241] systemd[1]: Reached target Paths.
[    5.298929] input: NOVATEK USB Keyboard System Control as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.2/1-1.2:1.1/0003:0461:0010.0003/input/input4
[    5.315728] systemd[1]: Reached target Remote Encrypted Volumes.
[    5.323918] systemd[1]: Reached target Remote File Systems.
[    5.328587] systemd[1]: Reached target Slices.
[    5.332980] systemd[1]: Reached target Swap.
[    5.338137] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[    5.344527] systemd[1]: Listening on LVM2 metadata daemon socket.
[    5.350374] systemd[1]: Listening on LVM2 poll daemon socket.
[    5.357068] input: NOVATEK USB Keyboard Consumer Control as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.2/1-1.2:1.1/0003:0461:0010.0003/input/input5
[    5.358763] systemd[1]: Listening on Process Core Dump Socket.
[    5.369928] hid-generic 0003:0461:0010.0003: input,hidraw2: USB HID v1.10 Device [NOVATEK USB Keyboard] on usb-xhci-hcd.3.auto-1.2/input1
[    5.391276] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    5.397280] systemd[1]: Listening on Journal Audit Socket.
[    5.403237] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.408627] systemd[1]: Listening on Journal Socket.
[    5.414839] systemd[1]: Listening on Network Service Netlink Socket.
[    5.420590] systemd[1]: Listening on udev Control Socket.
[    5.426982] systemd[1]: Listening on udev Kernel Socket.
[    5.435251] systemd[1]: Mounting Huge Pages File System...
[    5.444733] systemd[1]: Mounting POSIX Message Queue File System...
[    5.452908] systemd[1]: Mounting Kernel Debug File System...
[    5.458572] systemd[1]: Condition check resulted in Kernel Trace File System being skipped.
[    5.467040] systemd[1]: Mounting Temporary Directory (/tmp)...
[    5.476433] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    5.489011] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
[    5.498410] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[    5.505341] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    5.521778] systemd[1]: Starting Load Kernel Modules...
[    5.529984] systemd[1]: Starting Remount Root and Kernel File Systems...
[    5.539836] systemd[1]: Starting udev Coldplug all Devices...
[    5.546750] systemd[1]: Mounted Huge Pages File System.
[    5.551810] systemd[1]: Mounted POSIX Message Queue File System.
[    5.557299] systemd[1]: Mounted Kernel Debug File System.
[    5.562499] systemd[1]: Mounted Temporary Directory (/tmp).
[    5.568351] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    5.577191] systemd[1]: Finished Load Kernel Modules.
[    5.582970] systemd[1]: Finished Remount Root and Kernel File Systems.
[    5.591895] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[    5.599031] systemd[1]: Mounting Kernel Configuration File System...
[    5.607886] systemd[1]: Started LVM2 metadata daemon.
[    5.612674] systemd[1]: Condition check resulted in First Boot Wizard being skipped.
[    5.617704] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[    5.625827] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[    5.636605] systemd[1]: Starting Load/Save Random Seed...
[    5.644186] systemd[1]: Starting Apply Kernel Variables...
[    5.649358] systemd[1]: Condition check resulted in Create System Users being skipped.
[    5.655898] systemd[1]: Starting Create Static Device Nodes in /dev...
[    5.665618] systemd[1]: Finished udev Coldplug all Devices.
[    5.670184] systemd[1]: Mounted Kernel Configuration File System.
[    5.676602] systemd[1]: Finished Apply Kernel Variables.
[    5.682293] systemd[1]: Finished Create Static Device Nodes in /dev.
[    5.689760] systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm.
[    5.699563] systemd[1]: Starting Journal Service...
[    5.707166] systemd[1]: Starting udev Kernel Device Manager...
[    5.994260] systemd[1]: Started Journal Service.
[    5.999224] audit: type=1130 audit(1587772415.356:2): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.042343] systemd-journald[395]: Received client request to flush runtime journal.
[    6.067567] systemd-journald[395]: File /var/log/journal/8005991fdc854988944dbb3a7ca5dbfe/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    6.119072] audit: type=1130 audit(1587772415.476:3): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-journal-flush comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.139498] audit: type=1130 audit(1587772415.496:4): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udevd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.247108] random: crng init done
[    6.249329] random: 7 urandom warning(s) missed due to ratelimiting
[    6.264494] audit: type=1130 audit(1587772415.620:5): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-random-seed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.343172] meson-vrtc ff8000a8.rtc: registered as rtc0
[    6.356846] meson-vrtc ff8000a8.rtc: setting system clock to 1970-01-01T00:00:06 UTC (6)
[    6.361692] debugfs: Directory 'ff800280.cec' with parent 'regmap' already present!
[    6.372512] mc: Linux media interface: v0.10
[    6.385778] libphy: mdio_mux: probed
[    6.400799] systemd-journald[395]: Failed to read journal file /var/log/journal/8005991fdc854988944dbb3a7ca5dbfe/user-1000.journal for rotation, trying to move it out of the way: Text file busy
[    6.401135] videodev: Linux video capture interface: v2.00
[    6.404027] libphy: mdio_mux: probed
[    6.450001] axg-sound-card sound: snd-soc-dummy-dai <-> ff6421c0.audio-controller mapping ok
[    6.460074] panfrost ffe40000.gpu: clock rate = 799999987
[    6.460912] Registered IR keymap rc-khadas
[    6.465856] panfrost ffe40000.gpu: supply mali not found, using dummy regulator
[    6.477085] panfrost ffe40000.gpu: mali-g52 id 0x7212 major 0x0 minor 0x0 status 0x0
[    6.477112] axg-sound-card sound: snd-soc-dummy-dai <-> ff642200.audio-controller mapping ok
[    6.484915] panfrost ffe40000.gpu: features: 00000000,13de77ff, issues: 00000000,00000400
[    6.492109] IR NEC protocol handler initialized
[    6.500049] panfrost ffe40000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
[    6.507358] axg-sound-card sound: snd-soc-dummy-dai <-> ff642240.audio-controller mapping ok
[    6.514327] meson_vdec: module is from the staging directory, the quality is unknown, you have been warned.
[    6.516639] panfrost ffe40000.gpu: shader_present=0x3 l2_present=0x1
[    6.537807] rtc-hym8563 0-0051: no valid clock/calendar values available
[    6.541504] rc rc0: meson-ir as /devices/platform/soc/ff800000.bus/ff808000.ir/rc/rc0
[    6.549285] axg-sound-card sound: I2S IN B <-> TDM Pad mapping ok
[    6.556372] rc rc0: lirc_dev: driver meson-ir registered at minor = 0, raw IR receiver, no transmitter
[    6.563151] axg-sound-card sound: snd-soc-dummy-dai <-> TDM Loopback mapping ok
[    6.576165] input: meson-ir as /devices/platform/soc/ff800000.bus/ff808000.ir/rc/rc0/input6
[    6.581948] rtc-hym8563 0-0051: registered as rtc1
[    6.584307] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.584509] axg-sound-card sound: i2s-hifi <-> I2S OUT mapping ok
[    6.584597] axg-sound-card sound: ASoC: no DMI vendor name!
[    6.595648] meson-ir ff808000.ir: receiver initialized
[    6.597655] panfrost ffe40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
[    6.597694] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000f5
[    6.597695] Mem abort info:
[    6.597696]   ESR = 0x96000004
[    6.597698]   EC = 0x25: DABT (current EL), IL = 32 bits
[    6.597699]   SET = 0, FnV = 0
[    6.597700]   EA = 0, S1PTW = 0
[    6.597701] Data abort info:
[    6.597701]   ISV = 0, ISS = 0x00000004
[    6.597702]   CM = 0, WnR = 0
[    6.597704] user pgtable: 4k pages, 48-bit VAs, pgdp=00000000b7bcf000
[    6.597705] [00000000000000f5] pgd=0000000000000000
[    6.597708] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[    6.597709] Modules linked in: cfg80211(+) ecdh_generic(+) ecc meson_vdec(C) rtc_hym8563(+) v4l2_mem2mem ir_nec_decoder rfkill panfrost(+) snd_soc_meson_g12a_tohdmitx videobuf2_dma_contig videobuf2_memops rc_khadas videobuf2_v4l2 videobuf2_common meson_ir(+) rc_core videodev meson_rng mdio_mux_meson_g12a snd_soc_meson_axg_sound_card mc dw_hdmi_cec ao_cec_g12a rtc_meson_vrtc crct10dif_ce sch_fq_codel crypto_user ip_tables x_tables ipv6 nf_defrag_ipv6 adc_keys gpio_keys_polled
[    6.597737] CPU: 3 PID: 407 Comm: systemd-udevd Tainted: G         C        5.7.0-0.2 #1
[    6.597738] Hardware name: Khadas VIM3 (DT)
[    6.597741] pstate: 60000005 (nZCv daif -PAN -UAO)
[    6.597749] pc : dev_pm_opp_put_regulators+0x14/0xb0
[    6.597760] lr : panfrost_devfreq_init+0x7c/0x1e8 [panfrost]
[    6.597761] sp : ffff800010403890
[    6.597762] x29: ffff800010403890 x28: ffff8000104ed000 
[    6.597764] x27: 0000000000000100 x26: ffff0000b4b128b8 
[    6.597765] x25: ffff80000a19c5d0 x24: 0000000000000031 
[    6.597767] x23: ffff80000a19c1d8 x22: ffff0000b3af0d80 
[    6.597768] x21: ffff0000b7c4a010 x20: ffffffffffffffed 
[    6.597770] x19: ffff0000b4e82480 x18: 0000000000040000 
[    6.597771] x17: 0000000000000000 x16: 0000000000000000 
[    6.597773] x15: ffff8000127151a0 x14: 6f662029696c616d 
[    6.597774] x13: 2820726f74616c75 x12: 0000000000000000 
[    6.597775] x11: 0000000000000007 x10: 0101010101010101 
[    6.597777] x9 : fffffffffffffffb x8 : 7f7f7f7f7f7f7f7f 
[    6.597778] x7 : fefefeff646c606d x6 : 000000000000003f 
[    6.597779] x5 : 0000000000000000 x4 : 0000000000000000 
[    6.597781] x3 : ffff8000127ded60 x2 : 0000000000000000 
[    6.597782] x1 : ffff0000b3af0d80 x0 : ffffffffffffffed 
[    6.597784] Call trace:
[    6.597787]  dev_pm_opp_put_regulators+0x14/0xb0
[    6.597793]  panfrost_devfreq_init+0x7c/0x1e8 [panfrost]
[    6.597798]  panfrost_probe+0xe0/0x1b8 [panfrost]
[    6.597802]  platform_drv_probe+0x54/0xa8
[    6.597804]  really_probe+0xdc/0x440
[    6.597805]  driver_probe_device+0xe0/0x138
[    6.597807]  device_driver_attach+0x74/0x80
[    6.597808]  __driver_attach+0xa4/0x170
[    6.597810]  bus_for_each_dev+0x70/0xc0
[    6.597811]  driver_attach+0x24/0x30
[    6.597812]  bus_add_driver+0x140/0x220
[    6.597814]  driver_register+0x64/0x120
[    6.597815]  __platform_driver_register+0x48/0x58
[    6.597820]  panfrost_driver_init+0x24/0x1000 [panfrost]
[    6.597824]  do_one_initcall+0x54/0x1a8
[    6.597826]  do_init_module+0x54/0x210
[    6.597828]  load_module+0x1fa0/0x2588
[    6.597829]  __do_sys_finit_module+0xb0/0x118
[    6.597831]  __arm64_sys_finit_module+0x20/0x30
[    6.597834]  do_el0_svc+0x88/0x238
[    6.597837]  el0_sync_handler+0x1f4/0x494
[    6.597838]  el0_sync+0x158/0x180
[    6.597842] Code: a9bd7bfd 910003fd a90153f3 aa0003f4 (f9408400) 
[    6.597845] ---[ end trace c7f302fca75a1a9d ]---
[    6.635798] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'


[   19.069514]  fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0

Yes there is some issue with panfrost in this kernel.

Yes This is happening will update the package.

Thanks for confirming that the install script works fine. @Martin_B can you share which android version did you have on the emmc before you installed Manjaro on eMMC?

Hi, Iā€™m trying to run the install-to-emmc script and hangs on me when copying the USR directory.

I flashed my MMC to the latest Android build, booted the latest Manjaro VIM 3 build from USB, installed boot-vim and ran the script. It hangs at the same place every time. Iā€™ve left it copying for an hour now and I do still see activity on the thumb drive but the UI has stopped responding.

Did I miss something?

It will take time depending on the usb drive speed. If the UI is stuck then there is something wrong.

Can you try with an sd card? also can you confirm which power supply are you using?

It was this one:
https://dl.khadas.com/Firmware/VIM3/Android/VIM3_Pie_V200319.7z

I have noticed, that my VIM3 board does not power-off at the end of the shutdown sequence. I will try to reproduce this behavior - donā€™t know, whether it is caused by 5.7 kernel or something else.
Btw. I am also facing this problem with my Toshiba AC100 Tegra2 laptop on Arch ARM. With 5.1.1 kernel it powers off properly and on 5.5, 5.6 kernel with the same .config the power LED indicator doesnā€™t turn off - that is of course not Khadas forum problem, but the VIM3 cause may be similar.

Kernel issue. I will revert the 5.7-rc1 kernel to 5.6.2 as 5.7-rc1 is not good.

Please switch to stable branch and upgrade the kernel only. Also put boot-vim3 to ignore list on update otherwise it will break the boot on every boot-vim3 update ( not just uenv but the boot scripts will be replaced too.

Install script is not yet there for rolling release distros like arch and Manjaro, as there are changes in filenames during the install script and updating the boot-vim3 package will revert those changes and cause the system to not boot anymore.

Sorry can you please reply with the full instructions to set this up? Iā€™m a little confused with all the different posts in the thread.

I got past the script but when I reboot I just get a black screen. Hereā€™s what I did

Flashed Vim3 with Android
Imaged USB with latest Manjaro build
Installed latest vim3-boot
Change uEnv.ini to boot=LABEL=ROOT_MNJRO
Renamed u-boot.usb to u-boot.ext
Ran install-aml-emmc.sh
Rebooted

Maybe @Martin_B can help you with the full instructions.

If not then I will try to prepare it tomorrow. Its midnight here. Cya tomorrow.

No worries, thanks for all your work!

I am not at home now, so I hope I can remember all the procedureā€¦

  1. On Windows PC download latest android image:
    https://dl.khadas.com/Firmware/VIM3/Android/VIM3_Pie_V200319.7z

  2. burn it over USB cable to your VIM3 using USB burning tool:
    https://dl.khadas.com/Tools/USB_Burning_Tool_v2.2.0.zip

  3. download manjaro image for VIM3:
    https://osdn.net/projects/manjaro-arm/storage/vim3/xfce/20.04/Manjaro-ARM-xfce-vim3-20.04.img.xz

  4. burn it to SD card (e.g. with balena etcher)
    https://www.balena.io/etcher/

  5. boot manjaro from SD

  6. switch to unstable branch

     sudo pacman-mirrors -a -B unstable
     sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
    
  7. edit /boot/uEnv.ini:
    change boot=LABEL=ROOT to boot=LABEL=ROOT_MNJRO

  8. run the /boot/ install-to-emmc.sh script with sudo

  9. leave SD inserted and restart with SD

  10. shutdown system, remove SD and boot from eMMC

I hope I did not forget anythingā€¦
Martin

1 Like

Yes I forgot something
after step 6. install

boot-vim3 package

1 Like

Thanks @Martin_B, just so Iā€™m clear Iā€™m running the following right?

sudo pacman -U https://www.uex.dk/public/manjaro/arm-unstable/core/aarch64/boot-vim3-2020.04-2-aarch64.pkg.tar.xz

Hi folks, I followed @Martin_Bā€™s instructions have sucessfully gotten Manajro to boot from MMC however Iā€™m having the inverted colors issue that Iā€™ve seen posted on here.

I was using using Android V190809 to flash the Vim3 and didnā€™t see this issue before. Is there any way to fix this?

Also is it correct that Ultrawide resolutions arenā€™t supported at the moment?