Difference between revisions of "OpenBTS: E110 Install Image di MicroSD"

From OnnoWiki
Jump to navigation Jump to search
Line 27: Line 27:
 
* http://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/BootFiles
 
* http://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/BootFiles
 
* http://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/Images
 
* http://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/Images
 +
 +
==Menggunakan Build Directory==
 +
 +
Download
 +
 +
http://files.ettus.com/e1xx_images/current/e1xx-003-make.tar.bz2
 +
 +
 +
First, head to the Ettus E1xx Files Directory , and select the directory for the version/revision of image you want to create. Download the e1xx-xxx-make.tar.bz2 file for that version.
 +
 +
Now, de-compress and untar this directory:
 +
 +
$ tar jxvf e1xx-xxx-make.tar.bz2
 +
 +
You should now have a directory 'e1xx-xxx' with all of the files you need to create a copy of our master image. Insert the target SD Card into your favorite device for mounting micro SD cards in your PC (we assume a Linux PC here).
 +
 +
If the partitions automount, umount them (do not "safely remove the hardware"). You can do this by using the 'umount' command for each partition that was mounted.
 +
 +
$ sudo umount /path/to/mount/point/partition
 +
 +
Now, you will want to figure out what the device node is for the SD Card on your PC. You can do this with 'fdisk':
 +
 +
$ sudo fdisk -l
 +
 +
You should see the SD Card near the bottom (probably), and the partitons will have a titles like /dev/sdb1 and /dev/sdb2. From now on, these instructions will presume that the device node is '/dev/sdb'.
 +
 +
Now, we will use the 'MakeEttusSDCard.sh' script to create the card. Note that this script will work with any size SD Card, takes care of partitioning the card for you, creating the boot partition with the proper files, and then populating the root filesystem. Notice that for this command, we are not passing in partitions for the SD Card, but the entire device node itself. Run:
 +
 +
$ sudo ./MakeEttusSDCard.sh /dev/sdb
 +
 +
This process will take a significant amount of time, and will generate a lot of output as it populates the root filesystem. Once the process is finished, you should see a message that reports success!
 +
 +
Congratulations, you now have an exact replica of our master image!
  
 
==Membuat Image Dari E100-sd-07OCT2011-1.bin.gz==
 
==Membuat Image Dari E100-sd-07OCT2011-1.bin.gz==

Revision as of 05:35, 31 March 2012

Backup SD CARD Bawaan dari Ettus

CARA INI RECOMMENDED

Masukan SD card ke PC.

mkdir /e110-backup
cd /e110-backup
dd if=/dev/sdc of=sde110-ori.bin

Untuk mengembalikan

cd /e110-backup
dd if=sde110-ori.bin of=/dev/sdc

Sumber Image untuk E110

Ada beberapa sumber image yang menarik utk Ettus E110

Menggunakan Build Directory

Download

http://files.ettus.com/e1xx_images/current/e1xx-003-make.tar.bz2


First, head to the Ettus E1xx Files Directory , and select the directory for the version/revision of image you want to create. Download the e1xx-xxx-make.tar.bz2 file for that version.

Now, de-compress and untar this directory:

$ tar jxvf e1xx-xxx-make.tar.bz2

You should now have a directory 'e1xx-xxx' with all of the files you need to create a copy of our master image. Insert the target SD Card into your favorite device for mounting micro SD cards in your PC (we assume a Linux PC here).

If the partitions automount, umount them (do not "safely remove the hardware"). You can do this by using the 'umount' command for each partition that was mounted.

$ sudo umount /path/to/mount/point/partition

Now, you will want to figure out what the device node is for the SD Card on your PC. You can do this with 'fdisk':

$ sudo fdisk -l

You should see the SD Card near the bottom (probably), and the partitons will have a titles like /dev/sdb1 and /dev/sdb2. From now on, these instructions will presume that the device node is '/dev/sdb'.

Now, we will use the 'MakeEttusSDCard.sh' script to create the card. Note that this script will work with any size SD Card, takes care of partitioning the card for you, creating the boot partition with the proper files, and then populating the root filesystem. Notice that for this command, we are not passing in partitions for the SD Card, but the entire device node itself. Run:

$ sudo ./MakeEttusSDCard.sh /dev/sdb

This process will take a significant amount of time, and will generate a lot of output as it populates the root filesystem. Once the process is finished, you should see a message that reports success!

Congratulations, you now have an exact replica of our master image!

Membuat Image Dari E100-sd-07OCT2011-1.bin.gz

CARA INI TIDAK BERHASIL - ERROR FILE SYSTEM READ ONLY

Lakukan

gunzip E100-sd-07OCT2011-1.bin.gz 
dd if=E100-sd-07OCT2011-1.bin of=/dev/sdb

Tunggu agak lama utk menyelesaikan proses penulisan

Cara Lain Untuk Membuat Image E1xx SD card

Image berikut agak repot untuk digunakan karena tidak ada asterisk, openbts, hanya ada gnuradio saja. Untuk mencobanya silahkan download dari

http://files.ettus.com/e1xx_images/e1xx-002/
http://files.ettus.com/e1xx_images/

Cek lokasi MicroSD (biasanya /dev/sdb), kalau perlu di umount

fdisk -l
sudo umount /path/to/mount/point/partition

Download file dan lakukan proses pembuatan SD card

sudo su
cp e1xx-002-make.tar.bz2 /usr/local/src/
cd /usr/local/src
tar jxvf e1xx-002-make.tar.bz2
cd /usr/local/src/e1xx-002
./MakeEttusSDCard.sh /dev/sdb

Ini akan membutuhkan beberapa waktu untuk menyelesaikan

Download Image

Tampaknya Image ini lebih baik untuk digunakan untuk development openbts karena sudah banyak yang di siapkan.

wget http://dl.dropbox.com/u/14618236/MLO
wget http://dl.dropbox.com/u/14618236/u-boot.bin-for-3.0.bin
wget http://dl.dropbox.com/u/14618236/uImage-3.0-pm-r0a-usrp-e1xx.bin
wget http://dl.dropbox.com/u/14618236/console-openbts-devel-image-usrp-e1xx.tar.gz

Install Image

CARA INI TIDAK BERHASIL - ERROR FILE SYSTEM READ ONLY

Langkah berikut adalah untuk menginstall image di SD card di Linux. Sangat di sarankan untuk membackup terlebih dulu isi SD card sebelum anda melakukan hal ini.

Masukan SD card ke card reader. Akan terdeteksi dua partisi yaitu FAT dan rootfs. Jika tidak, partisi tersebut perlu di mount secara manual.

fdisk -l
Disk /dev/sdb: 4124 MB, 4124049408 bytes
127 heads, 62 sectors/track, 1022 cylinders, total 8054784 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *         128      131071       65472    c  W95 FAT32 (LBA)
/dev/sdb2          131072     8054783     3961856   83  Linux

Di mount

mkdir /media/FAT
mkdir /media/rootfs
mount /dev/sdb1 /media/FAT
mount /dev/sdb2 /media/rootfs

Jika di perlukan untuk mempartisi ulang maka besar partisi

FAT    FAT32  60Mbyte
rootfs ext3   sisa-nya

Partisi FAT berisi software untuk boot, seperti kernel Linux. Partisi rootfs berisi lainnya, termasuk kernel modul, paket yang terinstalasi dll.

$ ls /media/
FAT  rootfs

Instal MLO. Timpa MLO lama dengan MLO baru. Jika ini tidak betul dilakukan, maka partisi perlu di format. Lakukan,

cd /media/FAT
cp <download location>/MLO MLO
cp <download location>/u-boot.bin-for-3.0.bin u-boot.bin
cp <download location>/uImage-3.0-pm-r0a-usrp-e1xx.bin uImage

Hapus root filesystem. Pastikan bahwa directory yang digunakan benar, jika tidak kita akan kehilangan data.

sudo rm -Rf /media/rootfs/*

Cara lain yang lebih low level memformat partisi tersebut

fdisk -l # cek partisi misalnya /dev/sdb2 atau /dev/sdc2
mkfs.ext3 /dev/sdb2
e2label /dev/sdb2 rootfs
mkdir /media/rootfs
mount /dev/sdb2 /media/rootfs


Install root filesystem yang baru di partisi rootfs yang di mount.

cd /media/rootfs
sudo tar xvfz <download location>/console-openbts-devel-image-usrp-e1xx.tar.gz .

Unmount partisi. Perhatikan umount akan membutuhkan beberapa menit sebelum SD card dapat di cabut dengan aman.

cd /media
umount FAT
umount rootfs

Selesai sudah SD card dapat di lepas dari PC / laptop. Kita masukan ke E110. E110 dapat di boot.

Masukan MicroSD di E110

Tampak pada gambar adalah lokasi tempat MicroSD di E110

Lokasi MicroSD pada E110


Referensi

Pranala Menarik

Persiapan

OpenBTS 2.6

OpenBTS 2.8

Ettus E110

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah