Flashing Ubuntu Image on LEC-MTK-I1200

Prerequisites

Setup the Linux Host Environment

Follow the below steps:

$ mkdir Ubuntu-image
$ cp adlink-lec-1200-ubuntu-jellyfish.zip Ubuntu-image
$ cd Ubuntu-image
$ unzip adlink-lec-1200-ubuntu-jellyfish.zip

The resulting image directory should contain these files:

$ ls
bl2.img
bootassets.vfat
capsule.vfat
fip.bin
firmware.vfat
lk.bin
u-boot-env.bin
u-boot-initial-env
ubuntu.img
ubuntu.json
Image.tar
lec_mtk_i1200_ufs-updates.zip
lec-mtk-ubuntu-setup.sh

Install genio-tool and its dependencies. This is used to flash Ubuntu images to the LEC-MTKI1200.

# pip3 >= 20.3 is required for genio-tools, but the latest version in focal-update is 20.0.2
# Upgrade pip by pip command and remove pip deb packages

pip3 install --upgrade pip
$ sudo apt-get remove python3-pip python-pip-whl
$ sudo apt update

# Install fastboot
$ sudo apt install fastboot

# Install the latest genio-tools
$ pip3 install -U genio-tools

Add a new udev rule and add your user account to the plugdev group:

echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", ATTR{idProduct}=="201c", MODE="0660", $ GROUP="plugdev"' | sudo tee -a etc/udev/rules.d/96-genio-board.rules

$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
$ sudo usermod -a -G plugdev $USER

command usermod requires you to logout and login again with your account to make it effective. You only have to do this once, depending on your Ubuntu version you may also need to run below command:

$ sudo usermod -a -G dialout $USER

Flash the ubuntu image to LEC-MTK-I1200

Download the Ubuntu image file by clicking here.

$ mkdir Ubuntu-image
$ cp adlink-lec-1200-ubuntu-jellyfish.zip Ubuntu-image
$ cd Ubuntu-image
$ unzip adlink-lec-1200-ubuntu-jellyfish.zip

The resulting image directory should contain these files:

$ ls
bl2.img
bootassets.vfat
capsule.vfat
fip.bin
firmware.vfat
lk.bin
u-boot-env.bin
u-boot-initial-env
ubuntu.img
ubuntu.json
Image.tar
lec_mtk_i1200_ufs-updates.zip
lec-mtk-ubuntu-setup.sh

Go into the image directory.

$ cd adlink-lec-1200-ubuntu-jellyfish

Turn on the target device and connect the USB cable from the host device to the target device.

Type the following command to flash the image on the UFS.

$ genio-flash

Now, the host device ready to find the target device as a fastboot device.

Press reset key on the target device to make it as fastboot device.

Once the targeted device is detected as a fastboot device it will automatically start to flash the Ubuntu image.

Once image booted, run the below command to replace Kernel and install .deb file.

Login to the system,

  • Username: ubuntu

  • Password: ubuntu

Copy Image.tar , lec_mtk_i1200_ufs-updates.zip and lec-mtk-ubuntu-setup.sh from Ubuntu-image directory to a USB stick.

$ cp /Ubuntu-image/Image.tar ${USB_DRIVE}
$ cp /Ubuntu-image/lec_mtk_i1200_ufs-updates.zip ${USB_DRIVE}
$ cp /Ubuntu-image/lec-mtk-ubuntu-setup.sh ${USB_DRIVE}

Connect the USB Drive into LEC-MTK-I1200.

$ mkdir /home/Images
$ cp {USB_DRIVE}/Image.tar /home/Images
$ cp {USB_DRIVE}/lec_mtk_i1200_ufs-updates.zip /home/Images
$ cp {USB_DRIVE}/lec-mtk-ubuntu-setup.sh /home/Images

$ cd /home/Images

$ sudo chmod +x lec-mtk-ubuntu-setup.sh
$ ./lec-mtk-ubuntu-setup.sh

After a successful reboot ,the Ubuntu image will be booted on the LEC-MTK-I1200.