[U-Boot-Users] [PATCH] initrd on MIPS Au1x00

* Patch by Thomas Lange 07 Oct 2004: - Use cached initrd sdram address for au1x00 cpu:s
Patch makes u-boot work with linux 2.4.25 from AMD/MontaVista for dbau1x00 boards.
/Thomas
Index: lib_mips/mips_linux.c =================================================================== RCS file: /cvsroot/u-boot/u-boot/lib_mips/mips_linux.c,v retrieving revision 1.4 diff -p -u -r1.4 mips_linux.c --- lib_mips/mips_linux.c 7 Dec 2003 18:32:39 -0000 1.4 +++ lib_mips/mips_linux.c 7 Oct 2004 12:12:59 -0000 @@ -198,7 +198,11 @@ void do_bootm_linux (cmd_tbl_t * cmdtp,
linux_env_set ("memsize", env_buf);
+#ifdef CONFIG_AU1X00 + sprintf (env_buf, "0x%08X", (uint) initrd_start); +#else sprintf (env_buf, "0x%08X", (uint) UNCACHED_SDRAM (initrd_start)); +#endif linux_env_set ("initrd_start", env_buf);
sprintf (env_buf, "0x%X", (uint) (initrd_end - initrd_start));

In message 416535C6.5080302@corelatus.se you wrote:
- Patch by Thomas Lange 07 Oct 2004:
- Use cached initrd sdram address for au1x00 cpu:s
I hesitate to add this patch, as I'm not convinced that this is a problem that should be addressed in U-Boot. U-Boot seems to work fine on the MIPS systems I can test myself, and Masami Komiya also reported success.
Please explain why you think this is an U-Boot issue, and not instead a problem with the MV kernel?
Best regards,
Wolfgang Denk

Wolfgang Denk wrote:
In message 416535C6.5080302@corelatus.se you wrote:
- Patch by Thomas Lange 07 Oct 2004:
- Use cached initrd sdram address for au1x00 cpu:s
I hesitate to add this patch, as I'm not convinced that this is a problem that should be addressed in U-Boot. U-Boot seems to work fine on the MIPS systems I can test myself, and Masami Komiya also reported success.
Ok, I will solve it in kernel instead. Please drop patch.
Regards,
/Thomas
participants (2)
-
Thomas Lange
-
Wolfgang Denk