Welcome![Sign In][Sign Up]
Location:
Search - GCC LINUX P

Search list

[VC/MFClinux下中文GCC

Description:

linux环境下开发的工具中文手册,对初学者具有极大帮助。希望对大家有帮助。


Platform: | Size: 298461 | Author: zds1973 | Hits:

[Embeded Linuxsmp86xx_rootfs.tar.bz2

Description:

 sigma smp8634/8635 toolchain rootfs building source.

=================

Readme.txt

=================

 

This is the Sigma Designs customization of the root file system for the

SMP86xx family of chips.

 

This package is of course heavily depending on the toolchain and kernel

packages.

 

Quick HOW-TO

============

a) You need to have a working toolchain package. Once you have built your 

   toolchain, be sure to source toolchain-path.env. This is required for you to

   be able to build the rootfs package.

b) Untar the rootfs package.

c) First, configure your root file system: 'make menuconfig'. All the options 

   in the configuration menus have detailed help. Once you are satisfied with

   your choice of options, exit and save the configuration.

d) If you are using the toolchain composed of gcc 3.4.2, binutils 2.15.91.0.2,

   and uClibc 0.9.27 (defined in the toolchain package) then you must select

   Busybox 1.00 from the 'Package Selection for the target --->' menu.

   If on the other hand you are using the toolchain composed of gcc 4.0.4,

   binutils 2.17, and uClibc 0.9.28.3 then you must select Busybox 1.5 from

   the 'Package Selection for the target --->' menu.

e) If you chose to customize your root file system (option 'customize' in

   submenu 'Package Selection for the target'), be sure to prepare your custom

   files now.

f) Run 'make' to produce your root file system.

 

IMPORTANT NOTE: as of this release, the only supported option in the 'Target 

Options' menu is 'cramfs root filesystem for the target device' (with all its

suboptions). Any other option is currently unsupported and some are known to

not work.

 

Once you are through with step e), your root file system is available in the

main directory of the package as 'root_fs_mipsel.cramfs'.

 

Note about the integration with the toolchain and the kernel source packages

============================================================================

The rootfs package is now integrated with the toolchain package and the 

kernel source package and is able to interact with them in the following

ways:

 

 a) it can grab the necessary runtime libraries from the toolchain package.

 b) it can receive the kernel modules and support files from the kernel source

    package.

 c) the kernel source package can use the produced rootfs image for its initial

    RAM disk.

 

For interaction a) to take place, the SMP86XX_TOOLCHAIN_PATH environment 

variable must be defined and it must point to the main directory of the 

produced toolchain. The easiest way to achieve that is by sourcing the

'toolchain-path.env' environment file after it is produced at the end of the

toolchain production.

 

Note that defining SMP86XX_TOOLCHAIN_PATH is not optional. The build will not

go through unless the environment variable is defined and points to a correct

location. This is because, even if the build went through, the resulting root

file system would be unusable as it would not provide *any* run time library.

 

For interactions b) and c) to take place, the SMP86XX_ROOTFS_PATH environment

variable must be defined and must point to the main directory of the rootfs

package. The easiest way to achieve that is by sourcing the 'rootfs-path.env'

environment file after it is produced, right after your run 'make' or 

'make menuconfig' for the first time.

 

When SMP86XX_ROOTFS_PATH is defined and points to a valid location, the kernel

source package is able to:

 

 b) install its modules to the correct location under the customization 

    directory ('package/customize/source') in the rootfs package. In order to

    then make sure the modules end up in the produced rootfs image, you must

    select the 'customize' option under the 'Package Selection for the target'

    menu in 'make menuconfig'.

 c) grab the produced rootfs image (root_fs_mipsel.cramfs) and use it for its

    initial RAM disk.

 

Thus, in order to produce a rootfs holding the kernel modules and use it as the

kernel initial RAM disk, you need to go through the following steps in order

(note: this is convoluted):

 1) optionally build the toolchain (or use an existing one, more recent than

    2.6.90.0)

 2) source toolchain-path.env in the toolchain package directory

 3) configure the rootfs package with the 'customize' option on in the

    'Package Selection for the target' menu

 4) source 'rootfs-path.env' in the rootfs package directory

 5) configure the kernel, review what is configured as modules, 'make dep'

 6) 'make modules' in the kernel source directory

 7) the 'modules_install' target for the kernel needs that the system map be

    already produced. In order to achieve that, build a first version of the

    kernel: 'make vmlinux'

 8) 'make modules_install' in the kernel source directory. The modules are now

    installed in the rootfs package customization directory.

 9) 'make' in the rootfs package directory. You have now produced a rootfs 

    image holding the kernel modules.

10) 'make' in the kernel source directory. You have now produced a linux ZBF

    image with an initrd holding the kernel modules.

    

Coming features

===============

N/A

 

Troubleshooting

===============

a) when building the cramfs utility tool, the compiler complains that it can't

   find 'zlib.h' or '-lz'.

 

   You need to have the development version of zlib installed on your system.

   How to do that depends on your distribution.

 

 


Platform: | Size: 234248 | Author: mattli001 | Hits:

[ARM-PowerPC-ColdFire-MIPS基于S3C4510B ARM的嵌入式系统硬件设计

Description: 一本很不错的嵌入式系统书籍,是一本很好的入门教材!-a very good embedded systems books, is a good primer!
Platform: | Size: 403456 | Author: 老耿 | Hits:

[Embeded Linux驱动程序和源代码

Description: 本程序是对ARM9的嵌入式系统开发的驱动程序的代码,它的编译环境是交叉编译的GCC,测试通过的代码,里面包含有网络,外围设备等的驱动。内容丰富,很值得一看的。-procedures for the ARM9 embedded system development driver code, it is the cross-compiler environment of the GCC compiler, test the code, which contains network, peripherals such as driver. Content rich, and visit the gallery.
Platform: | Size: 1345536 | Author: 谭航 | Hits:

[Software EngineeringGNUMakemanual

Description: GNU Make 使用手册(中译版)目前,在网上虽然有一些著作,但都不能全面的解释Linux源代码中各级的Makefile文件,因此本人认真阅读了GNU Make 使用手册(3.79)版原文,在此基础上翻译了该手册,以满足对Linux源代码有兴趣或者希望采用GCC编写程序但对缺乏GNU Make全面了解之人士的需要。-GNU Make Manual (Chinese translation edition) At present, although there are a number of online books, but they should not fully explain the Linux source code at all levels of Makefile files, so I carefully read the GNU Make Manual (3.79) version of the original text, in Based on this translation of the manual, to meet the demand for Linux source code are interested in or wish to adopt GCC programming GNU Make but the lack of a comprehensive understanding of the needs of people.
Platform: | Size: 132096 | Author: 刘俊 | Hits:

[Linux-Unix00

Description: GCC 中文手册.pdf GCC 中文手册.pdf -GCC Chinese manual. Pdf GCC Chinese manual. Pdf
Platform: | Size: 297984 | Author: lanpiao | Hits:

[VHDL-FPGA-Verilog2410pcb

Description: 2410开发板pcb图,源自freindy arm(友善之臂)-2410 development board pcb diagram
Platform: | Size: 898048 | Author: 赵者 | Hits:

CodeBus www.codebus.net