Embedded Linux >> Newbie - How to download object files on a running system? - MPC860

by arun4vxworks » Tue, 14 Sep 2004 19:24:01 GMT

Hi,


I'd like to download the total software image and then want to add a
module (.o file) to the image during runtime. I do not want to disturb
the existing/working image.

I'm using Cross compiler ccppc version cygnus-2.7.2-960126 egcs-971225
tornado 2.0 on Solaris Machine and my development machine is Windows
NT with Tornado 2.0

Could you please let me know, how to add .o files to the existing
image during runtime?

I want to be able to compile and create the object (.o files) files on
my windows development machine and download the same to my target
VxWorks machine without affecting the existing image.

I'm able to download either complete image or just object file, but
not both of them together.

In the worst case, I want to be able to switch from the image to the
object file that I downloaded and vice versa from VxWorks prompt.

I am looking for something similar to 'insmod' that allows us to
insert modules to the working kernel/image. It worked for me with
uCLinux Embedded OS.

Regards
Arun


Embedded Linux >> Newbie - How to download object files on a running system? - MPC860

by Michael Schnell » Wed, 15 Sep 2004 14:47:57 GMT


> Could you please let me know, how to add .o files to the existing

I don't think this is possible. I suppose you should upload a complete
additional program (elf file) and have the running application start it.

-Michael



Embedded Linux >> Newbie - How to download object files on a running system? - MPC860

by mails4srinivas » Mon, 20 Sep 2004 20:01:42 GMT




Hi,

Why dont you use the target server to load the object file!!!
Ref., chap 8 in tornado users guide...
and do post your findings and observations!!!


Srinivas


Newbie - How to download object files on a running system? - MPC860

by Fred » Fri, 24 Sep 2004 14:40:43 GMT

Ftp the object file on your flash (if you have any). then load the
object file using the ld < file.o command. If you are booting using
the network, you can load directly from the network.

Then run the main function in the loaded object. This is usually the
routine that spawns the task.


Jerry


14 Sep 2004 04:24:01 -0700, XXXX@XXXXX.COM (Arun Prasad)





Similar Threads

1. Running linux on MPC860 - Embedded Linux

2. [audit] Upstream solution for auditing file system objects

3. Download header files for running unix network programs

4. object files, header files, source files?

I can't find any books describing the anatomy of C/C++ programs. What is 
an object file? Can it be generated from a header file?, what is 
linking?, why does a source file need an object file? etc.

I have looked in The C programming Language, The C++ Programming 
Language, Accelerated C++, GNU make etc but they don't describe these 
basic subject. Any literature that covers these subjects?

5. Newbie: System.map file is empty

6. Resize file system in AIX 5.1 - NewBie

Hi,

How to go about shrinking /tmp and re-use the space for /var for the 
following?

 :
/dev/hd9var         65536       208  100%      811     5% /var
/dev/hd3          5537792   5272292    5%     2933     1% /tmp
 :


Thanks in advace. 


7. Disk Space-File System Newbie Question. - FreeBSD

8. /proc file system newbie

Hi Gang,

I am a UNIX novice programmer :-) I have a task in which I have to create my 
own /proc entry  that monitors or controls some aspect of the kernel.  I 
need to be able to, modify the kernel to either record some information or 
enable you to view some information, add a proc entry that enables users to 
obtain this information, and
have the proc entry enable you to reset or modify some information.

I am running a Solaris 5.8 os. I have begun reading about the proc file 
system and it all seems new to me and I am a bit lost :-(
Any resource/example of any kind would be invaluable to me and the help 
would be greatly appreciated.

Thanks

Ashutosh