標準ファーム Ver.1.04 でハックキット(7)開発環境のインストール

LS-HGL

標準ファーム 1.04 の LS-HGL に、 LS-HGL ハックキットをインストールする。

次は LS-GL/HS-DHGL ハックキット 開発環境のインストールに準じて LS-HGL に開発環境をインストールする。

パッケージのインストール

hackkit:~# apt-get install make gcc libc6-dev
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  binutils cpp cpp-4.1 gcc-4.1 libssp0 linux-kernel-headers
Suggested packages:
  binutils-doc cpp-doc gcc-4.1-locales manpages-dev autoconf automake1.9 libtool flex bison gdb
  gcc-doc gcc-4.1-doc glibc-doc make-doc-non-dfsg
Recommended packages:
  libmudflap0-dev
The following NEW packages will be installed:
  binutils cpp cpp-4.1 gcc gcc-4.1 libc6-dev libssp0 linux-kernel-headers make
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 9294kB of archives.
After unpacking 33.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp2.jp.debian.org etch/main binutils 2.17-3 [2485kB]
Get:2 http://ftp2.jp.debian.org etch/main cpp-4.1 4.1.1-21 [2006kB]
Get:3 http://ftp2.jp.debian.org etch/main cpp 4:4.1.1-15 [11.6kB]
Get:4 http://ftp2.jp.debian.org etch/main libssp0 4.1.1-21 [4224B]
Get:5 http://ftp2.jp.debian.org etch/main gcc-4.1 4.1.1-21 [403kB]
Get:6 http://ftp2.jp.debian.org etch/main gcc 4:4.1.1-15 [5062B]
Get:7 http://ftp2.jp.debian.org etch/main linux-kernel-headers 2.6.18-7 [1986kB]
Get:8 http://ftp2.jp.debian.org etch/main libc6-dev 2.3.6.ds1-13etch7 [2012kB]
Get:9 http://ftp2.jp.debian.org etch/main make 3.81-2 [381kB]
Fetched 9294kB in 17s (544kB/s)
Selecting previously deselected package binutils.
(Reading database ... 11915 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.17-3_arm.deb) ...
Selecting previously deselected package cpp-4.1.
Unpacking cpp-4.1 (from .../cpp-4.1_4.1.1-21_arm.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.1.1-15_arm.deb) ...
Selecting previously deselected package libssp0.
Unpacking libssp0 (from .../libssp0_4.1.1-21_arm.deb) ...
Selecting previously deselected package gcc-4.1.
Unpacking gcc-4.1 (from .../gcc-4.1_4.1.1-21_arm.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.1.1-15_arm.deb) ...
Selecting previously deselected package linux-kernel-headers.
Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.6.18-7_arm.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.3.6.ds1-13etch7_arm.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.81-2_arm.deb) ...
Setting up binutils (2.17-3) ...

Setting up cpp-4.1 (4.1.1-21) ...
Setting up cpp (4.1.1-15) ...

Setting up libssp0 (4.1.1-21) ...

Setting up gcc-4.1 (4.1.1-21) ...
Setting up gcc (4.1.1-15) ...

Setting up linux-kernel-headers (2.6.18-7) ...
Setting up libc6-dev (2.3.6.ds1-13etch7) ...
Setting up make (3.81-2) ...
hackkit:~#

確認

hackkit:/tmp# echo 'main() { printf("Why DO NOT you hack LS-HGL?\n"); }' > a.c
hackkit:/tmp# cc a.c
a.c: In function 'main':
a.c:1: warning: incompatible implicit declaration of built-in function 'printf'
hackkit:/tmp# ./a.out
Why DO NOT you hack LS-HGL?
hackkit:/tmp#


LS-H250GL
楽天市場
livedoor デパート
Sofmap
TSUKUMO ネットショップ
TWO TOP
Yahoo!ショッピング
パソQ
ムラウチドットコム
ヤマダ電機WEB
アット・ニフティストア icon
Joshin インターネットショッピング icon


Software Design 2008/9月号
ハックの記録
LinkStation/玄箱 をハックしよう

標準ファーム Ver.1.04 でハックキット(8)ftp サーバ

Copyright (C) 2003-2008 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市