Category:Kernel

From ElectroDragon
(Redirected from Kernel)
Jump to navigation Jump to search

Mainline

Support Most

Better support for LPI


Compiler


LPI Kernel

LPI nano

LPI zero

or git clone https://github.com/Lichee-Pi/linux.git -b zero-4.14.y
git clone https://github.com/Lichee-Pi/linux.git
cd linux
make ARCH=arm licheepi_zero_defconfig  // default config 
make ARCH=arm menuconfig   #add bluethooth, etc.
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules_install
  • git clone default linux 获取Linux源码(zero-4.13.y分支对网卡支持比较好)
git clone --depth=1 -b zero-4.10.y https://github.com/Icenowy/linux.git # only branch zero-4.10.y and depth 1
git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y


Config

  • generate default config file 生成荔枝派Zero 默认配置文件
CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make licheepi_zero_defconfig
  • make ARCH=arm menuconfig

Config Options

 │ │                         General setup  --->                                                                     │ │   
 │ │                     [*] Enable loadable module support  --->                                                    │ │   
 │ │                     -*- Enable the block layer  --->                                                            │ │   
 │ │                         System Type  --->                                                                       │ │   
 │ │                         Bus support  --->                                                                       │ │   
 │ │                         Kernel Features  --->                                                                   │ │   
 │ │                         Boot options  --->                                                                      │ │   
 │ │                         CPU Power Management  --->                                                              │ │   
 │ │                         Floating point emulation  --->                                                          │ │   
 │ │                         Userspace binary formats  --->                                                          │ │   
 │ │                         Power management options  --->                                                          │ │   
 │ │                     [*] Networking support  --->                                                                │ │   
 │ │                         Device Drivers  --->                                                                    │ │  
 │ │                         Firmware Drivers  --->                                                                  │ │   
 │ │                         File systems  --->                                                                      │ │   
 │ │                         Kernel hacking  --->                                                                    │ │   
 │ │                         Security options  --->                                                                  │ │   
 │ │                     -*- Cryptographic API  --->                                                                 │ │   
 │ │                         Library routines  --->                                                                  │ │   
 │ │                     [ ] Virtualization  ----  


For SPI Flash
Device Drivers ‣ Memory Technology Device (MTD) support   --> tick Command line partition table parsing
and SPI NOR device support
Add jffs2 file support ==> File systems ‣ Miscellaneous filesystems ‣ Journalling Flash File System v2 (JFFS2) support

Upgrade

Check kernel: uname –sr

  • sudo apt-get update
  • sudo apt-get dist-upgrade

Reference

This category currently contains no pages or media.