Пользуясь руководством http://xilinx.wikidot.com/microblaze-linux , скомпилировал Linux ( http://git.xilinx.com/ ) для процессора Microblaze на плату ml505. Linux стартует и работает нормально. Использую тотже кросскомпилятор, которым компилирова ядро Linux для компиляции программы:
Код
#include <stdio.h>
#include <stdlib.h>
int main ( void ) {
printf("Hello world!!!\n");
return 0;
}
#include <stdlib.h>
int main ( void ) {
printf("Hello world!!!\n");
return 0;
}
Программа компилируется без ошибок, делее используя tftp загружаю программу на плату, запускаю ее:
Цитата
/usr# ls
/usr# tftp -g -r hello 192.168.224.205
tftp: using blksize 512
using server '192.168.224.205:69', remote_file 'hello',local_file 'hello'
/usr# ls
hello
/usr# ./hello
/bin/sh: ./hello: Permission denied
/usr# chmod +x ./hello
/usr# ./hello
/bin/sh: ./hello: not found
/usr# ls -all
drwxr-xr-x 2 0 0 0 Jan 1 04:45 .
drwxrwxrwx 12 10042 2223 0 Jan 1 04:33 ..
-rwxr-xr-x 1 0 0 6868 Jan 1 04:45 hello
/usr# tftp -g -r hello 192.168.224.205
tftp: using blksize 512
using server '192.168.224.205:69', remote_file 'hello',local_file 'hello'
/usr# ls
hello
/usr# ./hello
/bin/sh: ./hello: Permission denied
/usr# chmod +x ./hello
/usr# ./hello
/bin/sh: ./hello: not found
/usr# ls -all
drwxr-xr-x 2 0 0 0 Jan 1 04:45 .
drwxrwxrwx 12 10042 2223 0 Jan 1 04:33 ..
-rwxr-xr-x 1 0 0 6868 Jan 1 04:45 hello
Почемуто система не видит исполняемые файлы (.
Скрипты запускаются и выполняются нормально.
Может кто сталкивался с такой проблемой, подскажите как быть...