# linux-kernel **Repository Path**: wxx213/linux-kernel ## Basic Information - **Project Name**: linux-kernel - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-02-05 - **Last Updated**: 2025-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [TOC] # 介绍 基于linux内核源码和busybox或者centos7容器镜像快速搭建建议操作系统的的工具,用于快速构建linux内核运行环境,linux内核和qemu等组件的开发学习等 - sync_gitee脚本: 从gitee下载其他项目 # 编译运行 ## 主机环境 ### 编译环境准备 ubuntu ```shell # make ssh available sudo apt install -y openssh-server git make gcc # for kernel sudo apt install -y libelf-dev bc # for kernel-4.18 sudo apt install -y bison flex libssl-dev # for qemu sudo apt install -y python pkg-config zlib1g-dev libglib2.0-dev libpixman-1-dev # for rootfs sudo apt install -y android-tools-fsutils # for kexec_tool sudo apt install -y autoconf ``` centos7 ```shell # for newer gcc yum install -y centos-release-scl yum install -y devtoolset-7 # for kernel build yum install -y make gcc elfutils-libelf-devel bc # for centos-4.18 kernel build yum install -y bison flex openssl-devel openssl # for qemu build yum install -y gtk2-devel libcap-devel libattr-devel # for qemu runtime # RUN yum install -y libX11 gtk2 # for busybox build yum install -y glibc-static # for kexec build yum install -y autoconf # for make_ext4fs runtime yum install -y pcre && ln -s /lib64/libpcre.so.1 /lib64/libpcre.so.3 # for root and network yum install -y sudo iproute net-tools ``` ## 容器环境 # 运行 ## 主机环境 ```shell ``` ## 容器环境 ```shell ./build_in_docker.sh ``` # 其他 ## 连接虚拟机 ```shell nc -U out/serial.sock ```