[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bgl-discuss] elf format ramdisk for I/O node
Cool! I'll keep after the IBM guys and see if we can get a toolchain for
building code for the IO nodes too.
Rob
On Tue, 8 Feb 2005, Kazutomo Yoshii wrote:
> Hi,
>
> I made tools to extract gzip'ed ramdisk from elf ramdisk
> and create elf ramdisk with your gzip'ed ramdisk.
>
> Here is quick usage
>
> # ./extract-gzrd ramdisk.elf rd.gz
> extract rd.gz from ramdisk.elf
>
> # ./create-elfrd rd.gz newramdisk.elf
> create newramdisk.elf with rd.gz
>
> you can find them at bgl.mcs.anl.gov:/home/kazutomo/bin/
> ( I'll put the source code to cvs tomorrow. )
>
> It works on both ppc(BigEndian) and x86(little endian).
>
> You can also create your elf ramdisk using the gnu ld command
> on ppc platoform. information from Pete
>
> # ${CROSS}ld -b binary -e 0 -o ramdisk.img.elf ramdisk.img.gz
> # ${CROSS}ld -T ramdisk.lds -o ramdisk.elf
> # cat ramdisk.lds
> OUTPUT_ARCH(powerpc)
> SECTIONS
> {
> .data 0x1000000: {
> LONG(0xf0e1d2c3);
> LONG(ramdisk_end - ramdisk_start);
> ramdisk_start = .;
> ramdisk.img.elf
> ramdisk_end = .;
> }
> }
>
> 8 bytes at the beginning of data is tricky...
>
> Thanks,
> Kaz
- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.