armlinux.c patch for ramdisk
Wolfgang,
Please find attached a patch for fixing the problem of mounting a ramdisk. This version differs slightly from the PPC do_bootm_linux() as it uses the load address from the image to relocate the ramdisk in memory.
Kyle.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: armlinux.patch
Type: text/x-diff
Size: 825 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20030318/81b2b28f/attachment.patch
Dear Kyle,
Quoted 2 lines · in message <[email protected]> you wrote:
Please find attached a patch for fixing the problem of mounting a ramdisk.
Unfortunately it breaks ramdisk support for other ARM boards
(SMD2400, trab).
RAMDisk support is/was working fine on these boards.
Patch rejected.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de You got to learn three things. What's real, what's not real, and what's the difference." - Terry Pratchett, _Witches Abroad_
Quoted 4 lines · In message <[email protected]> you wrote:
Please find attached a patch for fixing the problem of mounting a ramdisk. This version differs slightly from the PPC
do_bootm_linux()as it uses the load address from the image to relocate the ramdisk in memory.
Maybe I should be a bit more explicit.
I feel it is unnecessary to copy the ramdisk image to RAM first; the kernel should be able to pick it up directly from flash - this is what we do on the SMDK2400 and TRAB boards, and it helps to reduce boot time, too.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de I have a very small mind and must live with it. -- Edsger Dijkstra
Quoted 6 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:
Please find attached a patch for fixing the problem of mounting a ramdisk. This version differs slightly from the PPC
do_bootm_linux()as it uses the load address from the image to relocate the ramdisk in memory.
Quoted 6 lines
Maybe I should be a bit more explicit.
I feel it is unnecessary to copy the ramdisk image to RAM first; the kernel should be able to pick it up directly from flash - this is what we do on the SMDK2400 and TRAB boards, and it helps to reduce boot time, too.
OK. No problem. I'm not sure why the kernel can't handle an initrd_start that points to flash. I'll take another look at it.
Kyle.
Quoted 3 lines · In message <[email protected]> you wrote:
OK. No problem. I'm not sure why the kernel can't handle an
initrd_startthat points to flash. I'll take another look at it.
See the linuxarm module on our CVS server, especially:
Working file: arch/arm/kernel/setup.c
...
description:
----------------------------
revision 1.4
date: 2002/10/26 09:27:17; author: wd; state: Exp; lines: +26 -9 Make ramdisks work if stored in flash memory.
...
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Eureka! -- Archimedes