标签:linux

以下是与标签 “linux” 相关联的文章

制做 tq2440(s3c2440) linux 内核

  • 下载 kernel 代码

kernel.org

  • 修改配置
vim Makefile
ARCH = arm
CROSS_COMPILE = armv4t-linux-
cp arch/arm/configs/s3c2440_config .config
cp .config config-s3c2440
make menuconfig
General setup  --->
  (armv4t-linux-) Cross-compiler tool prefix
  (tq2440) Local version - append to kernel release
  (tq2440) Default hostname
Kernel Features  --->
  [*] Use the ARM EABI to compile the kernel                                                                              │ │
    [*]   Allow old ABI binaries to run with this kernel (EXPERIMENTAL)
Device Drivers  --->
  • 编译
make -j4 zImage
ls -l arch/arm/boot

用 busybox 制做 linux 文件系统

  • 下载并解压 busybox 代码

busybox

tar xjf busybox-1.28.4.tar.bz2
  • 修改 Makefile
ARCH = arm
CROSS_COMPILE = armv4t-linux-
make menuconfig
Settings  --->
  (armv4t-linux-) Cross compiler prefix
  (./_install) Destination path for 'make install'
  • 编译安装
make -j4
make install