February 10, 2014
uClinux-dist (nommu) for Nios II on custom design
February 7, 2014
Memory Leak Patch to Homebrew Emacs 24.3 on OS X Mavericks
$ brew edit emacs $ brew reinstall emacs参考文献
- distnoted が原因でEmacsが落ちるのを防ぐemacs.rb [qiita.com]
- emacsやdistnotedを安定させるパッチをhomebrewで適用した [n-z.jp]
(February 8, 2014 追記)
折角なので今回は Formula Cookbook [github.com] に従い Pull Request してみた。
- emacs: add patch for memory leaks by geodenx · Pull Request #26516 · Homebrew/homebrew [github.com]
- emacs: add patch for memory leaks · 07ef188 · geodenx/homebrew [github.com]
早速取り込んでいただけた模様。
commit message の英文法が間違ってるのが恥ずかしい。オープンソース活動はスヌープされても問題ないから、英文構成サービス使うべし。
February 5, 2014
uClinux-dist (nommu) build for Nios II
ホスト環境: RedHat 5 x86_64
デザインをダウンロード、展開
$ wget http://image.gihyo.co.jp/assets/files/book/2011/978-4-7741-4839-7/download/DE0.ZIP $ unzip DE0.ZIP
ビルドに必要なツールをインストール
# yum install git-all git-gui make gcc ncurses-devel bison byacc flex \ gawk gettext ccache zlib-devel gtk2-devel lzo-devel pax-utils libglade2-devel uboot-toolsInstall Nios II Linux [alterawiki.com] のパッケージ指定にタイポがあり pax-utils と libglade2-devel の間にスペースが必要
クロスコンパイラをダウンロード、展開
$ wget ftp://ftp.altera.com/outgoing/nios2-linux/nios2gcc-20080203.tar.bz2 $ tar jxvf nios2gcc-20080203.tar.bz2 $ export PATH=$PWD/opt/unios2/bin:$PATH
uClinux-dist をビルド
Install Nios II Linux [alterawiki.com] や Downloading Linux Distribution [alterawiki.com] によると、nommu の場合は test-nios2 ブランチになっているらしい。
$ wget http://sopc.et.ntust.edu.tw/pub/linux/nios2-linux-20100621.tar $ tar xvf nios2-linux-20100621.tar $ cd nios2-linux/linux-2.6 $ git checkout test-nios2 $ cd ../uClinux-dist $ git checkout test-nios2 $ make menuconfig $ make vendor_hwselect SYSPTF=$HOME/DE0/dai9sho/uclinux/uclinux_sopc.ptf $ make $ file images/zImage images/zImage: ELF 32-bit LSB executable, version 1 (embedded), statically linked, not strippedptf ファイルは絶対パスで指定する必要あり。
Subscribe to:
Posts (Atom)