Difference between revisions of "HIP:PMP:Kernel"
Jump to navigation
Jump to search
(→External Links) |
|||
Line 1: | Line 1: | ||
− | === | + | === Making Directories === |
+ | ~$ cd /p0/hip/ | ||
+ | ~$ sudo mkdir archives (to hold files required to build kernel) | ||
+ | ~$ sudo mkdir dev_local (to hold a local copy of the image for building kernel) | ||
+ | |||
+ | === Downloading Required Files:=== | ||
+ | Developer CD/Image, Kernel & patch | ||
* [[http://www.embeddedarm.com/downloads/Linux/TS-Dev-Cd-v1.0.2.img.bz2 Development Kit Project CD Image]] | * [[http://www.embeddedarm.com/downloads/Linux/TS-Dev-Cd-v1.0.2.img.bz2 Development Kit Project CD Image]] | ||
* [[http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.23.tar.bz2 2.4.23 Kernel]] | * [[http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.23.tar.bz2 2.4.23 Kernel]] | ||
* [[http://www.embeddedarm.com/downloads/Linux/KernelStuff/TS-2.5-2.4.23.patch TS-2.5-2.4.23.patch]] | * [[http://www.embeddedarm.com/downloads/Linux/KernelStuff/TS-2.5-2.4.23.patch TS-2.5-2.4.23.patch]] | ||
+ | Move all files to /p0/hip/archives | ||
− | === | + | === Preparing Files === |
− | + | Copy downloaded files | |
# Mount developer image and create a local copy. | # Mount developer image and create a local copy. | ||
# Copy kernel and patch to /usr/src to local developer image | # Copy kernel and patch to /usr/src to local developer image |
Revision as of 09:40, 10 July 2006
Contents
Making Directories
~$ cd /p0/hip/ ~$ sudo mkdir archives (to hold files required to build kernel) ~$ sudo mkdir dev_local (to hold a local copy of the image for building kernel)
Downloading Required Files:
Developer CD/Image, Kernel & patch
Move all files to /p0/hip/archives
Preparing Files
Copy downloaded files
- Mount developer image and create a local copy.
- Copy kernel and patch to /usr/src to local developer image
sudo cp linux-2.4.32.tar.bz2 dev_local/usr/src
chroot, Patch Kernel
- cd to dev_local
- chroot
sudo /usr/sbin/chroot .
- cd to /usr/src
- untar kernel
- patch kernel
patch -p0 < TS-2.5-2.4.23.patch
Config and Build Kernel
- cd to linux-2.4.23
- run menuconfig
make menuconfig
- enable everything under General Setup > Power Management Support
- exit and save
- run make
make dep && make bzImage && make modules
- make a modules directory, /usr/src/modules, and run make modules_install
make modules_install INSTALL_MOD_PATH=/usr/src/modules