Building a new kernel

From BlueWiki

Jump to: navigation, search

1 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

2 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
Personal tools