VIMs && Edge Ubuntu Firmware V190830 Rom Release

@ravelo sudo apt update && sudo apt upgrade

1 Like

hello,
i’ve juste finished building in docker & w/ the lastest fenix, an image called VIM1_Ubuntu-server-bionic_Linux-4.9_arm64_EMMC_V20190903.img (incl. uboot 2015)

once 7zipped, is it supposed to be the same as https://dl.khadas.com/Firmware/VIM1/Ubuntu/EMMC/VIM1_Ubuntu-server-bionic_Linux-4.9_arm64_EMMC_V20190830.7z we can see in post#1, @Frank ?

@ravelo It’s the same one.

Nice to see the new VIM3 Ubuntu image picks up my NVMe drive(Patriot Scorch 128GB) without effort. Good job Team Khadas.

2 Likes

Ok, flashed my EMMC with my own home made image : it boot ok , says 'built with fenix 0.7 and kernel is 4.9.190" !

this is not new, previous builds were already able to update this way; so I tried apt dist-upgrade and I’ve seen that kernel 4.9 header did update & ubott was regenerated !

khadas@Khadas:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libnss-myhostname libnss-systemd libpam-systemd libsystemd0 libudev1 linux-headers-amlogic-4.9 systemd
  systemd-sysv udev
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.8 MB of archives.
After this operation, 305 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ports.ubuntu.com bionic-security/main arm64 libnss-systemd arm64 237-3ubuntu10.28 [90.5 kB]
Get:2 http://ports.ubuntu.com bionic-security/main arm64 libsystemd0 arm64 237-3ubuntu10.28 [171 kB]
Get:3 http://ports.ubuntu.com bionic-security/main arm64 libnss-myhostname arm64 237-3ubuntu10.28 [30.3 kB]
Get:4 http://ports.ubuntu.com bionic-security/main arm64 libpam-systemd arm64 237-3ubuntu10.28 [92.5 kB]
Get:5 http://ports.ubuntu.com bionic-security/main arm64 systemd arm64 237-3ubuntu10.28 [2,553 kB]
Get:6 http://ports.ubuntu.com bionic-security/main arm64 udev arm64 237-3ubuntu10.28 [1,050 kB]                  
Get:7 http://ports.ubuntu.com bionic-security/main arm64 libudev1 arm64 237-3ubuntu10.28 [45.3 kB]               
Get:8 http://ports.ubuntu.com bionic-security/main arm64 systemd-sysv arm64 237-3ubuntu10.28 [11.8 kB]           
Get:9 https://dl.khadas.com/repos/vim1 bionic/main arm64 linux-headers-amlogic-4.9 arm64 0.7 [10.8 MB]           
Fetched 14.8 MB in 21s (694 kB/s)                                                                                
(Reading database ... 55597 files and directories currently installed.)
Preparing to unpack .../libnss-systemd_237-3ubuntu10.28_arm64.deb ...
Unpacking libnss-systemd:arm64 (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Preparing to unpack .../libsystemd0_237-3ubuntu10.28_arm64.deb ...
Unpacking libsystemd0:arm64 (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Setting up libsystemd0:arm64 (237-3ubuntu10.28) ...
(Reading database ... 55597 files and directories currently installed.)
Preparing to unpack .../libnss-myhostname_237-3ubuntu10.28_arm64.deb ...
Unpacking libnss-myhostname:arm64 (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Preparing to unpack .../libpam-systemd_237-3ubuntu10.28_arm64.deb ...
Unpacking libpam-systemd:arm64 (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Preparing to unpack .../systemd_237-3ubuntu10.28_arm64.deb ...
Unpacking systemd (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Preparing to unpack .../udev_237-3ubuntu10.28_arm64.deb ...
Unpacking udev (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Preparing to unpack .../libudev1_237-3ubuntu10.28_arm64.deb ...
Unpacking libudev1:arm64 (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Setting up libudev1:arm64 (237-3ubuntu10.28) ...
Setting up systemd (237-3ubuntu10.28) ...
(Reading database ... 55597 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_237-3ubuntu10.28_arm64.deb ...
Unpacking systemd-sysv (237-3ubuntu10.28) over (237-3ubuntu10.26) ...
Preparing to unpack .../linux-headers-amlogic-4.9_0.7_arm64.deb ...
Unpacking linux-headers-amlogic-4.9 (0.7) over (0.7) ...
Setting up libnss-systemd:arm64 (237-3ubuntu10.28) ...
Setting up libnss-myhostname:arm64 (237-3ubuntu10.28) ...
Setting up systemd-sysv (237-3ubuntu10.28) ...
Setting up udev (237-3ubuntu10.28) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-headers-amlogic-4.9 (0.7) ...
Compiling headers - please wait ...
Setting up libpam-systemd:arm64 (237-3ubuntu10.28) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for dbus (1.12.2-1ubuntu1.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: Generating /boot/initrd.img-4.9.190
update-initramfs: Converting to u-boot format
khadas@Khadas:~$

one step flashing example, just in case someone would need to know:
7z e -so xxx.7z | sudo dd of=/dev/sdY bs=8M status=progress
replade xxx and Y by whatever id is appropriate in your case

EDIT:
I’ve started this one VIM1_Ubuntu-xfce-bionic_Linux-5.3-rc4_arm64_SD-USB_V20190830
but the GUI does never start on the TV connected over HDMI ! console displays boot logs then presents a shell session, and TV display shows some start logs then freezes after a few seconds

1 Like

If an earlier image (with a lot of applications with specific setup added) is in use, is it possible to upgrade the kernel to the latest image WITHOUT burning a new image (destroying my applications and settings)?

Have found that the latest VIM1 image (4.9 20190830) supports squashfs with xz compression. I’d very much like to add that property to my existing VIM1 devices that are lacking that support, with as little as possible effort.

@ufneeme you mean that OTA ?

Hi,
what do you mean by OTA - over the air? air or wire makes no difference for me.

I’m looking for something like apt dist-upgrade to start using your latest Ubuntu image without losing apps and settings.

@ufneeme You can use apt get update && apt get upgrade to upgrade.

unfortunatelu, apt update and apt upgrade did not replaced the kernel. uname -a output was not changed after this, still
Linux Khadas 4.9.40 #2 SMP PREEMPT Tue Oct 30 15:47:54 CST 2018 aarch64 aarch64 aarch64 GNU/Linux.

Your latest image however returns
Linux Khadas 4.9.190 #51 SMP PREEMPT Fri Aug 30 11:44:18 CST 2019 aarch64 aarch64 aarch64 GNU/Linux

BTW, had one error during apt upgrade:

Unpacking mesa-common-dev:arm64 (19.0.8-0ubuntu0~18.04.2) over (18.2.2-0ubuntu1~18.04.2) …
dpkg: error processing archive /var/cache/apt/archives/mesa-common-dev_19.0.8-0ubuntu0~18.04.2_arm64.deb (–unpack):

  • trying to overwrite ‘/usr/include/KHR/khrplatform.h’, which is also in package linux-gpu-amlogic-s905x-arm-mali-m450-r7p0-fbdev 0.4*
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    Errors were encountered while processing:
  • /var/cache/apt/archives/mesa-common-dev_19.0.8-0ubuntu0~18.04.2_arm64.deb*
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Have also tried to run apt dist-upgrade to see if that will replace the kernel, but this will try to install that failed package again as the first thing and therefore fails. Any advise?

@ufneeme I am so sorry. I didn’t notice your firmware version. Only the version after V190830 supports OTA.

Hi,
have noticed that GPIO does not work as it did with earlier 4.9. Have used gpio channels 3, 6, 32 before. Now I cannot export any of those channels:
root@Khadas:/sys/class/gpio# echo 6 > export
bash: echo: write error: Invalid argument

What has changed with GPIO and how to start using it again?