
安裝 toolchains 主要是gcc 和 make? 其他的缺什么安什么
sudo apt install gcc binutils


aarch64-linux-gnu-gcc --version?
gcc --version
下載源碼:? https://git.kernel.org/pub/scm/linux/kernel/git/
cd /usr/src
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/mmind/linux-rockchip? ?????????沒開梯子 訪問不了。。。。
git clone https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git? ????????很慢,100多k每秒。。。。
https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/snapshot/linux-rockchip-6.5-rc1.tar.gz? ? ? ?直接瀏覽器下載,幾M每秒
然后ftp linux? , put過去 ,然后 tar -zxvf .......
ssh -2 yang@192.168.0.105



you can use make menuconfig for a ncurses-based interface or make xconfig for an X-based interface

The kernel configuration command, given a default configuration file, is as follows:
make <foo_defconfig>
This will generate a new .config file in the main (root) directory, while the
old .config will be renamed .config.old. This can be useful to revert the
previous configuration changes. Then, to customize the configuration, you can use the
following command:
make menuconfig
16 Introduction to Kernel Development
Saving your changes will update your .config file. While you could share this config
with your teammates, you are better off creating a default configuration file in the same
minimal format as those shipped with the Linux kernel sources. To do that, you can use
the following command:
make savedefconfig
This command will create a minimal (since it won't store non-default settings)
configuration file. The generated default configuration file will be called defconfig
and stored at the root of the source tree. You can store it in another location using the
following command:
mv defconfig arch/<arch>/configs/myown_defconfig
This way, you can share a reference configuration inside the kernel sources and
other developers can now get the same .config file as you by running the
following command:
make myown_defconfig
獲取本機(jī)配置文件? ?cp /boot/config-`uname -r` .config? 或者?zcat /proc/config.gz
cp /boot/config-`uname -r` .config? ? ? ? #在本機(jī)配置的基礎(chǔ)上修改配置文件
make menuconfig
make -j8 #8核心一起工作
apt? ?install libssl-dev?

安裝內(nèi)核,本地安裝? make install
報(bào)錯(cuò) 找不到6.5的頭文件。。。。

make headers_install ????#error: rsync , apt install rsync ,繼續(xù)?headers_install ????成功;??
make install? #機(jī)子直接重啟。。。。。。apt update ,apt upgrade ,在升級了一個(gè)initramfs 什么的 可能,再來就不崩潰重啟 還是報(bào)錯(cuò),好像是無線網(wǎng)卡驅(qū)動(dòng)不支持?

make modules? ?
make modules_install? #沒報(bào)錯(cuò)。。
