Flashing Ubuntu Image in LEC-MTK-1200

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

Setup the environment for genio-tool and its dependencies. This tool used to flash Ubuntu images to the LEC-MTKI1200.

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.