[okl4-developer] building oklinux for versatile

Clément Mazin clement.mazin at etu.unilim.fr
Tue Mar 16 03:17:16 EST 2010


Yes I see this but i have another error :

nizam at nizam-desktop:~/OKL4/okl4_3.0$ tools/build.py machine=versatile 
project=linux wombat=true TOOLCHAIN=gnu_arm_eabi_toolchain 
pistachio.TOOLCHAIN=arm_linux_toolchain PYFREEZE=False kdb_serial=True 
KDB_BREAKIN=False
scons: Reading SConscript files ...
OK Linux library dependencies: ['mutex', 'l4e', 'l4', 'gcc', 
'circular_buffer', 'oklinux', 'atomic_ops', 'okl4']
build okl4fs? False
mutex type user
disk_size is 5600
/home/nizam/OKL4/okl4_3.0/cells/linux/SConscript:329 Error: 
KengeEnvironment instance has no attribute 'Ext2FS'



I tryed to remove the -f option in the command genext2fs and keep the 
definition on genext2fs : there is no error but I can't simulate the image.

nizam at nizam-desktop:~/OKL4/okl4_3.0$ qemu-system-arm -M versatileab 
-start-addr 0x07900000 -nographic -kernel build/image.elf
qemu: fatal: Trying to execute code outside RAM or ROM at 0x08000000

R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=08000000
PSR=400001d3 -Z-- A svc32
Aborted



Andreas Ostermann wrote:
> Hi!
>
> 2010/3/15 Clement Mazin <clement.mazin at etu.unilim.fr 
> <mailto: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
>





More information about the Developer mailing list