Ubuntu on Beagleboard
Ubuntu on ARMãå®æãã¦ããã®ãï¼ï¼
â http://elinux.org/BeagleBoardUbuntu
ã¨ãããã¨ã§ããã£ã¦ã¿ãã
$ mkdir -p /opt/beagle/ubuntu $ cd /opt/beagle/ubuntu/ $ sudo apt-get install qemu $ wget http://ports.ubuntu.com/pool/main/d/debootstrap/debootstrap_1.0.13~jaunty1_all.deb $ sudo dpkg -i debootstrap_1.0.13~jaunty1_all.deb $ wget http://people.ubuntu.com/~ogra/arm/build-arm-rootfs $ sudo chmod u+x build-arm-rootfs
ãã®ã¾ã¾ãã«ããéå§ããã¨ã/tmpãã¯ã¼ã¯ã«ä½¿ããããã¢ã¿ã¤ã®ç°å¢ã§ã¯éä¸ã§å®¹éä¸è¶³ã§è½ã¡ã¦ãã¾ã£ãããã¹ããUbuntuãªã®ã§ã/tmpã¯tmpfsã§700MBããããããªããã®ã§ããããã
$ diff -u build-arm-rootfs.orig build-arm-rootfs --- build-arm-rootfs.orig 2009-02-16 21:05:52.000000000 +0900 +++ build-arm-rootfs 2009-06-01 00:00:00.688841963 +0900 @@ -276,7 +276,7 @@ # builder defaults DEFGROUPS="admin,adm,dialout,cdrom,floppy,audio,dip,video" STAMP=$(date +%Y%m%d%H%M) -BUILDDIR=$(mktemp -d) +BUILDDIR=$(pwd)/tmp MOUNTPOINT="${BUILDDIR}/tmpmount" IMAGENAME="${BUILDDIR}/qemu-armel-$STAMP.img" QEMUPID="${BUILDDIR}/qemu.pid" @@ -422,6 +422,10 @@ usage fi +if [ ! -f ${BUILDDIR} ];then + mkdir -p ${BUILDDIR} +fi + create_raw_image mount_image run_first_stage
BUILDDIR=$(mktemp -d -p .)ã§ãããã£ããããã¨ããããã§ãã©ã¼ã¼ãã
$ sudo ./build-arm-rootfs --fqdn beagleboard --login ubuntu --password temppwd --imagesize 2G --seed lxde,gdm
æéè¨ãã®å¿ãã¡ãã£ããã©ã1æéããããããããã¦ããã§ãããã£ãrootfsã¯158Mã»ã©ã
$ ls -lh åè¨ 159M -rw-r--r-- 1 root root 158M 2009-06-01 00:00 armel-rootfs-200906010000.tgz -rwxr--r-- 1 user user 14K 2009-06-01 00:00 build-arm-rootfs -rw-r--r-- 1 root root 1.8M 2009-06-01 00:00 build-arm-rootfs-200906010000.log -rwxr--r-- 1 user user 14K 2009-02-16 00:00 build-arm-rootfs.orig -rw-r--r-- 1 user user 52K 2009-04-28 00:00 debootstrap_1.0.13~jaunty1_all.deb
eLinuxã®ãµã¤ãã«ããã¨ããã«ãuImageã¨boot.scrãSDã«ã¼ãã®vfatãã¼ãã·ã§ã³ã«ãã¨ãboot.scrã¯ã¡ãã£ã¨å¤æ´ã
- omap-dss.def_disp=lcd omapfb.video_mode=1280x720MR-16@60
ã
- omapfb.video_mode=1024x768MR-16@60
ã«ããªããboot.scrã«ã´ãããããã ãã©ãã¨ãããããã£ã¨ãã¦ããã¦ãããããã¨ãSDã«ã¼ãã®ext3ãã¼ãã£ã·ã§ã³ã«rootfsãå±éãã¦ãèµ·åã
$ uname -a Linux beagleboard 2.6.28 #1 Wed Mar 25 20:45:54 CDT 2009 armv7l GNU/Linux $ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 117M 0 117M 0% /lib/init/rw varrun 117M 64K 117M 1% /var/run varlock 117M 0 117M 0% /var/lock udev 117M 140K 117M 1% /dev tmpfs 117M 0 117M 0% /dev/shm rootfs 905M 490M 371M 57% / $ cat /proc/meminfo MemTotal: 239088 kB MemFree: 94584 kB Buffers: 8948 kB Cached: 85652 kB $ top 09:13:38 up 13 min, 2 users, load average: 0.08, 0.41, 0.35 Tasks: 68 total, 1 running, 67 sleeping, 0 stopped, 0 zombie Cpu(s): 1.3%us, 0.3%sy, 0.0%ni, 98.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 239088k total, 144684k used, 94404k free, 8972k buffers Swap: 0k total, 0k used, 0k free, 85740k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1937 root 20 0 27344 19m 4632 S 0.3 8.2 1:07.49 Xorg 2112 ubuntu 20 0 34408 13m 8860 S 0.0 5.7 0:09.53 pcmanfm 2111 ubuntu 20 0 23480 10m 7064 S 0.7 4.5 0:09.29 lxpanel 2108 ubuntu 20 0 16044 6412 4092 S 0.0 2.7 0:02.41 openbox 1934 root 20 0 16464 3660 2716 S 0.0 1.5 0:00.18 gdm
ãã¹ã¯ãããã®æåãè±è ã«åãã¦ãã¨ãããããã
$ echo $LANG ja_JP.UTF-8
ãã«ããããã¹ãã®LANGã§ãæ¾ã£ã¦ãã®ããããã®ã§ããã©ã³ãã¨ãã¤ãã§ã«ssh, ntp, IMEãã¤ã³ã¹ãã¼ã«ã
$ sudo apt-get update $ sudo apt-get install ttf-vlgothic ssh ntp $ sudo apt-get install scim-anthy anthy
conkeror*1ã£ã¦åãã¦è¦ããã©ã¦ã¶ãªã®ã§ãã©ãã«ã使ãåæããã¨ããããã§ãapt-cache searchãã¦ã¿ããfirefoxãã
$ sudo apt-get install firefox-3.5
ï¼ï¼ ï¼¿ï¼ ï¼ï¼ Ubuntuãããã¹ãã
ï¼ï¼ ï¼¿ï¼ ï¼ï¼ Beagleboardãããã¹ãã