본문 바로가기
system/SBC

[BeagleBoneBlack] MicroSD부팅용 ubuntu를 설치하자

by lifeseed 2013. 10. 15.

테스트를 위한 보드는 ICBanQ에서 제공되었으며, 체험단활동의 일환으로 본 게시물이 작성되었음을 알립니다

 

0. 들어가기 전에

비글본블랙 보드에 우분투 이미지를 설치해봤습니다.

BeagleBoard.org의 Beagleboneblack 에 링크된 우분투 위키를 참조하였습니다.

참조페이지 : http://elinux.org/BeagleBoardUbuntu#eMMC:_BeagleBone_Black

설치 버전은 Raring 13.04 armhf 입니다. ( 4.1.1 Raring 13.04 armhf )

 

우선 인증 샷 부터...

 

 

잠깐 서본 소감은...

1. 어플을 실행하기 전까지 마우스 아이콘이 보이지 않습니다. ㅡ,.ㅡ

드래그를 이용하여 위치를 대충 파악하여 아래 메뉴에서 어플을 실행하니 그 때부터 나타 나더군요.

2. WebBrowser가 실행되지 않습니다. ㅡ,.ㅡ ;;;

이건 말할것도 없네요.

12.10 버전이 있긴한데.. 우선 끝까지 달려 봤습니다.

 

작업 설명이 리눅스 기준이더군요. 그래서 리눅스 머신에서 진행하였습니다.

 

Default User ID 및 Password는 ubuntu / temppwd 입니다.

이제부터 설치기 들어갑니다.

 

1. Get prebuild Image

0) 최소 2G의 microSD카드를 준비한다.

1) 아래 명령을 이용하여 이미지를 다운 받는다.

 

 

cf) md5sum 명령을 이용해서 다운 받은 이미지가 제대로 다운되었는지 확인 가능하다.

 

$ md5sum ubuntu-13.04-console-armhf-2013-09-26.tar.xz  (엔터)

(결과값)

b99907a57109fcf1328c0dbb5a0cd9de  ubuntu-13.04-console-armhf-2013-09-26.tar.xz


2) Unpack image

tar 명령을 이용하여 이미지의 압축을 풀면 폴더가 하나 생성된다.

 

$ tar xJf ubuntu-13.04-console-armhf-2013-09-26.tar.xz
$ cd ubuntu-13.04-console-armhf-2013-09-26 

2. Install using Setup Script

압축을 푼 폴더에 들어가면 설치 스크립트가 존재 한다.

이때 리눅스 머신에 삽입된 SD카드의 device name을 알아야 함. (본인의 경우엔 /dev/sdc 임)

 

$ sudo ./setup_sdcard.sh --mmc /dev/sdc --uboot bone

 

cf) Beaglebone 및 BeagleboneBlack이 아닌 경우 --uboot 뒤에 파라미터가 달라지니 위 참조 위키페이지를 확인할 것.

 

이렇게 하면 SD카드에 ubuntu이미지가 설치가된다.

SD카드를 보드에 삽입하고 부팅을 하자.

 

3. Xwindow 설치

기본적인 이미지는 콘솔로 부팅되는 서버 이미지다.

본인의 경우엔 eMMC에 default로 들어 있는 이미지 처럼 Virtual Com Port가 인식이 되긴하였으나, Terminal에서 로그등을 확인할 수 없었다.

 

1) Console 연결

UART를 연결하거나 공유기 정보등을 이용하여 SSH로 접속하자.

다시 한번 언급하면, Default User 정보는 ubuntu /temppwd 이다.

 

2) Root Password 생성

아래의 명령으로 루트권한의 Password를 생성하자.

 

$ sudo passwd

 

이후 root로 user를 변경하거나 sudo 명령을 이용하여 root 권한을 얻어올 수 있다.

(cf. sudo를 이용할 경우 ubuntu의 password를 입력해야한다.)

 

3) X-window 설치

설치된 이미지의 /boot 폴더에 X-window 설치가 가능한 Script가 있다.

해당 script를 실행하자.

 

$ sudo /bin/sh /boot/uboot/tools/ubuntu/small-lxde-desktop.sh

 

대략 2시간 가량 걸렸던것 같다. 느긋하게 기다리자.

본인은 root 계정으로 변경후 명령을 시작하였다.

시작 및 종료시 로그를 첨부한다.

 

root@arm/home/ubuntu#/bin/sh /boot/uboot/tools/ubuntu/small-lxde-desktop.sh
Hit http://ports.ubuntu.com raring Release.gpg
Hit http://ports.ubuntu.com raring-updates Release.gpg
Hit http://ports.ubuntu.com raring Release
Hit http://ports.ubuntu.com raring-updates Release
Hit http://ports.ubuntu.com raring/main Sources
Hit http://ports.ubuntu.com raring/universe Sources
Hit http://ports.ubuntu.com raring/multiverse Sources
Hit http://ports.ubuntu.com raring/main armhf Packages
Hit http://ports.ubuntu.com raring/universe armhf Packages
Hit http://ports.ubuntu.com raring/multiverse armhf Packages
Get:1 http://ports.ubuntu.com raring/main Translation-en [832 kB]

...

...

...

 

Setting up xserver-xorg-video-modesetting (0.7.0-0ubuntu2) ...
Setting up xserver-xorg-input-evdev (1:2.7.3-0ubuntu2b2) ...
Setting up xserver-xorg-input-synaptics (1.6.2-1ubuntu6) ...
Setting up xserver-xorg-input-all (1:7.7+1ubuntu4) ...
Setting up xserver-xorg-input-wacom (1:0.19.0-0ubuntu1) ...
Setting up xserver-xorg (1:7.7+1ubuntu4) ...
Setting up xterm (278-1ubuntu2) ...
update-alternatives: using /usr/bin/xterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
update-alternatives: using /usr/bin/uxterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
update-alternatives: using /usr/bin/lxterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Setting up libxtst6:armhf (2:1.2.1-1ubuntu0.13.04.1) ...
Setting up at-spi2-core (2.8.0-1) ...
Setting up libgtk-3-0:armhf (3.6.4-0ubuntu8) ...
Setting up libgcr-3-1 (3.6.2-0ubuntu2) ...
Setting up gcr (3.6.2-0ubuntu2) ...
Setting up gnome-keyring (3.6.3-0ubuntu2) ...
Setting up x11-utils (7.7~1ubuntu1) ...
Setting up gvfs-daemons (1.16.1-0ubuntu1) ...
Setting up gvfs:armhf (1.16.1-0ubuntu1) ...
Setting up gvfs-backends (1.16.1-0ubuntu1) ...
Setting up gvfs-fuse (1.16.1-0ubuntu1) ...
Setting up libgtk-3-bin (3.6.4-0ubuntu8) ...
Setting up policykit-1-gnome (0.105-1ubuntu4) ...
Processing triggers for dictionaries-common ...
Setting up miscfiles (1.4.2.dfsg.1-9) ...
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package miscfiles should be updated.
install-info: warning: maintainer scripts should not call install-info anymore,
install-info: warning: this is handled now by a dpkg trigger provided by the
install-info: warning: install-info package; package miscfiles should be updated.
Processing triggers for dictionaries-common ...
Setting up gconf-service (3.2.6-0ubuntu1) ...
Setting up gconf-service-backend (3.2.6-0ubuntu1) ...
Setting up gconf2 (3.2.6-0ubuntu1) ...
update-alternatives: using /usr/bin/gconftool-2 to provide /usr/bin/gconftool (gconftool) in auto mode

(gconftool-2:11526): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Setting up libgksu2-0 (2.0.13~pre1-6ubuntu2.1) ...
update-alternatives: using /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo to provide /usr/share/gconf/defaults/10_libgksu (libgksu-gconf-defaults) in auto mode
Processing triggers for gconf2 ...
Setting up gksu (2.0.2-6ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.11.1-armv7-x14
grep: /boot/config-3.11.1-armv7-x14: No such file or directory
Processing triggers for sgml-base ...
Processing triggers for ureadahead ...
--------------------
/tmp/xorg.conf -> /etc/X11/xorg.conf
Please Reboot
root@arm:/home/ubuntu#

 

이로써.. X-Window가 탑재된 우분투 13.04의 설치를 마친다.

 

CF) 관심있는 분들은 Wikipage에 소개된 Image 빌드 관련 정보를 참조하여 직접 이미지 빌드가 가능할듯...

 

Advanced: Build Image:

Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:

git clone git://github.com/RobertCNelson/omap-image-builder.git
cd omap-image-builder
git checkout v2013.09 -b v2013.09
touch release
./build_image.sh