📄 uclinux_bfin_release_notes_2005r4.html
字号:
<tr> <td class="centeralign"> <strong>No</strong> </td><td class="centeralign"> <strong>Issue Title</strong> </td> </tr> <tr> <td>891</td><td>tcp stress testing echo service</td> </tr> <tr> <td>900</td><td>busybox/msh,cd,tar and pipes</td> </tr> <tr> <td>960</td><td>NFS unstable under heavy load</td> </tr> <tr> <td>991</td><td>Infrequent audio crash</td> </tr> <tr> <td>1012</td><td>After running dpmc to_deepsleep testcase, the kernel would panic after a while</td> </tr> <tr> <td>1014</td><td>kernel built with audio configuration sometimes would fail to boot up and hangs</td> </tr> <tr> <td>1030</td><td>syslogd respawning messages</td> </tr> <tr> <td>1031</td><td>Problem in BF537(?) Signal Handler</td> </tr> <tr> <td>1035</td><td>CoreB test failed on bf561</td> </tr></table><br /><p> There are also some issues in the LTP test cases. They are recorded as bug 532, 561, 567, 732, 735, 742, 744, 745, 890, 1010 and 1019.</p></div><!-- SECTION [4455-5260] --><h1><a name="build_procedure" id="build_procedure">Build Procedure</a></h1><div class="level1"><p>1. Install Toolchain Release 2005R4</p><p>Go to <a href="http://blackfin.uclinux.org/frs/?group_id=18" class="urlextern" title="http://blackfin.uclinux.org/frs/?group_id=18" rel="nofollow">http://blackfin.uclinux.org/frs/?group_id=18</a> for more information</p><p>2. Download the source code of project uClinux for Blackfin release 2005R4</p><p>Go to <a href="http://blackfin.uclinux.org/frs/?group_id=17" class="urlextern" title="http://blackfin.uclinux.org/frs/?group_id=17" rel="nofollow">http://blackfin.uclinux.org/frs/?group_id=17</a></p><p>3. Uncompress uclinux-dist.tar.bz to working directory </p><pre class="code">cp uClinux-dist_2005R4.tar.bz /(WORK_DIR)cd /(WORK_DIR)bunzip2 uClinux-dist_2005R4.tar.bztar -xvf uClinux-dist_2005R4.tar</pre><p> 4. Compile the source using following commands </p><pre class="code">cd uClinux-distmake clean make menuconfig (save and exit without making any changes)make </pre><p> 5. Find the compiled blackfin executable linux in the following location </p><pre class="code">$(WORK_DIR)/uClinux-dist/images </pre><p> 6. Above file shall be used to download to the target board. </p></div><!-- SECTION [5261-6149] --><h1><a name="load_kernel_to_target_board" id="load_kernel_to_target_board">Load Kernel to Target Board</a></h1><div class="level1"><p> 1. Use below serial cables to connect board to host computer. </p><pre class="code">Male-Female 1-1 serial cable</pre><p> 2. Use minicom or some other serial communications utility to configure the serial port with the following parameters. If run minicom for the first time, run “minicom -s” to setup the port. </p><pre class="code">Serial Device = /dev/ttyS0Baud Rate = Baud that have been selected in kernel menuconfig (Default value is 57600)Number of bits = 8Parity = NoneStop bits = 1</pre><p> 3. Make sure the BMODE pins on the target board are set to 00. If u-boot loads automatically on reset, the pins are already set correctly. </p><p>4. Make sure tftp server is installed in the host machine. Copy <em>linux </em>from uClinux-dist/images/ that is built in above steps to the /tftpboot of the host PC. </p><p>5. Load the linux file with the following bootloader commands. Make sure the ipaddr (target board IP) and serverip (host IP) are correct. </p><pre class="code">STAMP> setenv ipaddr x.y.z.nSTAMP> setenv serverip x.y.z.m STAMP> saveenvSTAMP> tftp 0x1000000 linuxSTAMP> bootelf 0x1000000</pre><p> </p><p>6. The kernel should then boot</p></div><!-- SECTION [6150-7392] --><h1><a name="adding_upgrading_kernel_in_flash" id="adding_upgrading_kernel_in_flash">Adding / upgrading kernel in flash</a></h1><div class="level1"></div><!-- SECTION [7393-7442] --><h2><a name="building_linux_image_compressed_and_uncompressed" id="building_linux_image_compressed_and_uncompressed">Building Linux image (compressed and uncompressed)</a></h2><div class="level2"><p>(This Image Will be Used in bootm command) Linux ELF image has to be changed as per u-boot standards to load Linux using <em>bootm</em> command. Following subsections explain how to build compressed and uncompressed Linux images. </p></div><!-- SECTION [7443-7736] --><h2><a name="building_compressed_linux_image" id="building_compressed_linux_image">Building Compressed Linux Image</a></h2><div class="level2"><p>Compressed Linux images can be found under folder “uClinux-dist/image”. But, you can also generate by yourself as follows.</p><p>1. Generate the binary file from the ELF file, using following command </p><pre class="code">$ bfin-uclinux-objcopy -O binary linux linux.bin </pre><p> 2. Compress the binary file obtained above, using following command </p><pre class="code">$ gzip -9 linux.bin </pre><p> 3. Build the final linux image, using following command </p><pre class="code">(WORK_DIR)/u-boot_1.1.3/tools/mkimage -A blackfin -O linux -T kernel -C gzip -a 0x1000 -e 0x1000 -n "Bfin uClinux Kernel" -d linux.bin.gz uImage</pre><p> </p></div><!-- SECTION [7737-8542] --><h2><a name="building_uncompressed_linux_image" id="building_uncompressed_linux_image">Building uncompressed Linux image</a></h2><div class="level2"><p> Use following commands to build uncompressed Linux image </p><pre class="code">(WORK_DIR)/u-boot_1.1.3tools/mkimage -A blackfin -O linux -T kernel -C none -a 0x1000 -e 0x1000 -n "Bfin uClinux kernel" -d linux.bin uImage</pre><p> 0×10000×200000×1000 </p></div><!-- SECTION [8543-9083] --><h2><a name="programming_flash" id="programming_flash">Programming Flash</a></h2><div class="level2"><pre class="code">STAMP> tftp 0x1000000 uImageSTAMP> protect off all STAMP> erase 0x20100000 0x203FFFFFSTAMP> cp.b 0x1000000 0x20100000 $(filesize) STAMP> setenv bootcmd bootm 0x20100000 STAMP> saveSTAMP> reset</pre></div><!-- SECTION [9084-9326] --><h1><a name="build_customized_uclinux" id="build_customized_uclinux">Build Customized uClinux</a></h1><div class="level1"></div><!-- SECTION [9327-9364] --><h2><a name="customize_kernel" id="customize_kernel">Customize Kernel</a></h2><div class="level2"><p>1. make menuconfig in uClinux for Blackfin project</p><p>2. select option “Kernel/Library/Defaults Selection” → “Customize Kernel Settings” and exit</p><p>3. In kernel configuration, processor and board specific options can be changed in “Processor type and features”, such as cache status, CPU, DMA, etc.</p><p>4. Driver specific options are in respective menus. Such as Ethernet driver in “Networking supporting”, sound card driver in “Sound”, video driver in “Graphic Support”, etc.</p><p>5. Save and exit. Then make the image again as mentioned before. The changes of the kernel take effects after you load and run the new image.</p></div><!-- SECTION [9365-10007] --><h2><a name="customize_application_and_lib" id="customize_application_and_lib">Customize Application and Lib</a></h2><div class="level2"><p>1. make menuconfig in uClinux for Blackfin project</p><p>2. select blackfin architecture in menu “Vendor/Product Selection”→“AnalogDevice Product”</p><p>3. select option “Kernel/Library/Defaults Selection” → “Customize Vender/User Settings” and exit</p><p>4. In user configuration, applications can be selected to build and debugging information can be enabled.</p><p>5. In order to configure uClibc, you should go into the folder “uClibc” and do menuconfig.</p><p>6. After the menuconfig is done, make the image again as mentioned before. The new selected application can be found in the romfs after you load and run the new image.</p></div><!-- SECTION [10008-10658] --><h2><a name="customize_for_debugging" id="customize_for_debugging">Customize for debugging</a></h2><div class="level2"><p>1. To debug an application, please refer to the document “gdb_guide_bfin.txt” in patch folder bfin_patch/kgdb_patch.</p><p>2. To do source level kernel debugging by kgdb, please refer to the README file in patch folder bfin_patch/kgdb_patch. After apply the kgdb patch file to the kernel, a simple guide “kgdb_bfin.txt” can be found in subfolder “linux-2.6.x/Documentation/blackfin/”</p></div><!-- SECTION [10659-11072] --><h1><a name="reporting_bugs" id="reporting_bugs">Reporting Bugs</a></h1><div class="level1"><p> 1. Go to the following blackfin uclinux bug tracker page, </p><p><a href="http://blackfin.uclinux.org/tracker/?atid=141&group_id=17&func=browse" class="urlextern" title="http://blackfin.uclinux.org/tracker/?atid=141&group_id=17&func=browse" rel="nofollow">http://blackfin.uclinux.org/tracker/?atid=141&group_id=17&func=browse</a> </p><p>2. If the bug is not already reported click on “Submit New” button to report new bug. </p></div><!-- SECTION [11073-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -