Sota?

#navi(Sota/opkg): No child page like: Sota/opkg/Foo

設定

vi /etc/opkg/base-feeds.conf

以下を追記 [#h86f708f]

src/gz all http://repo.opkg.net/edison/repo/all
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

以下は絶対に追加したらダメ。カーネルモジュール壊れる

src/gz edison http://repo.opkg.net/edison/repo/edison

Intelリポジトリの登録

vi /etc/opkg/intel-iotdk.conf

以下を追記

src intel-iotdk http://iotdk.intel.com/repos/1.1/intelgalactic
src intel-all http://iotdk.intel.com/repos/1.1/iotdk/all
src intel-i586 http://iotdk.intel.com/repos/1.1/iotdk/i586
src intel-x86 http://iotdk.intel.com/repos/1.1/iotdk/x86

パッケージリストのアップデート

opkg update

インストーラでは以下を実行する

echo "append path"
filepath=/etc/opkg/base-feeds.conf

if [ -e ${filepath} ]; then

	hantei=`grep "http://repo.opkg.net/edison/repo/all" ${filepath}`
	if [ -z "${hantei}" ]; then
		perl append_bashprofile.pl ${filepath} "src/gz all http://repo.opkg.net/edison/repo/all"
	fi

#	hantei=`grep "http://repo.opkg.net/edison/repo/edison" ${filepath}`
#	echo $hantei
#	if [ -z "${hantei}" ]; then
#		perl append_bashprofile.pl ${filepath} "src/gz edison http://repo.opkg.net/edison/repo/edison"
#	fi

	hantei=`grep "http://repo.opkg.net/edison/repo/core2-32" ${filepath}`
	echo $hantei
	if [ -z "${hantei}" ]; then
		perl append_bashprofile.pl ${filepath} "src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32"
	fi
else
	perl append_bashprofile.pl ${filepath} "src/gz all http://repo.opkg.net/edison/repo/all"
	perl append_bashprofile.pl ${filepath} "src/gz edison http://repo.opkg.net/edison/repo/edison"
	perl append_bashprofile.pl ${filepath} "src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32"
fi


filepath=/etc/opkg/intel-iotdk.conf
	if [ -e ${filepath} ]; then

	hantei=`grep "http://iotdk.intel.com/repos/1.1/intelgalactic" ${filepath}`
	if [ -z "${hantei}" ]; then
		perl append_bashprofile.pl ${filepath} "src intel-iotdk http://iotdk.intel.com/repos/1.1/intelgalactic"
	fi

	hantei=`grep "http://iotdk.intel.com/repos/1.1/iotdk/all" ${filepath}`
	if [ -z "${hantei}" ]; then
		perl append_bashprofile.pl ${filepath} "src intel-all http://iotdk.intel.com/repos/1.1/iotdk/all"
	fi

	hantei=`grep "http://iotdk.intel.com/repos/1.1/iotdk/i586" ${filepath}`
	if [ -z "${hantei}" ]; then
		perl append_bashprofile.pl ${filepath} "src intel-i586 http://iotdk.intel.com/repos/1.1/iotdk/i586"
	fi
	hantei=`grep "http://iotdk.intel.com/repos/1.1/iotdk/x86" ${filepath}`
	if [ -z "${hantei}" ]; then
		perl append_bashprofile.pl ${filepath} "src intel-x86 http://iotdk.intel.com/repos/1.1/iotdk/x86"
	fi
else
		perl append_bashprofile.pl ${filepath} "src intel-iotdk http://iotdk.intel.com/repos/1.1/intelgalactic"
		perl append_bashprofile.pl ${filepath} "src intel-all http://iotdk.intel.com/repos/1.1/iotdk/all"
		perl append_bashprofile.pl ${filepath} "src intel-i586 http://iotdk.intel.com/repos/1.1/iotdk/i586"
		perl append_bashprofile.pl ${filepath} "src intel-x86 http://iotdk.intel.com/repos/1.1/iotdk/x86"

fi

echo "opkg update"
opkg update