[okl4-developer] building oklinux for versatile

Andreas Ostermann andreas.ostermann.11 at googlemail.com
Tue Mar 16 02:58:25 EST 2010


Hi!

2010/3/15 Clement Mazin <clement.mazin at etu.unilim.fr>

> [...]
>
nizam at nizam-desktop:~/OKL4/okl4_3.0$
> /home/nizam/OKL4/okl4_3.0/build/linux/native/tools/genext2fs/genext2fs -b
> 5600 -d build/linux/install -f
> /home/nizam/OKL4/okl4_3.0/linux/rootfs-2.6.24-v2/dev.txt
> build/linux/ext2ramdisk
> Segmentation fault
>
> Do you have any idea to help me to fix this error ?
>

I once got a hint by Gabi Voiculescu:

[...] you'll probably experience problems with genext2fs (an x86 executable
used during build process in the final stages, when creating the ramdisk) if
you have a gcc-4.3 for x86 installed in your system.

If you use ubuntu as your dev environment a much newer genext2fs is
obtainable via Synaptic and you need to change tools/kenge.py from:

    def Ext2FS(self, size, dev):
        genext2fs = SConscript(os.path.join(self.oklinux_dir, "tools",
"genext2fs", "SConstruct"),
                               build_dir=os.path.join(self.builddir,
"native", "tools", "genext2fs"),
                               duplicate=0)
        ramdisk = self.builddir + os.sep + "ext2ramdisk"
        cmd = self.Command(ramdisk, Dir(os.path.join(self.builddir,
                                                     "install")),
                           genext2fs[0].abspath +
                           " -b $EXT2FS_SIZE -d $SOURCE -f $EXT2FS_DEV
$TARGET",
                           EXT2FS_SIZE=size, EXT2FS_DEV=dev)

        Depends(cmd, genext2fs)

        # always regenerate the ramdisk file
        AlwaysBuild(cmd)
        return cmd

to:

    def Ext2FS(self, size, dev):
        ramdisk = self.builddir + os.sep + "ext2ramdisk"
        cmd = self.Command(ramdisk, Dir(os.path.join(self.builddir,
                                                     "install")),
                           "genext2fs -b $EXT2FS_SIZE -d $SOURCE -D
$EXT2FS_DEV $TARGET",
                           EXT2FS_SIZE=size, EXT2FS_DEV=dev)

        # always regenerate the ramdisk file
        AlwaysBuild(cmd)
        return cmd

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20100315/2a08c59d/attachment.htm 


More information about the Developer mailing list