Hi,
Attached here is the patch and HOWTO for mounting initrd from ROM.
I have tested this patch on uClinux-2.4.27-uc1 and SH4 BigSurIV board
(as this is the only one I have).
Currently in ROM boot kernel, the kernel copies the initrd from ROM to
_end ( in RAM ) and mounts it from there.
This patch removes this copying of initrd image and changes the address
of initrd_start ( default :- _end ) which specifies the start address of
initrd image.
It will add an option to the kernel configuration to allow the kernel
mount the initrd from ROM.
To apply this patch, do -
1. cd uClinux-dist
2. patch -p0 <
${dir_where_patch_is_located}/linux-sh-initrd-rom-2.4.27-uc1.patch
This will add another option in the kernel configuration "Boot initrd
from ROM". To use this option you need to both "Boot from ROM" and
"Snapgear romfs/bootarg support" options.
Please give your valuable suggestions.
Please include this patch in the mainline if found useful.
Thanks and Regards,
Gaurav Khurana
linux-sh-initrd-rom-2.4.27-uc1.patch
Description: linux-sh-initrd-rom-2.4.27-uc1.patch
|