Building a new kernel

Aus BECOM Systems Support
Version vom 22. August 2023, 20:35 Uhr von en>Peter (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

General Information for building a new kernel

  • Copy the defconfig from ~/oe/btmxc-linux/arch/arm/configs/imx??_bluetechnix_defconfig to ~/oe/btmxc-linux/.config
  • Run the set_cross_envs script in ~/oe/btmxc-linux
  • Run "make menuconfig" in case you need to choose different kernel options
  • Run "make" to build the kernel
  • Copy the kernel to the TFTP root directory
cd ~/oe/btmxc-linux
cp ~/oe/btmxc-linux/arch/arm/configs/imx27_bluetechnix_defconfig ~/oe/btmxc-linux/.config
. set_cross_envs
make menuconfig
cp arch/arm/boot/zImage /tftpboot

Information for building new modules

In ~/oe/btmxc-linux

make && cp arch/arm/boot/zImage /tftpboot/ && rm -rf lib/modules/* && make modules_install && sudo cp -rp lib/modules/* /tftpboot/rootfs-btmxc27/lib/modules/ && echo FINISHED

make && cp arch/arm/boot/zImage /tftpboot/ && rm -rf lib/modules/* && make modules_install && sudo cp -rp lib/modules/* /tftpboot/rootfs-ifly/lib/modules/ && echo FINISHED