[FS#192] mips kernel patch problem

LEDE Bugs lede-bugs at lists.infradead.org
Sat Oct 1 02:33:25 PDT 2016


The following task has a new comment added:

FS#192 - mips kernel patch problem
User who did this - Giuseppe Lippolis (fidodido)

----------
Dear John,
thanks for your help.
After some struggling I understood something more about the device tree usage by openwrt/lede.
Please confirm my understanding:
The linux kernel in openwrt/lede is patched and reserve an area at the begin of the binary image to fill the device tree and as an option some command line parameter.
These two areas are intended to be populated outside and after the kernel compile process using the two tool found in 
tools\patch-image\src\patch-dtb.c
tools\patch-image\src\patch-cmdline.c

This means that the standard linux way to include the device tree shall not be used.

I also have a question about the command line enabled by CONFIG_IMAGE_CMDLINE_HACK:
how it relate with the normal command line passed by the bootloader and with the "standard" linux hacking way set by CONFIG_CMDLINE_BOOL, CONFIG_CMDLINE, CONFIG_CMDLINE_OVERRIDE ?
Are all the command line merged?
There is an overlay?
what else?

I'm currently working to add the device tree using the orthodox way according to your advice, and then I will inform you.

Bye.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=192#comment534



More information about the lede-bugs mailing list