Skip to contentSkip to conversation

Interpreting ELF file on a ramdisk (block device)

DISCUSSION prodyut hazarika 2 participants 2 messages Jan 16, 2002

lore
Share & tools
lore
#0 lore raw

Hi all,
I get an ELF file on a ramdisk using TFTP. I want to interpret the ELF file in the ramdisk, and load it into memory (SDRAM) using the ramdisk as a block device, but without using any file system.

Is this possible? Any pointers will be greatly appreciated.

Thanks,
prodyut.

PS: Currently I use CRAMFS to get the ELF file into ramdisk. Then I load the ELF file into memory using CRAMFS. I want to get rid of the CRAMFS on top of ELF.

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

#1 lore raw
Quoted 4 lines · prodyut hazarika

I get an ELF file on a ramdisk using TFTP. I want to interpret the ELF file in the ramdisk, and load it into memory (SDRAM) using the ramdisk as a block device, but without using any file system.

If you have the ELF file in a ramdisk, it's already in memory.

Quoted 2 lines

Is this possible? Any pointers will be greatly appreciated.

No, a linux kernel can't work without a filesystem.

Quoted 3 lines

PS: Currently I use CRAMFS to get the ELF file into ramdisk. Then I load the ELF file into memory using CRAMFS. I want to get rid of the CRAMFS on top of ELF.

Why not use the cramfs as your rootfs?

Erik

Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/