Rpi64 build log

Menu:

Environment

install tools

1
2
3
4
sudo apt install build-essential bison make
sudo apt install axel cmake cmake-curses-gui
sudo apt install kpartx util-linux f2fs-tools
sudo apt install libncurses5-dev libssl-dev

Build Kernel

script put this script to gcc-linaro-x86_64_aarch64-linux-gnu flower.

1
export PATH=${PATH}:${PERFIX}/bin

Clone linux kernel source

1
2
git clone https://github.com/raspberrypi/linux.git --depth=1
cd linux

kernel config setting

1
2
make bcmrpi3_defconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
make menuconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

Settings:

  • CONFIG_LOCALVERSION=”-ARMv8_GuzalAida@rpi3b”
  • CONFIG_DEFAULT_HOSTNAME=”GuzalAida”
  • 打开Control Group support
  • 打开Checkpoint/restore support
  • 打开Virtualization支持
  • 启用文件系统f2fs的F2FS Security Labels
  • 修改Boot options里的kernel command line中的rootfstype为rootfstype=f2fs
  • ARMv8.2 architectural features —>
1
2
make -j9 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- 
#make -j9 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- 6847.39s user 586.46s system 711% cpu 17:24.68 total

------ 文章已经结束,谢谢你的阅读 ------
------ article has ended,thank you for reading ------