2013年1月16日 星期三

DX2 上安裝RTAI與 LinuxCNC 步驟

        經過幾天的試裝,沒一次裝成,終於還是呼叫瞻營全工程師,與其溝通也照著他們提供的安裝步驟執行,似乎是不可行,最後的解決方案為他們公司將提供一裝好的映像檔給我直接映進去,就這樣等待了一天。
         終於回信說,他們也照著提供給我的安裝步驟執行一次,結果是和我一樣,是不可行的,嗯~~事實證明,我真的是按照步驟,所以不行.....
最後提供正確步驟 (#號是指令,沒#的都是說明)與所提供之檔案

Install linux-headers
# dpkg -i linux-headers-2.6.32.20-vortex86-sg-rtai_1.0_i386.deb

Install linux-image
# dpkg -i linux-image-2.6.32.20-vortex86-sg-rtai_1.0_i386.deb

update-initramfs
# update-initramfs -c -k 2.6.32.20-vortex86-sg-rtai

update-grub
# update-grub

reboot

Update package index files
# aptitude update

Install libreadline5
# aptitude install libreadline5

Install python-tk
# aptitude install python-tk

Install python-imaging-tk
# aptitude install python-imaging-tk

Install python-numpy
# aptitude install  python-numpy

Install bwidget
# aptitude install bwidget

Install gettext
# aptitude install gettext

Untar rtai to /root
Untar emc2 to /root

Get the root permission
In  /usr/src directory

# ln -sf linux-headers-2.6.32.20-vortex86-sg-rtai linux

In  root/rtai/magma directory
# make install

In emc2/src directory
# make install

Then run /opt/emc2/bin/emc

2013年1月12日 星期六

Ubuntu 10.04 瞻營全 DX2 上安裝 LinuxCNC

要在瞻營全 DX2板子跑LinuxCNC,是無法直接使用LinuxCNC網站上包裝的live CD 直接安裝,主要是LinuxCNC所使用的Rtai即時環境建置時要與硬體配合,而因為瞻營全這SOC的硬體特殊使然,無法直接使用,只好自已安裝。
       瞻營全有提供其修改過Rtai部分,也有其安裝流程,不過目前照著步驟施行,卻也讓我重裝了幾次作業系統,或許是什麼步驟有問題,我再找些資料看看,也順道多了解Ubuntu作業系統與未來的開發環境,中間過程將先學習參考LinuxCNC,再來創出自已的運動核心。