2014년 11월 6일 목요일

Porting Lubuntu 13.08 to CT (NAND flash)

When I first used CT, I installed Lubuntu 13.08.

This installation was so tough for me.

At the beginning of flashing, I used Linux Mint 12.10.

It has some problems to install CT's USB driver.

Ubuntu 12.04 LTS is easiest OS, I think.

You can check your linux OS.
cat /etc/os-release

Linux kernel version can be shown by this command.
uname -a

For CT, I will use lubuntu which is a light ubuntu with HDMI display output.
wget http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-nand-v1.02/lubuntu-desktop-nand-hdmi.img.gz .
gzip -d lubuntu-desktop-nand-hdmi.img.gz .

Now, I have the lubuntu image.

Next, Download and Install LiveSuit 3.05.

I could not find the install file address, so I just download from

http://docs.cubieboard.org/tutorials/common/livesuit_installation_guide

However, Do not trust the installation guide for linux in DOC web page.

Ths guide is for old LiveSuit version.

Follow below command.
mkdir cubie
mv LiveSuitV305_For_Linux64.zip cubie
cd cubie
unzip LiveSuitV305_For_Linux64.zip
cd LiveSuitV305_For_Linux64
chmod +x LiveSuit.run
sudo apt-get install dkms
sudo ./LiveSuit.run

That's all.

If you are using ubuntu 12.04 LTS, you don't need to use dpkg or RPM.

However, there was another problem to make connection between CT and my ubuntu which is running on VMware.

The connection between CT and VMware is unstable.

So, I needed to register usb port manually.

To fix this problem, I needed to add some parameters into vmx file.

At first, check your usb id in VMware.



This file is placed in your VM directory.

In that file, there will be two ids.

write them in somewhere.

Then, open vmx file for the virtual machine with gVim and add those ids like this.
usb.quirks.device0 = "0x1f3a:0xefe8 skip-reset"



0x1f3a and 0xefe8 are my usb ids

Finally, we have finished all setting for flashing.

Now turn CT off, and unplug CT's power.

run the Livesuit with sudo
sudo /Bin/LiveSuit/LiveSuit



While pushing FEL button, connect the cable into CT.

IF you get the error message like "Get Device Stage Failed!",

use sudo.

To turn it off, push the power button more than 10 seconds.

Then do it again.

You can see a popup asking format or not.

Press yes.

Now your CT will have and run the image which you want.

 

[contact-form-7 id="24" title="Karl"]

댓글 없음:

댓글 쓰기