FC2ブログ

[NEEK][Linux]組み込みLinuxまでの手順(6)(CentOS5.7)

  ・以下からCentOSを入手。
    http://rsync.atworks.co.jp/centos/5.7/isos/i386/
    CentOS-5.7-i386-bin-1to8.torrent 13-Sep-2011 09:49 320K

   torrentファイルから入手したけど、かなり早くダウンロード出来たみたい。

  ・VMwareへCentOS追加。DVDドライブを使わずisoファイルを使う方法でインストール。
   isoは3of8までしか使わなかった。

  ・一般ユーザアカウントのsudoの許可がされてないから、一度、rootでログイン。

  ・visudoを実行し、末尾に「%bob ALL=(ALL) ALL」を追記して、保存して終了。
   これでsudoをbobアカウントで使えるようになった。
    http://linux.kororo.jp/cont/intro/sudo.php

  ・uClinuxディストリビューションデータを入手。50~100kbpsくらいしか速度出ず、3時間くらいかかった。
    wget http://www.uclinux.org/pub/uClinux/dist/uClinux-dist-20070130.tar.gz

  ・展開。
  tar xvf download/uClinux-dist-20070130.tar.gz | tee log.tar.uclinux.070130

・/home/bob/uClinux-distへ移動し、make menuconfigを実行。
   表示されたウィンドウ内で、以下設定実施。ここを参照。
     http://www.altima.jp/softcore_cpu_7_2.html

     ・”vendor” ⇒ ”Altera”
     ・”target” ⇒ ”Nios2nommu”
     ・“kernel Version” ⇒ “linux-2.6.x”
     ・“Libc Version” ⇒ “None”

   Saveファイル名を書いて、終了すると、何やら処理が始まって、こんな結果に。

        :
zebra (CONFIG_USER_ZEBRA_ZEBRA_ZEBRA) [N/y/?]
*
* Net-tools
*
arp (CONFIG_USER_NET_TOOLS_ARP) [N/y/?]
hostname (CONFIG_USER_NET_TOOLS_HOSTNAME) [N/y/?]
ifconfig (CONFIG_USER_NET_TOOLS_IFCONFIG) [N/y/?]
nameif (CONFIG_USER_NET_TOOLS_NAMEIF) [N/y/?]
netstat (CONFIG_USER_NET_TOOLS_NETSTAT) [N/y/?]
plipconfig (CONFIG_USER_NET_TOOLS_PLIPCONFIG) [N/y/?]
rarp (CONFIG_USER_NET_TOOLS_RARP) [N/y/?]
route (CONFIG_USER_NET_TOOLS_ROUTE) [N/y/?]
slattach (CONFIG_USER_NET_TOOLS_SLATTACH) [N/y/?]
mii-tool (CONFIG_USER_NET_TOOLS_MII_TOOL) [N/y/?]
mii-tool-fec (CONFIG_USER_NET_TOOLS_MII_TOOL_FEC) [N/y/?]
*
* Wireless-tools
*
wireless_tools support (CONFIG_USER_WIRELESS_TOOLS) [N/y/?]
hostap (CONFIG_USER_HOSTAP_HOSTAP) [N/y/?]
wlan-ng (CONFIG_USER_WLAN_NG) [N/y/?]
*
* Miscellaneous Applications
*
7za (CONFIG_USER_P7ZIP_7ZA) [N/y/?]
a60 (CONFIG_USER_LANG_A60) [N/y/?]
arj (CONFIG_USER_ARJ_ARJ) [N/y/?]
bzip2 (CONFIG_USER_BZIP2_BZIP2) [N/y/?]
cal (CONFIG_USER_CAL_CAL) [N/y/?]
chat (CONFIG_USER_CHAT_CHAT) [N/y/?]
cksum (CONFIG_USER_CKSUM_CKSUM) [N/y/?]
clock (CONFIG_USER_CLOCK_CLOCK) [N/y/?]
cpu (CONFIG_USER_CPU_CPU) [N/y/?]
cryptotest (CONFIG_USER_CRYPTO_TOOLS_CRYPTOTEST) [N/y/?]
cryptokeytest (CONFIG_USER_CRYPTO_TOOLS_CRYPTOKEYTEST) [N/y/?]
date (CONFIG_USER_CAL_DATE) [N/y/?]
dhrystone (CONFIG_USER_DHRYSTONE_DHRYSTONE) [N/y/?]
de2ts-cal (CONFIG_USER_DE2TSCAL_DE2TSCAL) [N/y/?]
expat-examples (CONFIG_USER_EXPAT_EXAMPLES) [N/y/?]
flthdr (CONFIG_USER_FLTHDR_FLTHDR) [N/y/?]
frob-led (CONFIG_USER_FROB_LED_FROB_LED) [N/y/?]
gdbreplay (CONFIG_USER_GDB_GDBREPLAY) [N/y/?]
gdbserver (CONFIG_USER_GDB_GDBSERVER) [N/y/?]
gdb (target) (CONFIG_USER_GDB_TARGET) [N/y/?]
gdb (host) (CONFIG_USER_GDB_HOST) [N/y/?]
gdbreplay (old) (CONFIG_USER_GDBSERVER_GDBREPLAY) [N/y/?]
gdbserver (old) (CONFIG_USER_GDBSERVER_GDBSERVER) [N/y/?]
grep (CONFIG_USER_GREP_GREP) [N/y/?]
hd (CONFIG_USER_HD_HD) [N/y/?]
lcd (CONFIG_USER_LCD_LCD) [N/y/?]
ledcon (CONFIG_USER_LEDCON_LEDCON) [N/y/?]
lha (CONFIG_USER_LHA_LHA) [N/y/?]
lilo (CONFIG_USER_LILO_LILO) [N/y/?]
lissa (CONFIG_USER_LISSA_LISSA) [N/y/?]
lpr (CONFIG_USER_LPR) [N/y/?]
lua (CONFIG_USER_LUA_LUA) [N/y/?]
mcf5272 cbi client (CONFIG_USER_USBCBI_USBCBI) [N/y/?]
mcf5272 iso client (CONFIG_USER_USBISO_USBISO) [N/y/?]
mathstests (CONFIG_USER_MATH_TEST) [N/y/?]
mawk (CONFIG_USER_MAWK_AWK) [N/y/?]
mysql (CONFIG_USER_MYSQL) [N/y/?]
null (CONFIG_USER_NULL_NULL) [N/y/?]
palmbot (CONFIG_USER_PALMBOT_PALMBOT) [N/y/?]
pcmcia-cs (Card Services) (CONFIG_USER_PCMCIA_CS) [N/y/?]
perl (CONFIG_USER_PERL_PERL) [N/y/?]
python (CONFIG_USER_PYTHON_PYTHON) [N/y/?]
readprofile (CONFIG_USER_READPROFILE_READPROFILE) [N/y/?]
rootloader (CONFIG_USER_ROOTLOADER_ROOTLOADER) [N/y/?]
rrdtool (CONFIG_USER_RRDTOOL_RRDTOOL) [N/y/?]
setserial (CONFIG_USER_SETSERIAL_SETSERIAL) [N/y/?]
shadow utilities (CONFIG_USER_SHADOW_UTILS) [N/y/?]
siggen (CONFIG_USER_TRIPWIRE_SIGGEN) [N/y/?]
strace (CONFIG_USER_STRACE_STRACE) [N/y/?]
stty (CONFIG_USER_STTY_STTY) [N/y/?]
tcsh (CONFIG_USER_TCSH_TCSH) [N/y/?]
tinytcl (CONFIG_USER_TINYTCL_TCLSH) [N/y/?]
pThreads threaddemos (CONFIG_USER_THREADDEMOS_THREADDEMOS) [N/y/?]
tip (CONFIG_USER_TIP_TIP) [N/y/?]
tripwire (CONFIG_USER_TRIPWIRE_TRIPWIRE) [N/y/?]
unrar (CONFIG_USER_UNRAR_UNRAR) [N/y/?]
unzip (CONFIG_USER_UNZIP_UNZIP) [N/y/?]
unzoo (CONFIG_USER_UNZOO_UNZOO) [N/y/?]
zmodem utils (CONFIG_USER_LRZSZ_LRZSZ) [N/y/?]
*
* Benchmarks
*
whetstone benchmark (CONFIG_USER_WHETSTONE_WHETSTONE) [N/y/?]
nbench benchmark (CONFIG_USER_NBENCH_NBENCH) [N/y/?]
*
* LIRC
*
Enable LIRC tools (CONFIG_USER_LIRC) [N/y/?]
*
* LM SENSORS
*
Enable lm_sensors tools (CONFIG_USER_LM_SENSORS) [N/y/?]
*
* QSPI
*
Enable Coldfire QSPI test programs (CONFIG_MCF_QSPI) [N/y/?]
*
* Editors
*
vi (leevee) (CONFIG_USER_LEVEE_VI) [N/y/?]
vi (elvis-tiny) (CONFIG_USER_ELVISTINY_VI) [N/y/?]
*
* Audio tools
*
mp3play (CONFIG_USER_MP3PLAY_MP3PLAY) [N/y/?]
ogg123 (CONFIG_USER_OGGPLAY_OGG123) [N/y/?]
ivorbisfile_example (CONFIG_USER_OGGPLAY_EXAMPLE) [N/y/?]
musicbox (CONFIG_USER_MUSICBOX_MUSICBOX) [N/y/?]
play (CONFIG_USER_PLAY_PLAY) [N/y/?]
tone (CONFIG_USER_PLAY_TONE) [N/y/?]
vplay (CONFIG_USER_VPLAY_VPLAY) [N/y/?]
vrec (CONFIG_USER_VPLAY_VREC) [N/y/?]
mixer (CONFIG_USER_VPLAY_MIXER) [N/y/?]
playrt (CONFIG_USER_PLAYRT_PLAYRT) [N/y/?]
*
* Video tools
*
camserv (CONFIG_USER_CAMSERV) [N/y/?]
jpegview (CONFIG_USER_JPEGVIEW_JPEGVIEW) [N/y/?]
vidcat (CONFIG_USER_W3CAM_VIDCAT) [N/y/?]
w3camd (CONFIG_USER_W3CAM_W3CAMD) [N/y/?]
*
* Fileutils tools
*
cat (CONFIG_USER_FILEUTILS_CAT) [N/y/?]
chgrp (CONFIG_USER_FILEUTILS_CHGRP) [N/y/?]
chmod (CONFIG_USER_FILEUTILS_CHMOD) [N/y/?]
chown (CONFIG_USER_FILEUTILS_CHOWN) [N/y/?]
cmp (CONFIG_USER_FILEUTILS_CMP) [N/y/?]
cp (CONFIG_USER_FILEUTILS_CP) [N/y/?]
dd (CONFIG_USER_FILEUTILS_DD) [N/y/?]
grep (CONFIG_USER_FILEUTILS_GREP) [N/y/?]
l (CONFIG_USER_FILEUTILS_L) [N/y/?]
ln (CONFIG_USER_FILEUTILS_LN) [N/y/?]
ls (CONFIG_USER_FILEUTILS_LS) [N/y/?]
mkdir (CONFIG_USER_FILEUTILS_MKDIR) [N/y/?]
mkfifo (CONFIG_USER_FILEUTILS_MKFIFO) [N/y/?]
mknod (CONFIG_USER_FILEUTILS_MKNOD) [N/y/?]
more (CONFIG_USER_FILEUTILS_MORE) [N/y/?]
mv (CONFIG_USER_FILEUTILS_MV) [N/y/?]
rm (CONFIG_USER_FILEUTILS_RM) [N/y/?]
rmdir (CONFIG_USER_FILEUTILS_RMDIR) [N/y/?]
sync (CONFIG_USER_FILEUTILS_SYNC) [N/y/?]
touch (CONFIG_USER_FILEUTILS_TOUCH) [N/y/?]
*
* Shutils tools
*
basename (CONFIG_USER_SHUTILS_BASENAME) [N/y/?]
date (CONFIG_USER_SHUTILS_DATE) [N/y/?]
dirname (CONFIG_USER_SHUTILS_DIRNAME) [N/y/?]
echo (CONFIG_USER_SHUTILS_ECHO) [N/y/?]
false (CONFIG_USER_SHUTILS_FALSE) [N/y/?]
logname (CONFIG_USER_SHUTILS_LOGNAME) [N/y/?]
printenv (CONFIG_USER_SHUTILS_PRINTENV) [N/y/?]
pwd (CONFIG_USER_SHUTILS_PWD) [N/y/?]
true (CONFIG_USER_SHUTILS_TRUE) [N/y/?]
uname (CONFIG_USER_SHUTILS_UNAME) [N/y/?]
which (CONFIG_USER_SHUTILS_WHICH) [N/y/?]
whoami (CONFIG_USER_SHUTILS_WHOAMI) [N/y/?]
yes (CONFIG_USER_SHUTILS_YES) [N/y/?]
*
* Sysutils tools
*
reboot (CONFIG_USER_SYSUTILS_REBOOT) [N/y/?]
shutdown (CONFIG_USER_SYSUTILS_SHUTDOWN) [N/y/?]
df (CONFIG_USER_SYSUTILS_DF) [N/y/?]
free (CONFIG_USER_SYSUTILS_FREE) [N/y/?]
hostname (CONFIG_USER_SYSUTILS_HOSTNAME) [N/y/?]
kill (CONFIG_USER_SYSUTILS_KILL) [N/y/?]
ps (CONFIG_USER_SYSUTILS_PS) [N/y/?]
*
* Procps tools
*
free (CONFIG_USER_PROCPS_FREE) [N/y/?]
kill (CONFIG_USER_PROCPS_KILL) [N/y/?]
pgrep (CONFIG_USER_PROCPS_PGREP) [N/y/?]
pkill (CONFIG_USER_PROCPS_PKILL) [N/y/?]
ps (CONFIG_USER_PROCPS_PS) [N/y/?]
snice (CONFIG_USER_PROCPS_SNICE) [N/y/?]
sysctl (CONFIG_USER_PROCPS_SYSCTL) [N/y/?]
tload (CONFIG_USER_PROCPS_TLOAD) [N/y/?]
top (CONFIG_USER_PROCPS_TOP) [N/y/?]
uptime (CONFIG_USER_PROCPS_UPTIME) [N/y/?]
vmstat (CONFIG_USER_PROCPS_VMSTAT) [N/y/?]
w (CONFIG_USER_PROCPS_W) [N/y/?]
watch (CONFIG_USER_PROCPS_WATCH) [N/y/?]
*
* PCI utilities
*
lspci (CONFIG_USER_PCIUTILS_LSPCI) [N/y/?]
setpci (CONFIG_USER_PCIUTILS_SETPCI) [N/y/?]
*
*
*
C++ Test Applications (CONFIG_USER_CXXTEST_CXXTEST) [N/y/?]
*
* BusyBox
*
BusyBox (CONFIG_USER_BUSYBOX_BUSYBOX) [Y/n/?]
*
* Applets
*
addgroup (CONFIG_USER_BUSYBOX_ADDGROUP) [N/y/?]
adduser (CONFIG_USER_BUSYBOX_ADDUSER) [N/y/?]
adjtimex (CONFIG_USER_BUSYBOX_ADJTIMEX) [N/y/?]
ar (CONFIG_USER_BUSYBOX_AR) [N/y/?]
arping (CONFIG_USER_BUSYBOX_ARPING) [N/y/?]
awk (CONFIG_USER_BUSYBOX_AWK) [N/y/?]
basename (CONFIG_USER_BUSYBOX_BASENAME) [N/y/?]
bunzip2 (CONFIG_USER_BUSYBOX_BUNZIP2) [N/y/?]
cal (CONFIG_USER_BUSYBOX_CAL) [N/y/?]
cat (CONFIG_USER_BUSYBOX_CAT) [N/y/?]
chgrp (CONFIG_USER_BUSYBOX_CHGRP) [N/y/?]
chmod (CONFIG_USER_BUSYBOX_CHMOD) [N/y/?]
chown (CONFIG_USER_BUSYBOX_CHOWN) [N/y/?]
chroot (CONFIG_USER_BUSYBOX_CHROOT) [N/y/?]
chvt (CONFIG_USER_BUSYBOX_CHVT) [N/y/?]
clear (CONFIG_USER_BUSYBOX_CLEAR) [N/y/?]
cmp (CONFIG_USER_BUSYBOX_CMP) [N/y/?]
cp (CONFIG_USER_BUSYBOX_CP) [Y/n/?]
cp: Preserve hard links (CONFIG_USER_BUSYBOX_PRESERVE_HARDLINKS) [N/y/?]
cpio (CONFIG_USER_BUSYBOX_CPIO) [N/y/?]
crond (CONFIG_USER_BUSYBOX_CROND) [N/y/?]
crontab (CONFIG_USER_BUSYBOX_CRONTAB) [N/y/?]
cut (CONFIG_USER_BUSYBOX_CUT) [N/y/?]
date (CONFIG_USER_BUSYBOX_DATE) [N/y/?]
dc (CONFIG_USER_BUSYBOX_DC) [N/y/?]
dd (CONFIG_USER_BUSYBOX_DD) [Y/n/?]
deallocvt (CONFIG_USER_BUSYBOX_DEALLOCVT) [N/y/?]
delgroup (CONFIG_USER_BUSYBOX_DELGROUP) [N/y/?]
deluser (CONFIG_USER_BUSYBOX_DELUSER) [N/y/?]
devfsd (CONFIG_USER_BUSYBOX_DEVFSD) [N/y/?]
df (CONFIG_USER_BUSYBOX_DF) [N/y/?]
dirname (CONFIG_USER_BUSYBOX_DIRNAME) [N/y/?]
dmesg (CONFIG_USER_BUSYBOX_DMESG) [N/y/?]
dos2unix (CONFIG_USER_BUSYBOX_DOS2UNIX) [N/y/?]
dpkg (CONFIG_USER_BUSYBOX_DPKG) [N/y/?]
dpkg: deb (CONFIG_USER_BUSYBOX_DPKG_DEB) [N/y/?]
dutmp (CONFIG_USER_BUSYBOX_DUTMP) [N/y/?]
du (CONFIG_USER_BUSYBOX_DU) [N/y/?]
dumpkmap (CONFIG_USER_BUSYBOX_DUMPKMAP) [N/y/?]
echo (CONFIG_USER_BUSYBOX_ECHO) [N/y/?]
env (CONFIG_USER_BUSYBOX_ENV) [N/y/?]
expr (CONFIG_USER_BUSYBOX_EXPR) [N/y/?]
fbset (CONFIG_USER_BUSYBOX_FBSET) [N/y/?]
fdflush (CONFIG_USER_BUSYBOX_FDFLUSH) [N/y/?]
fdformat (CONFIG_USER_BUSYBOX_FDFORMAT) [N/y/?]
fdisk (CONFIG_USER_BUSYBOX_FDISK) [N/y/?]
find (CONFIG_USER_BUSYBOX_FIND) [N/y/?]
fold (CONFIG_USER_BUSYBOX_FOLD) [N/y/?]
free (CONFIG_USER_BUSYBOX_FREE) [N/y/?]
freeramdisk (CONFIG_USER_BUSYBOX_FREERAMDISK) [N/y/?]
fsck_minix (CONFIG_USER_BUSYBOX_FSCK_MINIX) [N/y/?]
ftpget (CONFIG_USER_BUSYBOX_FTPGET) [Y/n/?]
ftpput (CONFIG_USER_BUSYBOX_FTPPUT) [Y/n/?]
getopt (CONFIG_USER_BUSYBOX_GETOPT) [N/y/?]
getty (CONFIG_USER_BUSYBOX_GETTY) [N/y/?]
grep (CONFIG_USER_BUSYBOX_GREP) [N/y/?]
gunzip (CONFIG_USER_BUSYBOX_GUNZIP) [N/y/?]
gzip (CONFIG_USER_BUSYBOX_GZIP) [N/y/?]
halt (CONFIG_USER_BUSYBOX_HALT) [N/y/?]
hdparm (CONFIG_USER_BUSYBOX_HDPARM) [N/y/?]
head (CONFIG_USER_BUSYBOX_HEAD) [N/y/?]
hexdump (CONFIG_USER_BUSYBOX_HEXDUMP) [N/y/?]
hostid (CONFIG_USER_BUSYBOX_HOSTID) [N/y/?]
hostname (CONFIG_USER_BUSYBOX_HOSTNAME) [N/y/?]
httpd (CONFIG_USER_BUSYBOX_HTTPD) [N/y/?]
hwclock (CONFIG_USER_BUSYBOX_HWCLOCK) [N/y/?]
id (CONFIG_USER_BUSYBOX_ID) [N/y/?]
ifconfig (CONFIG_USER_BUSYBOX_IFCONFIG) [Y/n/?]
ifconfig: status reporting (CONFIG_USER_BUSYBOX_IFCONFIG_STATUS) [Y/n/?]
ifconfig: slip (CONFIG_USER_BUSYBOX_IFCONFIG_SLIP) [N/y/?]
ifconfig: enable hw option (CONFIG_USER_BUSYBOX_IFCONFIG_HW) [Y/n/?]
ifconfig: extra options (CONFIG_USER_BUSYBOX_IFCONFIG_MEMSTART_IOADDR_IRQ) [N/y/?]
ifconfig: Set the broadcast automatically (CONFIG_USER_BUSYBOX_IFCONFIG_BROADCAST_PLUS) [N/y/?]
ifupdown (CONFIG_USER_BUSYBOX_IFUPDOWN) [N/y/?]
inetd (CONFIG_USER_BUSYBOX_INETD) [N/y/?]
init (CONFIG_USER_BUSYBOX_INIT) [N/y/?]
insmod (CONFIG_USER_BUSYBOX_INSMOD) [Y/n/?]
insmod: lsmod (CONFIG_USER_BUSYBOX_LSMOD) [Y/n/?]
insmod: modprobe (CONFIG_USER_BUSYBOX_MODPROBE) [Y/n/?]
insmod: rmmod (CONFIG_USER_BUSYBOX_RMMOD) [Y/n/?]
insmod: Pre 2.1 kernel modules (CONFIG_USER_BUSYBOX_2_2_MODULES) [N/y/?]
insmod: 2.1 - 2.4 kernel modules (CONFIG_USER_BUSYBOX_2_4_MODULES) [N/y/?]
insmod: 2.6 and above kernel modules (CONFIG_USER_BUSYBOX_2_6_MODULES) [Y/n/?]
insmod: Model version checks (CONFIG_USER_BUSYBOX_INSMOD_VERSION_CHECKING) [N/y/?]
insmod: Support tainted module checking with new kernels (CONFIG_USER_BUSYBOX_CHECK_TAINTED_MODULE) [N/y/?]
insmod: load in kernel memory (CONFIG_USER_BUSYBOX_INSMOD_LOADINKMEM) [N/y/?]
ipaddr (CONFIG_USER_BUSYBOX_IPADDR) [N/y/?]
ipcalc (CONFIG_USER_BUSYBOX_IPCALC) [N/y/?]
iplink (CONFIG_USER_BUSYBOX_IPLINK) [N/y/?]
iproute (CONFIG_USER_BUSYBOX_IPROUTE) [N/y/?]
iptunnel (CONFIG_USER_BUSYBOX_IPTUNNEL) [N/y/?]
kill (CONFIG_USER_BUSYBOX_KILL) [N/y/?]
killall (CONFIG_USER_BUSYBOX_KILLALL) [N/y/?]
klogd (CONFIG_USER_BUSYBOX_KLOGD) [N/y/?]
length (CONFIG_USER_BUSYBOX_LENGTH) [N/y/?]
last (CONFIG_USER_BUSYBOX_LAST) [N/y/?]
ln (CONFIG_USER_BUSYBOX_LN) [N/y/?]
loadacm (CONFIG_USER_BUSYBOX_LOADACM) [N/y/?]
loadfont (CONFIG_USER_BUSYBOX_LOADFONT) [N/y/?]
loadkmap (CONFIG_USER_BUSYBOX_LOADKMAP) [N/y/?]
logger (CONFIG_USER_BUSYBOX_LOGGER) [N/y/?]
login (CONFIG_USER_BUSYBOX_LOGIN) [N/y/?]
logname (CONFIG_USER_BUSYBOX_LOGNAME) [N/y/?]
logread (CONFIG_USER_BUSYBOX_LOGREAD) [N/y/?]
losetup (CONFIG_USER_BUSYBOX_LOSETUP) [N/y/?]
ls (CONFIG_USER_BUSYBOX_LS) [N/y/?]
makedevs (CONFIG_USER_BUSYBOX_MAKEDEVS) [N/y/?]
md5sum (CONFIG_USER_BUSYBOX_MD5SUM) [N/y/?]
mesg (CONFIG_USER_BUSYBOX_MESG) [N/y/?]
mkdir (CONFIG_USER_BUSYBOX_MKDIR) [N/y/?]
mkfifo (CONFIG_USER_BUSYBOX_MKFIFO) [N/y/?]
mkfs_minix (CONFIG_USER_BUSYBOX_MKFS_MINIX) [N/y/?]
mknod (CONFIG_USER_BUSYBOX_MKNOD) [N/y/?]
mkswap (CONFIG_USER_BUSYBOX_MKSWAP) [N/y/?]
mktemp (CONFIG_USER_BUSYBOX_MKTEMP) [N/y/?]
more (CONFIG_USER_BUSYBOX_MORE) [N/y/?]
mount (CONFIG_USER_BUSYBOX_MOUNT) [Y/n/?]
mount: loop devices (CONFIG_USER_BUSYBOX_MOUNT_LOOP) [Y/n/?]
mount: support /etc/mtab (CONFIG_USER_BUSYBOX_MTAB_SUPPORT) [N/y/?]
mount: support NFS mounts (CONFIG_USER_BUSYBOX_NFSMOUNT) [Y/n/?]
mt (CONFIG_USER_BUSYBOX_MT) [N/y/?]
mv (CONFIG_USER_BUSYBOX_MV) [N/y/?]
nameif (CONFIG_USER_BUSYBOX_NAMEIF) [N/y/?]
nc (CONFIG_USER_BUSYBOX_NC) [N/y/?]
netstat (CONFIG_USER_BUSYBOX_NETSTAT) [Y/n/?]
nslookup (CONFIG_USER_BUSYBOX_NSLOOKUP) [N/y/?]
od (CONFIG_USER_BUSYBOX_OD) [N/y/?]
openvt (CONFIG_USER_BUSYBOX_OPENVT) [N/y/?]
passwd (CONFIG_USER_BUSYBOX_PASSWD) [N/y/?]
patch (CONFIG_USER_BUSYBOX_PATCH) [N/y/?]
pidof (CONFIG_USER_BUSYBOX_PIDOF) [N/y/?]
ping (CONFIG_USER_BUSYBOX_PING) [Y/n/?]
ping: fancy (CONFIG_USER_BUSYBOX_FANCY_PING) [N/y/?]
ping: Enable fancy ping6 output (CONFIG_USER_BUSYBOX_FANCY_PING6) [N/y/?]
ping6 (CONFIG_USER_BUSYBOX_PING6) [N/y/?]
pipe_progress (CONFIG_USER_BUSYBOX_PIPE_PROGRESS) [N/y/?]
pivot_root (CONFIG_USER_BUSYBOX_PIVOT_ROOT) [N/y/?]
poweroff (CONFIG_USER_BUSYBOX_POWEROFF) [N/y/?]
printf (CONFIG_USER_BUSYBOX_PRINTF) [N/y/?]
ps (CONFIG_USER_BUSYBOX_PS) [N/y/?]
pwd (CONFIG_USER_BUSYBOX_PWD) [N/y/?]
rdate (CONFIG_USER_BUSYBOX_RDATE) [N/y/?]
realpath (CONFIG_USER_BUSYBOX_REALPATH) [N/y/?]
readlink (CONFIG_USER_BUSYBOX_READLINK) [N/y/?]
reboot (CONFIG_USER_BUSYBOX_REBOOT) [N/y/?]
renice (CONFIG_USER_BUSYBOX_RENICE) [N/y/?]
reset (CONFIG_USER_BUSYBOX_RESET) [N/y/?]
rm (CONFIG_USER_BUSYBOX_RM) [Y/n/?]
rmdir (CONFIG_USER_BUSYBOX_RMDIR) [N/y/?]
route (CONFIG_USER_BUSYBOX_ROUTE) [Y/n/?]
rpm2cpio (CONFIG_USER_BUSYBOX_RPM2CPIO) [N/y/?]
run-parts (CONFIG_USER_BUSYBOX_RUN_PARTS) [N/y/?]
rx (CONFIG_USER_BUSYBOX_RX) [N/y/?]
sed (CONFIG_USER_BUSYBOX_SED) [N/y/?]
seq (CONFIG_USER_BUSYBOX_SEQ) [N/y/?]
setkeycodes (CONFIG_USER_BUSYBOX_SETKEYCODES) [N/y/?]
shell (CONFIG_USER_BUSYBOX_SHELL) [N/y/?]
sha1sum (CONFIG_USER_BUSYBOX_SHA1SUM) [N/y/?]
sleep (CONFIG_USER_BUSYBOX_SLEEP) [N/y/?]
sort (CONFIG_USER_BUSYBOX_SORT) [N/y/?]
start-stop-daemon (CONFIG_USER_BUSYBOX_START_STOP_DAEMON) [N/y/?]
strings (CONFIG_USER_BUSYBOX_STRINGS) [N/y/?]
stty (CONFIG_USER_BUSYBOX_STTY) [N/y/?]
su (CONFIG_USER_BUSYBOX_SU) [N/y/?]
sulogin (CONFIG_USER_BUSYBOX_SULOGIN) [N/y/?]
swaponoff (CONFIG_USER_BUSYBOX_SWAPONOFF) [N/y/?]
sync (CONFIG_USER_BUSYBOX_SYNC) [N/y/?]
sysctl (CONFIG_USER_BUSYBOX_SYSCTL) [N/y/?]
syslogd (CONFIG_USER_BUSYBOX_SYSLOGD) [N/y/?]
tail (CONFIG_USER_BUSYBOX_TAIL) [N/y/?]
tar (CONFIG_USER_BUSYBOX_TAR) [N/y/?]
tee (CONFIG_USER_BUSYBOX_TEE) [N/y/?]
telnet (CONFIG_USER_BUSYBOX_TELNET) [Y/n/?]
telnet: TERM type (CONFIG_USER_BUSYBOX_TELNET_TTYPE) [N/y/?]
telnet: Pass USER type to remote host (CONFIG_USER_BUSYBOX_TELNET_AUTOLOGIN) [N/y/?]
telnetd (CONFIG_USER_BUSYBOX_TELNETD) [N/y/?]
test (CONFIG_USER_BUSYBOX_TEST) [N/y/?]
tftp (CONFIG_USER_BUSYBOX_TFTP) [N/y/?]
time (CONFIG_USER_BUSYBOX_TIME) [N/y/?]
top (CONFIG_USER_BUSYBOX_TOP) [N/y/?]
touch (CONFIG_USER_BUSYBOX_TOUCH) [N/y/?]
tr (CONFIG_USER_BUSYBOX_TR) [N/y/?]
traceroute (CONFIG_USER_BUSYBOX_TRACEROUTE) [N/y/?]
true_false (CONFIG_USER_BUSYBOX_TRUE_FALSE) [N/y/?]
tty (CONFIG_USER_BUSYBOX_TTY) [N/y/?]
udhcp Client (udhcpc) (CONFIG_USER_BUSYBOX_UDHCPC) [N/y/?]
udhcp Server (udhcpd) (CONFIG_USER_BUSYBOX_UDHCPD) [N/y/?]
umount (CONFIG_USER_BUSYBOX_UMOUNT) [N/y/?]
uname (CONFIG_USER_BUSYBOX_UNAME) [N/y/?]
uncompress (CONFIG_USER_BUSYBOX_UNCOMPRESS) [N/y/?]
uniq (CONFIG_USER_BUSYBOX_UNIQ) [N/y/?]
unix2dos (CONFIG_USER_BUSYBOX_UNIX2DOS) [N/y/?]
update (CONFIG_USER_BUSYBOX_UPDATE) [N/y/?]
uptime (CONFIG_USER_BUSYBOX_UPTIME) [N/y/?]
usleep (CONFIG_USER_BUSYBOX_USLEEP) [N/y/?]
uudecode (CONFIG_USER_BUSYBOX_UUDECODE) [N/y/?]
uuencode (CONFIG_USER_BUSYBOX_UUENCODE) [N/y/?]
unzip (CONFIG_USER_BUSYBOX_UNZIP) [N/y/?]
vconfig (CONFIG_USER_BUSYBOX_VCONFIG) [N/y/?]
vi (CONFIG_USER_BUSYBOX_VI) [N/y/?]
watchdog (CONFIG_USER_BUSYBOX_WATCHDOGD) [N/y/?]
wc (CONFIG_USER_BUSYBOX_WC) [N/y/?]
wget (CONFIG_USER_BUSYBOX_WGET) [Y/n/?]
wget: status bar (CONFIG_USER_BUSYBOX_WGET_STATUSBAR) [N/y/?]
wget: authentication (CONFIG_USER_BUSYBOX_WGET_AUTHENTICATION) [N/y/?]
wget: Enable IPv6 literal addresses (CONFIG_USER_BUSYBOX_WGET_IP6_LITERAL) [N/y/?]
which (CONFIG_USER_BUSYBOX_WHICH) [N/y/?]
whoami (CONFIG_USER_BUSYBOX_WHOAMI) [N/y/?]
xargs (CONFIG_USER_BUSYBOX_XARGS) [N/y/?]
yes (CONFIG_USER_BUSYBOX_YES) [N/y/?]
zip (CONFIG_USER_BUSYBOX_ZIP) [N/y/?]
*
* other features
*
buffers on stack (CONFIG_USER_BUSYBOX_BUFFERS_GO_ON_STACK) [N/y/?]
buffers in BSS (CONFIG_USER_BUSYBOX_BUFFERS_GO_IN_BSS) [N/y/?]
Use devps (CONFIG_USER_BUSYBOX_USE_DEVPS_PATCH) [N/y/?]
Verbose usages (CONFIG_USER_BUSYBOX_VERBOSE_USAGE) [N/y/?]
Auto Width (CONFIG_USER_BUSYBOX_AUTOWIDTH) [N/y/?]
Silent boot (CONFIG_USER_BUSYBOX_EXTRA_QUIET) [N/y/?]
Minix 2 (CONFIG_USER_BUSYBOX_MINIX2) [N/y/?]
Use internal password and group functions rather than system functions (CONFIG_USER_BUSYBOX_USE_BB_PWD_GRP) [N/y/?]
Dmalloc (CONFIG_USER_BUSYBOX_DMALLOC) [N/y/?]
Electric-fence (CONFIG_USER_BUSYBOX_EFENCE) [N/y/?]
Allocate with Malloc (CONFIG_USER_BUSYBOX_BUFFERS_USE_MALLOC) [N/y/?]
Support for devfs (CONFIG_USER_BUSYBOX_DEVFS) [N/y/?]
Use the devpts filesystem for Unix98 PTYs (CONFIG_USER_BUSYBOX_DEVPTS) [N/y/?]
Support for SUID/SGID handling (CONFIG_USER_BUSYBOX_SUID) [N/y/?]
Build with Large File Support (for accessing files > 2 GB) (CONFIG_USER_BUSYBOX_LFS) [Y/n/?]
Support NSA Security Enhanced Linux (CONFIG_USER_BUSYBOX_SELINUX) [N/y/?]
Build BusyBox as a static binary (no shared libs) (CONFIG_USER_BUSYBOX_STATIC) [Y/n/?]
Enable IPv6 support (CONFIG_USER_BUSYBOX_IPV6) [N/y/?]
Clean up (CONFIG_USER_BUSYBOX_CLEAN_UP) [N/y/?]
Readable sizes (CONFIG_USER_BUSYBOX_HUMAN_READABLE) [N/y/?]
Locale Support (CONFIG_USER_BUSYBOX_LOCALE_SUPPORT) [N/y/?]
*
* Tinylogin
*
Tinylogin (CONFIG_USER_TINYLOGIN_TINYLOGIN) [N/y/?]
*
* MicroWindows
*
MicroWindows (CONFIG_USER_MICROWIN) [N/y/?]
*
* Games
*
advent4 (CONFIG_USER_GAMES_ADVENT4) [N/y/?]
dungeon (CONFIG_USER_GAMES_DUNGEON) [N/y/?]
rubik (CONFIG_USER_GAMES_RUBIK) [N/y/?]
*
* Miscellaneous Configuration
*
RAMFS Image (None, 64K, 128K, 256K, 512K, 1024K, 2048K, 8192K) [None]
defined CONFIG_USER_RAMIMAGE_NONE
generic cgi (CONFIG_USER_CGI_GENERIC) [Y/n/?]
cgihtml (CONFIG_USER_CGIHTML) [N/y/?]
SnapGear Button daemon (CONFIG_USER_DEMO_BUTTON) [N/y/?]
SnapGear Latch daemon (CONFIG_USER_DEMO_LATCH) [N/y/?]
SnapGear Morse demo (CONFIG_USER_DEMO_MORSE) [N/y/?]
SnapGear R2100 daemon (CONFIG_USER_DEMO_R2100) [N/y/?]
System has very little entropy (only use /dev/urandom) (CONFIG_POOR_ENTROPY) [N/y/?]
*
* Debug Builds
*
build debugable libraries (CONFIG_LIB_DEBUG) [N/y/?]
build debugable applications (CONFIG_USER_DEBUG) [N/y/?]
*
* Debug tools
*
tpt (CONFIG_USER_TIMEPEG_TPT) [N/y/?]
*
* Debug libraries
*
ccmalloc (CONFIG_LIB_LIBCCMALLOC) [N/y/?]

*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.

make[2]: Leaving directory `/home/bob/uClinux-dist/config'
make[1]: Leaving directory `/home/bob/uClinux-dist'
[bob@localhost uClinux-dist]$



  ・SOPC Builderでなく、Qsys使ってるから.ptfファイルが無いが、.qsysや.sopcinfoで試みる。
   VMware Toolsをインストールすると、共有フォルダを使えるように。
   そこにファイルを置き、以下パスからファイルをコピー。
      /mnt/hgfs/vm_share

  ・make vendor_hwselectを実行。

[bob@localhost uClinux-dist]$ make vendor_hwselect
make ARCH=nios2nommu -C vendors vendor_hwselect
make[1]: Entering directory `/home/bob/uClinux-dist/vendors'
make -C /home/bob/uClinux-dist/vendors/Altera/nios2nommu/. dir_v=/home/bob/uClinux-dist/vendors/Altera/nios2nommu/. -f /home/bob/uClinux-dist/vendors/vendors-common.mak vendor_hwselect
make[2]: Entering directory `/home/bob/uClinux-dist/vendors/Altera/nios2nommu'
make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C /home/bob/uClinux-dist/linux-2.6.x hwselect
/bin/sh: nios2-linux-uclibc-gcc: command not found
make[3]: nios2-linux-uclibc-gcc: Command not found
make[3]: Entering directory `/home/bob/uClinux-dist/linux-2.6.x'
make[3]: nios2-linux-uclibc-gcc: Command not found
/bin/sh: nios2-linux-uclibc-gcc: command not found
make[4]: nios2-linux-uclibc-gcc: Command not found
/home/bob/uClinux-dist/linux-2.6.x/arch/nios2nommu/Makefile:127: *** Run "make hwselect SYSPTF=" first. Stop.
RUNNING hwselect
ERROR: Invalid number of parameters.
make[3]: Leaving directory `/home/bob/uClinux-dist/linux-2.6.x'
make[2]: Leaving directory `/home/bob/uClinux-dist/vendors/Altera/nios2nommu'
make[1]: Leaving directory `/home/bob/uClinux-dist/vendors'



  ・nios2-linux-uclibc-gccが無いというエラー。
   nios2-linuxデータをすっ飛ばして作業してるから当然。
     wget http://www.niosftp.com/pub/linux/nios2-linux-20100621.tar
   で入手して、展開。

  ・/home/bob/nios2-linuxへ移動して、以下のようにcheckout実行。

[bob@localhost nios2-linux]$ sudo ./checkout
[sudo] password for bob:
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found
./checkout: line 6: git: command not found



  ・gitが無いと言われたので以下を参考にgitをインストール。
    http://d.hatena.ne.jp/pirosikick/20101023/1287856753


[bob@localhost download]$ sudo wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
:
[bob@localhost download]$ sudo wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
--2011-09-18 05:35:27-- http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Resolving dag.wieers.com... 62.213.193.149
Connecting to dag.wieers.com|62.213.193.149|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/RPM-GPG-KEY.dag.txt [following]
--2011-09-18 05:35:28-- http://apt.sw.be/RPM-GPG-KEY.dag.txt
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1672 (1.6K) [text/plain]
Saving to: `RPM-GPG-KEY.dag.txt'

100%[==========================================>] 1,672 --.-K/s in 0s

2011-09-18 05:35:29 (98.3 MB/s) - `RPM-GPG-KEY.dag.txt' saved [1672/1672]

[bob@localhost download]$ sudo rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
warning: rpmforge-release-0.3.6-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]
[bob@localhost download]$ sudo yum -y --enablerepo=rpmforge install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.cse.yzu.edu.tw
* extras: ftp.nsysu.edu.tw
* rpmforge: apt.sw.be
* updates: ftp.tc.edu.tw
rpmforge | 1.1 kB 00:00
rpmforge/primary | 4.0 MB 00:20
rpmforge 11005/11005
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.i386 0:1.7.6.1-1.el5.rf set to be updated
--> Processing Dependency: perl-Git = 1.7.6.1-1.el5.rf for package: git
--> Processing Dependency: perl(DBI) for package: git
--> Processing Dependency: perl(Git) for package: git
--> Running transaction check
---> Package perl-DBI.i386 0:1.52-2.el5 set to be updated
---> Package perl-Git.i386 0:1.7.6.1-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================
Package Arch Version Repository Size
====================================================================================
Installing:
git i386 1.7.6.1-1.el5.rf rpmforge 6.4 M
Installing for dependencies:
perl-DBI i386 1.52-2.el5 base 600 k
perl-Git i386 1.7.6.1-1.el5.rf rpmforge 24 k

Transaction Summary
====================================================================================
Install 3 Package(s)
Upgrade 0 Package(s)

Total download size: 7.0 M
Downloading Packages:
(1/3): perl-Git-1.7.6.1-1.el5.rf.i386.rpm | 24 kB 00:00
http://ftp.cse.yzu.edu.tw/pub/CentOS/5.7/os/i386/CentOS/perl-DBI-1.52-2.el5.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
(2/3): perl-DBI-1.52-2.el5.i386.rpm | 600 kB 00:00
(3/3): git-1.7.6.1-1.el5.rf.i386.rpm | 6.4 MB 00:30
------------------------------------------------------------------------------------
Total 210 kB/s | 7.0 MB 00:34
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-DBI 1/3
Installing : perl-Git 2/3
Installing : git 3/3

Installed:
git.i386 0:1.7.6.1-1.el5.rf

Dependency Installed:
perl-DBI.i386 0:1.52-2.el5 perl-Git.i386 0:1.7.6.1-1.el5.rf

Complete!
[bob@localhost download]$ git --version
git version 1.7.6.1



   参考HPに書いてある通り、あら簡単。

  ・再度checkout実行。
途中でエラーが。ディスクがFULLだと。
   ダウンロードデータ消すので、今まで使ってきたデータの履歴をメモ。

-rw-rw-r-- 1 bob bob 2097510400 Jun 21 2010 nios2-linux-20100621.tar
-rw-r--r-- 1 root root 16698 Mar 9 2007 rpmforge-release-0.3.6-1.el5.rf.i386.rpm
-rw-r--r-- 1 root root 1672 Aug 13 2005 RPM-GPG-KEY.dag.txt
-rw-rw-r-- 1 bob bob 296287452 Jan 30 2007 uClinux-dist-20070130.tar.gz
drwxr-xr-x 7 bob bob 4096 Mar 25 20:29 vmware-tools-distrib



  ・ディスクサイズを増やすために、「VMware-converter-all-4.3.0-292238.exe」を入手して、
   試みたが、VMware設定ファイルを読み込みと、「対応してない」とのMSG。
   諦めて、一から作業やり直し。今回は、ディスクサイズを15→25GBへ変更。

[root@localhost nios2-linux]# sudo ./checkout
Checking out files: 100% (6071/6071), done.
Checking out files: 100% (20582/20582), done.
Checking out files: 100% (32524/32524), done.
Checking out files: 100% (9577/9577), done.
Checking out files: 100% (8238/8238), done.
Checking out files: 100% (6451/6451), done.
Checking out files: 100% (186060/186060), done.
[root@localhost download]# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 17382224 10806212 5678784 66% /home



  ・/home/bob/nios2-linuxへ移動して、以下やるとエラー。

[root@localhost nios2-linux]# sudo git branch -l
fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).



・エラー直して先に進もうかと考えていたが、DWM2007/10のpage58のコラム見てて、
   NiosII用のクロス開発環境がバイナリで提供されているとのこと。

    http://nioswiki.jot.com/WikiHome/OperatingSystems/BinaryToolchan
      のnios2gcc.tar.bz2

   でも上記URLは存在しないみたい。おそらく、「http://www.alterawiki.com」の事と思う。
   データ置き場が不明なので、「nios2gcc site:http://www.alterawiki.com/wiki/」
   とサイト内検索をして、一番上のヒット「BinaryToolchain - Altera Wiki」から

    http://www.alterawiki.com/wiki/BinaryToolchain

   ここであろうと予想。ここに書いてあるコマンドを実行。

    wget http://www.niosftp.com/pub/gnutools/nios2gcc-20080203.tar.bz2

  ・展開。optというフォルダが生成される。
     tar jxvf download/nios2gcc-20080203.tar.bz2

  ・パスを設定。.bash_profileの末尾に以下を追記。
     export PATH=$PATH:/home/bob/opt/nios2/bin

  ・一度ログアウトしてから、ログインし直して、以下コマンドでパス設定、及びバージョン確認。

[root@localhost bob]# nios2-linux-uclibc-gcc -v
Reading specs from /home/bob/opt/nios2/bin/../lib/gcc/nios2-linux-uclibc/3.4.6/specs
Configured with: /root/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/opt/nios2 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-shared --disable-nls --enable-threads --enable-multilib
Thread model: posix
gcc version 3.4.6



  ・/home/bob/uClinux-distへ移動して、make menuconfig実行すると以下エラー。


[root@localhost uClinux-dist]# make menuconfig
config/mkconfig > config.in
make -C /home/bob/uClinux-dist/config/scripts/lxdialog all
make[1]: Entering directory `/home/bob/uClinux-dist/config/scripts/lxdialog'
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/home/bob/uClinux-dist/config/scripts/lxdialog'
make: *** [menuconfig] Error 2


  ・http://uclinux.quake4.jp/read.php?FID=2&TID=56
   を参考にして、インストール実施。

[root@localhost uClinux-dist]# yum install ncurses-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* rpmforge: ftp-stud.fht-esslingen.de
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.i386 0:5.5-24.20060715 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================
Package Arch Version Repository Size
=============================================================================================================
Installing:
ncurses-devel i386 5.5-24.20060715 base 1.6 M

Transaction Summary
=============================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
ncurses-devel-5.5-24.20060715.i386.rpm | 1.6 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ncurses-devel 1/1

Installed:
ncurses-devel.i386 0:5.5-24.20060715

Complete!
[root@localhost uClinux-dist]#



  ・make menuconfig実行。今度はウィンドウがちゃんと起動した。
   DWM2007/10のpage60の説明に従い、以下設定。

    Vendor/Product Selection > Vendor = Alteraを選択。
    Vendor/Product Selection > Altera products nios2nommuを選択。

    Kernel/Libraries/Default Selection > Kernel Version = linux-2.6.xを選択。
    Kernel/Libraries/Default Selection > libc Version = noneを選択。
    Kernel/Libraries/Default Selection > Default All Settingsに*を付ける。

   設定後、Exitで戻り、YESを選択すると、処理が始まる。

  ・よくよく見ると、make menuconfigの前に、Nios2用カーネルパッチを当てるみたい。
http://www.alterawiki.com/wiki/Kernel_Patches

   一番上の綱目の「linux-2.6.20-uc0」の手順に従い進める。

  ・configをコピー。
     cd /home/bob/uClinux-dist/vendors/Altera/nios2nommu
     cp -ipr config.linux-2.6.x config.linux-2.6.20.x

  ・2.6.20のカーネルデータ?を入手しようとするが、ここのサーバ今ダウンしてた。
      http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2

   こっちで代用出来ないかな?
      http://ftp.pieskovisko.sk/linux/kernels/2.6.x/linux-2.6.20.tar.gz

   移動して解凍。
      cd /home/bob/uClinux-dist
      tar xvf /home/bob/download/linux-2.6.20.tar.gz
      cd /home/bob/uClinux-dist/linux-2.6.20/arch

中覗くと、元からあった、2.6.x/archには存在したnios2nommuが無い。
   このデータは使えないってことだな。サーバが動くのを待つしかないか。

drwxr-xr-x 8 root root 4096 Feb 4 2007 alpha
drwxr-xr-x 43 root root 4096 Feb 4 2007 arm
drwxr-xr-x 8 root root 4096 Feb 4 2007 arm26
drwxr-xr-x 9 root root 4096 Feb 4 2007 avr32
drwxr-xr-x 6 root root 4096 Feb 4 2007 cris
drwxr-xr-x 7 root root 4096 Feb 4 2007 frv
drwxr-xr-x 7 root root 4096 Feb 4 2007 h8300
drwxr-xr-x 16 root root 4096 Feb 4 2007 i386
drwxr-xr-x 13 root root 4096 Feb 4 2007 ia64
drwxr-xr-x 14 root root 4096 Feb 4 2007 m32r
drwxr-xr-x 21 root root 4096 Feb 4 2007 m68k
drwxr-xr-x 6 root root 4096 Feb 4 2007 m68knommu
drwxr-xr-x 36 root root 4096 Feb 4 2007 mips
drwxr-xr-x 9 root root 4096 Feb 4 2007 parisc
drwxr-xr-x 12 root root 4096 Feb 4 2007 powerpc
drwxr-xr-x 14 root root 4096 Feb 4 2007 ppc
drwxr-xr-x 11 root root 4096 Feb 4 2007 s390
drwxr-xr-x 13 root root 4096 Feb 4 2007 sh
drwxr-xr-x 12 root root 4096 Feb 4 2007 sh64
drwxr-xr-x 9 root root 4096 Feb 4 2007 sparc
drwxr-xr-x 10 root root 4096 Feb 4 2007 sparc64
drwxr-xr-x 11 root root 4096 Feb 4 2007 um
drwxr-xr-x 5 root root 4096 Feb 4 2007 v850
drwxr-xr-x 10 root root 4096 Feb 4 2007 x86_64
drwxr-xr-x 8 root root 4096 Feb 4 2007 xtensa



  ・Qsys使うとPTFファイルって生成されないと思う。以下コマンドは.qsysでも実行出来るか?
   と思ってやってみたが、やっぱり無理だ。

[root@localhost uClinux-dist]# make vendor_hwselect SYSPTF=/home/bob/eth_std_main_system.qsys
make ARCH=nios2nommu -C vendors vendor_hwselect
make[1]: Entering directory `/home/bob/uClinux-dist/vendors'
make -C /home/bob/uClinux-dist/vendors/Altera/nios2nommu/. dir_v=/home/bob/uClinux-dist/vendors/Altera/nios2nommu/. -f /home/bob/uClinux-dist/vendors/vendors-common.mak vendor_hwselect
make[2]: Entering directory `/home/bob/uClinux-dist/vendors/Altera/nios2nommu'
make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C /home/bob/uClinux-dist/linux-2.6.x hwselect
no emulation specific options.
make[3]: Entering directory `/home/bob/uClinux-dist/linux-2.6.x'
no emulation specific options.
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/nios2nommu/Kconfig
block/Kconfig:36:warning: 'select' used by config symbol 'BLK_DEV_IO_TRACE' refer to undefined symbol 'DEBUG_FS'
arch/nios2nommu/drivers/pci/Kconfig:4:warning: 'select' used by config symbol 'PCI_ALTPCI' refer to undefined symbol 'PCI_AUTO'
arch/nios2nommu/drivers/pci/Kconfig:5:warning: 'select' used by config symbol 'PCI_ALTPCI' refer to undefined symbol 'PCI_AUTO_UPDATE_RESOURCES'
#
# configuration written to .config
#
make[3]: Leaving directory `/home/bob/uClinux-dist/linux-2.6.x'
no emulation specific options.
make[3]: Entering directory `/home/bob/uClinux-dist/linux-2.6.x'
RUNNING hwselect
Syntax error on line 1.
ERROR: Specified file is not a SYSTEM ptf file.
make[3]: Leaving directory `/home/bob/uClinux-dist/linux-2.6.x'
make[2]: Leaving directory `/home/bob/uClinux-dist/vendors/Altera/nios2nommu'
make[1]: Leaving directory `/home/bob/uClinux-dist/vendors'



  ・以下のサイトを見つけたが、これQsysからのフローに対応するやつか?
    http://www.alterawiki.com/wiki/Devicetree
    http://www.alterawiki.com/wiki/Sopc2dts

   Sopc2dtsページの通りにやってみるか。

[root@localhost download]# git clone git://sopc.et.ntust.edu.tw/git/tools.git
Cloning into tools...
remote: Counting objects: 1425, done.
remote: Compressing objects: 100% (1253/1253), done.
remote: Total 1425 (delta 906), reused 0 (delta 0)
Receiving objects: 100% (1425/1425), 616.06 KiB | 22 KiB/s, done.
Resolving deltas: 100% (906/906), done.



  ・tools/sopc2dtsへ移動してmakeすると、javacがないとエラー。

  [root@localhost sopc2dts]# make
javac Sopc2DTS.java
make: javac: Command not found
make: *** [Sopc2DTS.class] Error 127

[root@localhost sopc2dts]#

  ・以下のサイトからrpmを入手。
    http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

    Linux x86 - RPM Installer 77.28 MB  jdk-7-linux-i586.rpm

  ・rpm -ivh jdk-7-linux-i586.rpm でインストール。

  ・/home/bob/download/tools/sopc2dts/ へ再度移動して、makeと実行。

[root@localhost sopc2dts]# make
javac Sopc2DTS.java
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac sopc2dts/lib/components/altera/TSEModular.java
jar -cmf manifest sopc2dts.jar *.java *.class sopc2dts sopc_components_*.xml



・以下コマンドで標準出力されるdtsファイルを保存出来た。

java -jar /home/bob/download/tools/sopc2dts/sopc2dts.jar -i eth_std_main_system.sopcinfo > eth_std_main_system.dts

   <dtsファイル>

Unsupported interface kind: tristate_conduit_slave
Unsupported interface kind: tristate_conduit_master
Component flash_tristate_bridge of class altera_tristate_conduit_bridge is unknown
Component MMC_SPI of class MMC_SPI is unknown
Component ssram of class altera_generic_tristate_controller is unknown
Component LCD_SEG of class LCD_SEG is unknown
Component custom_inst_yuv2rgb_0 of class custom_inst_yuv2rgb is unknown
/*
* This devicetree is generated by sopc2dts
* Sopc2dts is written by Walter Goossens
* in cooperation with the nios2 community
*/
/dts-v1/;
/ {
model = "ALTR,eth_std_main_system";
compatible = "ALTR,eth_std_main_system";
#address-cells = <1>;
#size-cells = <1>;
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu: cpu@0x0 {
device_type = "cpu";
compatible = "ALTR,nios2-11.0";
reg = <0>;
interrupt-controller;
#interrupt-cells = <1>;
clock-frequency = <50000000>; //embeddedsw.CMacro.CPU_FREQ type NUMBER
dcache-line-size = <0>; //embeddedsw.CMacro.DCACHE_LINE_SIZE type NUMBER
icache-line-size = <0>; //embeddedsw.CMacro.ICACHE_LINE_SIZE type NUMBER
dcache-size = <0>; //embeddedsw.CMacro.DCACHE_SIZE type NUMBER
icache-size = <0>; //embeddedsw.CMacro.ICACHE_SIZE type NUMBER
ALTR,implementation = "tiny"; //embeddedsw.CMacro.CPU_IMPLEMENTATION type STRING
ALTR,reset-addr = <0x06200000>; //embeddedsw.CMacro.RESET_ADDR type NUMBER
ALTR,exception-addr = <0x06200120>; //embeddedsw.CMacro.EXCEPTION_ADDR type NUMBER
};
};
memory@0 {
device_type = "memory";
reg = <0x02000000 0x02000000
0x06401000 0x00001000
0x00000000 0x00000040
0x00008000 0x00002000>;
};
sopc@0 {
ranges ;
#address-cells = <1>;
#size-cells = <1>;
device_type = "soc";
compatible = "ALTR,avalon","simple-bus";
bus-frequency = < 50000000 >;
//Port data_master of cpu
pio: gpio@0x6403920 {
compatible = "ALTR,pio-11.0","ALTR,pio-1.0";
reg = < 0x6403920 0x10>;
width = <8>; //width type NUMBER
resetvalue = <0>; //resetValue type NUMBER
}; //end gpio (pio)

uart: serial@0x6403880 {
compatible = "ALTR,uart-11.0","ALTR,uart-1.0";
reg = < 0x6403880 0x20>;
interrupt-parent = < &cpu >;
interrupts = < 3 >;
current-speed = <115200>; //embeddedsw.CMacro.BAUD type NUMBER
clock-frequency = <50000000>; //embeddedsw.CMacro.FREQ type NUMBER
}; //end serial (uart)

sgdma_ddr2lcd: dma@0x64038c0 {
compatible = "ALTR,sgdma-11.0","ALTR,sgdma-1.0";
reg = < 0x64038c0 0x40>;
interrupt-parent = < &cpu >;
interrupts = < 0 >;
type = < 1 >; //MEMORY_TO_STREAM
}; //end dma (sgdma_ddr2lcd)

MMC_SPI: unknown@0x6403400 {
compatible = "unknown,unknown-1.0";
reg = < 0x6403400 0x400>;
interrupt-parent = < &cpu >;
interrupts = < 2 >;
}; //end unknown (MMC_SPI)

ssram: unknown@0x6200000 {
compatible = "unknown,unknown-11.0";
reg = < 0x6200000 0x200000>;
}; //end unknown (ssram)

sgdma_mmc: dma@0x8100000 {
compatible = "ALTR,sgdma-11.0","ALTR,sgdma-1.0";
reg = < 0x8100000 0x40>;
interrupt-parent = < &cpu >;
interrupts = < 1 >;
type = < 0 >; //MEMORY_TO_MEMORY
}; //end dma (sgdma_mmc)

LCD_SEG: unknown@0x4000000 {
compatible = "unknown,unknown-1.0";
reg = < 0x4000000 0x400>;
}; //end unknown (LCD_SEG)

sysid: sysid@0x1000000 {
compatible = "ALTR,sysid-11.0","ALTR,sysid-1.0";
reg = < 0x1000000 0x8>;
}; //end sysid (sysid)

//Port instruction_master of cpu
}; //sopc
chosen {
bootargs = "debug console=ttyAL0,115200";
};
};









  ・こちらのパッチは以下でGET出来た。
    wget http://www.uclinux.org/pub/uClinux/uClinux-2.6.x/linux-2.6.20-uc0-big.patch.gz
スポンサーサイト



カレンダー
08 | 2011/09 | 10
- - - - 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 -
累積訪問者
現在の訪問者
現在の閲覧者数:
最新記事
最新トラックバック
最新コメント
月別アーカイブ
カテゴリ
プロフィール

bobgosso

Author:bobgosso
FPGAのブログへようこそ!

検索フォーム
RSSリンクの表示
リンク
ブロとも申請フォーム

この人とブロともになる

QRコード
QRコード