OSDN Git Service

マルチプロジェクト型にレポジトリを変更するために移動した
authorsuikan <suikan@b746617e-2f65-49c5-822b-d4b0dda805f6>
Mon, 22 Nov 2010 15:18:32 +0000 (15:18 +0000)
committersuikan <suikan@b746617e-2f65-49c5-822b-d4b0dda805f6>
Mon, 22 Nov 2010 15:18:32 +0000 (15:18 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/toppersasp4lpc/installer/trunk@235 b746617e-2f65-49c5-822b-d4b0dda805f6

installer/.project [new file with mode: 0644]
installer/README [new file with mode: 0644]
installer/bookmarks.json [new file with mode: 0644]
installer/conv.utf8 [new file with mode: 0755]
installer/hjlink.cfg [new file with mode: 0644]
installer/installer [new file with mode: 0755]
installer/lpc1768.cfg [new file with mode: 0644]

diff --git a/installer/.project b/installer/.project
new file mode 100644 (file)
index 0000000..ffd5bbe
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>installer</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+       </buildSpec>
+       <natures>
+       </natures>
+</projectDescription>
diff --git a/installer/README b/installer/README
new file mode 100644 (file)
index 0000000..bc6a7f5
--- /dev/null
@@ -0,0 +1,12 @@
+TOPPERS/ASP for LPC インストーラー
+
+このディレクトリには、TOPPERS/ASP for LPC開発環境の設定用スクリプトが収めてある。対応OSは、Ubuntu 10.04である。
+
+installer
+       Codesourcery、Eclipse、lpc21isp、OpenOCD、Kermitをインストールする。
+
+conv.utf8
+       引数として与えるディレクトリの中身をすべてutf8に変更するスクリプト。
+
+bookmarks.json
+       Firefoxのブックマーク
\ No newline at end of file
diff --git a/installer/bookmarks.json b/installer/bookmarks.json
new file mode 100644 (file)
index 0000000..7a561b5
--- /dev/null
@@ -0,0 +1 @@
+{"title":"","id":1,"dateAdded":1272669930437816,"lastModified":1276989416828750,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"ブックマークメニュー","id":2,"parent":1,"dateAdded":1272669930438038,"lastModified":1277472595344263,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"最近ブックマークしたページ","id":7,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentlyBookmarked"}],"type":"text/x-moz-place","uri":"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&sort=12&excludeQueries=1&excludeItemIfParentHasAnnotation=livemark%2FfeedURI&maxResults=10&queryType=1"},{"index":1,"title":"最近付けたタグ","id":8,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentTags"}],"type":"text/x-moz-place","uri":"place:sort=14&type=6&maxResults=10&queryType=1"},{"index":2,"title":"","id":9,"parent":2,"dateAdded":1272669930457064,"lastModified":1272669930457064,"type":"text/x-moz-place-separator"},{"index":3,"title":"Get Bookmark Add-ons","id":10,"parent":2,"dateAdded":1272669930459740,"lastModified":1272669930566784,"type":"text/x-moz-place","uri":"https://addons.mozilla.org/en-US/firefox/bookmarks/"},{"index":4,"title":"","id":13,"parent":2,"dateAdded":1272669930576183,"lastModified":1272669930576183,"type":"text/x-moz-place-separator"},{"index":5,"title":"Ubuntu and Free Software links","id":14,"parent":2,"dateAdded":1181129907000000,"lastModified":1180687506000000,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"Information and resources about Ubuntu, Debian and Free Software in general"}],"type":"text/x-moz-place-container","children":[{"title":"Ubuntu","id":15,"parent":14,"dateAdded":1181129907000000,"lastModified":1181129907000000,"type":"text/x-moz-place","uri":"http://www.ubuntulinux.org/"},{"index":1,"title":"Ubuntu Wiki (community-edited website)","id":16,"parent":14,"dateAdded":1181129907000000,"lastModified":1181129907000000,"type":"text/x-moz-place","uri":"http://www.ubuntulinux.org/wiki/FrontPage"},{"index":2,"title":"Make a Support Request to the Ubuntu Community","id":17,"parent":14,"dateAdded":1181129907000000,"lastModified":1181129907000000,"type":"text/x-moz-place","uri":"https://answers.launchpad.net/ubuntu/+addquestion"},{"index":3,"title":"Debian (Ubuntu is based on Debian)","id":18,"parent":14,"dateAdded":1181129907000000,"lastModified":1181129907000000,"type":"text/x-moz-place","uri":"http://www.debian.org/"}]},{"index":6,"title":"Mozilla Firefox","id":19,"parent":2,"dateAdded":1272669930586614,"lastModified":1180687506000000,"type":"text/x-moz-place-container","children":[{"title":"Help and Tutorials","id":20,"parent":19,"dateAdded":1272669930586817,"lastModified":1272669930587337,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/help/"},{"index":1,"title":"Customize Firefox","id":21,"parent":19,"dateAdded":1272669930587470,"lastModified":1272669930587949,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/customize/"},{"index":2,"title":"Get Involved","id":22,"parent":19,"dateAdded":1272669930588099,"lastModified":1272669930588575,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/community/"},{"index":3,"title":"About Us","id":23,"parent":19,"dateAdded":1272669930588704,"lastModified":1272669930589269,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/about/"}]},{"index":7,"title":"TOPPERS/ASP for LPC","id":140,"parent":2,"dateAdded":1276989429759903,"lastModified":1277472595344263,"type":"text/x-moz-place-container","children":[{"title":"TOPPERS/ASP for LPC  - SourceForge.JP","id":74,"parent":140,"dateAdded":1276871997055460,"lastModified":1276872011737825,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"このプロジェクトは、NXP社のCORTEX-M3マイコンLPC1768に、ITRON互換リアルタイムOS、TOPPERS/ASPを移植し、配布することを目的としています。"}],"type":"text/x-moz-place","uri":"http://sourceforge.jp/projects/toppersasp4lpc/","charset":"UTF-8"},{"index":1,"title":"UZUME (うずめ)  - SourceForge.JP","id":75,"parent":140,"dateAdded":1276872021418704,"lastModified":1276872030534533,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"UZUMEは趣味で作る電子楽器用の共通基盤を提供するプロジェクトです。\u000d\u000aハードウェアは複数種類のCPUに対応することで性能的なスケーラビリティを確保しつつ、ペリフェラルや機能をクラス化することでレジスタ・アクセスなどに煩わされない開発を目指します。\u000d\u000aUZUMEを使用したシステムでは、ADCからの制御値を読みながら、リアルタイムで音のデータを加工するようなアプリケーションを容易に書くことができます。\u000d\u000aプロジェクト名は日本神話の神「アメノウズメ」からいただきました。"}],"type":"text/x-moz-place","uri":"http://sourceforge.jp/projects/uzume/","charset":"UTF-8"},{"index":2,"title":"Blackfin空挺団::Blog","id":76,"parent":140,"dateAdded":1276872050501403,"lastModified":1276872050535881,"type":"text/x-moz-place","uri":"http://d.hatena.ne.jp/suikan+blackfin/","charset":"EUC-JP"},{"index":3,"title":"Embedded 脇見運転","id":77,"parent":140,"dateAdded":1276872061910563,"lastModified":1276872061920398,"type":"text/x-moz-place","uri":"http://d.hatena.ne.jp/suikan+embedded/","charset":"EUC-JP"},{"index":4,"title":"NXP LPC1768","id":128,"parent":140,"dateAdded":1276989006782385,"lastModified":1276989015217835,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"NXP is a leading semiconductor company founded by Philips more than 50 years ago. NXP creates semiconductors, system solutions and software that deliver better sensory experiences in TVs, set-top boxes, identification applications, mobile phones, cars and a wide range of other electronic devices"}],"type":"text/x-moz-place","uri":"http://www.jp.nxp.com/#/pip/pip=[pip=LPC1769_68_67_66_65_64_4]|pp=[t=pip,i=LPC1769_68_67_66_65_64_4]","charset":"UTF-8"},{"index":5,"title":"ARM Cortex-M3システム開発ガイド","id":130,"parent":140,"dateAdded":1276989130621349,"lastModified":1276989130633024,"type":"text/x-moz-place","uri":"http://www.cqpub.co.jp/hanbai/books/36/36491.htm","charset":"Shift_JIS"},{"index":6,"title":"TOPPERSプロジェクト","id":131,"parent":140,"dateAdded":1276989173238603,"lastModified":1276989178650302,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"TOPPERS Project"}],"type":"text/x-moz-place","uri":"http://www.toppers.jp/","charset":"ISO-2022-JP"},{"index":7,"title":"(toppers-users 3165) Re: cq_starm_gcc のサンプルビルドに失敗","id":132,"parent":140,"dateAdded":1276989223589381,"lastModified":1276989223601110,"type":"text/x-moz-place","uri":"http://www.toppers.jp/TOPPERS-USERS/201004/msg00034.html","charset":"ISO-2022-JP"},{"index":8,"title":"STM32 - Documents","id":141,"parent":140,"dateAdded":1276990541256676,"lastModified":1276990567031095,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"STM32 (ARM Cortex M3) - 32-bit Microcontrollers - Technical Literature and Support Files STMicroelectronics"}],"type":"text/x-moz-place","uri":"http://www.st.com/mcu/familiesdocs-110.html","charset":"ISO-8859-1"},{"index":9,"title":"CodeSourcery: Sourcery G++: Lite Edition: ARM: GNU Toolchain for ARM Processors","id":192,"parent":140,"dateAdded":1277242483151556,"lastModified":1277242483188797,"type":"text/x-moz-place","uri":"http://www.codesourcery.com/sgpp/lite/arm","charset":"ISO-8859-15"}]}]},{"index":1,"title":"ブックマークツールバー","id":3,"parent":1,"dateAdded":1272669930438117,"lastModified":1272669930575641,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar"}],"type":"text/x-moz-place-container","root":"toolbarFolder","children":[{"title":"よく見るページ","id":6,"parent":3,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"MostVisited"}],"type":"text/x-moz-place","uri":"place:sort=8&redirectsMode=2&maxResults=10"},{"index":1,"title":"Getting Started","id":11,"parent":3,"dateAdded":1272669930575256,"lastModified":1272669930575481,"type":"text/x-moz-place","uri":"http://www.mozilla.com/en-US/firefox/central/"},{"index":2,"title":"Latest Headlines","id":12,"parent":3,"dateAdded":1272669930575641,"lastModified":1277472576618629,"livemark":1,"annos":[{"name":"placesInternal/READ_ONLY","flags":0,"expires":4,"mimeType":null,"type":1,"value":1},{"name":"livemark/feedURI","flags":0,"expires":4,"mimeType":null,"type":3,"value":"http://fxfeeds.mozilla.com/en-US/firefox/headlines.xml"},{"name":"livemark/siteURI","flags":0,"expires":4,"mimeType":null,"type":3,"value":"http://news.bbc.co.uk/go/rss/-/2/hi/default.stm"},{"name":"livemark/expiration","flags":0,"expires":4,"mimeType":null,"type":2,"value":1277476176615}],"type":"text/x-moz-place-container","children":[]}]},{"index":2,"title":"タグ","id":4,"parent":1,"dateAdded":1272669930438186,"lastModified":1272669930438655,"type":"text/x-moz-place-container","root":"tagsFolder","children":[]},{"index":3,"title":"未整理のブックマーク","id":5,"parent":1,"dateAdded":1272669930438255,"lastModified":1272669930454718,"type":"text/x-moz-place-container","root":"unfiledBookmarksFolder","children":[]},]}
\ No newline at end of file
diff --git a/installer/conv.utf8 b/installer/conv.utf8
new file mode 100755 (executable)
index 0000000..a9187c0
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+convert2utf8(){
+    while [ -n "$1" ]; do
+        if [ -d $1 ]; then
+                echo $1
+               cd $1
+               convert2utf8 *
+               cd ..
+        elif [ $1 = $0 ];then
+                echo "skipping $1"
+        else
+                lv -Ou8 $1 > _TEMP  # converting char encoding.
+                cp _TEMP $1
+               rm _TEMP
+        fi
+        shift
+    done
+}
+
+convert2utf8 $1
diff --git a/installer/hjlink.cfg b/installer/hjlink.cfg
new file mode 100644 (file)
index 0000000..731a4bb
--- /dev/null
@@ -0,0 +1,12 @@
+#
+# Alpha Project HJ-LINK/USB
+#
+# http://www.apnet.co.jp/product/superh/hj-link_usb.html
+#
+
+
+#interface
+interface ft2232
+ft2232_device_desc "USB <-> Serial Cable A"
+ft2232_layout jtagkey
+ft2232_vid_pid 0x0403 0x6010
diff --git a/installer/installer b/installer/installer
new file mode 100755 (executable)
index 0000000..b8083ee
--- /dev/null
@@ -0,0 +1,64 @@
+#! /bin/sh
+sudo apt-get install eclipse doxygen g++ ckermit libftdi1 libftdi-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev lv qemu-arm-static
+
+
+# Tool chain
+rm arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 -f
+wget http://www.codesourcery.com/sgpp/lite/arm/portal/package6493/public/arm-none-eabi/arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
+tar xvjf arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
+sudo rm /opt/arm -f
+sudo mv arm-2010q1 /opt  -f
+sudo ln /opt/arm-2010q1 /opt/arm -s
+
+
+# OpenOCD
+sudo rm openocd-0.4.0 -r -f
+sudo rm openocd-0.4.0.tar.bz2
+wget http://downloads.sourceforge.net/project/openocd/openocd/0.4.0/openocd-0.4.0.tar.bz2
+tar xvjf openocd-0.4.0.tar.bz2
+cd openocd-0.4.0
+./configure --enable-ft2232_libftdi
+make
+sudo make install
+cd ..
+
+# setPath : 
+#      set search path into the PATH environment variable
+#      Run this program from some temporal directory
+echo 'export PATH=$PATH:/opt/lpc21isp' >> ~/.bashrc
+echo 'export PATH=$PATH:/opt/arm/bin' >> ~/.bashrc
+# 以下の設定は、cfg 1.6.0には不要
+# echo 'export BOOST_DIR=/usr/include/boost' >> ~/.bashrc
+# echo 'export LIBBOOST_SUFFIX=-mt' >> ~/.bashrc
+
+
+echo 'export PATH=$PATH:/opt/lpc21isp' >> ~/.profile
+echo 'export PATH=$PATH:/opt/arm/bin' >> ~/.profile
+
+# Setup Kermit initialize file
+echo 'set line /dev/ttyUSB0' > ~/.kermrc
+echo 'set speed 57600' >> ~/.kermrc
+echo 'set parity none' >> ~/.kermrc
+echo 'set flow-control none' >> ~/.kermrc
+echo 'set carrier-watch off' >> ~/.kermrc
+
+# Add access right to JTAG ice for OpenOCD
+echo \# FT2232 based JTAG ICE > 50-ft2232.rules
+echo ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6010\", GROUP=\"jtag\" >> 50-ft2232.rules
+
+sudo mv 50-ft2232.rules /etc/udev/rules.d
+sudo groupadd jtag
+sudo gpasswd -a `whoami` jtag
+
+# LPC21ispのインストール
+rm lpc21isp-1.*.tar.gz -f
+rm lpc21isp-1.* -r -f
+wget http://downloads.sourceforge.net/project/lpc21isp/lpc21isp/1.79/lpc21isp-1.79.tar.gz
+tar xvzf lpc21isp-1.79.tar.gz
+cd lpc21isp
+make clean
+make 
+sudo mkdir /opt/lpc21isp
+sudo mv lpc21isp /opt/lpc21isp
+cd ..
+
diff --git a/installer/lpc1768.cfg b/installer/lpc1768.cfg
new file mode 100644 (file)
index 0000000..f0093ad
--- /dev/null
@@ -0,0 +1,51 @@
+# NXP LPC1768 Cortex-M3 with 512kB Flash and 32kB+32kB Local On-Chip SRAM, clocked with 4MHz internal RC oscillator
+
+if { [info exists CHIPNAME] } {
+       set  _CHIPNAME $CHIPNAME
+} else {
+       set  _CHIPNAME lpc1768
+}
+
+if { [info exists ENDIAN] } {
+       set  _ENDIAN $ENDIAN
+} else {
+       set  _ENDIAN little
+}
+
+if { [info exists CPUTAPID ] } {
+       set _CPUTAPID $CPUTAPID
+} else {
+       set _CPUTAPID 0x4ba00477
+}
+
+#delays on reset lines
+jtag_nsrst_delay 200
+jtag_ntrst_delay 200
+
+# LPC2000 & LPC1700 -> SRST causes TRST
+reset_config trst_and_srst srst_pulls_trst
+
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
+
+# LPC1768 has 32kB of SRAM on its main system bus (so-called Local On-Chip SRAM)
+$_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size 0x8000 -work-area-backup 0
+
+# REVISIT is there any good reason to have this reset-init event handler??
+# Normally they should set up (board-specific) clocking then probe the flash...
+$_TARGETNAME configure -event reset-init {
+       # Force NVIC.VTOR to point to flash at 0 ...
+       # WHY?  This is it's reset value; we run right after reset!!
+       mwb 0xE000ED08 0x00
+}
+
+# LPC1768 has 512kB of user-available FLASH (bootloader is located in separate dedicated region).
+# flash bank lpc1700 <base> <size> 0 0 <target#> <variant> <cclk> [calc_checksum]
+
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME lpc2000 0x0 0x80000 0 0 $_TARGETNAME lpc1700 12000 calc_checksum
+
+# 4MHz / 6 = 666kHz, so use 500
+jtag_khz 500