Creating a ramdisk for running binaries compiled with arm-linux-gcj
ffileppo
ffileppo@libero.it
Thu Apr 24 19:48:00 GMT 2008
> Hi,
>> I would like to create a ramdisk from scratch in order to run a binary compiled with arm-linux-gcj.
>> My configure for arm-linux-gcj is:
>> Target: arm-linux-gnueabi
> Configured with: ../configure --prefix=/root/tmp/f8/2install --with-sysroot=/root/tmp/f8/rootfs-f8 --disable-libssp --disable-libgomp --disable-libmudflap --enable-libgcj --disable-bootstrap --disable-multilib --disable-sjlj-exceptions --target=arm-linux-gnueabi --enable-languages=c,c++,java --with-build-time-tools=/root/tmp/f8/binutils/arm-linux-gnueabi/bin --with-ld=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/ld --with-nm=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/nm --with-strip=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/strip --with-as=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/as --with-float=soft
> Thread model: posix
> gcc version 4.3.0 (GCC)
>>> I used fedora8 arm rootfs (http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f8.tar.bz2) for --with-sysroot option
>> I compiled a binary (a.out) with arm-linux-gcj and I see that the needed libraries are:
>> libgcc_s.so.1
> libgcj.so.9.0.0
> libm-2.7.so (from roofs-f8)
> libpthread-2.7.so (from roofs-f8)
> librt-2.7.so (from roofs-f8)
> libdl-2.7.so (from roofs-f8)
> libstdc++.so.6.0.10
> libc-2.7.so (from roofs-f8)
>>> Now I would like to create a ramdisk with my binary and these libraries.
>> I tried creating a ramdisk using busybox to get a working shell but I can't run the binary in this way (I get ./a.out : not found error).
>> Would anyone explain me how to create such ramdisk?
> I would like to keep it under 60MB (rootfs-f8 is very very big)
>>> Thank you
>>> Francesco
>>
It works using bash binary from fedora8 arm filesystem instead of busybox as shell
More information about the Java
mailing list