Friday, April 25, 2014

MIPS Qemu

Install Qemu
[ ]$ wget http://wiki.qemu-project.org/download/qemu-2.0.0.tar.bz2
[ ]$ tar jxvf qemu-2.0.0.tar.bz2
[ ]$ cd qemu-2.0.0

Compile Qemu
[ ]$ ./configure --target-list=mipsel-softmmu
[ ]$ make
[ ]$ sudo make install

Compile U-boot
[ ]$ CROSS_COMPILE=mips-linux-gnu- make -C u-boot-2014.01 qemu_mipsel

Run Qemu/U-boot
[ ]$ dd of=flash bs=1k count=4k if=/dev/zero
[ ]$ dd of=flash bs=1k conv=notrunc if=u-boot.bin

[ ]$ qemu-system-mipsel -M mips -m 128 -pflash flash -monitor null -nographic

U-Boot 2014.01 (Apr 24 2014 - 10:20:11)

Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
DRAM:  128 MiB
Flash: 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   NE2000
Hit any key to stop autoboot:  0

qemu-mipsel # version

U-Boot 2014.01 (Apr 24 2014 - 10:20:11)
mips-linux-gnu-gcc (Sourcery CodeBench Lite 2013.11-36) 4.8.1
GNU ld (Sourcery CodeBench Lite 2013.11-36) 2.23.52.20130912

qemu-mipsel #

Saturday, April 19, 2014

Development Environment on Mac OS X

Compiler
XCode

xcode_3.2.6_and_ios_sdk_4.3
command_line_tools_for_osx_mavericks_april_2014

X Window System
XQuartz
A version of the X.Org X Window System that runs on OS X.

The XQuartz project is an open-source effort to develop a version of the X.Org X Window System that runs on OS X. Together with supporting libraries and applications, it forms the X11.app that Apple has shipped with OS X since version 10.5.


1. brew
2. MacPorts

Thursday, April 17, 2014

Cryptographic: Digital Signature Algorithms

RSA 2048 Private key and Public Key Pair Generation
Example 1:
$ openssl genrsa -out privkey.pem 2048
$ openssl rsa -pubout -in privkey.pem -out pubkey.pem

Example 2:
# Generate aes256 encrypted private key
$ openssl genrsa -aes256 -out privkey.pem 2048

# Generate public key from previously created private key.
$ openssl rsa -pubout -in privkey.pem -out pubkey.pem

Elliptic Curve DSA
# Generating params file
$ openssl ecparam -name prime256v1 -out ecparams.pem

# Generate a private key from params file
$ openssl ecparam -in ecparams.pem -genkey -noout -out ecprivkey.pem

# Generate a public key from private key
$ openssl ec -in ecprivkey.pem -pubout -out ecpubkey.pem


Ref:
Crypto Key Length Recommendation

Thursday, April 10, 2014

CodeBench ARM Cross-Compiler on Mac OS X

1. Install MacTex
    http://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg
2. Install GNU sed, awk
    $ brew install sed
    $ brew install gawk
3. Install gettext
    http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.2.tar.gz
 
    $ cd gettext-0.18.3.2
    $ ./configure
    $ make
    $ sudo make install

4. CodeBench Lite
    https://sourcery.mentor.com/GNUToolchain/release2642
5. Build
    patch -
    script -

No kidding, I take one day to compile the ARM toolchain.

Wednesday, April 9, 2014

Hitachi OPV5XC SoC

http://www.hitachi.com/products/it/network/soc/

Saturday, April 5, 2014

TV Player

Apple TV
Google TV
Amazon Fire TV (New)

Saturday, March 15, 2014

Yocto

Yocto is becoming more and more popular recently. What is it actually and what is the difference with "buildroot" project?



Ref:
http://elinux.org/images/9/9e/Buildroot2.pdf (Page 5)


Book:
Embedded Linux Systems with the Yocto Project



Yocto for Embedded Linux Development Primer
Otavio Salvador, Daiane Angolini

121 pages

Publisher: Packt Publishing (April 6, 2014)
ISBN-10: 1783282339
ISBN-13: 978-1783282333