微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 硬件工程师文库 > PowerPC平台Linux的移植(二)

PowerPC平台Linux的移植(二)

时间:02-11 来源:网络整理 点击:

接下来进行内核配置。笔者推荐使用"make menuconfig"命令,而不是一些文章中推荐的"make xconfig",因为后者可能产生一些未知原因的编译错误。menuconfig是一个文本模式、选单驱动的配置界面,而xconfig是基于 Tcl/Tk的X图形配置界面。另外一个常用的是make oldconfig,如果只想在原来内核配置的基础上修改一些小地方,这个命令会省去不少麻烦,但我们这里是要大改,所以也不用这个。关于配置内核的原理与过程,不熟悉的朋友可以参见这篇文章 ,这里就不详细介绍了。顺便提及的是,运行这个命令可能出现以下错误1 /usr/bin/ld: crt1.o: No such file: No such file or directory这个错误可以通过安装libc6-dev解决2 /usr/bin/ld: cannot find -lncurses这个错误可以通过安装libncurses5-dev解决3 checklist.o: file not recognized: File format not recognized解决方法是用"make mrproper"命令清除所有旧的Xwindow configuraTIon文件,至于为什么会有这个错误,我没有深入研究,知道的朋友请指点一下 在一开始配置时,建议先生成一个最小的,保证可运行的.config文件,以后再根据自己的需要添加一些特性,而且添加特性的时候一定小心,稍不注意就会让你无法正常编译,或者无法正常运行。另外需要注意的是,所有标有"new"标签的选项都要遵从默认设置,不要修改它。下面这些选项是我所用的最小系统配置,如果你使用的内核版本和我的差别很大,可能需要改动一些config选项,或者如果你使用这个配置出现问题,请在这里留言,我会尽力帮你分析。先将清单与大概解释列出如下:General Setup* Prompt for development and/or incomplete drivers(XUP)Local version - append to kernel release* IniTIal RAM disk (initrd) support* System V IPC* Configure standard kernel features —>* Sysctl syscall support ?Processor* 40x Processor Type* Xilinx-ML300 Machine Type* Math emulaTIon* TTYS0 device and default consolePlatform opTIons* High memory support* Default bootloader kernel arguments~"console=ttyS0,38400 root=/dev/xsysace/disc0/part3 rw"Networking* Unix domain sockets* TCP/IP networking* IP: multicasting* IP: kernel level autoconfiguration* IP: DHCP support* IP: TCP syncookie support (disabled per default)Device drivers—Memory Technology Devices (MTD)* Memory Technology Device (MTD) Support* MTD partitioning support* RedBoot partition table parsing* Direct char device access to MTD devices* Caching block device access to MTD devices* RAM/ROM flash chip device drivers* Detect flash chips by Common Flash Interface (CFI) probe* Suport for AMD/Fujitsu flash chips(这个根据你现有芯片来选)Device drivers—Block Devices* Loopback device support* Network block device support* RAM disk support(4096) Default RAM disk size* Xilinx on-chip System ACEDevice drivers—Network Device Support* Network device support* Ethernet(10 or 100Mbit)* PowerPC 4xx on-chip ethernet?Device drivers—Character devices— Serial drivers* 8250/16550 and compatible serial support* Xilinx uartlite serial port support* Support for console on Xilinx uartlite serial portFile systems* Second extended fs support* Kernel automounter version 4 support (also supports v3)* Pseudo filesystems —>* /proc/kcore support* Virtual memory file system support (former shm fs)* Miscellaneous filesystems —>* Journaling Flash File System v2 (JFFS2) support(0) JFFS2 debugging verbosity (0=quiet, 2=noisy)* Network file systems —>* NFS file system support* Provide NFSv3 client support* Root file system on NFS* NFS server support* Provide NFSv3 server support* SMB file system support (to mount Windows shares etc.)* Native Language Support —>*

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top