IVI/IVI Installation

From Tizen Wiki
< IVI
Jump to: navigation, search

How to Install Tizen IVI images

Copy to a USB or other storage device

Tizen IVI images require at least 4 GB of storage capacity. There are two ways to copy the image to a device (the old/slow and the new/fast methods.)

The old/slow method uses the standard Unix 'dd' tool:

$ bzcat ivi-XYZ.raw.bz2 | dd of=/dev/sdX

Before running this command, find the name of your storage device using "sudo fdisk -l" or looking at the output of the "dmesg" or "lsblk" commands. Also, confirm that the USB stick is not mounted, or unmount it if needed.

Flashing may take 10-20 minutes, depending on the speed of your storage device.

The new/fast method uses bmaptool, which is a new tool for flashing Tizen IVI images. This tool copies the images four to eight times faster and is more reliable (for example, it checks data SHA1 checksums, makes sure your /dev/sdX is not mounted, etc.). Tool documentation is located here:

https://source.tizen.org/documentation/reference/bmaptool

After installing bmaptool flash an image using:

$ sudo bmaptool copy ivi-XYZ.raw.bz2 /dev/sdX

Note: If you get the error "bmaptool: ERROR: cannot open block device '/dev/sdb' in exclusive mode: [Errno 16] Device or resource busy: '/dev/sdX'", you need to unmount the USB stick. Example: umount /media/<usb name here>.

Or copy directly from a URL (providing you have downloaded the image and its bmap file to the same directory):

$ sudo bmaptool copy http://download.tizen.org/..blah.../ivi-XYZ.raw.bz2 /dev/sdX

Boot from USB

  1. Flash the image to the USB stick using bmaptool or dd (see this section).
  2. Insert the USB device into the IVI device.
  3. Power on the IVI device.
  4. Press "<F2>" to access the BIOS menu.
  5. Change Boot Priority to make it boot from the removable USB stick.
  6. Press "Enter" to boot the image from the USB disk.


Install system to HDD

  1. Prepare a bootable USB device (with Linux OS burned)
  2. Copy the IVI image to the USB device (you do not need to decompress it.)
  3. Insert the USB device into the IVI board that connects to HD.
  4. Press "Del" or "<F2>" to access the BIOS menu.
  5. Change the Boot Priority to boot from the removable USB device.
  6. Live boot into the system in USB (such as Tizen or MeeGo.)
  7. Launch a terminal or switch to console in live boot [[environment.
  8. Login as root.
  9. Check the disk partition using “fdisk –l”. You should see some information about /dev/sda, /dev/sdb. On the Crossville platform, you could get information about eMMC stick: /dev/mmcblk0.
  10. When you install the Tizen image to /dev/sda and assuming /dev/sdb is the USB device, use: /umount /dev/sda
  11. Copy the Tizen image to HD by the command: (ATTENTION: this will completely erase your HDD/SSD) bzcat-dc ivi-XXX.raw.bz2 | dd of=/dev/sda bs=512k; sync
  12. The Tizen image is installed to HD.
  13. Remove the USB and boot to the system installed in HD.


Install system to HDD - second alternative

I have used the method above for many months, but the one thing that I found to be restrictive is that the size of the partitions are too small. So I came up with the slight variation of the method above which I found a little easier for me:

  1. Prepare a bootable USB device with SystemRescueCD on it. Note: there is an easy-to-use how-to on their website: http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick
  2. Copy the compressed IVI image (i.e. in bz2 format) to the USB device.
  3. Plug the USB device into the IVI system.
  4. Press "Del" or "<F2>" to access the BIOS menu.
  5. Change the Boot Priority to boot from the removable USB device.
  6. Once you're on the console: check what the HDD (or SSD) device node is (typically /dev/sda)
 umount /dev/sda

Note: If you copied the Tizen image file to the root of the USB SystemRescueCD device it will appear under /tftpboot once you've booted off it.

Transfer the Tizen image to your disk (ATTENTION: this will completely erase your HDD/SSD)

 cd /tftpboot
 bzcat <tizen-image.raw.bz2> | dd bs=1M of=/dev/sda

The Tizen image is installed to your HDD/SDD.

Now you're ready to resize all partitions to fully benefit from whatever disk you are using:

  1. Start the GUI (startx)
  2. Use Gparted (from the menu at the bottom of the screen) to re-size all partitions. I usually give the 'boot' partitions more space (especially useful if you're going to upgrade the kernel many times) and assign the rest of the disk to the root filesystem. Note: You will get a warning that doing so may render your system unbootable but that is not the case. Re-sizing may take a little while.
  3. If re-partitioning fails, remove the USB device and restart your system to boot using the newly installed Tizen IVI image. Then restart your system with the USB deviceand try again.

Once it has completed, reboot your system to your HDD/SSD disk.

Et voila...


Install System to eMMC

For the Crossville platform, when eMMC is the location where you will install the Tizen image and /dev/sdb is the USB device, boot in:

 fdisk -l  # check the eMMC name
 umount /dev/mmcblk0pX   # umount all the eMMC partitions  
 bzcat ivi-XXXX.raw.bz2 | dd of=/dev/mmcblk0

The Tizen image is installed to eMMC on Crossville. Remove the USB stick and boot to the system installed in eMMC.