2.5.5-pre1, allow RAM disk to be build
PATCH 1/1 2.5.5-pre1, allow RAM disk to be build
Hi,
since 2.5.x (can't remember version correctly) the setup for RAM disk changed and I could not build it anymore into the kernel due to compilation errors. In the latest prepatch (2.5.5-pre1) this is still not fixed. I am using the following patch to fix this and it works from 2.5.x upto 2.5.5-pre1 without any problems.
please apply,
Rudmer
PS. CC me as I am not on the list
--
# diff -uN linux-2.5.5-pre1/arch/i386/kernel/setup.c.orig linux-2.5.5-pre1/arch/i386/kernel/setup.c
--- linux-2.5.5-pre1/arch/i386/kernel/setup.c.orig Thu Feb 14 20:39:00 2002
+++ linux-2.5.5-pre1/arch/i386/kernel/setup.c Thu Feb 14 20:40:17 2002
@@ -661,7 +661,9 @@
unsigned long bootmap_size, low_mem_size;
unsigned long start_pfn, max_low_pfn;
int i;
-
+#ifdef CONFIG_BLK_DEV_RAM
+ extern int rd_image_start, rd_prompt, rd_doload;
+#endif
#ifdef CONFIG_VISWS
visws_get_board_type_and_rev();
#endifSignature · 4 lines
Get your free email from www.linuxmail.org Powered by Outblaze
Quoted 2 lines · Rudmer van Dijk
since 2.5.x (can't remember version correctly) the setup for RAM disk changed and I could not build it anymore into the kernel due to compilation errors. In the latest prepatch (2.5.5-pre1) this is still not fixed. I am using the following patch to fix this and it works from 2.5.x upto 2.5.5-pre1 without any problems.
The real fix I think is to fix include/linux/blk.h setup.c uses it inside CONFIG_BLK_DEV_RAM, but blk.h only defines it with CONFIG_BLK_DEV_INITRD
Signature · 2 lines
| Dave Jones. http://www.codemonkey.org.uk | SuSE Labs