#wget http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.bz2
#wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-4.6.2/gcc-4.6.2.tar.bz2
#wget http://ftp.gnu.org/gnu/gmp/gmp-5.0.2.tar.bz2
#wget http://www.mpfr.org/mpfr-current/mpfr-3.1.0.tar.bz2
#wget http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
#tar xvf binutils-2.22.tar.bz2
#tar xvf gcc-4.6.2.tar.bz2
#tar xvf gmp-5.0.2.tar.bz2
#tar xvf mpfr-3.1.0.tar.bz2
SRCDIR=/home/takahab/Make/gcc
INSDIR=/home/takahab/GCC
INSDIR_BIN=/home/takahab/GCC/bin
INSDIR_LIB=/home/takahab/GCC/lib
cd ${SRCDIR}/binutils-2.22
./configure --target=v850-nec-elf --prefix=${INSDIR}
make
make install
export PATH=$PATH:${INSDIR}/bin:${INSDIR}/lib
cd ${SRCDIR}/gcc-4.6.2
./configure --target=v850-nec-elf --prefix=${INSDIR} --with-gnu-as --with-gnu-ld --enable-languages=c
2011年12月2日金曜日
2011年11月2日水曜日
xpathを使ってみた。
結構便利!!
http://www.techscore.com/tech/XML/index.html/
rm log
cnt=0
while true
do
cnt=`expr $cnt + 1`
KEY=`cat strings_ja.xml | xpath -q -e "/resources/string[$cnt]/@*" |cut -d'=' -f2 2>>log`
JAPAN=`cat strings_ja.xml | xpath -q -e "/resources/string[@name=$KEY]/text()" 2>>log`
ENGLISH=`cat strings_en.xml | xpath -q -e "/resources/string[@name=$KEY]/text()" 2>>log`
if [ $KEY ]; then
echo $cnt , $KEY , \"$JAPAN\" , \"$ENGLISH\"
else
break
fi
done
http://www.techscore.com/tech/XML/index.html/
rm log
cnt=0
while true
do
cnt=`expr $cnt + 1`
KEY=`cat strings_ja.xml | xpath -q -e "/resources/string[$cnt]/@*" |cut -d'=' -f2 2>>log`
JAPAN=`cat strings_ja.xml | xpath -q -e "/resources/string[@name=$KEY]/text()" 2>>log`
ENGLISH=`cat strings_en.xml | xpath -q -e "/resources/string[@name=$KEY]/text()" 2>>log`
if [ $KEY ]; then
echo $cnt , $KEY , \"$JAPAN\" , \"$ENGLISH\"
else
break
fi
done
2011年8月24日水曜日
subversionサーバを動かす為にapache2+SSLを設定してみた。
toguniさんのブログを参考に設定してみた。
http://d.hatena.ne.jp/toguni/20090818
sudo apt-get install apache2
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart
sudo mkdir /etc/apache2/ssl
sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
sudo cp /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-ssl.conf.gz /etc/apache2/sites-available
cd /etc/apache2/sites-available
sudo gunzip httpd-ssl.conf.gz
mkdir ~/www
sudo vi httpd-ssl.conf
# DocumentRoot "/home/xxxxxx/wwww"
# #Listen 443
# SSLCertificateFile "/etc/apache2/ssl/apache.pem"
# SSLCertificateKeyFile "/etc/apache2/ssl/apache.pem"
sudo a2ensite httpd-ssl.conf
sudo /etc/init.d/apache2 restart
sudo apt-get install subversion libapache2-svn
sudo vi /etc/apache2/mods-enabled/dav_svn.conf
# <Location /svn>
# DAV svn
# SVNParentPath /home/XXXXXX/www/svn_repository
# AuthType Basic
# AuthName "Subversion Repository"
# AuthUserFile /etc/apache2/dav_svn.passwd
# AuthzSVNAccessFile /etc/apache2/dav_svn.authz
# Require valid-user
# </Location>
cd /etc/apache2
sudo htpasswd -cb dav_svn.passwd use-id(XXXXXX) password(YYYYYY)
sudo cat > dav_svn.authz << _EOF_EOF_
[/]
* = r
[test:/]
user1 = rw
_EOF_EOF_
$ sudo vi /etc/subversion/config
# enable-auto-props = yes ; 改行コードをサーバで統一
# apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName -----エラーがでたので、
$ sudo vi /etc/apache2/apache2.conf
ServerName Hostname
#確認してみる。
http://d.hatena.ne.jp/toguni/20090818
sudo apt-get install apache2
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart
sudo mkdir /etc/apache2/ssl
sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
sudo cp /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-ssl.conf.gz /etc/apache2/sites-available
cd /etc/apache2/sites-available
sudo gunzip httpd-ssl.conf.gz
mkdir ~/www
sudo vi httpd-ssl.conf
# DocumentRoot "/home/xxxxxx/wwww"
# #Listen 443
# SSLCertificateFile "/etc/apache2/ssl/apache.pem"
# SSLCertificateKeyFile "/etc/apache2/ssl/apache.pem"
sudo a2ensite httpd-ssl.conf
sudo /etc/init.d/apache2 restart
sudo apt-get install subversion libapache2-svn
sudo vi /etc/apache2/mods-enabled/dav_svn.conf
# <Location /svn>
# DAV svn
# SVNParentPath /home/XXXXXX/www/svn_repository
# AuthType Basic
# AuthName "Subversion Repository"
# AuthUserFile /etc/apache2/dav_svn.passwd
# AuthzSVNAccessFile /etc/apache2/dav_svn.authz
# Require valid-user
# </Location>
cd /etc/apache2
sudo htpasswd -cb dav_svn.passwd use-id(XXXXXX) password(YYYYYY)
sudo cat > dav_svn.authz << _EOF_EOF_
[/]
* = r
[test:/]
user1 = rw
_EOF_EOF_
$ sudo vi /etc/subversion/config
# enable-auto-props = yes ; 改行コードをサーバで統一
# apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName -----エラーがでたので、
$ sudo vi /etc/apache2/apache2.conf
ServerName Hostname
#確認してみる。
cd ~/www
sudo mkdir svn_repository
cd svn_repository
sudo svnadmin create test
sudo chown -R www-data.www-data test
cd ~
mkdir test
echo "TEST DATA" > test/data.txt
svn import test/ https://localhost/svn/test/ -m "import test"
svn checkout https://localhost/svn/test
2011年8月23日火曜日
ubutuにsubversionを入れてみた。
$ sudo apt-get install subversion
# "http://rabbitvcs.org/"からubuntu用のRabitVCSをダウンロード
$ sudo add-apt-repository ppa:rabbitvcs/ppa
$ sudo apt-get update
$ sudo apt-get install rabbitvcs-core rabbitvcs-nautilus rabbitvcs-thunar rabbitvcs-gedit rabbitvcs-cli
W: GPG エラー: http://ppa.launchpad.net natty Release: 公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY 2EE5793634EF4A35
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 34EF4A35
# "http://rabbitvcs.org/"からubuntu用のRabitVCSをダウンロード
$ sudo add-apt-repository ppa:rabbitvcs/ppa
$ sudo apt-get update
$ sudo apt-get install rabbitvcs-core rabbitvcs-nautilus rabbitvcs-thunar rabbitvcs-gedit rabbitvcs-cli
W: GPG エラー: http://ppa.launchpad.net natty Release: 公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY 2EE5793634EF4A35
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 34EF4A35
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 34EF4A35
gpg: 鍵34EF4A35をhkpからサーバーkeyserver.ubuntu.comに要求
?: keyserver.ubuntu.com: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: No such file or directory
gpg: 有効なOpenPGPデータが見つかりません。
gpg: 処理数の合計: 0
$
お手上げ!!!
しょうがないので、
$ sudo apt-get install rapidsvn
こっちはOK!!
これも結構いけそう。
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuAeclipse->help->新規ソフトウェアのインストール
Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
ウインドウ->設定->チーム->SVN.SVNインターフェース.クライアント=SVNKit(pure Java)SVNkit v1.3.5.7406
Proxy の設定
vi $HOME/.subversion/servers
[global]
http-proxy-host = 127.0.0.1
http-proxy-port = 3128
しょうがないので、
$ sudo apt-get install rapidsvn
こっちはOK!!
これも結構いけそう。
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuAeclipse->help->新規ソフトウェアのインストール
Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
ウインドウ->設定->チーム->SVN.SVNインターフェース.クライアント=SVNKit(pure Java)SVNkit v1.3.5.7406
Proxy の設定
vi $HOME/.subversion/servers
[global]
http-proxy-host = 127.0.0.1
http-proxy-port = 3128
2011年8月22日月曜日
WineでMS-OFFICEを動かしてみた。
TBT氏に教わったwineでMS-OFFICEを動かしてみた。
OS: ubuntu11.4
Office Professional Edition 2003
$ apt-get install wine
$ winecfg
$ wine regedit
HKEY_CURRENT_USER/Software/Wine/Fonts/Replacements
MS Gothic Takaoゴシック
MS Mincho Takao明朝
MS PGothic Takao Pゴシック
MS PMincho Takao P明朝
UI Gothic TakaoExゴシック
OFFICE2003 Professional Edition 2003をセット
$ cd /media/floppy0 # なぜかフロッピー
$ wine setup
OFFICEをインストール
PATHが通っていなかったので、
$ wine cmd
z:\>\home\takahab> c:
c:\>cd \Program Files\Microsoft Office\OFFICE11
z:\home\takahab>cd C:\Program Files\Microsoft Office\OFFICE11
c:\> cd C:\Program Files\Microsoft Office\OFFICE11
c:\> powerpnt
c:\> winword
c:\> excel
結構ちゃんと動くもんだ!!
なんだ、メニューのWINE下にちゃんとアプリが登録されてた。
OS: ubuntu11.4
Office Professional Edition 2003
$ apt-get install wine
$ winecfg
$ wine regedit
HKEY_CURRENT_USER/Software/Wine/Fonts/Replacements
MS Gothic Takaoゴシック
MS Mincho Takao明朝
MS PGothic Takao Pゴシック
MS PMincho Takao P明朝
UI Gothic TakaoExゴシック
OFFICE2003 Professional Edition 2003をセット
$ cd /media/floppy0 # なぜかフロッピー
$ wine setup
OFFICEをインストール
PATHが通っていなかったので、
$ wine cmd
z:\>\home\takahab> c:
c:\>cd \Program Files\Microsoft Office\OFFICE11
z:\home\takahab>cd C:\Program Files\Microsoft Office\OFFICE11
c:\> cd C:\Program Files\Microsoft Office\OFFICE11
c:\> powerpnt
c:\> winword
c:\> excel
結構ちゃんと動くもんだ!!
なんだ、メニューのWINE下にちゃんとアプリが登録されてた。
2011年8月18日木曜日
PandaboardにGingerbreadをのせてみた。
# PandaBoard_L27.12.1-P2_Release_Notesに沿って、PandaboardにGingerbreadをのせてみた。
# PandaBoard L27.12.1-P2 Release NotesでAndroidをインストールしてみた。
# OMAPpedia PandaBoard L27.12.1-P2 Release Notes
# http://www.omappedia.org/wiki/PandaBoard_L27.12.1-P2_Release_Notes
# usage run [setup, download, make, create ]
# set -xv
#--------------------------------------------------------------------
#
# Environment Setup
#
#--------------------------------------------------------------------
cd ~
mv -f panda.sv3 panda.sv4
mv -f panda.sv2 panda.sv3
mv -f panda.sv1 panda.sv2
mv -f panda panda.sv1
mkdir -p panda
mkdir -p panda/pandroid
export BASE=~/panda/pandroid/L27.12.1-P2
mkdir -p $BASE/logs
cd $BASE
export BASE
#--------------------------------------------------------------------
# Tools & Dependency for Building
#--------------------------------------------------------------------
# from omapedia
sudo apt-get install git-core flex bison gperf libesd0-dev libwxgtk2.6-dev zlib1g-dev build-essential libstdc++5 tofrodos
# from Android Developers
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos
sudo apt-get install x-dev
sudo apt-get install libx11-dev
sudo apt-get install libncurses5-dev
sudo apt-get install openjdk-6-jdk
#sudo apt-get install sun-java6-jdk
sudo apt-get install git
sudo apt-get install curl
#--------------------------------------------------------------------
# Android Environment Setup
# Use the example below to setup your environment. Your environment may vary...
#--------------------------------------------------------------------
cd $BASE
mkdir -p mydroid
mkdir -p wlan_firmware
#Tool Chain for building Kernel and Drivers
#The Kernel and Driver sources are built using Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux version.
#Download: arm-2010q1-202 to $Your_PATH/L27.12.1-P2/build_tools/
cd $BASE
mkdir -p build_tools
cd build_tools
wget http://www.codesourcery.com/sgpp/lite/arm/portal/package6488/public/arm-none-linux-gnueabi/arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
tar jxvf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
cd $BASE/build_tools/arm-2010q1/
export PATH=$BASE/build_tools/arm-2010q1/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export CROSS_COMPILE=arm-none-linux-gnueabi-
#--------------------------------------------------------------------
#Downloading Release Software
#--------------------------------------------------------------------
#Installing repo
#For detail information regarding repo visit: Using Repo and Git
#Other reference links on Git can be found in Techincal References page
#Download repo to environment
cd $BASE
mkdir -p bin
curl http://android.git.kernel.org/repo > ./bin/repo
chmod a+x ./bin/repo
export PATH=$BASE/bin:$PATH
#Download Android source
cd $BASE/mydroid
repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 27.x -m RLS27.12.1-P2_Gingerbread.xml
time repo sync
#--------------------------------------------------------------------
# Update PandaBoard device directory--- TODO: clean up and remove Blaze items
#--------------------------------------------------------------------
cd $BASE
cd mydroid/device/ti/pandaboard
git fetch http://review.omapzoom.org/p/device/ti/pandaboard refs/changes/12/13612/1 && git cherry-pick FETCH_HEAD
#Adding Mouse and Keyboard support
cd $BASE
cd mydroid/frameworks/base
git remote add rowboat git://gitorious.org/rowboat/frameworks-base.git
git fetch rowboat
git cherry-pick 17128d44ab04c5b7cb2911e8b1c9f837aa9b36a5
git cherry-pick 174cb50436065dc092114d69fb40d5a7712e3ca0
#--------------------------------------------------------------------
#Adding Audio Support
#Patch 1 of 2
cd $BASE
cd mydroid/hardware/ti/omap3
git fetch http://review.omapzoom.org/p/platform/hardware/ti/omap3 refs/changes/76/13276/5 && git cherry-pick FETCH_HEAD
#Patch 2 of 2
patch -p1 << _EOF_EOF_
diff --git a/modules/alsa/Android.mk b/modules/alsa/Android.mk
index 31d4890..b2c1e6b 100644
--- a/modules/alsa/Android.mk
+++ b/modules/alsa/Android.mk
@@ -39,6 +39,7 @@ ifeq (\$(strip \$(BOARD_USES_ALSA_AUDIO)),true)
endif
ifeq (\$(strip \$(TARGET_BOARD_PLATFORM)), omap4)
ifeq (\$(strip \$(TARGET_BOOTLOADER_BOARD_NAME)), pandaboard)
+ LOCAL_CFLAGS += -DOMAP4_PANDA
LOCAL_SRC_FILES:= alsa_panda.cpp
else
LOCAL_SRC_FILES:= alsa_omap4.cpp
diff --git a/modules/alsa/alsa_omap4.h b/modules/alsa/alsa_omap4.h
index cde2a3e..40bb63f 100644
--- a/modules/alsa/alsa_omap4.h
+++ b/modules/alsa/alsa_omap4.h
@@ -26,12 +26,18 @@
#endif
// alsa devices
+#ifdef OMAP4_PANDA
+#define MM_DEFAULT_DEVICE "plughw:0,4"
+#define MM_LP_DEVICE "hw:0,4"
+#define HDMI_DEVICE "plughw:0,6"
+#else
#define MM_DEFAULT_DEVICE "plughw:0,0"
#define BLUETOOTH_SCO_DEVICE "plughw:0,0"
#define FM_TRANSMIT_DEVICE "plughw:0,0"
#define FM_CAPTURE_DEVICE "plughw:0,1"
#define MM_LP_DEVICE "hw:0,6"
#define HDMI_DEVICE "plughw:0,7"
+#endif
// omap4 outputs/inputs
#define OMAP4_OUT_SCO (\\
_EOF_EOF_
#--------------------------------------------------------------------
# Adding WLAN support
cd $BASE/
git clone git://git.omapzoom.org/platform/hardware/ti/wlan.git
cd $BASE/wlan
git reset --hard 456971003aaa94a6b863b7a368aac8415ff32f8c
#--------------------------------------------------------------------
#Patch for Google apps crashing -- Courtesy of Always Innovating
cd $BASE/mydroid
patch -p1 << _EOF_EOF_
--- a/frameworks/base/libs/ui/InputReader.cpp
+++ b/frameworks/base/libs/ui/InputReader.cpp
@@ -426,7 +426,7 @@
{ // acquire state lock
AutoMutex _l(mStateLock);
- int32_t touchScreenConfig = InputConfiguration::TOUCHSCREEN_NOTOUCH;
+ int32_t touchScreenConfig = InputConfiguration:: TOUCHSCREEN_FINGER;
int32_t keyboardConfig = InputConfiguration::KEYBOARD_NOKEYS;
int32_t navigationConfig = InputConfiguration::NAVIGATION_NONAV;
{ // acquire device registry reader lock
_EOF_EOF_
#--------------------------------------------------------------------
# Kernel & Driver Source
# To clone kernel source from scratch do:
#--------------------------------------------------------------------
cd $BASE/
git clone git://git.omapzoom.org/kernel/omap.git kernel/android-2.6.35
cd kernel/android-2.6.35
git checkout ec895072ad0b686d2c130e5d80a3076a03042033
# If you already have kernel source cloned then just update it (and add a remote if it is the first time):
cd $BASE/kernel/android-2.6.35
git fetch origin
git checkout ec895072ad0b686d2c130e5d80a3076a03042033
#--------------------------------------------------------------------
# Kernel Patches
# Audio fixes for kernel:
#--------------------------------------------------------------------
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/01/13001/2 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/02/13002/2 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
# EHCI fixes for kernel:
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/17/13617/1 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
# DSS patch
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/22/13722/2 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
# WLAN patches
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/02/12002/2 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/03/12003/1 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/64/14064/1 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/67/14067/1 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/68/14068/1 && git cherry-pick FETCH_HEAD
T
# update panda_defconfig -- TODO:get this merged:
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/29/13029/3 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/61/13861/1 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
#U-Boot Source
cd $BASE
git clone git://git.omapzoom.org/repo/u-boot.git u-boot
cd u-boot
git checkout 601ff71c8d46b5e90e13613974a16d10f2006bb3
#-boot patch
#a patch is available that changes the bootdelay as well as configures the correct bootargs: bootargs patch
#--------------------------------------------------------------------
#X-loader Source
cd $BASE
git clone git://git.omapzoom.org/repo/x-loader.git x-loader
cd x-loaderT
git checkout c8855fa6b85bd44073bd1b25dbffa99f02cbeeed
#--------------------------------------------------------------------
# Build Instructions
#--------------------------------------------------------------------
# Setting up build environment
cd $BASE
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export CROSS_COMPILE=arm-none-linux-gnueabi-
export PATH=$BASE/build_tools/arm-2010q1/bin:$PATH
#--------------------------------------------------------------------
# Building u-boot
# Before building u-boot adjust the bootdelay and bootargs in omap4430panda.h
# Note: Anyone wanting to try Fastboot do not adjust the BOOTDELAY
# changing bootdelay
#vim $YOUR_PATH/L27.12.1-P2/u-boot/include/configs/omap4430panda.h
#- #define CONFIG_BOOTDELAY 0
#+ #define CONFIG_BOOTDELAY 5
mv $BASE/u-boot/include/configs/omap4430panda.h \
$BASE/u-boot/include/configs/omap4430panda.h.org
sed -e 's/#define CONFIG_BOOTDELAY 0/#define CONFIG_BOOTDELAY 5/' \
$BASE/u-boot/include/configs/omap4430panda.h.org > \
$BASE/u-boot/include/configs/omap4430panda.h
#--------------------------------------------------------------------
# build u-boot
#--------------------------------------------------------------------
cd $BASE/u-boot
make distclean
make ARCH=arm omap4430panda_config
make 2>&1 |tee $BASE/logs/u-boot_make.out
#--------------------------------------------------------------------
# For information regarding Fastboot visit: Android_eMMC_Booting
# Building x-loader
#--------------------------------------------------------------------
cd $BASE/x-loader
make distclean
make ARCH=arm omap4430panda_config
make ift 2>&1 |tee $BASE/logs/x-loader_make.out
#--------------------------------------------------------------------
# Building Kernel
# Build KernelT
# To create kernel uImage you need to add "mkimage" directory path to your "PATH" environment variable. "mkimage" is located in your u-boot/tools/ directory.
#--------------------------------------------------------------------
cd $BASE/kernel/android-2.6.35
export PATH=$BASE/u-boot/tools:$PATH
make ARCH=arm distclean #(required for rebuild only)
make ARCH=arm panda_defconfig
make ARCH=arm uImage 2>&1 |tee $BASE/logs/kernel_make.out
#Building Kernel modules
cd $BASE/kernel/android-2.6.35
make ARCH=arm modules 2>&1 |tee $BASE/logs/kernel_modules.out
#--------------------------------------------------------------------
# Building WLAN driver
#--------------------------------------------------------------------
# Build 127x station driver
cd $BASE
mkdir -p wlan
cd wlan/wl1283/platforms/os/linux
export KERNEL_DIR=$BASE/kernel/android-2.6.35
make clean
make TNETW=1273
#--------------------------------------------------------------------
# Build 127x softAp driver
cd $BASE/wlan/wl1283_softAP/platforms/os/linux
make TNETW=1273
#--------------------------------------------------------------------
# Building Android Filesystem (AFS) with TI Codecs enabled
# on step below use the number of cores you have available; i.e. -j4 or -j12:
#--------------------------------------------------------------------
cd $BASE/mydroid
cp -Rfp device/ti/pandaboard/buildspec.mk.default buildspec.mk
make clean #(required for rebuild only)
make TARGET_PRODUCT=pandaboard -j4 2>&1 |tee $BASE/logs/android_make.out
#--------------------------------------------------------------------
# create rootfs
#--------------------------------------------------------------------
OUTDIR=$BASE/mydroid/out/target/product/pandaboard
cd $BASE
mkdir -p OUT ./OUT/rootfs
mkdir -p $OUTDIR/system/etc/wifi
mkdir -p $OUTDIR/system/etc/wifi/softap
cp -Rfp $BASE/kernel/android-2.6.35/drivers/staging/ti-st/*.ko $OUTDIR/root
cp -Rfp $BASE/kernel/android-2.6.35/drivers/bluetooth/btwilink.ko $OUTDIR/root
cp -Rfp $BASE/wlan/wl1283/platforms/os/linux/tiwlan_drv.ko $OUTDIR/system/etc/wifi/
cp -Rfp $BASE/wlan/wl1283_softAP/platforms/os/linux/tiap_drv.ko $OUTDIR/system/etc/wifi/softap/
cp -ax $BASE/mydroid/device/ti/proprietary-open/graphics/omap4/* $OUTDIR/
cp -Rfp $OUTDIR/root/* $BASE/OUT/rootfs
cp -Rfp $OUTDIR/system $BASE/OUT/rootfs
cp -Rfp $OUTDIR/data $BASE/OUT/rootfs
#--------------------------------------------------------------------
# create rootfs
#--------------------------------------------------------------------
cd $BASE
mkdir -p wlan_firmware
cd wlan_firmware
wget https://gforge.ti.com/gf/download/frsrelease/567/4721/Bluetooth_WLAN_KernelPatches_Firmware_Config_L27.12.1-P2-Pandroid-1.0-Linux-x86-Install
chmod a+x Bluetooth_WLAN_KernelPatches_Firmware_Config_L27.12.1-P2-Pandroid-1.0-Linux-x86-Install
./Bluetooth_WLAN_KernelPatches_Firmware_Config_L27.12.1-P2-Pandroid-1.0-Linux-x86-Install --mode silent --prefix out
mkdir -p $BASE/OUT/rootfs/system/etc/firmware
#copy *.ko to rootfs
cp -rfp $BASE/wlan/wl1283/platforms/os/linux/*.ko $BASE/OUT/rootfs/system/etc/wifi/
cp -rfp $BASE/wlan/wl1283_softAP/platforms/os/linux/*.ko $BASE/OUT/rootfs/system/etc/wifi/softap
#adding firmware to rootfs
cp -rfp $BASE/wlan_firmware/out/BT_Firmware/* $BASE/OUT/rootfs/system/etc/firmware/
cp -rfp $BASE/wlan_firmware/out/WLAN_config/Station_config/tiwlan.ini $BASE/OUT/rootfs/system/etc/wifi
cp -rfp $BASE/wlan_firmware/out/WLAN_config/AP_Config/tiwlan_ap.ini $BASE/OUT/rootfs/system/etc/wifi/softap
cp -rfp $BASE/wlan_firmware/out/WLAN_Firmware/Station_FW/firmware.bin $BASE/OUT/rootfs/system/etc/wifi
cp -rfp $BASE/wlan_firmware/out/WLAN_Firmware/AP_FW/firmware_ap.bin $BASE/OUT/rootfs/system/etc/wifi/softap
#--------------------------------------------------------------------
# Replace Launcher apk
# Take this from L27.12.1-P2 binary release.
#--------------------------------------------------------------------
cd $BASE
mkdir -p pre_build
cd pre_build
wget http://pandroid.googlecode.com/files/L27.12.1-P2-pandroid_v2.tar.bz2
tar xvf L27.12.1-P2-pandroid_v2.tar.bz2
cp -Rfp $BASE/pre_build/patches/android_patches/Launcher2.apk $BASE/OUT/rootfs/system/app
#--------------------------------------------------------------------
# create boot
#--------------------------------------------------------------------
cd $BASE
mkdir -p OUT ./OUT/boot
cp -a $BASE/x-loader/MLO ./OUT/boot/MLO
cp -a $BASE/u-boot/u-boot.bin ./OUT/boot/u-boot.bin
cp -a $BASE/kernel/android-2.6.35/arch/arm/boot/uImage ./OUT/boot/uImage
#--------------------------------------------------------------------
# bootargs for pandaboard
#--------------------------------------------------------------------
#echo "setenv bootargs 'console=ttyO2,115200n8 androidboot.console=ttyO2 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk0p3 rw rootdelay=2 init=/init vram="32M" omapfb.vram=0:16M,1:16M consoleblank=0'" > /tmp/boot.script
#echo "setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'">>/tmp/boot.script
#echo "boot">>/tmp/boot.script
#echo "setenv console console=ttyO2,115200n8 androidboot.console=ttyO2" >/tmp/boot.script
#echo "setenv memory mem=456M@0x80000000 mem=512M@0xA0000000" >>/tmp/boot.script
#echo "setenv rootfs root=/dev/mmcblk0p3 rw rootdelay=2 init=/init" >>/tmp/boot.script
#echo "setenv vmem vram="32M" omapfb.vram=0:16M" >>/tmp/boot.script
#echo "setenv display omapdss.def_disp=hdmi consoleblank=0" >>/tmp/boot.script
#echo "setenv bootargs \${console} \${memory} \${rootfs}
\${vmem} \${display}" >>/tmp/boot.script
#echo "printenv bootargs" >>/tmp/boot.script
#echo "setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'" >>/tmp/boot.script
#echo "boot" >>/tmp/boot.script
#--------------------------------------------------------------------
#
#--------------------------------------------------------------------
echo "setenv bootargs 'console=ttyO2,115200n8 androidboot.console=ttyO2 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk0p3 rw rootdelay=2 init=/init vram=\"32M\" omapfb.vram=0:16M omapdss.def_disp=hdmi consoleblank=0'" >/tmp/boot.script
echo "etenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'" >>/tmp/boot.script
echo boot >>/tmp/boot.script
$BASE/u-boot/tools/mkimage -A arm -T script -O linux -C none -a 0 -e 0 -n "boot.scr" -d /tmp/boot.script $BASE/OUT/boot/boot.scr
# なぜか、boot.scrは動かなかったので手動で起動。
#--------------------------------------------------------------------
# SD Write SDのスペシャルファイルはPCに合わせる事。
#--------------------------------------------------------------------
#sync;sync;sync
#sudo umount /dev/sdb1
#sudo umount /dev/sdb2
#sudo umount /dev/sdb3
#sync;sync;sync
#sudo sh ~/bin/mksdcard_panda.sh /dev/sdb
#sync;sync;sync
# 挿抜した後に書き込む。
#--------------------------------------------------------------------
#
# Create SD card
#
#--------------------------------------------------------------------
#cd $BASE
#sudo cp -a ./OUT/boot/MLO /media/boot
#sudo cp -a ./OUT/boot/u-boot.bin /media/boot
#sudo cp -a ./OUT/boot/boot.scr /media/boot
#sudo cp -a ./OUT/boot/uImage /media/boot\
#sudo cp -a ./OUT/rootfs/* /media/rootfs
#sync;sync;sync
# PandaBoard L27.12.1-P2 Release NotesでAndroidをインストールしてみた。
# OMAPpedia PandaBoard L27.12.1-P2 Release Notes
# http://www.omappedia.org/wiki/PandaBoard_L27.12.1-P2_Release_Notes
# usage run [setup, download, make, create ]
# set -xv
#--------------------------------------------------------------------
#
# Environment Setup
#
#--------------------------------------------------------------------
cd ~
mv -f panda.sv3 panda.sv4
mv -f panda.sv2 panda.sv3
mv -f panda.sv1 panda.sv2
mv -f panda panda.sv1
mkdir -p panda
mkdir -p panda/pandroid
export BASE=~/panda/pandroid/L27.12.1-P2
mkdir -p $BASE/logs
cd $BASE
export BASE
#--------------------------------------------------------------------
# Tools & Dependency for Building
#--------------------------------------------------------------------
# from omapedia
sudo apt-get install git-core flex bison gperf libesd0-dev libwxgtk2.6-dev zlib1g-dev build-essential libstdc++5 tofrodos
# from Android Developers
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos
sudo apt-get install x-dev
sudo apt-get install libx11-dev
sudo apt-get install libncurses5-dev
sudo apt-get install openjdk-6-jdk
#sudo apt-get install sun-java6-jdk
sudo apt-get install git
sudo apt-get install curl
#--------------------------------------------------------------------
# Android Environment Setup
# Use the example below to setup your environment. Your environment may vary...
#--------------------------------------------------------------------
cd $BASE
mkdir -p mydroid
mkdir -p wlan_firmware
#Tool Chain for building Kernel and Drivers
#The Kernel and Driver sources are built using Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux version.
#Download: arm-2010q1-202 to $Your_PATH/L27.12.1-P2/build_tools/
cd $BASE
mkdir -p build_tools
cd build_tools
wget http://www.codesourcery.com/sgpp/lite/arm/portal/package6488/public/arm-none-linux-gnueabi/arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
tar jxvf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
cd $BASE/build_tools/arm-2010q1/
export PATH=$BASE/build_tools/arm-2010q1/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export CROSS_COMPILE=arm-none-linux-gnueabi-
#--------------------------------------------------------------------
#Downloading Release Software
#--------------------------------------------------------------------
#Installing repo
#For detail information regarding repo visit: Using Repo and Git
#Other reference links on Git can be found in Techincal References page
#Download repo to environment
cd $BASE
mkdir -p bin
curl http://android.git.kernel.org/repo > ./bin/repo
chmod a+x ./bin/repo
export PATH=$BASE/bin:$PATH
#Download Android source
cd $BASE/mydroid
repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 27.x -m RLS27.12.1-P2_Gingerbread.xml
time repo sync
#--------------------------------------------------------------------
# Update PandaBoard device directory--- TODO: clean up and remove Blaze items
#--------------------------------------------------------------------
cd $BASE
cd mydroid/device/ti/pandaboard
git fetch http://review.omapzoom.org/p/device/ti/pandaboard refs/changes/12/13612/1 && git cherry-pick FETCH_HEAD
#Adding Mouse and Keyboard support
cd $BASE
cd mydroid/frameworks/base
git remote add rowboat git://gitorious.org/rowboat/frameworks-base.git
git fetch rowboat
git cherry-pick 17128d44ab04c5b7cb2911e8b1c9f837aa9b36a5
git cherry-pick 174cb50436065dc092114d69fb40d5a7712e3ca0
#--------------------------------------------------------------------
#Adding Audio Support
#Patch 1 of 2
cd $BASE
cd mydroid/hardware/ti/omap3
git fetch http://review.omapzoom.org/p/platform/hardware/ti/omap3 refs/changes/76/13276/5 && git cherry-pick FETCH_HEAD
#Patch 2 of 2
patch -p1 << _EOF_EOF_
diff --git a/modules/alsa/Android.mk b/modules/alsa/Android.mk
index 31d4890..b2c1e6b 100644
--- a/modules/alsa/Android.mk
+++ b/modules/alsa/Android.mk
@@ -39,6 +39,7 @@ ifeq (\$(strip \$(BOARD_USES_ALSA_AUDIO)),true)
endif
ifeq (\$(strip \$(TARGET_BOARD_PLATFORM)), omap4)
ifeq (\$(strip \$(TARGET_BOOTLOADER_BOARD_NAME)), pandaboard)
+ LOCAL_CFLAGS += -DOMAP4_PANDA
LOCAL_SRC_FILES:= alsa_panda.cpp
else
LOCAL_SRC_FILES:= alsa_omap4.cpp
diff --git a/modules/alsa/alsa_omap4.h b/modules/alsa/alsa_omap4.h
index cde2a3e..40bb63f 100644
--- a/modules/alsa/alsa_omap4.h
+++ b/modules/alsa/alsa_omap4.h
@@ -26,12 +26,18 @@
#endif
// alsa devices
+#ifdef OMAP4_PANDA
+#define MM_DEFAULT_DEVICE "plughw:0,4"
+#define MM_LP_DEVICE "hw:0,4"
+#define HDMI_DEVICE "plughw:0,6"
+#else
#define MM_DEFAULT_DEVICE "plughw:0,0"
#define BLUETOOTH_SCO_DEVICE "plughw:0,0"
#define FM_TRANSMIT_DEVICE "plughw:0,0"
#define FM_CAPTURE_DEVICE "plughw:0,1"
#define MM_LP_DEVICE "hw:0,6"
#define HDMI_DEVICE "plughw:0,7"
+#endif
// omap4 outputs/inputs
#define OMAP4_OUT_SCO (\\
_EOF_EOF_
#--------------------------------------------------------------------
# Adding WLAN support
cd $BASE/
git clone git://git.omapzoom.org/platform/hardware/ti/wlan.git
cd $BASE/wlan
git reset --hard 456971003aaa94a6b863b7a368aac8415ff32f8c
#--------------------------------------------------------------------
#Patch for Google apps crashing -- Courtesy of Always Innovating
cd $BASE/mydroid
patch -p1 << _EOF_EOF_
--- a/frameworks/base/libs/ui/InputReader.cpp
+++ b/frameworks/base/libs/ui/InputReader.cpp
@@ -426,7 +426,7 @@
{ // acquire state lock
AutoMutex _l(mStateLock);
- int32_t touchScreenConfig = InputConfiguration::TOUCHSCREEN_NOTOUCH;
+ int32_t touchScreenConfig = InputConfiguration:: TOUCHSCREEN_FINGER;
int32_t keyboardConfig = InputConfiguration::KEYBOARD_NOKEYS;
int32_t navigationConfig = InputConfiguration::NAVIGATION_NONAV;
{ // acquire device registry reader lock
_EOF_EOF_
#--------------------------------------------------------------------
# Kernel & Driver Source
# To clone kernel source from scratch do:
#--------------------------------------------------------------------
cd $BASE/
git clone git://git.omapzoom.org/kernel/omap.git kernel/android-2.6.35
cd kernel/android-2.6.35
git checkout ec895072ad0b686d2c130e5d80a3076a03042033
# If you already have kernel source cloned then just update it (and add a remote if it is the first time):
cd $BASE/kernel/android-2.6.35
git fetch origin
git checkout ec895072ad0b686d2c130e5d80a3076a03042033
#--------------------------------------------------------------------
# Kernel Patches
# Audio fixes for kernel:
#--------------------------------------------------------------------
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/01/13001/2 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/02/13002/2 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
# EHCI fixes for kernel:
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/17/13617/1 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
# DSS patch
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/22/13722/2 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
# WLAN patches
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/02/12002/2 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/03/12003/1 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/64/14064/1 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/67/14067/1 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/68/14068/1 && git cherry-pick FETCH_HEAD
T
# update panda_defconfig -- TODO:get this merged:
cd $BASE/kernel/android-2.6.35
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/29/13029/3 && git cherry-pick FETCH_HEAD
git fetch http://review.omapzoom.org/p/kernel/omap refs/changes/61/13861/1 && git cherry-pick FETCH_HEAD
#--------------------------------------------------------------------
#U-Boot Source
cd $BASE
git clone git://git.omapzoom.org/repo/u-boot.git u-boot
cd u-boot
git checkout 601ff71c8d46b5e90e13613974a16d10f2006bb3
#-boot patch
#a patch is available that changes the bootdelay as well as configures the correct bootargs: bootargs patch
#--------------------------------------------------------------------
#X-loader Source
cd $BASE
git clone git://git.omapzoom.org/repo/x-loader.git x-loader
cd x-loaderT
git checkout c8855fa6b85bd44073bd1b25dbffa99f02cbeeed
#--------------------------------------------------------------------
# Build Instructions
#--------------------------------------------------------------------
# Setting up build environment
cd $BASE
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export CROSS_COMPILE=arm-none-linux-gnueabi-
export PATH=$BASE/build_tools/arm-2010q1/bin:$PATH
#--------------------------------------------------------------------
# Building u-boot
# Before building u-boot adjust the bootdelay and bootargs in omap4430panda.h
# Note: Anyone wanting to try Fastboot do not adjust the BOOTDELAY
# changing bootdelay
#vim $YOUR_PATH/L27.12.1-P2/u-boot/include/configs/omap4430panda.h
#- #define CONFIG_BOOTDELAY 0
#+ #define CONFIG_BOOTDELAY 5
mv $BASE/u-boot/include/configs/omap4430panda.h \
$BASE/u-boot/include/configs/omap4430panda.h.org
sed -e 's/#define CONFIG_BOOTDELAY 0/#define CONFIG_BOOTDELAY 5/' \
$BASE/u-boot/include/configs/omap4430panda.h.org > \
$BASE/u-boot/include/configs/omap4430panda.h
#--------------------------------------------------------------------
# build u-boot
#--------------------------------------------------------------------
cd $BASE/u-boot
make distclean
make ARCH=arm omap4430panda_config
make 2>&1 |tee $BASE/logs/u-boot_make.out
#--------------------------------------------------------------------
# For information regarding Fastboot visit: Android_eMMC_Booting
# Building x-loader
#--------------------------------------------------------------------
cd $BASE/x-loader
make distclean
make ARCH=arm omap4430panda_config
make ift 2>&1 |tee $BASE/logs/x-loader_make.out
#--------------------------------------------------------------------
# Building Kernel
# Build KernelT
# To create kernel uImage you need to add "mkimage" directory path to your "PATH" environment variable. "mkimage" is located in your u-boot/tools/ directory.
#--------------------------------------------------------------------
cd $BASE/kernel/android-2.6.35
export PATH=$BASE/u-boot/tools:$PATH
make ARCH=arm distclean #(required for rebuild only)
make ARCH=arm panda_defconfig
make ARCH=arm uImage 2>&1 |tee $BASE/logs/kernel_make.out
#Building Kernel modules
cd $BASE/kernel/android-2.6.35
make ARCH=arm modules 2>&1 |tee $BASE/logs/kernel_modules.out
#--------------------------------------------------------------------
# Building WLAN driver
#--------------------------------------------------------------------
# Build 127x station driver
cd $BASE
mkdir -p wlan
cd wlan/wl1283/platforms/os/linux
export KERNEL_DIR=$BASE/kernel/android-2.6.35
make clean
make TNETW=1273
#--------------------------------------------------------------------
# Build 127x softAp driver
cd $BASE/wlan/wl1283_softAP/platforms/os/linux
make TNETW=1273
#--------------------------------------------------------------------
# Building Android Filesystem (AFS) with TI Codecs enabled
# on step below use the number of cores you have available; i.e. -j4 or -j12:
#--------------------------------------------------------------------
cd $BASE/mydroid
cp -Rfp device/ti/pandaboard/buildspec.mk.default buildspec.mk
make clean #(required for rebuild only)
make TARGET_PRODUCT=pandaboard -j4 2>&1 |tee $BASE/logs/android_make.out
#--------------------------------------------------------------------
# create rootfs
#--------------------------------------------------------------------
OUTDIR=$BASE/mydroid/out/target/product/pandaboard
cd $BASE
mkdir -p OUT ./OUT/rootfs
mkdir -p $OUTDIR/system/etc/wifi
mkdir -p $OUTDIR/system/etc/wifi/softap
cp -Rfp $BASE/kernel/android-2.6.35/drivers/staging/ti-st/*.ko $OUTDIR/root
cp -Rfp $BASE/kernel/android-2.6.35/drivers/bluetooth/btwilink.ko $OUTDIR/root
cp -Rfp $BASE/wlan/wl1283/platforms/os/linux/tiwlan_drv.ko $OUTDIR/system/etc/wifi/
cp -Rfp $BASE/wlan/wl1283_softAP/platforms/os/linux/tiap_drv.ko $OUTDIR/system/etc/wifi/softap/
cp -ax $BASE/mydroid/device/ti/proprietary-open/graphics/omap4/* $OUTDIR/
cp -Rfp $OUTDIR/root/* $BASE/OUT/rootfs
cp -Rfp $OUTDIR/system $BASE/OUT/rootfs
cp -Rfp $OUTDIR/data $BASE/OUT/rootfs
#--------------------------------------------------------------------
# create rootfs
#--------------------------------------------------------------------
cd $BASE
mkdir -p wlan_firmware
cd wlan_firmware
wget https://gforge.ti.com/gf/download/frsrelease/567/4721/Bluetooth_WLAN_KernelPatches_Firmware_Config_L27.12.1-P2-Pandroid-1.0-Linux-x86-Install
chmod a+x Bluetooth_WLAN_KernelPatches_Firmware_Config_L27.12.1-P2-Pandroid-1.0-Linux-x86-Install
./Bluetooth_WLAN_KernelPatches_Firmware_Config_L27.12.1-P2-Pandroid-1.0-Linux-x86-Install --mode silent --prefix out
mkdir -p $BASE/OUT/rootfs/system/etc/firmware
#copy *.ko to rootfs
cp -rfp $BASE/wlan/wl1283/platforms/os/linux/*.ko $BASE/OUT/rootfs/system/etc/wifi/
cp -rfp $BASE/wlan/wl1283_softAP/platforms/os/linux/*.ko $BASE/OUT/rootfs/system/etc/wifi/softap
#adding firmware to rootfs
cp -rfp $BASE/wlan_firmware/out/BT_Firmware/* $BASE/OUT/rootfs/system/etc/firmware/
cp -rfp $BASE/wlan_firmware/out/WLAN_config/Station_config/tiwlan.ini $BASE/OUT/rootfs/system/etc/wifi
cp -rfp $BASE/wlan_firmware/out/WLAN_config/AP_Config/tiwlan_ap.ini $BASE/OUT/rootfs/system/etc/wifi/softap
cp -rfp $BASE/wlan_firmware/out/WLAN_Firmware/Station_FW/firmware.bin $BASE/OUT/rootfs/system/etc/wifi
cp -rfp $BASE/wlan_firmware/out/WLAN_Firmware/AP_FW/firmware_ap.bin $BASE/OUT/rootfs/system/etc/wifi/softap
#--------------------------------------------------------------------
# Replace Launcher apk
# Take this from L27.12.1-P2 binary release.
#--------------------------------------------------------------------
cd $BASE
mkdir -p pre_build
cd pre_build
wget http://pandroid.googlecode.com/files/L27.12.1-P2-pandroid_v2.tar.bz2
tar xvf L27.12.1-P2-pandroid_v2.tar.bz2
cp -Rfp $BASE/pre_build/patches/android_patches/Launcher2.apk $BASE/OUT/rootfs/system/app
#--------------------------------------------------------------------
# create boot
#--------------------------------------------------------------------
cd $BASE
mkdir -p OUT ./OUT/boot
cp -a $BASE/x-loader/MLO ./OUT/boot/MLO
cp -a $BASE/u-boot/u-boot.bin ./OUT/boot/u-boot.bin
cp -a $BASE/kernel/android-2.6.35/arch/arm/boot/uImage ./OUT/boot/uImage
#--------------------------------------------------------------------
# bootargs for pandaboard
#--------------------------------------------------------------------
#echo "setenv bootargs 'console=ttyO2,115200n8 androidboot.console=ttyO2 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk0p3 rw rootdelay=2 init=/init vram="32M" omapfb.vram=0:16M,1:16M consoleblank=0'" > /tmp/boot.script
#echo "setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'">>/tmp/boot.script
#echo "boot">>/tmp/boot.script
#echo "setenv console console=ttyO2,115200n8 androidboot.console=ttyO2" >/tmp/boot.script
#echo "setenv memory mem=456M@0x80000000 mem=512M@0xA0000000" >>/tmp/boot.script
#echo "setenv rootfs root=/dev/mmcblk0p3 rw rootdelay=2 init=/init" >>/tmp/boot.script
#echo "setenv vmem vram="32M" omapfb.vram=0:16M" >>/tmp/boot.script
#echo "setenv display omapdss.def_disp=hdmi consoleblank=0" >>/tmp/boot.script
#echo "setenv bootargs \${console} \${memory} \${rootfs}
\${vmem} \${display}" >>/tmp/boot.script
#echo "printenv bootargs" >>/tmp/boot.script
#echo "setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'" >>/tmp/boot.script
#echo "boot" >>/tmp/boot.script
#--------------------------------------------------------------------
#
#--------------------------------------------------------------------
echo "setenv bootargs 'console=ttyO2,115200n8 androidboot.console=ttyO2 mem=456M@0x80000000 mem=512M@0xA0000000 root=/dev/mmcblk0p3 rw rootdelay=2 init=/init vram=\"32M\" omapfb.vram=0:16M omapdss.def_disp=hdmi consoleblank=0'" >/tmp/boot.script
echo "etenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'" >>/tmp/boot.script
echo boot >>/tmp/boot.script
$BASE/u-boot/tools/mkimage -A arm -T script -O linux -C none -a 0 -e 0 -n "boot.scr" -d /tmp/boot.script $BASE/OUT/boot/boot.scr
# なぜか、boot.scrは動かなかったので手動で起動。
#--------------------------------------------------------------------
# SD Write SDのスペシャルファイルはPCに合わせる事。
#--------------------------------------------------------------------
#sync;sync;sync
#sudo umount /dev/sdb1
#sudo umount /dev/sdb2
#sudo umount /dev/sdb3
#sync;sync;sync
#sudo sh ~/bin/mksdcard_panda.sh /dev/sdb
#sync;sync;sync
# 挿抜した後に書き込む。
#--------------------------------------------------------------------
#
# Create SD card
#
#--------------------------------------------------------------------
#cd $BASE
#sudo cp -a ./OUT/boot/MLO /media/boot
#sudo cp -a ./OUT/boot/u-boot.bin /media/boot
#sudo cp -a ./OUT/boot/boot.scr /media/boot
#sudo cp -a ./OUT/boot/uImage /media/boot\
#sudo cp -a ./OUT/rootfs/* /media/rootfs
#sync;sync;sync
2011年8月7日日曜日
ubuntu11.4に秋月のUSBシリアル変換を接続してみた。
USB・シリアjル変換ケーブル[グレー色](延長ケーブル付)
$ sudo apt-get install minicom
[M-02747] |
$ LANG=C sudo minicom -s
Serial port setup
/dev/ttyUSB0
Save setup as dfl ←/etc/minicom/minirc.dflに保存される。
※また、PL2303_Prolific_DriverInstaller_v1417.exeをインストールしたら
Windows7でも問題なく動作した。
2011年7月15日金曜日
ubuntu 64bitsにavastをインストールしてみた。
デビアンモジュールをダウンロードしてインストールした。
http://www.avast.com/linux-home-edition#tab4
# dpkg --force-architecture -i avast4workstation_1.3.0-2_i386.deb
メニューに登録
# cd /usr/lib/avast4workstation/share/avast/desktop/
# ./install-desktop-entries.sh install
ライセンスキーをメールで受け取って完了。
http://www.avast.com/linux-home-edition#tab4
# dpkg --force-architecture -i avast4workstation_1.3.0-2_i386.deb
メニューに登録
# cd /usr/lib/avast4workstation/share/avast/desktop/
# ./install-desktop-entries.sh install
ライセンスキーをメールで受け取って完了。
2011年7月9日土曜日
Wiresharkでエラーがでた。
rootで起動するとエラーがでる。
Lua: Error during loading:
[string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
45行目をコメントにしたら、エラーが止まった。
-- dofile = function() error("dofile has been disabled") end
loadfile = function() error("loadfile has been disabled") end
loadlib = function() error("loadlib has been disabled") end
require = function() error("require has been disabled") end
Lua: Error during loading:
[string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
45行目をコメントにしたら、エラーが止まった。
-- dofile = function() error("dofile has been disabled") end
loadfile = function() error("loadfile has been disabled") end
loadlib = function() error("loadlib has been disabled") end
require = function() error("require has been disabled") end
2011年7月7日木曜日
プロクシ自動認証の為squidを設定した。
acl SSL_ports port 9418 # git for git protocol
# add start
acl mynetwork src 129.1.xx.0/255.255.255.0
http_access allow mynetwork
# add end
# add start
cache_peer 192.168.xxx.xxxparent 8080 3130 proxy-only no-query default login=userid:password
never_direct allow all
# add end
# add start
acl mynetwork src 129.1.xx.0/255.255.255.0
http_access allow mynetwork
# add end
# add start
shutdown_lifetime 0 seconds
http_port 3128 transparentcache_peer 192.168.xxx.xxxparent 8080 3130 proxy-only no-query default login=userid:password
never_direct allow all
# add end
【squidでシャットダウンが遅くなる。】
vi /etc/squid/squid.conf
shutdown_lifetime 5 seconds
2011年6月25日土曜日
2011年5月8日日曜日
B氏におそわったgrubの設定をした。
$ sudo vi /etc/default/grub
「GRUB_DEFAULT=0」を「GRUB_DEFAULT=saved」に変更
「GRUB_SAVEDEFAULT=true」という行を追加
$ sudo update-grub #変更を反映
「GRUB_DEFAULT=0」を「GRUB_DEFAULT=saved」に変更
「GRUB_SAVEDEFAULT=true」という行を追加
$ sudo update-grub #変更を反映
2011年2月6日日曜日
apacheサーバからAndroidアプリをダウンロードする。
apt-get install apache2
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite
# viでmysiteを修正(VirtualHost / DocumentRoot)
mkdir ~/www
cat >~/www/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</HEAD>
<BODY>
<P><A href="down/HelloAndroid.apk">HelloAndroid.apkのダウンロード</A></P>
</BODY>
</HTML>
<<EOF
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite
# viでmysiteを修正(VirtualHost / DocumentRoot)
mkdir ~/www
cat >~/www/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</HEAD>
<BODY>
<P><A href="down/HelloAndroid.apk">HelloAndroid.apkのダウンロード</A></P>
</BODY>
</HTML>
<<EOF
a2dissite default
a2ensite mysite
/etc/init.d/apache2 restart
2011年1月30日日曜日
eclipseをインストールする。
■ubuntu 10.10にeclipseをインストールしてみた。
1)ここからeclipseと日本語プラグイン(pleiades.zip)をダウンロード
http://www.eclipse.org/downloads/
Eclipse Helios (3.6.1) Packages for Linux
-------------------------------------------------------------------------------------------------------
tar xvzf eclipse-jee-helios-SR2-linux-gtk.tar.gz -C /opt
unzip pleiades.zip -d /opt/eclipse
1)ここからeclipseと日本語プラグイン(pleiades.zip)をダウンロード
http://www.eclipse.org/downloads/
Eclipse Helios (3.6.1) Packages for Linux
Eclipse IDE for Java EE Developers,
Ver.1.3.3 pleiades.zip
2) ダウンロードしたファイルを展開する。
-------------------------------------------------------------------------------------------------------
tar xvzf eclipse-jee-helios-SR2-linux-gtk.tar.gz -C /opt
unzip pleiades.zip -d /opt/eclipse
#-XX:MaxPermSize=256m
#-Xms128m
#-Xmx512m
#-Xms128m
#-Xmx512m
mv /opt/eclipse/eclipse.ini /opt/eclipse/eclipse.ini.org
sed -e 's/-XX:MaxPermSize=256m/-XX:MaxPermSize=256m/' \
-e 's/-Xms40m/-Xms128m/' \
3) Android プラグインをインストールする。
ヘルプー>新規ソフトウェアのインストールを選択
作業対象 https://dl-ssl.google.com/android/eclipse/ 追加をクリック
■windowsにeclipseをインストールしてみた。
1) Windows 7/XP/Vista/2003/2008 (64 ビット) をダウンロードする。
http://www.java.com/ja/download/manual.jsp
2) 試しに開発版Eclipse IDE for Java and Report Developersをダウンロードしてみた。
http://www.eclipse.org/downloads/
3)eclipse日本語化プラグインPleiadesをダウンロードする。
http://mergedoc.sourceforge.jp/#pleiades.html
・ Pkeuadesを展開し、featuresとpluginsをeclipseのインストールディレクトリにコピー。
・eclipse.ini の最終行に以下の記述を追加。
-javaagent:plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
4)java JDK(Java SE Development Kit 6u23)をインストールした。
http://www.oracle.com/technetwork/java/javase/downloads/index.html
5)Android SDKをインストール。
http://developer.android.com/intl/ja/sdk/index.html
6)
(~/.android/androidtool.cfgにセットされるようだ!!)
■eclipse 2018-09 Build id:20180917-1800 インストール(追記)
URL https://www.eclipse.org/downloads/packages/
URL http://mergedoc.osdn.jp/#pleiades.html
# cd ダウンロード
# tar xvzf eclipse-jee-2018-09-linux-gtk-x86_64.tar.gz -C /opt
# unzip pleiades.zip -d /opt/eclipse
# rm eclipse-jee-2018-09-linux-gtk-x86_64.tar.gz pleiades.zip
# cp -rp /opt/pleiades/features /opt/eclipse/
# cp -rp /opt/pleiades/plugins /opt/eclipse/
# cd /usr/local/bin
# ln -s /opt/eclipse/eclipse .
# vi /opt/eclipse/eclipse.ini<<__EOF__ 2&>/dev/null
Go
-Xverify:none
-javaagent:/opt/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
^[ ←cntl+v escに置き換える。
ZZ
__EOF__
# eclipse -clean
ヘルプ→新規ソフトウェアのインストール
Vrapper - http://vrapper.sourceforge.net/update-site/stable
sed -e 's/-XX:MaxPermSize=256m/-XX:MaxPermSize=256m/' \
-e 's/-Xms40m/-Xms128m/' \
-e 's/-Xmx512m/-Xmx512m/' \
/opt/eclipse/eclipse.ini.org > /opt/eclipse/eclipse.ini
echo -javaagent:/opt/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar>>/opt/eclipse/eclipse.ini
/opt/eclipse/eclipse.ini.org > /opt/eclipse/eclipse.ini
echo -javaagent:/opt/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar>>/opt/eclipse/eclipse.ini
ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
3) Android プラグインをインストールする。
ヘルプー>新規ソフトウェアのインストールを選択
作業対象 https://dl-ssl.google.com/android/eclipse/ 追加をクリック
名前 ADT Plugin
4) Android SDK およびAVDマネージャの起動
ウィンドウー>設定ー>android
SDKロケーション /ホームディレクトリ/mydroid/out/host/linux-x86
ウィンドウー>Android SDK およびAVDマネージャ
4) Android SDK およびAVDマネージャの起動
ウィンドウー>設定ー>android
SDKロケーション /ホームディレクトリ/mydroid/out/host/linux-x86
ウィンドウー>Android SDK およびAVDマネージャ
1) Windows 7/XP/Vista/2003/2008 (64 ビット) をダウンロードする。
http://www.java.com/ja/download/manual.jsp
2) 試しに開発版Eclipse IDE for Java and Report Developersをダウンロードしてみた。
http://www.eclipse.org/downloads/
3)eclipse日本語化プラグインPleiadesをダウンロードする。
http://mergedoc.sourceforge.jp/#pleiades.html
・ Pkeuadesを展開し、featuresとpluginsをeclipseのインストールディレクトリにコピー。
・eclipse.ini の最終行に以下の記述を追加。
-javaagent:plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
4)java JDK(Java SE Development Kit 6u23)をインストールした。
http://www.oracle.com/technetwork/java/javase/downloads/index.html
5)Android SDKをインストール。
http://developer.android.com/intl/ja/sdk/index.html
6)
- Start Eclipse, then select Help > Install New Software....
- Click Add, in the top-right corner.
- In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
(~/.android/androidtool.cfgにセットされるようだ!!)
■eclipse 2018-09 Build id:20180917-1800 インストール(追記)
URL https://www.eclipse.org/downloads/packages/
URL http://mergedoc.osdn.jp/#pleiades.html
# cd ダウンロード
# tar xvzf eclipse-jee-2018-09-linux-gtk-x86_64.tar.gz -C /opt
# unzip pleiades.zip -d /opt/eclipse
# rm eclipse-jee-2018-09-linux-gtk-x86_64.tar.gz pleiades.zip
# cp -rp /opt/pleiades/features /opt/eclipse/
# cp -rp /opt/pleiades/plugins /opt/eclipse/
# cd /usr/local/bin
# ln -s /opt/eclipse/eclipse .
# vi /opt/eclipse/eclipse.ini<<__EOF__ 2&>/dev/null
Go
-Xverify:none
-javaagent:/opt/eclipse/plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar
^[ ←cntl+v escに置き換える。
ZZ
__EOF__
ヘルプ→新規ソフトウェアのインストール
Vrapper - http://vrapper.sourceforge.net/update-site/stable
http://sourceforge.net/projects/jasperstudio/files/updatesite/6.6.0
■ 便利なツール
・Buildship gradle Integration 3.0(jee インストール済み)
・Jaspersoft Studio 6.6.0
・Vrapper(vim)0.74.0
■ 便利なツール
・Buildship gradle Integration 3.0(jee インストール済み)
・Jaspersoft Studio 6.6.0
・Vrapper(vim)0.74.0
2011年1月10日月曜日
ubuntu をネットワークインストールする。
ここから、ftpd32.exeをダウンロード
http://japanese.trailsframework.org/lv/group/view/kl46924/T_d32.htm
PCのLANインターフェースに固定IPをセットする。
IP Forwarding を有効にする。
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters キーのIPEnableRouterに1をセット する。
http://japanese.trailsframework.org/lv/group/view/kl46924/T_d32.htm
PCのLANインターフェースに固定IPをセットする。
IP Forwarding を有効にする。
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters キーのIPEnableRouterに1をセット する。
登録:
投稿 (Atom)
zabbix7 amazon linux2023 インストール postgres15
【postgres】 dnf -y install postgresql15-server postgresql15-server-devel postgresql-setup initdb passwd postgres vi `find / -name pg_hba.con...
-
# mount /dev/nvme0n1p3 /mnt/m2 mount: /mnt/m2: 未知のファイルシステムタイプ 'LVM2_member' です. # fdisk -l /dev/nvme0n1 ディスク /dev/nvme0n1: 953....
-
【snmp/snmptrap】 # yum -y install net-snmp # yum -y install net-snmp-utils # yum -y install snmptt # yum install perl-Sys-Syslog # fi...
-
※Status code: 404 for https://dlm.mariadb.com/repo/mariadb-server/10.7.... → Ver.10 サポート切れ!! # dnf remove MareaDB-client # curl -sS https:...