linux - Exec format error while executing the file in embedded device from telnet -


i have embedded device consist of 32-bit arm-7 winbond cpu , uclinux os. have windows 7 64-bit machine. have install virtual box ubuntu compiling program uploading through ftp server. file in embedded device being executed telnet server. device has own vdi file unable open image in virtual box install ubuntu in virtual box.

the problems are:

  1. when compile program , upload in device through ftp, while executing file telnet not execute program , shows "exec format error". debugged executable file shows "stack smashing detected". how solve this?

  2. when copy sample code windows ubuntu server in virtual machine , loaded program in device through ftp not executed. , same did windows 7, uploaded sample code in device through windows ftp program being executed. why happens?

you can't run program built different architecture. app built x86 64-bit architecture, , try run on 32-bit arm) have cross-compile program given architecture.

here can read cross compilation:


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -