I am trying to cross-compile openSSL for the Intel Sitsang Development Board.  I
have my toolchain up and running.  I compile with the "arm-linux-gcc" command. 
I have been trying to add my own entry to the Configure file so that the build
will succeed.

My attempts include:

A simple change of the linux-elf configuration (adding 'arm-linux-gcc' )
---
"linux-arm-sitsang","arm-linux-gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des}
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
---
I tried
  ./Configure --openssldir=/home/ssuhr/ssl_embedded linux-arm-sitsang
  make
which fails with many messages that look like:
  x86cpuid-elf.s:183: Error: bad instruction `popl %eax'
I then added a no-asm to the ./Configure line and got much further with the
build, eventually failing with:
 
/usr/local/arm-linux/bin/../lib/gcc-lib/arm-linux/3.2.1/../../../../arm-linux/bin/ld:
dhparam.o: Relocations in generic ELF (EM: 3)
  dhparam.o: could not read symbols: File in wrong format
  collect2: ld returned 1 exit status
  make[2]: *** [link_app.] Error 1

Next I tried something I found at
http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/package/openssl/openssl.patch?rev=9368
---
"linux-arm-sitsang","arm-linux-gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-Wall::-D_REENTRANT:::BN_LLONG::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
---
I got the error:
  make[2]: *** No rule to make target `dlfcn', needed by `lib'.  Stop.
So I removed the 'dlfcn' and tried again, getting to the error
 
/usr/local/arm-linux/bin/../lib/gcc-lib/arm-linux/3.2.1/../../../../arm-linux/bin/ld:
dhparam.o: Relocations in generic ELF (EM: 3)
  dhparam.o: could not read symbols: File in wrong format
  collect2: ld returned 1 exit status
  make[2]: *** [link_app.] Error 1
This is the same place I got stuck the last time.

If anyone knows what I should put in my Configure file or where I should look
next, I'd be very thankful.  I've done much googling and haven't found anyone
targeting a sitsang board.

Below is some information about my target.

Thanks,
Steve

------------------------------
Version of openSSL source code
  0.9.8a

target linux kernal
  Kernel 2.4.19-rmk4-pxa2-alvin2 on an armv5tel

the rest of the /proc/cpuinfo file
        Sitsang Linux (experimental)
        Sitsang2 login: root
        [EMAIL PROTECTED] root]$--version
        bash: --version: command not found
        [EMAIL PROTECTED] root]$cat /proc/cpuinfo
        Processor       : Intel XScale-PXA255 rev 6 (v5l)
        BogoMIPS        : 397.31
        Features        : swp half thumb fastmult edsp
        CPU implementor : 0x69
        CPU architecture: 5TE
        CPU variant     : 0x0
        CPU part        : 0x2d0
        CPU revision    : 6
        Cache type      : undefined 5
        Cache clean     : undefined 5
        Cache lockdown  : undefined 5
        Cache unified   : harvard
        I size          : 32768
        I assoc         : 32
        I line length   : 32
        I sets          : 32
        D size          : 32768
        D assoc         : 32
        D line length   : 32
        D sets          : 32

        Hardware        : Intel Sitsang Development Platform
        Revision        : 0000
        Serial          : 0000000000000000
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to