bc10/prebuilt-20110107
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[bc10]]
- Contents
#CONTENTS
* Outline for bc10/prebuilt-20110107 [#qdcd7aa4]
>
COLOR(red){bc10/prebuilt-20110107 is based upon AOSP andr...
~
This article provides the detail explanations of the boot...
prebuilt image is basically a modified and extended versi...
of this section shows how to build the bootable image, an...
card, placing the prebuilt image on a the SD card.~
>
- [[The instructions of how to create the prebuilt image]]~
This section provides the instructions of how to create a...
building method of '''prebuilt-20110107''', and the addit...
how to create the prebuilt image.~
- [[The instructions of how to place the prebuilt image]]~
This section shows that how to download the image of '''p...
and how to place the images into a SD card. This section ...
* Instructions of creating prebuilt image [#ce1abbc7]
* Developing environment [#kad9d6e0]
>
To create the development environment, these three items ...
- OS: Ubuntu 10.04 (32bit version)
-JAVA: java 1.5x
- Android Version: android-2.2_r1.1
** Installing packages [#hda29187]
>
Obtain the required packages from the repository of ubunt...
$ sudo apt-get install git-core gnupg flex bison gperf l...
libwxgtk2.6-dev build-essential zip curl libncurses5-d...
** java5 [#m66c007f]
>
Since Ubuntu 9.10 sun-java5-jdk, which is critical to bui...
An old repository is temporarily added to '''/etc/apt/sou...
$ sudo vi /etc/apt/sources.list
>
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid part...
deb http://archive.ubuntu.com/ubuntu lucid-security ma...
deb-src http://archive.ubuntu.com/ubuntu lucid-securit...
deb http://archive.ubuntu.com/ubuntu lucid-security un...
deb http://archive.ubuntu.com/ubuntu lucid-security mu...
+ deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiv...
+ deb http://us.archive.ubuntu.com/ubuntu/ jaunty-update...
After adding the old repository, acquire the information ...
'''sun-java5-jdk'''.~
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
After completing the installation, the added repository i...
$ sudo vi /etc/apt/sources.list
>
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid part...
deb http://archive.ubuntu.com/ubuntu lucid-security ma...
deb-src http://archive.ubuntu.com/ubuntu lucid-securit...
deb http://archive.ubuntu.com/ubuntu lucid-security un...
deb http://archive.ubuntu.com/ubuntu lucid-security mu...
- deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiv...
- deb http://us.archive.ubuntu.com/ubuntu/ jaunty-update...
Once again, applying '''apt-get update''', obtain the pre...
original present depository.~
$ sudo apt-get update
* Obtaining Android source file [#z0b21cb1]
** Setting up repo [#pf4dd7f9]
>
Configure '''repo''' for obtaining the source code of and...
$ cd ~
$ mkdir bin
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a + x ~/bin/repo
>
As using Ubuntu, once log-out and then log-in, PATH is go...
log-in, set the PATH to '''~/bin''' flowing directions sh...
$ export PATH=~/bin:$PATH
** Initializing repo [#cc4bddcf]
>
Create a directory called '''bc10''' for the source file,...
to the '''bc10''' directory.~
$ cd~
$ mkdir bc10
$ cd bc10
$ repo init -u git*//android.git.kernel.org/platform/man...
** Adding local_manifest.xml [#b956a09c]
>
The source code that can be downloaded with the '''androi...
library, modify the '''local_manifest.xml''' for adding A...
file obtainable. To obtain the files, create a '''local_...
it as shown below.~
>
The android-2.2_r1.1 specific ALSA related files have not...
for android-2.2_r1.1.~
$ vi .repo/local_manifest.xml
>
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="external/alsa-lib" name="platform/exter...
<project path="external/alsa-utils" name="platform/ext...
<project path="hardware/alsa_sound" name="platform/har...
</manifest>
** repo sync [#d6c91d14]
>
After adding '''local_manifest.xml, execute '''repo sync'...
$ repo sync
>
The total size of the files is from 2 to 4GB. Download ti...
* Applying the build configuration file of bc10 [#t2e4868d]
>
The patches and configuration files, which Optimize and b...
repository of github by the command of '''git clone'''. T...
'''patch_to_android-2.2_r1.1_for bc10/bc10-patch.sh'''.~
$ cd ~
$ git clone git://github.com/bc-dev/path_to_android-2.2_...
$ cd patch_to_amndroid-2.2_r1.1_for _bc10
There are no specific directory for the downloaded patche...
but before applying these patches and files, make sure th...
the PATHs of these files.~
$ vi bc10-patch.sh
>
### Settings
ANDROID_DIR=${HOME}/bc10
SETUP_DIR=${HOME}/patch_to_android-2.2_r1.1_for_b10
PATCH_DIR=${SETUP_DIR}/patches-for-bc10
After checking the PATHs of the files are equal to the th...
$ ./bc10-patch.sh
* Android build [#ga389d12]
>
Set up the environment for bc10
$ cd ~/bc10
$ source build/envsetup.sh
$ lunch bc10-eng
>
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2
TARGET_PRODUCT=bc10
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=FRF91
============================================
Check the configuration of environment. Then, execute '''...
$ make
** Crating image [#f5fad18f]
>
After build is completed, relocate the binary of '''userl...
'''userland'''.
$ cd ~/patch_to_android-2.2_r1.1_for_b10
$ ./mkbc10-image.sh
Execute commands above, '''bc10-image''' is created under...
this '''bc10-image''' '''android userland''' will be plac...
/home/beat/bc10/out/target/product/bc10
mkdir android for android-rfs
/home/beat/bc10/out/target/product/bc10
copy android-root
copy android-system
change permission and owner
[sudo] password for beat:
$ cd ~/bc10/out/target/product/bc10
$ ls -l
>
-rw-r--r-- 1 beat beat 7 2010-08-27 23:37 androi...
drwxrwxrwx 8 root root 4096 2010-08-30 11:34 bc10-i...
-rw-r--r-- 1 beat beat 8866 2010-08-27 21:16 clean_...
drwxr-xr-x 3 beat beat 4096 2010-08-27 21:54 data
-rw-r--r-- 1 beat beat 22869 2010-08-27 23:37 instal...
drwxr-xr-x 13 beat beat 4096 2010-08-27 23:28 obj
-rw-r--r-- 1 beat beat 189 2010-08-27 21:16 previo...
-rw-r--r-- 1 beat beat 163811 2010-08-27 23:37 ramdis...
drwxr-xr-x 8 beat beat 4096 2010-08-27 21:54 root
drwxr-xr-x 4 beat beat 4096 2010-08-27 21:54 symbols
drwxr-xr-x 11 beat beat 4096 2010-08-27 23:17 system
-rw------- 1 beat beat 78486144 2010-08-27 23:37 system...
-rw------- 1 beat beat 1522752 2010-08-27 23:37 userda...
>
$ cd bc10-image
$ ls -l
>
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 data
-rwxrwxrwx 1 root root 118 2010-08-27 21:54 default....
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 dev
-rwxrwxrwx 1 root root 107440 2010-08-27 21:54 init
-rwxrwxrwx 1 root root 1677 2010-08-27 20:53 init.gol...
-rwxrwxrwx 1 root root 197 2010-08-24 20:58 init.oma...
-rwxrwxrwx 1 root root 13605 2010-08-24 20:58 init.rc
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 proc
drwxrwxrwx 2 root root 4096 2010-08-27 21:54 sbin
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 sys
drwxrwxrwx 11 root root 4096 2010-08-30 11:34 system
* Kernel build [#g973eb02]
** Configuring environment variable [#p159c559]
>
'''x-loader''', '''u-boot''', and '''kernel''' are requir...
with the~
source code of android. '''toolchain''' used here is loca...
The environment variable is needs to set for the cross co...
$ export PATH=/home/beat/bc10/prebuilt/linux-x86/toolcha...
$ export ARCH=arm
$ export CROSS_COMPILE=arm-eabi-
** kernel [#n70ef041]
>
$ cd ~
$ git clone git://gitorious.org/~bc-dev/rowboat/bc10-row...
$ cd bc10-rowboat-kernel/
Shift to the release branch for bc10.
$ git checkout -t -b bc10-2.6.32 origin/bc10-2.6.32
$ make omap3_bc10_defconfig
$ make uImage
$ make modules
After build is completed, '''uImage''' is created at the ...
$ ls ~/bc10-rowboat-kernel/arch/arm/boot/
Image Makefile bootp compressed install.sh uImage ...
* Building USB Wifi (RT3070USB) driver [#w229d145]
>
To work with USB Wifi devices, a Wifi driver, '''RT3070US...
the devices are working appropriately.~
COLOR(red){Some devices are still underdevelopment, pleas...
Maker Serial Number Device ID Memo
PLANEX GW-USMicroN-G 2019:ED14
Logitec LAN-W150N/U2IPH 0789:0164
Logitec LAN-W150N/U2BK 0789:0168
Buffalo WLI-UC-GNM 0411:01a2
Buffalo WLI-UC-G301N 0411:016f  The perfor...
Buffalo WLI-UC-GN 0411:015d
In this section, the explanation is specifically targeted...
>
The driver, '''2010_0831_RT3070_Linix_STA_v2.4.01_DPO.bz2...
a Linux driver. Also, a firmware, '''RT28xx/RT30xx''' USB...
the source code and/or firmware, input user name and emai...
files are placed at the directory of '''/home/beat/'''. ...
and located at the directory of '''prebuilt/linux-x86/t...
does not produce any debug logs since a part of '''config...
'''WLAGS += -DCONFIG_STA_SUPPORT'''. As debug logs are no...
>
To produce debug logs, set up the part of '''config.mk'''...
the source file and place the file again. During the red...
and these logs make to harder to work on this process.~
>
To apply the patch, '''RT3070USB.diff''', this becomes ca...
The contents of the patch are:~
- Add the compile configuration for bc10 (platform, PATH ...
- Set up the region of firmware to Japan, and change the ...
- Add USB Wifi vender ID and product ID.
>
#ref(2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.bz2);
>
#ref(RT3070USB.diff);
>
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/Makefil...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/Makefile ...
@@ -15,7 +15,8 @@ endif
RTMP_SRC_DIR = $(RT28xx_DIR)/RT$(CHIPSET)
#PLATFORM: Target platform
-PLATFORM = PC
+#PLATFORM = PC
+PLATFORM = BC10
#PLATFORM = 5VT
#PLATFORM = IKANOS_V160
#PLATFORM = IKANOS_V180
@@ -147,6 +148,11 @@ LINUX_SRC_MODULE = /lib/modules/$(s...
CROSS_COMPILE =
endif
+ifeq ($(PLATFORM),BC10)
+LINUX_SRC = /home/beat/prebuilt-20101227/bc10-rowboat-k...
+CROSS_COMPILE = /home/beat/prebuilt-20101227/bc10/prebu...
+endif
+
ifeq ($(PLATFORM),IXP)
LINUX_SRC = /project/stable/Gmtek/snapgear-uclibc/linux...
CROSS_COMPILE = arm-linux-
@@ -347,6 +353,9 @@ ifeq ($(OSABL),YES)
cp -f $(RT28xx_DIR)/os/linux/rtnet$(CHIPSET)apst...
endif
else
+ifeq ($(PLATFORM),BC10)
+ $(MAKE) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) ...
+else
cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko ...
ifeq ($(OSABL),YES)
cp -f $(RT28xx_DIR)/os/linux/rtutil$(CHIPSET)sta...
@@ -355,7 +364,7 @@ endif
endif
endif
endif
-
+endif
release:
ifeq ($(TARGET), LINUX)
@@ -388,6 +397,9 @@ endif
$(MAKE) -C os/linux clean
rm -rf os/linux/Makefile
endif
+ifneq ($(TARGET),THREADX)
+ $(MAKE) -C tools clean
+endif
ifeq ($(TARGET), UCOS)
$(MAKE) -C os/ucos clean MODE=$(RT28xx_MODE)
endif
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
ux_STA_v2.4.0.1_DPO/RT2870STA.dat
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/RT2870S...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/RT2870STA.da...
@@ -1,10 +1,12 @@
#The word of "Default" must not be removed
Default
CountryRegion=5
-CountryRegionABand=7
-CountryCode=
+#CountryRegionABand=7
+#CountryCode=
+CountryRegionABand=1
+CountryCode=JP
ChannelGeography=1
-SSID=11n-AP
+SSID=ssidname
NetworkType=Infra
WirelessMode=5
Channel=0
@@ -18,9 +20,9 @@ TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
-AuthMode=OPEN
-EncrypType=NONE
-WPAPSK=
+AuthMode=authtype
+EncrypType=encrptype
+WPAPSK=passname
DefaultKeyID=1
Key1Type=0
Key1Str=
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/common/...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/common/rtusb...
@@ -107,8 +107,14 @@ USB_DEVICE_ID rtusb_dev_id[] = {
{USB_DEVICE(0x13D3,0x3321)}, /* Azurewave */
{USB_DEVICE(0x07FA,0x7712)}, /* Edimax */
{USB_DEVICE(0x0789,0x0166)}, /* Edimax */
- {USB_DEVICE(0x0DB0,0x822B)}, /* MSI 3070*/^M
- {USB_DEVICE(0x0DB0,0x871B)}, /* MSI 3070*/
+ {USB_DEVICE(0x0DB0,0x822B)}, /* MSI 3070*/
+ {USB_DEVICE(0x2019,0xED14)}, /* PLANEX*/
+ {USB_DEVICE(0x2019,0xAB29)}, /* PLANEX*/
+ {USB_DEVICE(0x0789,0x0164)}, /* Logitec*/
+ {USB_DEVICE(0x0789,0x0168)}, /* Logitec*/
+ {USB_DEVICE(0x0411,0x01a2)}, /* Buffalo*/
+ {USB_DEVICE(0x0411,0x016f)}, /* Buffalo*/
+ {USB_DEVICE(0x0411,0x015d)}, /* Buffalo*/
#endif // RT3070 //
#ifdef RT3370
{USB_DEVICE(0x148F,0x3370)}, /* Ralink 3370 */
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/os/linu...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/os/linux/con...
@@ -26,7 +26,7 @@ HAS_WDS=n
HAS_APCLI=n
# Support Wpa_Supplicant
-HAS_WPA_SUPPLICANT=n
+HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
@@ -149,6 +149,7 @@ endif
ifeq ($(RT28xx_MODE),STA)
-WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
+#WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
+WFLAGS += -DCONFIG_STA_SUPPORT
ifeq ($(HAS_XLINK),y)
WFLAGS += -DXLINK_SUPPORT
@@ -545,6 +546,10 @@ ifeq ($(PLATFORM),PC)
endif
endif
+ifeq ($(PLATFORM),BC10)
+EXTRA_CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include -DMOD...
+endif
+
#If the kernel version of RMI is newer than 2.6.27, ple...
ifeq ($(PLATFORM),RMI)
EXTRA_CFLAGS := -D__KERNEL__ -DMODULE=1 -I$(LINUX_SRC)/...
-I$(RT28xx_DIR)/include -Wall -Wstrict-...
-DCONFIG_IFX_ALG_QOS -DCONFIG_WAN_VLAN_...
-mno-abicalls -mlong-calls -pipe -finli...
-march=xlr -ffreestanding-march=xlr -Wa...
(From "EXTRA_CFLAGS := -D__KERNEL__ -DMODULE=1" to "$(WF...
>
As it is shown below, the archive is extracted, apply the...
created under the directory of '''OS/linux'''.~
$ cd ~
$ tar xvfj 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.bz2
$ patch -p0 < RT3070USB.diff
$ cd 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/
$ make
$ ls -l os/linux/rt3370sta.ko
-rw-r--r-- 1 beat beat 10746686 2011-01-05 12:42 os/linu...
** About placing USB Wifi (RT3070USB) driver [#p0e65fb8]
>
- rt3370sta.ko~
Create the directory '''modules/''' under the directoy of...
located at android userland. '''rt3370sta.ko''' a driver...
directory of '''modules/'''.~
>
- RT2870STA.dat~
The wifi configuration '''RT2870STA.dat''' contains SSID,...
configuration file is put down the directory of '''bc10/o...
>
- rt2870.bin~
Creating a directory '''firmware/''' under the directory ...
a firmware and '''LICENSE.ralink-firmware.txt''' are plac...
>
To comply with '''mkbc10-image.sh''', hereafter file's ow...
$ sudo mkdir ~/bc10/out/target/product/bc10/bc10-image/s...
$ sudo mkdir -p ~/bc10/out/target/product/bc10/bc10-imag...
$ sudo cp -afr os/linux/rt3370sta.ko ~/bc10/out/target/p...
$ sudo cp -afr RT2870STA.dat ~/bc10/out/target/product/b...
$ cd ~
$ unzip RT2870_Firmware_V22.zip
$ cd RT2870_Firmware_V22/
$ sudo mkdir ~/bc10/out/target/product/bc10/bc10-image/s...
$ sudo cp -afr * ~/bc10/out/target/product/bc10/bc10-ima...
$ sudo chown -R root.root ~/bc10/out/target/product/bc10...
$ sudo chmod -R 777 ~/bc10/out/target/product/bc10/bc10-...
* Building SGX SDK [#bdf55799]
>
Obtain TI Android SGX SDK as employing the same method as...
~
(Caution):~
- It may take long time to download the SDK.~
- If you have already installed '''OMAP35x_Android_Graphi...
Make sure that the SDK is moved to the directory of '''Ru...
original SDK as you wish.~
- As whole kernel and/or Android userland are replaced, t...
>
$ cd ~
$ git clone git://gitorious.org/rowboat/ti_android_sgx_s...
$ cd ti_android_sgx_sdk/
$ ./OMAP35x_Android_Graphics_SDK_setuplinux_3_01_00_03.bin
As working with the command line above, the location of i...
'''${HOME}/OMAP35x_Android_Graphics_SDK_3_01_00_03'''. ''...
>
[[To download TI's Android SGX SDK>http://code.google.com...
** Changing Rules.make [#m0dd0ceb]
>
Adjust HOME, GRAPHICS_INSTALL_DIR, ANDROID_ROOT, CSTOOL_D...
file PATH.~
~
(Caution):~
The '''Rules.make''' shown below is created according to ...
ANDROID_ROOT should be matched to the location of directo...
>
$ CD ~/OMAP35X_ABDROID_Graphics_SDK_3.01_00_03
>
--- Rules.make 2011-01-05 14:20:43.863788943 +0900
+++ Rules.make-orig 2011-01-05 14:17:04.661291128 +0...
@@ -4,24 +4,20 @@ PLATFORM=LinuxOMAP3
################# FIELDS MODIFIABLE BY THE USER #######...
#set home area HOME (relative location for all SDK oper...
-#HOME=INVALIDVAL
-HOME=/home/beat/prebuilt-20101227
+HOME=INVALIDVAL
#Current Directory where Graphics SDK is installed
GRAPHICS_INSTALL_DIR=$(HOME)/OMAP35x_Android_Graphics_S...
#Android Specific
#Path of Android Root FS
-#ANDROID_ROOT=$(HOME)/INVALIDVAL
-ANDROID_ROOT=$(HOME)/bc10/out/target/product/bc10/bc10-...
+ANDROID_ROOT=$(HOME)/INVALIDVAL
#set toolchain root path for arm-eabi
-#CSTOOL_DIR=INVALIDVAL
-CSTOOL_DIR=$(HOME)/bc10/prebuilt/linux-x86/toolchain/ar...
+CSTOOL_DIR=INVALIDVAL
CSTOOL_PREFIX=arm-eabi-
CSTOOL_PATH=$(CSTOOL_DIR)/bin
CSTOOL_LIBSTDC++_PATH=$(CSTOOL_DIR)/arm-none-linux-gnue...
#set the kernel installation path
-#KERNEL_INSTALL_DIR=$(HOME)/INVALIDVAL
-KERNEL_INSTALL_DIR=$(HOME)/bc10-rowboat-kernel
+KERNEL_INSTALL_DIR=$(HOME)/INVALIDVAL
TARGETFS_INSTALL_DIR=$(ANDROID_ROOT)
GFX_TARGETFS_KERMOD_PATH=$(TARGETFS_INSTALL_DIR)/lib/mo...
>
After the modifications of '''RULE.make''' is completed, ...
$ make
$ make OMAP-3.x install
** u-boot [#s987acc8]
>
As '''u-boot-bc10''' is updated, boot.scr , which makes A...
the update is completed, the duration of waiting period a...
$ cd ~
$ git clone git://gitorious.org/bc10/u-boot-bc10.git u-b...
$ cd u-boot-bc10
$ make mrproper
$ make omap3_bc10_config
$ make
The display configuration, which treats AMOLED as its def...
This directory is located inside '''u-boot-bc10'''. Its d...
u-boot-bc10/include/configs$ vi omap3_bc10.h
#define CONFIG_EXTRA_ENV_SETTINGS \
"loadaddr=0x82000000\0" \
"usbtty=cdc_acm\0" \
"console=ttyS2,115200n8\0" \
"androidconsole=ttyS2\0" \
"mem=256M\0" \
"vram=12M\0" \
"dvimode=1024x768MR-24@60\0" \
"defaultdisplay=lcd\0" \
"mmcroot=/dev/mmcblk0p2 rw\0" \
"mmcrootfstype=ext3 rootwait\0" \
"nandroot=/dev/mtdblock4 rw\0" \
Shown below, the contents are the same as ones of '''boot...
>
if fatload mmc 0 84000000 uImage
then
echo ***** Kernel: /dev/mmcblk0p1/uImage.bin *****
fi
echo ***** RootFS: /dev/mmcblk0p2 *****
setenv bootargs 'mem=256M androidboot.console=ttyS2 cons...
console=ttyS2,115200n8 root=/dev/mmcblk0p2 init=/init ro...
bootm 84000000
(Caustion)From "setenv bootargs2 to "disp=lcd", this is ...
please write in one line.
>
After the build process is completed, u-boot.bin is copie...
To create SD card image, please look at the section of cr...
** x-loader [#rf50b2ac]
>
$ cd ~
$ git clone git://gitorious.org/~bc-dev/x-load-omap3/x-l...
$ cd x-load-bc10
$ git checkout -t -b bc10 origin/bc10
$ make omap3530bc10_config
$ make
The specifications and format of '''x-load.bin''' do not ...
without modification, it does not work as a boot loader. ...
'''signGP''' can be downloaded from the address shown bel...
http://beagleboard.googlecode.com/files/signGP~
After the download is finished, execute '''sigGP''' is ex...
$ ./signGP x-load.bin
'''x-load.bin.ift''', which is created after build is com...
of FAT partition of the SD card. The information of how t...
>
The prebuilt image is compressed files that we have built...
* Order of placing prebuilt image [#e83f5540]
* prebuilt-image [#qc29f941]
>
The rebuilt image can be created as following instruction...
by downloading the prebuilt image from [[here]].~
The obtained file (created or downloaded) is placed at th...
Extract '''bc10-boot-sd-image—release20110107.tar.g...
FAT.tar.gz
EXT3.tar.gz
There are two archives in the file. As their names are in...
the targeted SD card, respectively.~
The instructions of writing into these archives are descr...
* Creating SD card image [#w2edef8d]
>
The creation of bootable SD card is following the instruc...
This instructions are strictly for SD card. bc10 cannot b...
described below.~
- FAT32 partition
-- X-Loader
-- U-Boot
-- Linux kernel
~
- Linux partition
-- Linux root file system
>
This working environment is expected to employ a Linux en...
The working instruction is listed below.
+ Initialization and configuration of partitions.
+ Format file system
+ Placement of files
>
The instructions are mainly from [[LinuxBootFormat (code....
** Unmounting SD card [#hd89755f]
>
To start working on partition and formatting, unmount the...
$ df -h
>
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdc1 400M 94M 307M 24% /media/disk
...
>
unmount the SD card.
$ unmount /media/disk
** Initializing and configuring partitions [#k889b474]
>
Execute '''fdisk'''command. Its parameter is the device f...
working environment and the location of the SD card. Plea...
$ sudo fdisk /dev/sdc
>
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 246 1974240+ c ...
Partition 1 has different physical/logical endings:
phys=(244, 254, 63) logical=(245, 200, 19)
Remove all partitions
Command (m for help): [d]
Select partition 1
Shift into Expert Mode.
Command (m for help): [x]
Set the number of heads to 255.
Expert Command (m for help): [h]
Number of heads (1-256, default xxx): [255]
Set the number of sectors to 63.
Expert Command (m for help): [s]
Number of sectors (1-63, default xxx): [63]
The number of cylinders is differ, and it depends on SD c...
truncated, do not be rounded.
#cylinders = FLOOR (the number of Bytes on the SD Card (...
The number of cylinders for the SD card used here is calc...
2021654528 / 255 / 63 / 512 = 245.79
-> 245
Set the number of cylinders. For this example, the number...
Expert Command (m for help): [c]
Number of cyliner (1-256, default xxx): [the number obta...
Return to Normal Mode.
Expert Command (m for help): [r]
Create FAT32 partition in the SD Card.
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [1]
First cylinder (1-245, default 1): [(press Enter)]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-245, defau...
Command (m for help): [t]
Selected partition 1
Hex code (type L to list codes): [c]
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Configure boot flag in the first partition, and male it b...
Command (m for help): [a]
Partition number (1-4): [1]
Create the partition for Linux file system.
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [2]
First cylinder (52-245, default 52): [(press Enter)]
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-245, defa...
Using default value 245
Check the setting of the partitions.
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 51 409626 c ...
/dev/sdc2 52 245 1558305 83 ...
Save the changes in the partition table.
Command (m for help): [w]
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with erro...
The kernel still uses the old table.
The new table will be used at the next reboot.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additio...
information.
Syncing disks.
** Formatting filesystem [#scd36b6a]
>
Format the FAT32 partition and the Linux partition, indiv...
the labels of the partitions, respectively. You can repla...
your preference.~
>
This is for FAT32 partition. At the end of the first line...
whatever you like.~
$ [sudo mkfs.msdos -F 32 /dev/sdc1 -n FAT32]
mkfs.msdos 2.11 (12 Mar 2005)
This is for Linux partition. At the first command line, ?...
name. It can be replaced with own partition name.~
$ [sudo mkfs.ext3 -L EXT3 /dev/sdc2]
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
195072 inodes, 389576 blocks
19478 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=402653184
12 block groups
32768 blocks per group, 32768 fragments per group
16256 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting informatio...
* Placing prebuilt-image file [#b0db7701]
** Putting MLO into FAT32 partition [#cad51876]
>
To place the file in FAT32 partition, there are some rest...
extracted at the working environment.~
$ [tar xvfz FAT.tar.gz]
The extracted archive contains a file.
$ ls FAT.tar.gz
MLO u-boot.bin uImage
Since X-Loader (MLO) is the first boot loader, there are ...
instructions, carefully.
- After formatting FAT32 directory, '''MLO''' is placed f...
- MLO is put at the top directory in the partition.
$ [cp MLO /media/FAT32/]
There are no specific rules for how to put other files. C...
$ [cp u-boot.bin boot. Scr uImage/media/FAT32]
If you have made mistakes and/or done it in wrong order, ...
** Placing files into EXT3 partition [#fe82832d]
>
There are no specific restriction for placing the created...
$ [sudo tar xvfz ext3.tar.gz -C /media/EXT3]
>
This is the end of transferring the prebuild image onto t...
To do '''sync''' for saving all changes, then unmount the...
$ [sudo sync]
$ [unmount /media/EXT3]
$ [unmount/ media/FAT32]
* Booting from SD card [#u8c57111]
>
To insert the prepared SD card into the SD card slot of b...
setting up '''SQLite''' and '''Dalvik EXecutable.dat''' i...
Thus, the first time booting takes a lttle longer than u...
* Supplements [#nfa041cc]
** Key assignment [#u338fdb6]
>
There are seven buttons on the right hand side of bc10 (s...
As Picture a is indicated, each button has been pre-assig...
each key is also altered.~
(In the picture, the enclosure of bc10 is a prototype.)~
1. Menu
2. Back
3. Home
4. Up
5. Left
6. Right
7. Down
#ref(keypad_android.jpg);
** About Android SGX [#x0dc9700]
>
As explaining at the last line of '''init.rc''', SGX fu...
the lines of commands. As kernel and/or userland are upda...
to be rebuild.~
$ vi init.rc
>
# Start PowerVR SGX DDK
service pvr /system/bin/sgx/rc.pvr start
** Order of configuring bc10 Wifi [#h0e17c7a]
>
As Android is not capable of control on/off function of w...
the working status of wifi functionality. This wifi confi...
'''RT3070USB''' driver.~
Maker Parts Number Device ID
PLANEX GW-USMicroN-G 2019:ED14
Logitec LAN-W150N/U2IPH 0789:0164
Logitec LAN-W150N/U2BK 0789:0168
Buffalo WLI-UC-GNM 0411:01a2
Buffalo WLI-UC-GN 0411:015d
Buffalo WLI-UC-G301N 0411:016f  &...
>
One of the '''RT3070USB''' devices shown in the table abo...
the serial console displays such outputs as shown below.~
(This is an example of connecting WLI-UC-GN)~
...
usb 1-2.4: new high speed USB device using ehci-omap and...
usb 1-2.4: New USB device found, idVendor=0411, idProduc...
usb 1-2.4: New USB device strings: Mfr=1, Product=2, Ser...
usb 1-2.4: Product: 802.11 n WLAN
usb 1-2.4: Manufacturer: Ralink
usb 1-2.4: SerialNumber: 1.0
...
>
After booting is completed, execute '''insmod''' on the '...
'''up dhcp'''. '''RT2870STA.dat''' is used for connecting...
outputs, which are displayed in the serial console, are r...
(The some parts of logs are not shown. '''RT2870STA.dat''...
# cd /system/lib/modules
# ls
RT2870STA.dat rt3370sta.ko
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
# insmod rt3070sta.ko
...
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 DOWN 0.0.0.0 0.0.0.0 0x00001002
# netcfg ra0 up
...
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 UP 0.0.0.0 0.0.0.0 0x00001043
# netcfg ra0 dhcp
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 UP 192.168.13.4 255.255.255.0 0x00001043
#
>
'''RT2870STA.dat''' in the prebuilt image is configured i...
working environment, please set up '''RT2870STA.dat''' fo...
>
An an example of connection configuration, the example be...
authentication method (AuthMode OPEN)
encryption scheme (EncryType WEP)
typeface of encryption key (Key1Type1 (scsii))
and encryption key (Key1Str xxx.testessid).
~
For the farther explanations, please look at '''2010_0831...
>
- RT2870STA.dat
...
SSID=ssidname
NetworkType=Infra
WirelessMode=5
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
AuthMode=authmodetype
EncrypType=encyptype
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
...
- An example of the connection set up
SSID=XXX-BC
...
AuthMode=OPEN
EncrypType=WEP
WPAPSK=
DefaultKeyID=1
Key1Type=1
Key1Str=xxx.testessid
Key2Type=0
** About USB Wifi (RT3070USB) driver [#cb2f2ec6]
>
The prebuilt image is built with '''+= -DCONFIG_STA_SUPPO...
are~
not obtainable. The original file is put under the direct...
'''WFLAGS += -DCONFIG_STA_SPPORT -DDBG'''~
and produces more than adequate amounts of debug logs. Si...
$ vi os/linux/config.mk
# config for STA mode
ifeq ($(RT28xx_MODE),STA)
WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
Also, a debugged and printed version of '''rt3370sta.ko''...
the file, and replace the original, which is located at t...
the same as new one.~
>
[[http://sourceforge.jp/projects/bc10-dev/releases/50494/]]
>
The log shown below is a real log, which is displayed on ...
and '''insmod rt3370sta.ko''' is executed.~
- This is a log of WFLAGS += - DCONFIG_STA_SUPPOT -DDBG
# insmod rt3370sta.ko
rtusb init --->
===>rt2870_probe()!
--> RTMPAllocAdapterBlock
=== pAd = d284d000, size = 503240 ===
<-- RTMPAllocAdapterBlock, Status=0
NumEndpoints=7
BULK IN MaxPacketSize = 512
EP address = 0x81
BULK OUT MaxPacketSize = 512
EP address = 0x 1
BULK OUT MaxPacketSize = 512
EP address = 0x 2
BULK OUT MaxPacketSize = 512
EP address = 0x 3
BULK OUT MaxPacketSize = 512
EP address = 0x 4
BULK OUT MaxPacketSize = 512
EP address = 0x 5
BULK OUT MaxPacketSize = 512
EP address = 0x 6
STA Driver version-2.4.0.1
NVM is EEPROM
Allocate a net device with private data size=0!
Allocate net device ops success!
The name of the new ra interface is ra0...
RtmpOSNetDevAttach()--->
<---RtmpOSNetDevAttach(), ret=0
<===rt2870_probe()!
usbcore: registered new interface driver rt2870
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 DOWN 0.0.0.0 0.0.0.0 0x00001002
>
-WFLAGS += -DCONFIG_STA_SUPPORT
# insmod rt3370sta.ko
rtusb init --->
usbcore: registered new interface driver rt2870
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 DOWN 0.0.0.0 0.0.0.0 0x00001002
** About boot.scr [#dbeb59a5]
>
Due to update '''u-boot-bc10''', the initial value, whic...
'''include/configs/omap3_bc10h'''. Therefore '''boot.scr'...
>
To copy the contents of the original '''boot.scr''' to th...
'''u-boot.bin''' is written over on the configuration of ...
which makes AMOLED the default value for display device.~
$ cd ~
$ vi boot.script
if fatload mmc 0 84000000 uImage
then
echo ***** Kernel: /dev/mmcblk0p1/uImage.bin *****
fi
echo ***** RootFS: /dev/mmcblk0p2 *****
setenv bootargs 'mem=256M androidboot.console=ttyS2 cons...
console=ttyS2,115200n8 root=/dev/mmcblk0p2 init=/init ro...
bootm 84000000
(Caution) From setenv bootargs to disp=lcd', these are s...
>
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n...
>
If DVI is selected for the initial value of display devic...
in boot.scr.~
The details of '''omapfb.mode''' and '''mapdss''' are lis...
* Reference [#l51a8797]
>
- rowboat ConfigureAndBuild~
--[[http://code.google.com/p/rowboat/wiki/ConfigureAndBui...
- [Armadillo:06309] Re: Wifi LAN adapter which is compati...
-- [[http://lists.atmark-techno.com/pipermail/armadillo/2...
* Revision History [#h1286db6]
>
2011/02/23 This article is initially uploaded.
End:
[[bc10]]
- Contents
#CONTENTS
* Outline for bc10/prebuilt-20110107 [#qdcd7aa4]
>
COLOR(red){bc10/prebuilt-20110107 is based upon AOSP andr...
~
This article provides the detail explanations of the boot...
prebuilt image is basically a modified and extended versi...
of this section shows how to build the bootable image, an...
card, placing the prebuilt image on a the SD card.~
>
- [[The instructions of how to create the prebuilt image]]~
This section provides the instructions of how to create a...
building method of '''prebuilt-20110107''', and the addit...
how to create the prebuilt image.~
- [[The instructions of how to place the prebuilt image]]~
This section shows that how to download the image of '''p...
and how to place the images into a SD card. This section ...
* Instructions of creating prebuilt image [#ce1abbc7]
* Developing environment [#kad9d6e0]
>
To create the development environment, these three items ...
- OS: Ubuntu 10.04 (32bit version)
-JAVA: java 1.5x
- Android Version: android-2.2_r1.1
** Installing packages [#hda29187]
>
Obtain the required packages from the repository of ubunt...
$ sudo apt-get install git-core gnupg flex bison gperf l...
libwxgtk2.6-dev build-essential zip curl libncurses5-d...
** java5 [#m66c007f]
>
Since Ubuntu 9.10 sun-java5-jdk, which is critical to bui...
An old repository is temporarily added to '''/etc/apt/sou...
$ sudo vi /etc/apt/sources.list
>
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid part...
deb http://archive.ubuntu.com/ubuntu lucid-security ma...
deb-src http://archive.ubuntu.com/ubuntu lucid-securit...
deb http://archive.ubuntu.com/ubuntu lucid-security un...
deb http://archive.ubuntu.com/ubuntu lucid-security mu...
+ deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiv...
+ deb http://us.archive.ubuntu.com/ubuntu/ jaunty-update...
After adding the old repository, acquire the information ...
'''sun-java5-jdk'''.~
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
After completing the installation, the added repository i...
$ sudo vi /etc/apt/sources.list
>
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid part...
deb http://archive.ubuntu.com/ubuntu lucid-security ma...
deb-src http://archive.ubuntu.com/ubuntu lucid-securit...
deb http://archive.ubuntu.com/ubuntu lucid-security un...
deb http://archive.ubuntu.com/ubuntu lucid-security mu...
- deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiv...
- deb http://us.archive.ubuntu.com/ubuntu/ jaunty-update...
Once again, applying '''apt-get update''', obtain the pre...
original present depository.~
$ sudo apt-get update
* Obtaining Android source file [#z0b21cb1]
** Setting up repo [#pf4dd7f9]
>
Configure '''repo''' for obtaining the source code of and...
$ cd ~
$ mkdir bin
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a + x ~/bin/repo
>
As using Ubuntu, once log-out and then log-in, PATH is go...
log-in, set the PATH to '''~/bin''' flowing directions sh...
$ export PATH=~/bin:$PATH
** Initializing repo [#cc4bddcf]
>
Create a directory called '''bc10''' for the source file,...
to the '''bc10''' directory.~
$ cd~
$ mkdir bc10
$ cd bc10
$ repo init -u git*//android.git.kernel.org/platform/man...
** Adding local_manifest.xml [#b956a09c]
>
The source code that can be downloaded with the '''androi...
library, modify the '''local_manifest.xml''' for adding A...
file obtainable. To obtain the files, create a '''local_...
it as shown below.~
>
The android-2.2_r1.1 specific ALSA related files have not...
for android-2.2_r1.1.~
$ vi .repo/local_manifest.xml
>
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="external/alsa-lib" name="platform/exter...
<project path="external/alsa-utils" name="platform/ext...
<project path="hardware/alsa_sound" name="platform/har...
</manifest>
** repo sync [#d6c91d14]
>
After adding '''local_manifest.xml, execute '''repo sync'...
$ repo sync
>
The total size of the files is from 2 to 4GB. Download ti...
* Applying the build configuration file of bc10 [#t2e4868d]
>
The patches and configuration files, which Optimize and b...
repository of github by the command of '''git clone'''. T...
'''patch_to_android-2.2_r1.1_for bc10/bc10-patch.sh'''.~
$ cd ~
$ git clone git://github.com/bc-dev/path_to_android-2.2_...
$ cd patch_to_amndroid-2.2_r1.1_for _bc10
There are no specific directory for the downloaded patche...
but before applying these patches and files, make sure th...
the PATHs of these files.~
$ vi bc10-patch.sh
>
### Settings
ANDROID_DIR=${HOME}/bc10
SETUP_DIR=${HOME}/patch_to_android-2.2_r1.1_for_b10
PATCH_DIR=${SETUP_DIR}/patches-for-bc10
After checking the PATHs of the files are equal to the th...
$ ./bc10-patch.sh
* Android build [#ga389d12]
>
Set up the environment for bc10
$ cd ~/bc10
$ source build/envsetup.sh
$ lunch bc10-eng
>
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2
TARGET_PRODUCT=bc10
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=FRF91
============================================
Check the configuration of environment. Then, execute '''...
$ make
** Crating image [#f5fad18f]
>
After build is completed, relocate the binary of '''userl...
'''userland'''.
$ cd ~/patch_to_android-2.2_r1.1_for_b10
$ ./mkbc10-image.sh
Execute commands above, '''bc10-image''' is created under...
this '''bc10-image''' '''android userland''' will be plac...
/home/beat/bc10/out/target/product/bc10
mkdir android for android-rfs
/home/beat/bc10/out/target/product/bc10
copy android-root
copy android-system
change permission and owner
[sudo] password for beat:
$ cd ~/bc10/out/target/product/bc10
$ ls -l
>
-rw-r--r-- 1 beat beat 7 2010-08-27 23:37 androi...
drwxrwxrwx 8 root root 4096 2010-08-30 11:34 bc10-i...
-rw-r--r-- 1 beat beat 8866 2010-08-27 21:16 clean_...
drwxr-xr-x 3 beat beat 4096 2010-08-27 21:54 data
-rw-r--r-- 1 beat beat 22869 2010-08-27 23:37 instal...
drwxr-xr-x 13 beat beat 4096 2010-08-27 23:28 obj
-rw-r--r-- 1 beat beat 189 2010-08-27 21:16 previo...
-rw-r--r-- 1 beat beat 163811 2010-08-27 23:37 ramdis...
drwxr-xr-x 8 beat beat 4096 2010-08-27 21:54 root
drwxr-xr-x 4 beat beat 4096 2010-08-27 21:54 symbols
drwxr-xr-x 11 beat beat 4096 2010-08-27 23:17 system
-rw------- 1 beat beat 78486144 2010-08-27 23:37 system...
-rw------- 1 beat beat 1522752 2010-08-27 23:37 userda...
>
$ cd bc10-image
$ ls -l
>
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 data
-rwxrwxrwx 1 root root 118 2010-08-27 21:54 default....
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 dev
-rwxrwxrwx 1 root root 107440 2010-08-27 21:54 init
-rwxrwxrwx 1 root root 1677 2010-08-27 20:53 init.gol...
-rwxrwxrwx 1 root root 197 2010-08-24 20:58 init.oma...
-rwxrwxrwx 1 root root 13605 2010-08-24 20:58 init.rc
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 proc
drwxrwxrwx 2 root root 4096 2010-08-27 21:54 sbin
drwxrwxrwx 2 root root 4096 2010-08-27 21:26 sys
drwxrwxrwx 11 root root 4096 2010-08-30 11:34 system
* Kernel build [#g973eb02]
** Configuring environment variable [#p159c559]
>
'''x-loader''', '''u-boot''', and '''kernel''' are requir...
with the~
source code of android. '''toolchain''' used here is loca...
The environment variable is needs to set for the cross co...
$ export PATH=/home/beat/bc10/prebuilt/linux-x86/toolcha...
$ export ARCH=arm
$ export CROSS_COMPILE=arm-eabi-
** kernel [#n70ef041]
>
$ cd ~
$ git clone git://gitorious.org/~bc-dev/rowboat/bc10-row...
$ cd bc10-rowboat-kernel/
Shift to the release branch for bc10.
$ git checkout -t -b bc10-2.6.32 origin/bc10-2.6.32
$ make omap3_bc10_defconfig
$ make uImage
$ make modules
After build is completed, '''uImage''' is created at the ...
$ ls ~/bc10-rowboat-kernel/arch/arm/boot/
Image Makefile bootp compressed install.sh uImage ...
* Building USB Wifi (RT3070USB) driver [#w229d145]
>
To work with USB Wifi devices, a Wifi driver, '''RT3070US...
the devices are working appropriately.~
COLOR(red){Some devices are still underdevelopment, pleas...
Maker Serial Number Device ID Memo
PLANEX GW-USMicroN-G 2019:ED14
Logitec LAN-W150N/U2IPH 0789:0164
Logitec LAN-W150N/U2BK 0789:0168
Buffalo WLI-UC-GNM 0411:01a2
Buffalo WLI-UC-G301N 0411:016f  The perfor...
Buffalo WLI-UC-GN 0411:015d
In this section, the explanation is specifically targeted...
>
The driver, '''2010_0831_RT3070_Linix_STA_v2.4.01_DPO.bz2...
a Linux driver. Also, a firmware, '''RT28xx/RT30xx''' USB...
the source code and/or firmware, input user name and emai...
files are placed at the directory of '''/home/beat/'''. ...
and located at the directory of '''prebuilt/linux-x86/t...
does not produce any debug logs since a part of '''config...
'''WLAGS += -DCONFIG_STA_SUPPORT'''. As debug logs are no...
>
To produce debug logs, set up the part of '''config.mk'''...
the source file and place the file again. During the red...
and these logs make to harder to work on this process.~
>
To apply the patch, '''RT3070USB.diff''', this becomes ca...
The contents of the patch are:~
- Add the compile configuration for bc10 (platform, PATH ...
- Set up the region of firmware to Japan, and change the ...
- Add USB Wifi vender ID and product ID.
>
#ref(2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.bz2);
>
#ref(RT3070USB.diff);
>
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/Makefil...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/Makefile ...
@@ -15,7 +15,8 @@ endif
RTMP_SRC_DIR = $(RT28xx_DIR)/RT$(CHIPSET)
#PLATFORM: Target platform
-PLATFORM = PC
+#PLATFORM = PC
+PLATFORM = BC10
#PLATFORM = 5VT
#PLATFORM = IKANOS_V160
#PLATFORM = IKANOS_V180
@@ -147,6 +148,11 @@ LINUX_SRC_MODULE = /lib/modules/$(s...
CROSS_COMPILE =
endif
+ifeq ($(PLATFORM),BC10)
+LINUX_SRC = /home/beat/prebuilt-20101227/bc10-rowboat-k...
+CROSS_COMPILE = /home/beat/prebuilt-20101227/bc10/prebu...
+endif
+
ifeq ($(PLATFORM),IXP)
LINUX_SRC = /project/stable/Gmtek/snapgear-uclibc/linux...
CROSS_COMPILE = arm-linux-
@@ -347,6 +353,9 @@ ifeq ($(OSABL),YES)
cp -f $(RT28xx_DIR)/os/linux/rtnet$(CHIPSET)apst...
endif
else
+ifeq ($(PLATFORM),BC10)
+ $(MAKE) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) ...
+else
cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko ...
ifeq ($(OSABL),YES)
cp -f $(RT28xx_DIR)/os/linux/rtutil$(CHIPSET)sta...
@@ -355,7 +364,7 @@ endif
endif
endif
endif
-
+endif
release:
ifeq ($(TARGET), LINUX)
@@ -388,6 +397,9 @@ endif
$(MAKE) -C os/linux clean
rm -rf os/linux/Makefile
endif
+ifneq ($(TARGET),THREADX)
+ $(MAKE) -C tools clean
+endif
ifeq ($(TARGET), UCOS)
$(MAKE) -C os/ucos clean MODE=$(RT28xx_MODE)
endif
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
ux_STA_v2.4.0.1_DPO/RT2870STA.dat
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/RT2870S...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/RT2870STA.da...
@@ -1,10 +1,12 @@
#The word of "Default" must not be removed
Default
CountryRegion=5
-CountryRegionABand=7
-CountryCode=
+#CountryRegionABand=7
+#CountryCode=
+CountryRegionABand=1
+CountryCode=JP
ChannelGeography=1
-SSID=11n-AP
+SSID=ssidname
NetworkType=Infra
WirelessMode=5
Channel=0
@@ -18,9 +20,9 @@ TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
-AuthMode=OPEN
-EncrypType=NONE
-WPAPSK=
+AuthMode=authtype
+EncrypType=encrptype
+WPAPSK=passname
DefaultKeyID=1
Key1Type=0
Key1Str=
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/common/...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/common/rtusb...
@@ -107,8 +107,14 @@ USB_DEVICE_ID rtusb_dev_id[] = {
{USB_DEVICE(0x13D3,0x3321)}, /* Azurewave */
{USB_DEVICE(0x07FA,0x7712)}, /* Edimax */
{USB_DEVICE(0x0789,0x0166)}, /* Edimax */
- {USB_DEVICE(0x0DB0,0x822B)}, /* MSI 3070*/^M
- {USB_DEVICE(0x0DB0,0x871B)}, /* MSI 3070*/
+ {USB_DEVICE(0x0DB0,0x822B)}, /* MSI 3070*/
+ {USB_DEVICE(0x2019,0xED14)}, /* PLANEX*/
+ {USB_DEVICE(0x2019,0xAB29)}, /* PLANEX*/
+ {USB_DEVICE(0x0789,0x0164)}, /* Logitec*/
+ {USB_DEVICE(0x0789,0x0168)}, /* Logitec*/
+ {USB_DEVICE(0x0411,0x01a2)}, /* Buffalo*/
+ {USB_DEVICE(0x0411,0x016f)}, /* Buffalo*/
+ {USB_DEVICE(0x0411,0x015d)}, /* Buffalo*/
#endif // RT3070 //
#ifdef RT3370
{USB_DEVICE(0x148F,0x3370)}, /* Ralink 3370 */
diff -urpN 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/...
--- 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO-orig/os/linu...
+++ 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/os/linux/con...
@@ -26,7 +26,7 @@ HAS_WDS=n
HAS_APCLI=n
# Support Wpa_Supplicant
-HAS_WPA_SUPPLICANT=n
+HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
@@ -149,6 +149,7 @@ endif
ifeq ($(RT28xx_MODE),STA)
-WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
+#WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
+WFLAGS += -DCONFIG_STA_SUPPORT
ifeq ($(HAS_XLINK),y)
WFLAGS += -DXLINK_SUPPORT
@@ -545,6 +546,10 @@ ifeq ($(PLATFORM),PC)
endif
endif
+ifeq ($(PLATFORM),BC10)
+EXTRA_CFLAGS := $(WFLAGS) -I$(RT28xx_DIR)/include -DMOD...
+endif
+
#If the kernel version of RMI is newer than 2.6.27, ple...
ifeq ($(PLATFORM),RMI)
EXTRA_CFLAGS := -D__KERNEL__ -DMODULE=1 -I$(LINUX_SRC)/...
-I$(RT28xx_DIR)/include -Wall -Wstrict-...
-DCONFIG_IFX_ALG_QOS -DCONFIG_WAN_VLAN_...
-mno-abicalls -mlong-calls -pipe -finli...
-march=xlr -ffreestanding-march=xlr -Wa...
(From "EXTRA_CFLAGS := -D__KERNEL__ -DMODULE=1" to "$(WF...
>
As it is shown below, the archive is extracted, apply the...
created under the directory of '''OS/linux'''.~
$ cd ~
$ tar xvfj 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.bz2
$ patch -p0 < RT3070USB.diff
$ cd 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO/
$ make
$ ls -l os/linux/rt3370sta.ko
-rw-r--r-- 1 beat beat 10746686 2011-01-05 12:42 os/linu...
** About placing USB Wifi (RT3070USB) driver [#p0e65fb8]
>
- rt3370sta.ko~
Create the directory '''modules/''' under the directoy of...
located at android userland. '''rt3370sta.ko''' a driver...
directory of '''modules/'''.~
>
- RT2870STA.dat~
The wifi configuration '''RT2870STA.dat''' contains SSID,...
configuration file is put down the directory of '''bc10/o...
>
- rt2870.bin~
Creating a directory '''firmware/''' under the directory ...
a firmware and '''LICENSE.ralink-firmware.txt''' are plac...
>
To comply with '''mkbc10-image.sh''', hereafter file's ow...
$ sudo mkdir ~/bc10/out/target/product/bc10/bc10-image/s...
$ sudo mkdir -p ~/bc10/out/target/product/bc10/bc10-imag...
$ sudo cp -afr os/linux/rt3370sta.ko ~/bc10/out/target/p...
$ sudo cp -afr RT2870STA.dat ~/bc10/out/target/product/b...
$ cd ~
$ unzip RT2870_Firmware_V22.zip
$ cd RT2870_Firmware_V22/
$ sudo mkdir ~/bc10/out/target/product/bc10/bc10-image/s...
$ sudo cp -afr * ~/bc10/out/target/product/bc10/bc10-ima...
$ sudo chown -R root.root ~/bc10/out/target/product/bc10...
$ sudo chmod -R 777 ~/bc10/out/target/product/bc10/bc10-...
* Building SGX SDK [#bdf55799]
>
Obtain TI Android SGX SDK as employing the same method as...
~
(Caution):~
- It may take long time to download the SDK.~
- If you have already installed '''OMAP35x_Android_Graphi...
Make sure that the SDK is moved to the directory of '''Ru...
original SDK as you wish.~
- As whole kernel and/or Android userland are replaced, t...
>
$ cd ~
$ git clone git://gitorious.org/rowboat/ti_android_sgx_s...
$ cd ti_android_sgx_sdk/
$ ./OMAP35x_Android_Graphics_SDK_setuplinux_3_01_00_03.bin
As working with the command line above, the location of i...
'''${HOME}/OMAP35x_Android_Graphics_SDK_3_01_00_03'''. ''...
>
[[To download TI's Android SGX SDK>http://code.google.com...
** Changing Rules.make [#m0dd0ceb]
>
Adjust HOME, GRAPHICS_INSTALL_DIR, ANDROID_ROOT, CSTOOL_D...
file PATH.~
~
(Caution):~
The '''Rules.make''' shown below is created according to ...
ANDROID_ROOT should be matched to the location of directo...
>
$ CD ~/OMAP35X_ABDROID_Graphics_SDK_3.01_00_03
>
--- Rules.make 2011-01-05 14:20:43.863788943 +0900
+++ Rules.make-orig 2011-01-05 14:17:04.661291128 +0...
@@ -4,24 +4,20 @@ PLATFORM=LinuxOMAP3
################# FIELDS MODIFIABLE BY THE USER #######...
#set home area HOME (relative location for all SDK oper...
-#HOME=INVALIDVAL
-HOME=/home/beat/prebuilt-20101227
+HOME=INVALIDVAL
#Current Directory where Graphics SDK is installed
GRAPHICS_INSTALL_DIR=$(HOME)/OMAP35x_Android_Graphics_S...
#Android Specific
#Path of Android Root FS
-#ANDROID_ROOT=$(HOME)/INVALIDVAL
-ANDROID_ROOT=$(HOME)/bc10/out/target/product/bc10/bc10-...
+ANDROID_ROOT=$(HOME)/INVALIDVAL
#set toolchain root path for arm-eabi
-#CSTOOL_DIR=INVALIDVAL
-CSTOOL_DIR=$(HOME)/bc10/prebuilt/linux-x86/toolchain/ar...
+CSTOOL_DIR=INVALIDVAL
CSTOOL_PREFIX=arm-eabi-
CSTOOL_PATH=$(CSTOOL_DIR)/bin
CSTOOL_LIBSTDC++_PATH=$(CSTOOL_DIR)/arm-none-linux-gnue...
#set the kernel installation path
-#KERNEL_INSTALL_DIR=$(HOME)/INVALIDVAL
-KERNEL_INSTALL_DIR=$(HOME)/bc10-rowboat-kernel
+KERNEL_INSTALL_DIR=$(HOME)/INVALIDVAL
TARGETFS_INSTALL_DIR=$(ANDROID_ROOT)
GFX_TARGETFS_KERMOD_PATH=$(TARGETFS_INSTALL_DIR)/lib/mo...
>
After the modifications of '''RULE.make''' is completed, ...
$ make
$ make OMAP-3.x install
** u-boot [#s987acc8]
>
As '''u-boot-bc10''' is updated, boot.scr , which makes A...
the update is completed, the duration of waiting period a...
$ cd ~
$ git clone git://gitorious.org/bc10/u-boot-bc10.git u-b...
$ cd u-boot-bc10
$ make mrproper
$ make omap3_bc10_config
$ make
The display configuration, which treats AMOLED as its def...
This directory is located inside '''u-boot-bc10'''. Its d...
u-boot-bc10/include/configs$ vi omap3_bc10.h
#define CONFIG_EXTRA_ENV_SETTINGS \
"loadaddr=0x82000000\0" \
"usbtty=cdc_acm\0" \
"console=ttyS2,115200n8\0" \
"androidconsole=ttyS2\0" \
"mem=256M\0" \
"vram=12M\0" \
"dvimode=1024x768MR-24@60\0" \
"defaultdisplay=lcd\0" \
"mmcroot=/dev/mmcblk0p2 rw\0" \
"mmcrootfstype=ext3 rootwait\0" \
"nandroot=/dev/mtdblock4 rw\0" \
Shown below, the contents are the same as ones of '''boot...
>
if fatload mmc 0 84000000 uImage
then
echo ***** Kernel: /dev/mmcblk0p1/uImage.bin *****
fi
echo ***** RootFS: /dev/mmcblk0p2 *****
setenv bootargs 'mem=256M androidboot.console=ttyS2 cons...
console=ttyS2,115200n8 root=/dev/mmcblk0p2 init=/init ro...
bootm 84000000
(Caustion)From "setenv bootargs2 to "disp=lcd", this is ...
please write in one line.
>
After the build process is completed, u-boot.bin is copie...
To create SD card image, please look at the section of cr...
** x-loader [#rf50b2ac]
>
$ cd ~
$ git clone git://gitorious.org/~bc-dev/x-load-omap3/x-l...
$ cd x-load-bc10
$ git checkout -t -b bc10 origin/bc10
$ make omap3530bc10_config
$ make
The specifications and format of '''x-load.bin''' do not ...
without modification, it does not work as a boot loader. ...
'''signGP''' can be downloaded from the address shown bel...
http://beagleboard.googlecode.com/files/signGP~
After the download is finished, execute '''sigGP''' is ex...
$ ./signGP x-load.bin
'''x-load.bin.ift''', which is created after build is com...
of FAT partition of the SD card. The information of how t...
>
The prebuilt image is compressed files that we have built...
* Order of placing prebuilt image [#e83f5540]
* prebuilt-image [#qc29f941]
>
The rebuilt image can be created as following instruction...
by downloading the prebuilt image from [[here]].~
The obtained file (created or downloaded) is placed at th...
Extract '''bc10-boot-sd-image—release20110107.tar.g...
FAT.tar.gz
EXT3.tar.gz
There are two archives in the file. As their names are in...
the targeted SD card, respectively.~
The instructions of writing into these archives are descr...
* Creating SD card image [#w2edef8d]
>
The creation of bootable SD card is following the instruc...
This instructions are strictly for SD card. bc10 cannot b...
described below.~
- FAT32 partition
-- X-Loader
-- U-Boot
-- Linux kernel
~
- Linux partition
-- Linux root file system
>
This working environment is expected to employ a Linux en...
The working instruction is listed below.
+ Initialization and configuration of partitions.
+ Format file system
+ Placement of files
>
The instructions are mainly from [[LinuxBootFormat (code....
** Unmounting SD card [#hd89755f]
>
To start working on partition and formatting, unmount the...
$ df -h
>
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdc1 400M 94M 307M 24% /media/disk
...
>
unmount the SD card.
$ unmount /media/disk
** Initializing and configuring partitions [#k889b474]
>
Execute '''fdisk'''command. Its parameter is the device f...
working environment and the location of the SD card. Plea...
$ sudo fdisk /dev/sdc
>
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 246 1974240+ c ...
Partition 1 has different physical/logical endings:
phys=(244, 254, 63) logical=(245, 200, 19)
Remove all partitions
Command (m for help): [d]
Select partition 1
Shift into Expert Mode.
Command (m for help): [x]
Set the number of heads to 255.
Expert Command (m for help): [h]
Number of heads (1-256, default xxx): [255]
Set the number of sectors to 63.
Expert Command (m for help): [s]
Number of sectors (1-63, default xxx): [63]
The number of cylinders is differ, and it depends on SD c...
truncated, do not be rounded.
#cylinders = FLOOR (the number of Bytes on the SD Card (...
The number of cylinders for the SD card used here is calc...
2021654528 / 255 / 63 / 512 = 245.79
-> 245
Set the number of cylinders. For this example, the number...
Expert Command (m for help): [c]
Number of cyliner (1-256, default xxx): [the number obta...
Return to Normal Mode.
Expert Command (m for help): [r]
Create FAT32 partition in the SD Card.
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [1]
First cylinder (1-245, default 1): [(press Enter)]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-245, defau...
Command (m for help): [t]
Selected partition 1
Hex code (type L to list codes): [c]
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Configure boot flag in the first partition, and male it b...
Command (m for help): [a]
Partition number (1-4): [1]
Create the partition for Linux file system.
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [2]
First cylinder (52-245, default 52): [(press Enter)]
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-245, defa...
Using default value 245
Check the setting of the partitions.
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 51 409626 c ...
/dev/sdc2 52 245 1558305 83 ...
Save the changes in the partition table.
Command (m for help): [w]
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with erro...
The kernel still uses the old table.
The new table will be used at the next reboot.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additio...
information.
Syncing disks.
** Formatting filesystem [#scd36b6a]
>
Format the FAT32 partition and the Linux partition, indiv...
the labels of the partitions, respectively. You can repla...
your preference.~
>
This is for FAT32 partition. At the end of the first line...
whatever you like.~
$ [sudo mkfs.msdos -F 32 /dev/sdc1 -n FAT32]
mkfs.msdos 2.11 (12 Mar 2005)
This is for Linux partition. At the first command line, ?...
name. It can be replaced with own partition name.~
$ [sudo mkfs.ext3 -L EXT3 /dev/sdc2]
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
195072 inodes, 389576 blocks
19478 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=402653184
12 block groups
32768 blocks per group, 32768 fragments per group
16256 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting informatio...
* Placing prebuilt-image file [#b0db7701]
** Putting MLO into FAT32 partition [#cad51876]
>
To place the file in FAT32 partition, there are some rest...
extracted at the working environment.~
$ [tar xvfz FAT.tar.gz]
The extracted archive contains a file.
$ ls FAT.tar.gz
MLO u-boot.bin uImage
Since X-Loader (MLO) is the first boot loader, there are ...
instructions, carefully.
- After formatting FAT32 directory, '''MLO''' is placed f...
- MLO is put at the top directory in the partition.
$ [cp MLO /media/FAT32/]
There are no specific rules for how to put other files. C...
$ [cp u-boot.bin boot. Scr uImage/media/FAT32]
If you have made mistakes and/or done it in wrong order, ...
** Placing files into EXT3 partition [#fe82832d]
>
There are no specific restriction for placing the created...
$ [sudo tar xvfz ext3.tar.gz -C /media/EXT3]
>
This is the end of transferring the prebuild image onto t...
To do '''sync''' for saving all changes, then unmount the...
$ [sudo sync]
$ [unmount /media/EXT3]
$ [unmount/ media/FAT32]
* Booting from SD card [#u8c57111]
>
To insert the prepared SD card into the SD card slot of b...
setting up '''SQLite''' and '''Dalvik EXecutable.dat''' i...
Thus, the first time booting takes a lttle longer than u...
* Supplements [#nfa041cc]
** Key assignment [#u338fdb6]
>
There are seven buttons on the right hand side of bc10 (s...
As Picture a is indicated, each button has been pre-assig...
each key is also altered.~
(In the picture, the enclosure of bc10 is a prototype.)~
1. Menu
2. Back
3. Home
4. Up
5. Left
6. Right
7. Down
#ref(keypad_android.jpg);
** About Android SGX [#x0dc9700]
>
As explaining at the last line of '''init.rc''', SGX fu...
the lines of commands. As kernel and/or userland are upda...
to be rebuild.~
$ vi init.rc
>
# Start PowerVR SGX DDK
service pvr /system/bin/sgx/rc.pvr start
** Order of configuring bc10 Wifi [#h0e17c7a]
>
As Android is not capable of control on/off function of w...
the working status of wifi functionality. This wifi confi...
'''RT3070USB''' driver.~
Maker Parts Number Device ID
PLANEX GW-USMicroN-G 2019:ED14
Logitec LAN-W150N/U2IPH 0789:0164
Logitec LAN-W150N/U2BK 0789:0168
Buffalo WLI-UC-GNM 0411:01a2
Buffalo WLI-UC-GN 0411:015d
Buffalo WLI-UC-G301N 0411:016f  &...
>
One of the '''RT3070USB''' devices shown in the table abo...
the serial console displays such outputs as shown below.~
(This is an example of connecting WLI-UC-GN)~
...
usb 1-2.4: new high speed USB device using ehci-omap and...
usb 1-2.4: New USB device found, idVendor=0411, idProduc...
usb 1-2.4: New USB device strings: Mfr=1, Product=2, Ser...
usb 1-2.4: Product: 802.11 n WLAN
usb 1-2.4: Manufacturer: Ralink
usb 1-2.4: SerialNumber: 1.0
...
>
After booting is completed, execute '''insmod''' on the '...
'''up dhcp'''. '''RT2870STA.dat''' is used for connecting...
outputs, which are displayed in the serial console, are r...
(The some parts of logs are not shown. '''RT2870STA.dat''...
# cd /system/lib/modules
# ls
RT2870STA.dat rt3370sta.ko
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
# insmod rt3070sta.ko
...
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 DOWN 0.0.0.0 0.0.0.0 0x00001002
# netcfg ra0 up
...
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 UP 0.0.0.0 0.0.0.0 0x00001043
# netcfg ra0 dhcp
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 UP 192.168.13.4 255.255.255.0 0x00001043
#
>
'''RT2870STA.dat''' in the prebuilt image is configured i...
working environment, please set up '''RT2870STA.dat''' fo...
>
An an example of connection configuration, the example be...
authentication method (AuthMode OPEN)
encryption scheme (EncryType WEP)
typeface of encryption key (Key1Type1 (scsii))
and encryption key (Key1Str xxx.testessid).
~
For the farther explanations, please look at '''2010_0831...
>
- RT2870STA.dat
...
SSID=ssidname
NetworkType=Infra
WirelessMode=5
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
AuthMode=authmodetype
EncrypType=encyptype
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
...
- An example of the connection set up
SSID=XXX-BC
...
AuthMode=OPEN
EncrypType=WEP
WPAPSK=
DefaultKeyID=1
Key1Type=1
Key1Str=xxx.testessid
Key2Type=0
** About USB Wifi (RT3070USB) driver [#cb2f2ec6]
>
The prebuilt image is built with '''+= -DCONFIG_STA_SUPPO...
are~
not obtainable. The original file is put under the direct...
'''WFLAGS += -DCONFIG_STA_SPPORT -DDBG'''~
and produces more than adequate amounts of debug logs. Si...
$ vi os/linux/config.mk
# config for STA mode
ifeq ($(RT28xx_MODE),STA)
WFLAGS += -DCONFIG_STA_SUPPORT -DDBG
Also, a debugged and printed version of '''rt3370sta.ko''...
the file, and replace the original, which is located at t...
the same as new one.~
>
[[http://sourceforge.jp/projects/bc10-dev/releases/50494/]]
>
The log shown below is a real log, which is displayed on ...
and '''insmod rt3370sta.ko''' is executed.~
- This is a log of WFLAGS += - DCONFIG_STA_SUPPOT -DDBG
# insmod rt3370sta.ko
rtusb init --->
===>rt2870_probe()!
--> RTMPAllocAdapterBlock
=== pAd = d284d000, size = 503240 ===
<-- RTMPAllocAdapterBlock, Status=0
NumEndpoints=7
BULK IN MaxPacketSize = 512
EP address = 0x81
BULK OUT MaxPacketSize = 512
EP address = 0x 1
BULK OUT MaxPacketSize = 512
EP address = 0x 2
BULK OUT MaxPacketSize = 512
EP address = 0x 3
BULK OUT MaxPacketSize = 512
EP address = 0x 4
BULK OUT MaxPacketSize = 512
EP address = 0x 5
BULK OUT MaxPacketSize = 512
EP address = 0x 6
STA Driver version-2.4.0.1
NVM is EEPROM
Allocate a net device with private data size=0!
Allocate net device ops success!
The name of the new ra interface is ra0...
RtmpOSNetDevAttach()--->
<---RtmpOSNetDevAttach(), ret=0
<===rt2870_probe()!
usbcore: registered new interface driver rt2870
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 DOWN 0.0.0.0 0.0.0.0 0x00001002
>
-WFLAGS += -DCONFIG_STA_SUPPORT
# insmod rt3370sta.ko
rtusb init --->
usbcore: registered new interface driver rt2870
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
ra0 DOWN 0.0.0.0 0.0.0.0 0x00001002
** About boot.scr [#dbeb59a5]
>
Due to update '''u-boot-bc10''', the initial value, whic...
'''include/configs/omap3_bc10h'''. Therefore '''boot.scr'...
>
To copy the contents of the original '''boot.scr''' to th...
'''u-boot.bin''' is written over on the configuration of ...
which makes AMOLED the default value for display device.~
$ cd ~
$ vi boot.script
if fatload mmc 0 84000000 uImage
then
echo ***** Kernel: /dev/mmcblk0p1/uImage.bin *****
fi
echo ***** RootFS: /dev/mmcblk0p2 *****
setenv bootargs 'mem=256M androidboot.console=ttyS2 cons...
console=ttyS2,115200n8 root=/dev/mmcblk0p2 init=/init ro...
bootm 84000000
(Caution) From setenv bootargs to disp=lcd', these are s...
>
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n...
>
If DVI is selected for the initial value of display devic...
in boot.scr.~
The details of '''omapfb.mode''' and '''mapdss''' are lis...
* Reference [#l51a8797]
>
- rowboat ConfigureAndBuild~
--[[http://code.google.com/p/rowboat/wiki/ConfigureAndBui...
- [Armadillo:06309] Re: Wifi LAN adapter which is compati...
-- [[http://lists.atmark-techno.com/pipermail/armadillo/2...
* Revision History [#h1286db6]
>
2011/02/23 This article is initially uploaded.
Page: