Filesystem in RTEMS

xuelin.tian at qkmtech.com xuelin.tian at qkmtech.com
Sat Oct 21 03:58:12 UTC 2017


> $ arm-rtems4.12-nm \
>   /opt/rtems/4.12/arm-rtems4.12/xilinx_zynq_zc706/lib/libjffs2.a | \
>     grep rtems_jffs2_compressor_zlib_compress
> 00000000 T rtems_jffs2_compressor_zlib_compress
 
I checked the symbols, same result as yours.

>> I also add this library -
>> "additional_flags += ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib -ljffs2']"
 
>Link order?

Yeah, I google it, and it says that this kind of error is related to linking order. But I use waf, and have no idea how to change the order...

    bld.program(target = "bkv01.elf",
                features = "cprogram",
                cflags = system_flags,
                includes = system_includes,
                source = system_src,
                use = ["bsd"],
                lib = ["m", "z"],
                install_path = None
    )

So I just delete the compressor & decompressor part, and run it. 
In the function "mount_and_make_target_path", the "rtems_mkdir" part works well, but the "mount" process takes a long time, and no return... 
I can not debug the mount process, since it is a system call.



Best wishes,
xuelin.tian at qkmtech.com
 
From: Chris Johns
Date: 2017-10-21 11:40
To: xuelin.tian at qkmtech.com; Sebastian Huber; users at rtems.org
Subject: Re: Filesystem in RTEMS
On 21/10/2017 13:13, xuelin.tian at qkmtech.com wrote:
> All these three functions should be defined in libjffs2.a, right?
 
Yeap ...
 
$ arm-rtems4.12-nm \
  /opt/rtems/4.12/arm-rtems4.12/xilinx_zynq_zc706/lib/libjffs2.a | \
    grep rtems_jffs2_compressor_zlib_compress
00000000 T rtems_jffs2_compressor_zlib_compress
 
> I also add this library - 
> "additional_flags += ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib -ljffs2']"
 
Link order?
 
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20171021/1f7fd444/attachment-0002.html>


More information about the users mailing list