[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Errors with latest distribution



Hi Christophe,

Christophe Charpentier wrote:
drivers/block/block.o: In function `initrd_release':

/home/devel/uclinux/src/uClinux-2.4.x/drivers/block/rd.c(.text+0x3be0): undefined reference to `free_initrd_mem'


I believe this has been triggered because you've enabled initrd in the kernel, but the MicroBlaze arch is lacking the free_initrd_mem() support function.

Can you please apply with attached patch (with "patch -p0" from linux-2.4.x directory), and see if it resolves the issue?

If so, I'll commit it to CVS.

Thanks,

John
Index: arch/microblaze/mm/init.c
===================================================================
RCS file: /var/cvs/uClinux-2.4.x/arch/microblaze/mm/init.c,v
retrieving revision 1.6
diff -u -b -B -w -p -r1.6 init.c
--- arch/microblaze/mm/init.c	24 Aug 2005 05:49:25 -0000	1.6
+++ arch/microblaze/mm/init.c	16 Oct 2006 22:50:40 -0000
@@ -297,6 +297,14 @@ void free_initmem(void)
 		  "init");
 }
 
+#ifdef CONFIG_BLK_DEV_INITRD
+void free_initrd_mem(unsigned long start, unsigned long end)
+{
+	free_area(start,end,"initrd");
+}
+#endif
+                                                                                
+
 /*
  * Scan the memory info structure and pull out:
  *  - the end of memory