Messages in this thread | | | From | Chen Yu <> | Date | Tue, 10 Nov 2020 23:39:53 +0800 | Subject | bootconfig length parse error in kernel |
| |
Hi Masami, Thanks for writing bootconfig and it is useful for boot up trace event debugging. However it was found that on 5.10-rc2 the bootconfig does not work and it shows "'bootconfig' found on command line, but no bootconfig found" And the reason for this is the kernel found the magic number to be incorrect. I've added some hack in kernel to dump the first 12 bytes, it shows: "OTCONFIG". So printed more content ahead we can find "#BOOTCONFIG" ahead. So it looks that there is some alignment during initrd load, and get_boot_config_from_initrd() might also deal with it. That is to say: data = (char *)initrd_end - BOOTCONFIG_MAGIC_LEN; might do some alignment?
-- Thanks, Chenyu
| |