Configuring the Kernel to Support RAM Disks in LinuxLink Classic
To create a kernel that uses an initial RAM disk, the kernel must be configured to support RAM disks in general, and an initial RAM disk in particular. To include the initial RAM disk in the compiled kernel image, you will also need to build the initrd image and recompile the kernel.
Note
All TimeSys reference distribution kernels are preconfigured to support RAM disks, so if you are using a distribution from TimeSys, you do not have to set these values.
To configure the kernel to support initial RAM disks:
- On your host system, start the kernel configuration utility of your choice. If you are using TimeStorm, do this by right-clicking on your kernel project in the Navigator view and selecting Configure.
- Under Block devices, enable the RAM disk support option. This sets CONFIG_BLK_DEV_RAM=y in the kernel configuration file.
- Depending on yuor kernel version, do one of the following:
- 2.6.17 and later kernels: Under Block devices, enable the Initial RAM filesystem and RAM disk (initramfs/initrd) support option.
- 2.6.16 and earlier kernels: Under Block device drivers, enable the Initial RAM disk (initrd) support option.
This sets CONFIG_BLK_DEV_INITRD=y in the kernel configuration file.
For more information, refer to the following kernel source documentation, which can be found in the kernel of any TimeSys reference distribution:
- Documentation/ramdisk.txt
- Documentation/initrd.txt
- Documentation/early-userspace/README
The Linux Kernel Configuration Archive, maintained by Jason Wies, is also a valuable resource for kernel configuration options.