Ubuntuの設定スクリプト
Revision | d9249efde3e23725d4b3ebc5abaf5b71a633faae (tree) |
---|---|
Time | 2010-11-23 00:18:32 |
Author | suikan <suikan@b746...> |
Commiter | suikan |
マルチプロジェクト型にレポジトリを変更するために移動した
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/toppersasp4lpc/installer/trunk@235 b746617e-2f65-49c5-822b-d4b0dda805f6
@@ -0,0 +1,11 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<projectDescription> | |
3 | + <name>installer</name> | |
4 | + <comment></comment> | |
5 | + <projects> | |
6 | + </projects> | |
7 | + <buildSpec> | |
8 | + </buildSpec> | |
9 | + <natures> | |
10 | + </natures> | |
11 | +</projectDescription> |
@@ -0,0 +1,12 @@ | ||
1 | +TOPPERS/ASP for LPC インストーラー | |
2 | + | |
3 | +このディレクトリには、TOPPERS/ASP for LPC開発環境の設定用スクリプトが収めてある。対応OSは、Ubuntu 10.04である。 | |
4 | + | |
5 | +installer | |
6 | + Codesourcery、Eclipse、lpc21isp、OpenOCD、Kermitをインストールする。 | |
7 | + | |
8 | +conv.utf8 | |
9 | + 引数として与えるディレクトリの中身をすべてutf8に変更するスクリプト。 | |
10 | + | |
11 | +bookmarks.json | |
12 | + Firefoxのブックマーク | |
\ No newline at end of file |
@@ -0,0 +1 @@ | ||
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 |
@@ -0,0 +1,20 @@ | ||
1 | +#!/bin/sh | |
2 | +convert2utf8(){ | |
3 | + while [ -n "$1" ]; do | |
4 | + if [ -d $1 ]; then | |
5 | + echo $1 | |
6 | + cd $1 | |
7 | + convert2utf8 * | |
8 | + cd .. | |
9 | + elif [ $1 = $0 ];then | |
10 | + echo "skipping $1" | |
11 | + else | |
12 | + lv -Ou8 $1 > _TEMP # converting char encoding. | |
13 | + cp _TEMP $1 | |
14 | + rm _TEMP | |
15 | + fi | |
16 | + shift | |
17 | + done | |
18 | +} | |
19 | + | |
20 | +convert2utf8 $1 |
@@ -0,0 +1,12 @@ | ||
1 | +# | |
2 | +# Alpha Project HJ-LINK/USB | |
3 | +# | |
4 | +# http://www.apnet.co.jp/product/superh/hj-link_usb.html | |
5 | +# | |
6 | + | |
7 | + | |
8 | +#interface | |
9 | +interface ft2232 | |
10 | +ft2232_device_desc "USB <-> Serial Cable A" | |
11 | +ft2232_layout jtagkey | |
12 | +ft2232_vid_pid 0x0403 0x6010 |
@@ -0,0 +1,64 @@ | ||
1 | +#! /bin/sh | |
2 | +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 | |
3 | + | |
4 | + | |
5 | +# Tool chain | |
6 | +rm arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 -f | |
7 | +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 | |
8 | +tar xvjf arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 | |
9 | +sudo rm /opt/arm -f | |
10 | +sudo mv arm-2010q1 /opt -f | |
11 | +sudo ln /opt/arm-2010q1 /opt/arm -s | |
12 | + | |
13 | + | |
14 | +# OpenOCD | |
15 | +sudo rm openocd-0.4.0 -r -f | |
16 | +sudo rm openocd-0.4.0.tar.bz2 | |
17 | +wget http://downloads.sourceforge.net/project/openocd/openocd/0.4.0/openocd-0.4.0.tar.bz2 | |
18 | +tar xvjf openocd-0.4.0.tar.bz2 | |
19 | +cd openocd-0.4.0 | |
20 | +./configure --enable-ft2232_libftdi | |
21 | +make | |
22 | +sudo make install | |
23 | +cd .. | |
24 | + | |
25 | +# setPath : | |
26 | +# set search path into the PATH environment variable | |
27 | +# Run this program from some temporal directory | |
28 | +echo 'export PATH=$PATH:/opt/lpc21isp' >> ~/.bashrc | |
29 | +echo 'export PATH=$PATH:/opt/arm/bin' >> ~/.bashrc | |
30 | +# 以下の設定は、cfg 1.6.0には不要 | |
31 | +# echo 'export BOOST_DIR=/usr/include/boost' >> ~/.bashrc | |
32 | +# echo 'export LIBBOOST_SUFFIX=-mt' >> ~/.bashrc | |
33 | + | |
34 | + | |
35 | +echo 'export PATH=$PATH:/opt/lpc21isp' >> ~/.profile | |
36 | +echo 'export PATH=$PATH:/opt/arm/bin' >> ~/.profile | |
37 | + | |
38 | +# Setup Kermit initialize file | |
39 | +echo 'set line /dev/ttyUSB0' > ~/.kermrc | |
40 | +echo 'set speed 57600' >> ~/.kermrc | |
41 | +echo 'set parity none' >> ~/.kermrc | |
42 | +echo 'set flow-control none' >> ~/.kermrc | |
43 | +echo 'set carrier-watch off' >> ~/.kermrc | |
44 | + | |
45 | +# Add access right to JTAG ice for OpenOCD | |
46 | +echo \# FT2232 based JTAG ICE > 50-ft2232.rules | |
47 | +echo ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6010\", GROUP=\"jtag\" >> 50-ft2232.rules | |
48 | + | |
49 | +sudo mv 50-ft2232.rules /etc/udev/rules.d | |
50 | +sudo groupadd jtag | |
51 | +sudo gpasswd -a `whoami` jtag | |
52 | + | |
53 | +# LPC21ispのインストール | |
54 | +rm lpc21isp-1.*.tar.gz -f | |
55 | +rm lpc21isp-1.* -r -f | |
56 | +wget http://downloads.sourceforge.net/project/lpc21isp/lpc21isp/1.79/lpc21isp-1.79.tar.gz | |
57 | +tar xvzf lpc21isp-1.79.tar.gz | |
58 | +cd lpc21isp | |
59 | +make clean | |
60 | +make | |
61 | +sudo mkdir /opt/lpc21isp | |
62 | +sudo mv lpc21isp /opt/lpc21isp | |
63 | +cd .. | |
64 | + |
@@ -0,0 +1,51 @@ | ||
1 | +# NXP LPC1768 Cortex-M3 with 512kB Flash and 32kB+32kB Local On-Chip SRAM, clocked with 4MHz internal RC oscillator | |
2 | + | |
3 | +if { [info exists CHIPNAME] } { | |
4 | + set _CHIPNAME $CHIPNAME | |
5 | +} else { | |
6 | + set _CHIPNAME lpc1768 | |
7 | +} | |
8 | + | |
9 | +if { [info exists ENDIAN] } { | |
10 | + set _ENDIAN $ENDIAN | |
11 | +} else { | |
12 | + set _ENDIAN little | |
13 | +} | |
14 | + | |
15 | +if { [info exists CPUTAPID ] } { | |
16 | + set _CPUTAPID $CPUTAPID | |
17 | +} else { | |
18 | + set _CPUTAPID 0x4ba00477 | |
19 | +} | |
20 | + | |
21 | +#delays on reset lines | |
22 | +jtag_nsrst_delay 200 | |
23 | +jtag_ntrst_delay 200 | |
24 | + | |
25 | +# LPC2000 & LPC1700 -> SRST causes TRST | |
26 | +reset_config trst_and_srst srst_pulls_trst | |
27 | + | |
28 | +jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID | |
29 | + | |
30 | +set _TARGETNAME $_CHIPNAME.cpu | |
31 | +target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME | |
32 | + | |
33 | +# LPC1768 has 32kB of SRAM on its main system bus (so-called Local On-Chip SRAM) | |
34 | +$_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size 0x8000 -work-area-backup 0 | |
35 | + | |
36 | +# REVISIT is there any good reason to have this reset-init event handler?? | |
37 | +# Normally they should set up (board-specific) clocking then probe the flash... | |
38 | +$_TARGETNAME configure -event reset-init { | |
39 | + # Force NVIC.VTOR to point to flash at 0 ... | |
40 | + # WHY? This is it's reset value; we run right after reset!! | |
41 | + mwb 0xE000ED08 0x00 | |
42 | +} | |
43 | + | |
44 | +# LPC1768 has 512kB of user-available FLASH (bootloader is located in separate dedicated region). | |
45 | +# flash bank lpc1700 <base> <size> 0 0 <target#> <variant> <cclk> [calc_checksum] | |
46 | + | |
47 | +set _FLASHNAME $_CHIPNAME.flash | |
48 | +flash bank $_FLASHNAME lpc2000 0x0 0x80000 0 0 $_TARGETNAME lpc1700 12000 calc_checksum | |
49 | + | |
50 | +# 4MHz / 6 = 666kHz, so use 500 | |
51 | +jtag_khz 500 |