HACK: ARM: Take only initrd/serialno from ATAGS
The kernel command line and memory information from the Samsung
bootloader is useless. On the other hand, it's necessary to know
where it has loaded the ramdisk (and how large it is).
Ignore the cmdline/memory atags for now and only read the
initrd/serial tags.
diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
index 31927d2..d80d5bed 100644
--- a/arch/arm/boot/compressed/atags_to_fdt.c
+++ b/arch/arm/boot/compressed/atags_to_fdt.c
@@ -155,6 +155,7 @@ int atags_to_fdt(void *atag_list, void *fdt, int total_space)
return ret;
for_each_tag(atag, atag_list) {
+#if 0
if (atag->hdr.tag == ATAG_CMDLINE) {
/* Append the ATAGS command line to the device tree
* command line.
@@ -192,7 +193,9 @@ int atags_to_fdt(void *atag_list, void *fdt, int total_space)
cpu_to_fdt32(atag->u.mem.size);
}
- } else if (atag->hdr.tag == ATAG_INITRD2) {
+ } else
+#endif
+ if (atag->hdr.tag == ATAG_INITRD2) {
uint32_t initrd_start, initrd_size;
initrd_start = atag->u.initrd.start;
initrd_size = atag->u.initrd.size;