Difference between revisions of "IoTGateway/BSP/Linux/iMX6/How To Update Ubuntu/Debian Rootfs"

From ESS-WIKI
Jump to: navigation, search
 
Line 16: Line 16:
 
*Check your EMMC the partition number.
 
*Check your EMMC the partition number.
 
*Remove your yocto rootfs form your device(EMMC).
 
*Remove your yocto rootfs form your device(EMMC).
(Check your EMMC rootfs)  
+
 
(If your EMMC partition rootfs is mmcblk0p2)
+
(Check your EMMC rootfs) (If your EMMC partition rootfs is mmcblk0p2)
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
rm -rf /dev/mmcblk0p2/*
 
rm -rf /dev/mmcblk0p2/*
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
*Copy the Ubuntu/Debian Rootfs to your device partition.
 +
  
*Copy the Ubuntu/Debian Rootfs to your device partition.
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
mkdir /temp
 
mkdir /temp
 
mount /dev/sda1 /temp
 
mount /dev/sda1 /temp
 
cp -a /temp/u1404-rootfs-armhf.tgz /dev/mmcblk0p2
 
cp -a /temp/u1404-rootfs-armhf.tgz /dev/mmcblk0p2
 +
cd /dev/mmcblk0p2
 +
tar zxvf u1404-rootfs-armhf.tgz
 +
rm -rf u1404-rootfs-armhf.tgz
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 04:04, 10 January 2018

Update Ubuntu/Debian Rootfs on Your Device

Update your device(EMMC)

  • Your Device is Yocto version
  • Prepare the SD Card Linux Image(Yocto version)
  • Prepare the Ubuntu /Debian rootfs

Prepare the Ubuntu /Debian rootfs

Ubuntu Rootfs Name : u1404-rootfs-armhf.tgz Debian Rootfs Name : rootfs.tar.bz2

Update your device(EMMC)

  • System Boot up form SD card.
  • Check your EMMC the partition number.
  • Remove your yocto rootfs form your device(EMMC).

(Check your EMMC rootfs) (If your EMMC partition rootfs is mmcblk0p2)

rm -rf /dev/mmcblk0p2/*
  • Copy the Ubuntu/Debian Rootfs to your device partition.


mkdir /temp
mount /dev/sda1 /temp
cp -a /temp/u1404-rootfs-armhf.tgz /dev/mmcblk0p2
cd /dev/mmcblk0p2
tar zxvf u1404-rootfs-armhf.tgz
rm -rf u1404-rootfs-armhf.tgz


Ubuntu rootfs LXDE versioin

LXDE (abbreviation for Lightweight X11 Desktop Environment) is a free desktop environment with comparatively low resource requirements.

LXDE2.png

modules & firmware

Copy the modules.tgz to /lib/modules.

Depending on chosen kernel, please copy/install proper modules $ROOTFS/lib/modules.

Depending the official build version :

For example : 4411A1LIV8210 Check your lib module path

Module.jpg

Load module

depmod -a 4.1.15-official_build_version
sync
If you already insert module, please send command "lsmod" and check it.
Depmod.jpg

Check your load module

Lsmod.jpg

Depending on chosen kernel, please copy/install firmware $ROOTFS/lib/firmwware.