📄 faq.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#frequently_asked_questions" class="toc">Frequently Asked Questions</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#i_have_found_a_bug_where_to_report_it" class="toc">I have found a bug, where to report it?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#i_get_errors_about_linux_mtd_ftl.h_flash_eraseall.c_or_ftl_format.c" class="toc">I get errors about linux/mtd/ftl.h, flash_eraseall.c, or ftl_format.c</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#can_i_build_the_uclinux-dist_on_a_2.4_host" class="toc">Can I build the uClinux-dist on a 2.4 host</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#i_get_errors_about_no_free_space" class="toc">I get errors about "no free space"?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#i_get_binfmt_flatbad_flat_file_version_0x5_errors" class="toc">I get "BINFMT_FLAT: bad flat file version 0x5" errors</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#how_do_i_enable_large_file_support_in_uclibc_toolchain" class="toc">How do I enable Large File Support in uClibc / Toolchain</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#how_do_i_access_the_power_management_features_of_the_blackfin" class="toc">How do I access the Power Management features of the Blackfin?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#how_do_i_change_the_network_settings_for_the_blackfin" class="toc">How do I change the network settings for the Blackfin?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#how_do_i_allow_more_telnet_sessions_into_the_blackfin" class="toc">How do I allow more telnet sessions into the Blackfin?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#u-boot_takes_forever_to_write_to_flash" class="toc">U-Boot takes forever to write to flash!</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#i_get_bfin-uclinux-mkimagecommand_not_found_errors" class="toc">I get "bfin-uclinux-mkimage: command not found" errors</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#what_does_a_normal_boot_look_like" class="toc">What does a normal Boot Look like?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#i_want_to_learn_more_about_linux_development._can_you_recommend_a_good_resource" class="toc">I want to learn more about Linux development. Can you recommend a good resource?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#how_do_i_port_applications_to_blackfin_uclinux" class="toc">How do I port applications to Blackfin/uClinux</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#more_questions_about_u-boot" class="toc">More questions about u-boot?</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#how_to_config_user_login_on_blackfin" class="toc">How to config user login on blackfin?</a></span></div></li></ul></li></ul></div></div><h1><a name="frequently_asked_questions" id="frequently_asked_questions">Frequently Asked Questions</a></h1><div class="level1"><p>This is a collection of some of the most frequently asked questions about Blackfin/uClinux. Some of the questions even have answers! If you have additions to this <acronym title="Frequently Asked Questions">FAQ</acronym> document, please add them, by clicking “edit this page”.</p></div><!-- SECTION [1-266] --><h2><a name="i_have_found_a_bug_where_to_report_it" id="i_have_found_a_bug_where_to_report_it">I have found a bug, where to report it?</a></h2><div class="level2"><p>Before reporting a bug, please read <a href="http://www.chiark.greenend.org.uk/~sgtatham/bugs.html" class="urlextern" title="http://www.chiark.greenend.org.uk/~sgtatham/bugs.html" rel="nofollow">How to Report Bugs Effectively</a> by Simon Tatham. It is available in over 10 languages, so if English is not your first language, that is fine.</p><p>If you have a question - “How do I do ...” - search on this wiki for the topic, or if there are no topics in the wiki to help (or you can’t understand the instructions), please read <a href="http://www.catb.org/~esr/faqs/smart-questions.html" class="urlextern" title="http://www.catb.org/~esr/faqs/smart-questions.html" rel="nofollow">How to ask a question the smart way</a> by Eric Raymond, and then ask on the forums. There are three major forums for <a href="http://blackfin.uclinux.org/forum/forum.php?forum_id=44" class="urlextern" title="http://blackfin.uclinux.org/forum/forum.php?forum_id=44" rel="nofollow">Toolchain</a>, <a href="http://blackfin.uclinux.org/forum/forum.php?forum_id=51" class="urlextern" title="http://blackfin.uclinux.org/forum/forum.php?forum_id=51" rel="nofollow">U-Boot</a>, and <a href="http://blackfin.uclinux.org/forum/forum.php?forum_id=39" class="urlextern" title="http://blackfin.uclinux.org/forum/forum.php?forum_id=39" rel="nofollow">Kernel</a>.</p><p>If you want to make a bug reports <a href="http://blackfin.uclinux.org/tracker/index.php?group_id=18&atid=145" class="urlextern" title="http://blackfin.uclinux.org/tracker/index.php?group_id=18&atid=145" rel="nofollow">Toolchain</a>, <a href="http://blackfin.uclinux.org/tracker/index.php?group_id=20&atid=153" class="urlextern" title="http://blackfin.uclinux.org/tracker/index.php?group_id=20&atid=153" rel="nofollow">U-Boot</a>, or <a href="http://blackfin.uclinux.org/tracker/index.php?group_id=17&atid=141" class="urlextern" title="http://blackfin.uclinux.org/tracker/index.php?group_id=17&atid=141" rel="nofollow">Kernel</a>.</p></div><!-- SECTION [267-1396] --><h2><a name="i_get_errors_about_linux_mtd_ftl.h_flash_eraseall.c_or_ftl_format.c" id="i_get_errors_about_linux_mtd_ftl.h_flash_eraseall.c_or_ftl_format.c">I get errors about linux/mtd/ftl.h, flash_eraseall.c, or ftl_format.c</a></h2><div class="level2"><p> See <a href="faq.html#can_i_build_the_uclinux-dist_on_a_2.4_host" class="wikilink1" title="faq.html">can_i_build_the_uclinux-dist_on_a_2.4_host</a>.</p></div><!-- SECTION [1397-1536] --><h2><a name="can_i_build_the_uclinux-dist_on_a_2.4_host" id="can_i_build_the_uclinux-dist_on_a_2.4_host">Can I build the uClinux-dist on a 2.4 host</a></h2><div class="level2"><p>When compiling uClinux kernel on Linux 2.4 system, if you encounter compile errors in <code>flash_eraseall.c</code> or <code>ftl_format.c</code>, this is most likely the problem of missing header “linux/mtd/ftl.h” on the host. If you are running into problems, try turning off the mtd-utils (but you will loose JFFS2 capabilities). The mtd-utils creates host tools as well as target tools (to create a file system on the host, which can be read by the target). </p><p>Sometimes, on a Linux 2.6 system (e.g, Fedora Core), the mtd-utils header files (linux/mtd/*.h) do not exist in the default “include” path: <code>/usr/include/</code>, so you may get an error like: </p><pre class="code">$ gcc -I/usr/include -I. -o build/ftl_format ftl_format.cftl_format.c:51:27: error: linux/mtd/ftl.h: No such file or directory</pre><p>In this case, please try to find the headers files for <code>mtd-utils</code> in the host kernel source tree (kernel source will be installed in /usr/src/ by default): <kernel_src>/include/linux/mtd/. If it is not there, you can copy (or link) the target mtd directory from ‘<target_kernel_src>/uClinux-dist/linux-2.6.x/include/mtd/’ to ‘usr/include/linux/mtd’. (which hopefully is a path that your host’s gcc looks at for include files).</p><p>If these solutions do not work for you, simply turn off mtd-utils. If can be found in <code>Kernel/Library/Defaults Selection</code> → <code>Customize Vendor/User Settings</code> → <code>Flash Tools</code> → <code>mtd-utils</code>.</p></div><!-- SECTION [1537-2999] --><h2><a name="i_get_errors_about_no_free_space" id="i_get_errors_about_no_free_space">I get errors about "no free space"?</a></h2><div class="level2"><p> If you get an error that looks like: </p><pre class="code">../bfin-elf-genext2fs: couldn't allocate a block (no free space)</pre><p>This means that the ram files system for the target is not big enough to store all the data that you want to put in it. This is controlled in the <code>./vendors/AnalogDevices/BF5xx-XXXX/Makefile</code>. For more information learn more about the <a href="root_file_system_structure.html" class="wikilink1" title="root_file_system_structure.html">root file system structure</a></p></div><!-- SECTION [3000-3435] --><h2><a name="i_get_binfmt_flatbad_flat_file_version_0x5_errors" id="i_get_binfmt_flatbad_flat_file_version_0x5_errors">I get "BINFMT_FLAT: bad flat file version 0x5" errors</a></h2><div class="level2"><p>Older releases of the Blackfin toolchain/kernel would generate and use BFLT version 5 executables. Starting with the 2006R1 release, the toolchain/kernel generates and uses BFLT version 4 executables. The reason for this change is that unlike the version 4 format, version 5 is not the standard used by other uClinux ports.</p><p>If you are encountering this error, make sure you are using the same version of the toolchain and kernel. In other words, do not try and compile the 2006R1 kernel sources with a 2005R4 toolchain and if you are using the kernel from cvs, then you should probably be using the toolchain from cvs.</p></div><!-- SECTION [3436-4127] --><h2><a name="how_do_i_enable_large_file_support_in_uclibc_toolchain" id="how_do_i_enable_large_file_support_in_uclibc_toolchain">How do I enable Large File Support in uClibc / Toolchain</a></h2><div class="level2"><p>The default toolchain doesn’t have Large File Support Enabled by default. If you need this feature following needs to be done:</p><p>In <em><strong>uClinux-dist/uClibc/extra/Configs/</strong></em></p><p>Edit: <strong>Config.bfin.default</strong> and <strong>Config.bfinfdpic.default</strong></p><p>Change: # UCLIBC_HAS_LFS is not set </p><p>to </p><p><strong>UCLIBC_HAS_LFS=y</strong></p><p> Then rebuild your toolchain using the path set to your patched Kernel/uClibc. Find more here: <a href="toolchain_build_script.html" class="wikilink1" title="toolchain_build_script.html">toolchain_build_script</a></p></div><!-- SECTION [4128-4626] --><h2><a name="how_do_i_access_the_power_management_features_of_the_blackfin" id="how_do_i_access_the_power_management_features_of_the_blackfin">How do I access the Power Management features of the Blackfin?</a></h2><div class="level2"><p>The power management features are controlled by the dpmc subsystem, and the kernel comes with test drivers that access this functionality. Examine <code>./uClinux-dist/blkfin-test/dpcm-test/to_sleep.c</code>, <code>to_hibernate.c</code>, and <code>to_deepsleep.c</code>. To build these test drivers, In menuconfig, select <strong>Vendor/User Settings → Blackfin Test Programs → DPMC test program</strong>. When the blackfin boots the resultant kernel, <code>to_sleep</code>, <code>to_hibernate</code>, and <code>to_deepsleep</code> will be runnable binaries in the <code>/bin</code> directory.</p></div><!-- SECTION [4627-5225] --><h2><a name="how_do_i_change_the_network_settings_for_the_blackfin" id="how_do_i_change_the_network_settings_for_the_blackfin">How do I change the network settings for the Blackfin?</a></h2><div class="level2"><p>To change the network setting of the Blackfin, you will need to modify the <code>./uClinux-dist/vendors/AnalogDevices/BFXXX-XXXXX/rc</code> file. This file is the startup script that is run each time the Blackfin boots. To set a static ip address of your choice, add the line </p><pre class="code">ifconfig eth0 192.168.0.1</pre><p>Or to instead use DHCP for obtaining an IP address, add the line: </p><pre class="code">dhcpcd &</pre><p> Then rebuild the kernel. You can also use this file to automatically mount shared drives and other things that need to be done at boot time.</p><p>For more details, see the <a href="setting_up_the_network.html" class="wikilink1" title="setting_up_the_network.html">setting up the network</a> page.</p></div><!-- SECTION [5226-5896] --><h2><a name="how_do_i_allow_more_telnet_sessions_into_the_blackfin" id="how_do_i_allow_more_telnet_sessions_into_the_blackfin">How do I allow more telnet sessions into the Blackfin?</a></h2><div class="level2">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -