Skip to content

Ubuntu 20.04 LTS - Kernel 5.11.10 - BPI-M2Z

Compare
Choose a tag to compare
@avafinger avafinger released this 28 Mar 00:07
· 4 commits to master since this release
7341ecb

Ubuntu 20.04 LTS (focal)

This is the Ubuntu 20.04 LTS Image for bpi-m2z with kernel 5.11.10 and with the following kernel config enabled:

  • eth0 (if you wired the ethernet connector)
  • wlan0 (wifi)
  • BT (not tested)
  • OV5640 (camera)
  • server like with the minimum size, suitable for robotics / software testing / fun with latest features from the stable kernel (kernel.org)

Credentials

ubuntu / ubuntu

Wifi

The wifi / ethernet manager is the netplan which runs great in the focal disto.

  • before you boot:

    edit the file /etc/netplan/01-netcfg.yaml and change your bsid (FIBER-8784) and password,
    do not change the layout or use TABs

    PLEASE, use the attached file, edit and copy it to /etc/netplan/01-netcfg.yaml

      network:
          version: 2
          renderer: networkd
          ethernets:
             eth0:
               addresses: []
               dhcp4: true
               optional: true
          wifis:
             wlan0:
               access-points:
                 "FIBER-8784":
                   password: 3qFd6GwzPw
               dhcp4: true
               optional: true
    
  • first login:

      sudo apt-get update
      sudo apt-get dist-upgrade
      sudo netplan apply
    

PS: watch for any message or error, if you change the layout it will spit some messages

  • Reconfigure locale (Language settings)

      sudo dpkg-reconfigure
    
  • Reconfigure keyboard layout

     sudo dpkg-reconfigure keyboard-configuration
    

Flashing OS Image to SD CARD

You will need a Linux box to flash the Image to sd card. Any size of the sd card will fit. Suggested > 8GB.

Instructions:

  • find you sd card device, if you have a USB card reader it will be in the form of /dev/sdX where X is a letter (b,c...), if you have a sd card reader (native), it will be in the form of /dev/mmcblkY where Y is a number from 0,1,2...10
    make sure you find the correct device or you may end formatting your hard disk....

  • run the commands:

sudo chmod +x format_sd_mainline.sh (make it exec)
sudo chmod +x flash_sdcard_mz2_focal.sh (make it exec)

then

    ./format_sd_mainline.sh /dev/sd**X** or /dev/mmcblk**Y**
    ./flash_sdcard_mz2_focal.sh /dev/sd**X** or /dev/mmcblk**Y**

after it finished, remove the sd card and boot the board with the sd card inserted.

Issues

Currently, there are no issues reported, but bear in mind this kernel runs really HOT, it is like 5 ~ 10 ºC higher when wifi and ethernet are connected / in use. I suspect is the GPU with the wrong frequency and have not found how to solve it, yet.

Latest Fix

The file sources.list (/etc/apt/sources.list) has wrong contents (x86) and should be overwritten with the correct one (armhf).
Please copy the correct file sources.list to /etc/apt/ prior to boot first-time. If you already booted, copy the file and issue a:

    sudo apt-get update
    sudo apt-get dist-upgrade

ignore the warnings