<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><div>> $ arm-rtems4.12-nm \</div><div>>   /opt/rtems/4.12/arm-rtems4.12/xilinx_zynq_zc706/lib/libjffs2.a | \</div><div>>     grep rtems_jffs2_compressor_zlib_compress</div><div>> 00000000 T rtems_jffs2_compressor_zlib_compress</div><div> </div><div>I checked the symbols, same result as yours.</div><div><br></div><div>>> I also add this library -</div><div>>> "additional_flags += ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib -ljffs2']"</div><div> </div><div>>Link order?</div></div>
<div><br></div><div>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...</div><div><br></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">    bld.program(target = "bkv01.elf",<br>                features = "cprogram",<br>                cflags = system_flags,<br>                includes = system_includes,<br>                source = system_src,<br>                use = ["bsd"],<br>                lib = ["m", "z"],<br>                install_path = None<br>    )</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">So I just delete the compressor & decompressor part, and run it. </span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">In the function "</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">mount_and_make_target_path", the "rtems_mkdir" part works well, but the "mount" process takes a long time, and no return... </span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">I can not debug the mount process, since it is a system call.</span></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>Best wishes,</div><div>xuelin.tian@qkmtech.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:chrisj@rtems.org">Chris Johns</a></div><div><b>Date:</b> 2017-10-21 11:40</div><div><b>To:</b> <a href="mailto:xuelin.tian@qkmtech.com">xuelin.tian@qkmtech.com</a>; <a href="mailto:sebastian.huber@embedded-brains.de">Sebastian Huber</a>; <a href="mailto:users@rtems.org">users@rtems.org</a></div><div><b>Subject:</b> Re: Filesystem in RTEMS</div></div></div><div><div>On 21/10/2017 13:13, xuelin.tian@qkmtech.com wrote:</div>
<div>> All these three functions should be defined in libjffs2.a, right?</div>
<div> </div>
<div>Yeap ...</div>
<div> </div>
<div>$ arm-rtems4.12-nm \</div>
<div>  /opt/rtems/4.12/arm-rtems4.12/xilinx_zynq_zc706/lib/libjffs2.a | \</div>
<div>    grep rtems_jffs2_compressor_zlib_compress</div>
<div>00000000 T rtems_jffs2_compressor_zlib_compress</div>
<div> </div>
<div>> I also add this library - </div>
<div>> "additional_flags += ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib -ljffs2']"</div>
<div> </div>
<div>Link order?</div>
<div> </div>
<div>Chris</div>
</div></blockquote>
</body></html>