CentOS
Download one of the following rpm packets:
- CentOS 6 TOA (Click to download);
- CentOS 7 TOA (Click to download);
After the packet has been installed, restart the system to complete the installation process.
You can also create a rpm packet as follows:
Install kernel-2.6.32-220.23.1.el6.src.rpm:
rpm -hiv kernel-2.6.32-220.23.1.el6.src.rpm
Generate a kernel source code directory:
rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
Copy the source code directory:
cd ~/rpmbuild/BUILD/kernel-2.6.32-220.23.1.el6/ cp -a linux-2.6.32-220.23.1.el6.x86_64/ linux-2.6.32-220.23.1.el6.x86_64_new
Attach the following toa patch to the copied source code directory:
cd ~/rpmbuild/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64_new/ patch -p1 < /usr/local/src/linux-2.6.32-220.23.1.el6.x86_64.rs/toa-2.6.32-220.23.1.el6.patch
Edit .config and copy it to the SOURCE directory:
sed -i 's/CONFIG_IPV6=m/CONFIG_IPV6=y/g' .config echo -e '\n# toa\nCONFIG_TOA=m' >> .config cp .config ~/rpmbuild/SOURCES/config-x86_64-generic
Delete .config from the source code:
cd ~/rpmbuild/BUILD/kernel-2.6.32-220.23.1.el6/linux-2.6.32-220.23.1.el6.x86_64 rm -rf .config
Generate the final patch:
cd ~/rpmbuild/BUILD/kernel-2.6.32-220.23.1.el6/ diff -uNr linux-2.6.32-220.23.1.el6.x86_64 linux-2.6.32-220.23.1.el6.x86_64_new/ > ~/rpmbuild/SOURCES/toa.patch
Edit kernel.spec:
vim ~/rpmbuild/SPECS/kernel.spec
Add the following lines to ApplyOptionPath (the buildid and the names of other custom kernel packets can also be modified)Patch999999: toa.patch ApplyOptionalPatch toa.patch
Create a rpm packet:
rpmbuild -bb --with baseonly --without kabichk --with firmware --without debuginfo --target=x86_64 ~/rpmbuild/SPECS/kernel.spec
Install the kernel rpm packet:
rpm -hiv kernel-xxxx.rpm --force
Restart the system to load TOA module.
In addition to the above,you can nstallation via Source Code too:
- Download the source code package patched with TOA (Click to download).
- Decompress the package.
- Edit .config, and change CONFIG_IPV6=M to CONFIG_IPV6=y.
- You can edit Makefile to add a custom description.
- make -jn (n is the number of threads).
- Execute
make modules_install
;. - Execute
make install
;. - Modify
/boot/grub/menu.lst
, and change default to the new kernel ("title" starts from 0). - toa kernel is loaded after
Reboot
. - Check whether the toa module is loaded by executing
lsmod | grep toa
. If not, enable it using themodprobe toa
command.
Ubuntu
Click the links below to download the corresponding files:
Kernel Packet (click to )
Kernel Headers Packet (click to download)
Headers packet is optional, which can be installed as needed for development. Install the kernel packet first.
Execute the following command to install the kernel packet:
dpkg -i linux-image-4.4.87.toa_1.0_amd64.deb
After the installation is completed, restart the server.
Check whether the toa module is loaded by executing
lsmod | grep toa
. If not, enable it using the followingmodprobe toa
command:echo "modprobe toa" >> /etc/rc.d/rc.local
Debian
Click the links below to download the corresponding files:
Kernel Packet (click to download)
Kernel Headers Packet (click to download)
Headers packet is optional, which can be installed as needed for development. Install the kernel packet first.
Execute the following command to install the kernel packet:
dpkg -i linux-image-4.4.87.toa_1.0_amd64.deb
After the installation is completed, restart the server.
Check whether the toa module is loaded by executing
lsmod | grep toa
. If not, enable it using the followingmodprobe toa
command:echo "modprobe toa" >> /etc/rc.d/rc.local