How to compile and install Linux-kernel(4.18.0)
1.Choose linux kernel
(1)sudo apt-cache search linux-source
(2)sudo apt-get install linux-source-4.18.0(default path:/usr/src)
2.Install necessary software
(1)sudo apt-get install libncurses-dev
(2)sudo apt-get install libncurses5-dev
(3)sudo apt-get install flex
(4)sudo apt-get install openssl libssl-dev
(5)sudo apt-get install libelf-dev
3.compile linux kernel
(1)sudo tar -jxv -f linux-source-4.18.0.tar.bz2
(2)sudo cp /boot/config-4.15.0-45-generic .config
(3)sudo make menuconfig(default configuration)
(4)sudo make -j4 (reduce the compile time)
(5)sudo make
(6)sudo make modules_install
(7)sudo make install
(8)sudo reboot
4.check the startup logs(printk)
(1)sudo apt install util-linux
(2)dmesg >eric_debug
Tips for Windows connect the Linux paltform
1.install ssh server
sudo apt-get update
sudo apt-get install openssh-server
/etc/init.d/ssh start
2.Install putty on windwos paltform
host name: IP address(Linux paltform)
3.slove the connection problem
sudo apt install vim
sudo vim /etc/ssh/sshd_config
ClientAliveInterval 0 -> ClientAliveInterval 60
TCPKeepAlive yes(turn on)