Skip to content

Ubuntu 20.04 LTS - Kernel 5.7.10 / 5.11.10 - BPI-M2Z

Compare
Choose a tag to compare
@avafinger avafinger released this 28 Mar 21:46
· 3 commits to master since this release
2fec1cd

Ubuntu 20.04 LTS (focal)

This is the Ubuntu 20.04 LTS Image for bpi-m2z with kernel 5.7.10 and 5.11.10, where you can switch between the two in /boot partition:

  • eth0 (if you wired the ethernet connector)
  • wlan0 (wifi)
  • BT (not tested)
  • OV5640 (camera)
  • server like with the minimum size, suitable for robotics/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 ssid (FIBER-8784) and password,
    do not change the layout or use TABs

  • 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 your 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 an 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

Yet to find... board runs HOT, around 60 ºC while using wlan and ethernet, use a good heat-sink.

Switching kernel versions

You can choose the kernel by changing the links in /boot file:

To boot with kernel 5.7.10:
lrwxrwxrwx 1 root root 32 mar 28 12:46 bpi-m2-zero.dtb -> bpi-m2-zero-v4.dtb_5.7.10-server
lrwxrwxrwx 1 root root 20 mar 28 12:46 zImage -> zImage_5.7.10-server*

To boot with kernel 5.11.10:
lrwxrwxrwx 1 root root 33 mar 28 18:36 bpi-m2-zero.dtb -> bpi-m2-zero-v4.dtb_5.11.10-server
lrwxrwxrwx 1 root root 21 mar 28 18:35 zImage -> zImage_5.11.10-server*

How to change:

     cd /boot
     sudo ln -sf bpi-m2-zero-v4.dtb_5.11.10-server bpi-m2-zero.dtb
     sudo ln -sf zImage_5.11.10-server zImage
     sudo reboot