Virtual Guru's Blog – Home of Virtualization Workshops

October 14, 2010

12minutes: Installing Ubuntu 10.04 LTS for regular Chromium OS compiling and HW test

Filed under: 12minutes, best_practices, ChromeOS — Tags: , — natiku @ 2:45 pm

12 Minutes: Chromium OS To build a Chromium OS yourself you need a 64bit Linux OS, I also try Fedora 13 64bit, but for this 2 reasons I stick with Ubuntu 10.04 LTS

1. Because most developers are use a Ubuntu
2. Because kernel in Chromuim OS is based on Ubuntu LTS source tree

Installing Ubuntu Desktop 10.04.1 LTS 64bit

Having very similar kernel can help me in way, then I can troubleshoot all HW issues in Ubuntu directly,
for many debugging tasks I will need a GUI so this is why I choose Desktop version.

I use a default installation of Ubuntu Desktop 10.04.1 LTS 64bit

For regular building Chromium OS I create a dedicated partition as /buildarea (you need keep in ming then Chromium OS images have couple GB each) and I make SWAP on third partition,
because Chromium OS build setup put on third partition root file system by default,
so this setup preventing me from incidentally start Ubuntu root from Chromium OS kernel.

sudo fdisk -l /dev/sdb

  Disk /dev/sdb: 80.0 GB, 80026361856 bytes
  255 heads, 63 sectors/track, 9729 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disk identifier: 0x0005d926

     Device Boot      Start         End      Blocks   Id  System
  /dev/sdb1   *           1        3647    29294496   83  Linux
  /dev/sdb2            3648        9461    46700955   83  Linux
  /dev/sdb3            9462        9729     2152710   82  Linux swap / Solaris

 df -h
  Filesystem            Size  Used Avail Use% Mounted on
  /dev/sdb1              28G  8.2G   18G  32% /
  /dev/sdb2              44G   21G   22G  49% /buildarea

Looking what HW we have on my build and evaluation machine

I use a single HW for Chromium OS building and evaluation Used $250 HW for compiling and evaluation of Chromium OS – on Single Machine, so here is some information about this HW from Ubuntu:

uname -a
Linux atomd510 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux

lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation N10 Family DMI Bridge [8086:a000] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation N10 Family Integrated Graphics Controller [8086:a001] (rev 02)
00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 02)
00:1c.0 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 1 [8086:27d0] (rev 02)
00:1c.1 PCI bridge [0604]: Intel Corporation N10/ICH 7 Family PCI Express Port 2 [8086:27d2] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 [8086:27c8] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 [8086:27c9] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 [8086:27ca] (rev 02)
00:1d.3 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 [8086:27cb] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller [8086:27cc] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e2)
00:1f.0 ISA bridge [0601]: Intel Corporation NM10 Family LPC Controller [8086:27bc] (rev 02)
00:1f.2 IDE interface [0101]: Intel Corporation N10/ICH7 Family SATA IDE Controller [8086:27c0] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation N10/ICH 7 Family SMBus Controller [8086:27da] (rev 02)
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 03)
02:00.0 SATA controller [0106]: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller [197b:2363] (rev 02)
02:00.1 IDE interface [0101]: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller [197b:2363] (rev 02)
03:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR5007G Wireless Network Adapter [168c:001d] (rev 01)

lsusb 
Bus 005 Device 003: ID 04f2:0111 Chicony Electronics Co., Ltd KU-9908 Keyboard
Bus 005 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 008: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Bus 001 Device 005: ID 0951:160f Kingston Technology 
Bus 001 Device 002: ID 046d:0802 Logitech, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M
    |__ Port 1: Dev 2, If 1, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M
    |__ Port 2: Dev 8, If 0, Class=vend., Driver=option, 480M
    |__ Port 2: Dev 8, If 1, Class=vend., Driver=option, 480M
    |__ Port 2: Dev 8, If 2, Class=stor., Driver=usb-storage, 480M
    |__ Port 2: Dev 8, If 3, Class=stor., Driver=usb-storage, 480M
    |__ Port 5: Dev 5, If 0, Class=stor., Driver=usb-storage, 480M
    |__ Port 6: Dev 2, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
    |__ Port 6: Dev 2, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
    |__ Port 6: Dev 2, If 2, Class=audio, Driver=snd-usb-audio, 480M
    |__ Port 6: Dev 2, If 3, Class=audio, Driver=snd-usb-audio, 480M

More hardware information can be get with HW info

Hint: Yo get more info, just remove –short

sudo apt-get install hwinfo

sudo hwinfo --short --hw_item ?

  --hw_item      probe for hw_item
  hw_item is one of:
   all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard,
   cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, hub,
   ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse,
   netcard, network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer,
   scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl,
   vbe, wlan, zip

sudo hwinfo --short --cpu
cpu:                                                            
                       Intel(R) Atom(TM) CPU D510   @ 1.66GHz, 1666 MHz
                       Intel(R) Atom(TM) CPU D510   @ 1.66GHz, 1666 MHz
                       Intel(R) Atom(TM) CPU D510   @ 1.66GHz, 1666 MHz
                       Intel(R) Atom(TM) CPU D510   @ 1.66GHz, 1666 MHz

sudo hwinfo --short --disk
disk:                                                           
  /dev/sda             RunCore 16G-C SS
  /dev/sdb             WDC WD800JB-00JJ
  /dev/sdc             Kingston DT Mini Slim
  /dev/sdd             HUAWEI MMC Storage

sudo hwinfo --short --netcard
network:                                                        
  eth1                 Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller
  wlan0                Atheros AR5007G Wireless Network Adapter

sudo hwinfo --short --network
network interface:                                              
  lo                   Loopback network interface
  eth1                 Ethernet network interface
  wlan0                WLAN network interface
  pan0                 Ethernet network interface

sudo hwinfo --short --bluetooth
bluetooth:                                                      
                       Cambridge Silicon Radio Bluetooth Dongle (HCI mode)

udo hwinfo --short --mouse
mouse:                                                          
  /dev/input/mice      Logitech Premium Optical Wheel Mouse
  /dev/input/mice      Macintosh mouse button emulation

sudo hwinfo --short --keyboard
keyboard:                                                       
  /dev/input/event4    Chicony Electronics USB Keyboard

sudo hwinfo --short --camera
??? Don't detect UVC one ?

sudo hwinfo --short --sound
sound:                                                          
                       Intel 82801G (ICH7 Family) High Definition Audio Controller

sudo hwinfo --short --usb
keyboard:                                                       
  /dev/input/event4    Chicony Electronics USB Keyboard
mouse:
  /dev/input/mice      Logitech Premium Optical Wheel Mouse
disk:
  /dev/sdc             Kingston DT Mini Slim
cdrom:
  /dev/sr0             HUAWEI Mass Storage
hub:
                       Linux 2.6.32-25-generic ehci_hcd EHCI Host Controller
                       Linux 2.6.32-25-generic uhci_hcd UHCI Host Controller
                       Linux 2.6.32-25-generic uhci_hcd UHCI Host Controller
                       Linux 2.6.32-25-generic uhci_hcd UHCI Host Controller
                       Linux 2.6.32-25-generic uhci_hcd UHCI Host Controller
bluetooth:
                       Cambridge Silicon Radio Bluetooth Dongle (HCI mode)
unknown:
  /dev/input/event6    Logitech Unclassified device
  /dev/input/event5    Chicony Electronics USB Keyboard
  /dev/ttyUSB0         HUAWEI Mobile
Advertisements

1 Comment »

  1. Is there a way that you can use sudo access to install drivers like for a wireless card (wifi card) and sound card

    Comment by Bradley Clark — March 8, 2011 @ 9:13 pm


RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: