Ubuntu server ROM linux mainline V170624 pre-alpha version[EMMC INSTALLATION]

It’s just a pre-alpha version with kernel linux mainline 4.12-rc6. Based on mainline commit ID:

commit 8d829b9bb878904f3419af8003176a12910b94e8
Merge: 48b6bbe 8e8320c
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Wed Jun 21 22:15:00 2017 -0700

    Merge branch 'for-linus' of git://git.kernel.dk/linux-block
    
    Pull block fixes from Jens Axboe:
     "This contains a set of fixes for xen-blkback by way of Konrad, and a
      performance regression fix for blk-mq for shared tags.
    
      The latter could account for as much as a 50x reduction in
      performance, with the test case from the user with 500 name spaces. A
      more realistic setup on my end with 32 drives showed a 3.5x drop. The
      fix has been thoroughly tested before being committed"
    
    * 'for-linus' of git://git.kernel.dk/linux-block:
      blk-mq: fix performance regression with shared tags
      xen-blkback: don't leak stack data via response ring
      xen/blkback: don't use xen_blkif_get() in xen-blkback kthread
      xen/blkback: don't free be structure too early
      xen/blkback: fix disconnect while I/Os in flight

Check Firmware Page to download the ROM.

ROM Infos:

  • ROM version: Vim_Ubuntu-server-16.04_Linux-Mainline-4.12-rc6_V170624_Pre-alpha.7z
  • MD5SUM: 91127fb74f95ab793b86537e5c9c3789
  • The ROM is for eMMC installation
  • Account info:
    • User: khadas
    • Password: khadas

Change logs:

  • kernel update to mainline 4.12-rc6

Known issues

  • USB is not working
  • Sound card is not working
  • Cant’t login as root user directly

Upgrade guidance:

Setup

1) Setup network

Note to plug in the LAN cable and run:

# echo "auto eth0" >> /etc/network/interfaces
# echo "iface eth0 inet dhcp" >> /etc/network/interfaces
# /etc/init.d/networking restart
Restarting networking (via systemctl): networking.service.
$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:15:18:01:81:31  
          inet addr:192.168.1.109  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::215:18ff:fe01:8131/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1778 (1.7 KB)  TX bytes:1996 (1.9 KB)
          Interrupt:40 
...

$ 

2) Setup WiFi via CLI
Install network-manager

#  apt update
#  apt install network-manager
#  service network-manager start

Scan WiFi hotspots:

#  nmcli d wifi list

Connect to a Wi-Fi network:

# nmcli dev wifi connect khadas password pw_khadas

3)Setup Bluetooth via CLI

# hciconfig -a
# hciconfig hci0 up
# hcitool scan
5 Likes

hello,
today is a great day !
we have officially labelled mainline linux, I installed it and I can say eth0, wlan0 and hci0 do work,
1st impressions are very positive.

I’ve never seen any previous khadas rom that runs so weeeelllllll right from scratch

congrats to everyone that has contributed
keep up the good work, faith is returning to us customers when we see such a great achievement

I hope we’ll get out of alpha and beta soon

Can someone with buntu test this scenario and report if you have such problem which i reported there

Great news, i won’t be trying out this alpha, usb and sound are the reasons, but i hope most of the problems will be solved soon.

It managed to git clone micropython but was using serial console and maybe was using wlan0…
Please note that this rom uses krnl 4.12 rc6 and 4.13 seems out now and your issues was seen on rc4 and before.

According to https://www.spinics.net/lists/kernel/msg2535097.html
Usb support should come back in 4.13 as pull request re-adding usb was accepted

Well with wlan0 it was working also for me as I wrote there. Could you please setup eth0 and do same test? Two users of ArchLinxArm with mainline kernel did reported this, thus I would like to know this from an buntu User.

I’ve encountered the same issue, even with 4.12-rc7.

Would you like to share the kernel config, you’ve used to build the kernel?

1 Like

I hope @numbqq and @Stuff did they own custom config with only stuff for Khadas VIM and not some generic (all enabled config).

Hi umiddelb,

You can refer to config for kvim_defconfig.

Thansk.

Hi numbqq

thank you for sharing. I’ve just tried a mainline kernel built upon this config (I assume you are using the meson-gxl-s905x-khadas-vim.dtb), but I still experience these strange network issues. You may try it by yourself by cloning the Linux source code repository via git, e.g.

 git clone --depth 1 --single-branch -b master https://github.com/ioft/linux/

If the download stalls, a simple ifdown / ifup eth0 (via serial console) will get the network connection operational again.

Cheers
Uli

Hi umiddelb,

When I use scp copy,I got the same issue,too.

# scp nick@192.168.1.253:/home/nick/ubuntu-base-16.04-base-arm64.tar .
 ubuntu-base-16.04-base-arm64.tar.gz             6% 2256KB 418.0KB/s - stalled -

ok, so let s add to the list of known issues this eth0 stalo during some heavy traffic.

I would also mention inability of nmcli to see my wifi ssid which uses channel 13

You can find it already here the one i found / reported / some of them got fixed.

Does https://www.spinics.net/lists/kernel/msg2535052.html mean usb2 support for vim arrives in mainline kernel soon ?

Patch for meson gxl usb support is here : https://patchwork.kernel.org/patch/9684303/
Would someone try to patch a 4.12 rc6 with this and build a test kernel for us to deploy?

This patch here adds an USB driver, but I need a dts related patch as well, since USB nodes are missing for GXL boards in arch/arm64/boot/dts/amlogic.

I’ve found this patch here. The kernel can see the root hub,

ubuntu@kvim:~$ sudo lsusb -v
[sudo] password for ubuntu:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0003 3.0 root hub
  bcdDevice            4.12
  iManufacturer           3 Linux 4.12.0-rc7-gx-g7da10bd-dirty xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.0.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           31
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             0
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x00
 Hub Port Status:
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           15
  bNumDeviceCaps          1
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   3
      Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat           0 micro seconds
    bU2DevExitLat           0 micro seconds
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            4.12
  iManufacturer           3 Linux 4.12.0-rc7-gx-g7da10bd-dirty xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.0.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             2
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
Device Status:     0x0001
  Self Powered

but non of the USB devices connected to the receptacle are recognized.

Ouch ! But good try anyway, tks.

unfortunately this is only 50% of what we need the other half is [0]. Devs are estimating to have USB mainline support in kernel 4.14.

[0] https://www.spinics.net/lists/linux-usb/msg151837.html

1 Like