Posted by: Wildan Maulana | July 17, 2007

[Draft] Secure Boot

Cross Compile OpenSSL for AVR32 :

root@elekta:/home/wildan/netherland-project/secureBoot/openSSL/openssl-0.9.8e# ./Configure llinux-generic32 -DB_ENDIAN no-hw no-asm no-shared no-dso
root@elekta:/home/wildan/netherland-project/secureBoot/openSSL/openssl-0.9.8e# make

Patch U-Boot :

Here is a patch which i get from [1], and then modified it for u-boot-1.1.4 , u-boot-securepatchtargz.doc

Here is the download able version of the patch file :

just get rid off the .doc extension …

Add the following  environtment variables in .bashrc

export CRYPTO_INC=”-I/home/wildan/netherland-project/other-software/openssl-0.9.8e/include”

export CRYPTO_LIBS=”-L /home/wildan/netherland-project/other-software/openssl-0.9.8e  -lssl -lcrypto -lm -lc”

Patch U-Boot :
Use u-boot which reside in avr32-cd :

root@elekta:~# cd /home/wildan/netherland-project/avr32-cd/software/u-boot/

root@elekta:/home/wildan/netherland-project/avr32-cd/software/u-boot# tar jxvf u-boot-1.1.4.tar.bz2

root@elekta:/home/wildan/netherland-project/avr32-cd/software/u-boot/u-boot-1.1.4# for i in `cat ../series `; do patch -p1 < ../$i; done

root@elekta:/home/wildan/netherland-project/avr32-cd/software/u-boot/u-boot-1.1.4# for i in `cat ../u-boot-patch/series `; do patch -p1 < ../u-boot-securepatch /$i; done

#make atngw_config

#make all
————-
[1] http://sourceforge.net/mailarchive/message.php?msg_id=w7d59z1r8o.fsf%40gidney.research.panasonic.com

[2] ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.4.tar.bz2


Responses

  1. hi wildanm,

    i try to cross compile openssl for avr32 (bgw100) myself, but i get many problems for this.

    if i chose openssl in menuconfig (atmels buildroot), there comes an debug error…when i try to compile the openssl-0.9.8.tar.gz on the board (ngw100) there comes the messages “perl is needed..”

    perhaps , you can help me….

    greets tom


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: