[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Cross compiling using microblaze-elf-toolchain in linux



Hi Sweta !

sweta <sweta.bhatt@xxxxxxxxxxxxxx> escreveu:
Hi all,
I am using ML 402 Board & ISE & EDK 8.1. I have ported uClinux on this board. kernel gets booted properly & I get login prompt & all command supports.
 That's good !
I created a new BSB project in Windows & did Libgen.
 
Then I launched EDK Shell & I am able to compile ?hello world ?program successfully .
Executable a.out is generated.
 I am not sure if programs generated in EDK can run uClinux ... you should cross-compile it in your Linux instead.
I have two doubts now
 
1) I am not sure how should I transfer this executable file to uClinux kernel  & how to run it.
 IF it can run, you can boot you board and transfer it via ftp.
2) I want to run the Client Server Application (Socket Programming of Linux using TCP/IP). For Windows , we don?t have all the header files. So instead of creating all the required header files, do we have any other way so that I can cross compile my program in Linux using mb-gcc ?
Yes, you can. You can compile it with your kernel (there is a document in uClinux-dist called Adding-User-Apps-HOWTO - check on that) or you can do it normally, using makefiles - search in the list for out-of-tree compilation and the main page of uClinux for Microblaze (where you downloaded the toolchain)
 ( NOTE : I don?t have ISE-EDK setup in Linux. The only thing I have in Linux is microblaze-elf-toolchain).Is it possible to cross compile a program in linux only with tool chain without any BSB project file ? Please give appropriate suggestion.
 You don't need EDK in linux - haven't you build a kernel already ?
Anyway, get uClinux_ready_Microblaze_design.pdf, it explains how to do it very well.

Good luck.
Arthur.


Abra sua conta no Yahoo! Mail - 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.