setup_ramdisk_tag omitted in armlinux.c
Hi there...
I found that in U-Boot 1.1.1. version , setup_ramdisk_tag()
function is not defined. so that we couldnt pass RAMDISK_TAG to Kernel.
I have added the following code with armlinux.c. Now it passing
the RAMDISK_TAG.
#ifdef CONFIG_RAMDISK_TAG
static void setup_ramdisk_tag (bd_t *bd)
{
/* patch added by PRAKASH */
params->hdr.tag = ATAG_RAMDISK;
params->hdr.size = tag_size (tag_ramdisk);
params->u.ramdisk.flags = 1;
params->u.ramdisk.size = 8192;
params->u.ramdisk.start = 0;
params = tag_next (params);
}#endif /* CONFIG_RAMDISK_TAG */
I dont know is it correct or not ..
I have one more query also, should the bootloader load the RAM disk
into memory or kernel will take care of ?.
My ATAG_INITRD2 node passing my Flash's physical address of initrd.
is it also correct or not. becoz my DRAM Starts with 0x00. My flash starts at 0x50000000. So my kernel displays "diabling initrd". plz tell me how to fix it.
Thanks
Prakash
Quoted 3 lines · In message <[email protected]> you wrote:
I found that in U-Boot 1.1.1. version ,
setup_ramdisk_tag()
function is not defined. so that we couldnt passRAMDISK_TAGto Kernel.
It's not defined, and not called anywhere.
Quoted 2 lines
I have added the following code with
armlinux.c. Now it passing
theRAMDISK_TAG.
...
Quoted 1 line
I dont know is it correct or not ..
Since you didn't add any code that actually calls this funktion it's superfluous
Quoted 2 lines
I have one more query also, should the bootloader load the RAM disk
into memory or kernel will take care of ?.
This has been discussed beofre on this list. The kernel should do that. Patches for (older?) kernels that don't do this have been posted to this list several times.
Quoted 4 lines
My
ATAG_INITRD2node passing my Flash's physical address of initrd.
is it also correct or not. becoz my DRAM Starts with0x00. My flash starts at0x50000000. So my kernel displays "diabling initrd". plz tell me how to fix it.
Do it like the other boards do. I can only test on SMDK24xx and trab. It works fine there.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Shakespeare's Law of Prototyping: (Hamlet III, iv, 156-160)
O, throw away the worser part of it,
And live the purer with the other half.