Bug#810663: Include Device Tree model in reportbug script
On Fri, Jan 22, 2016 at 1:53 AM, Roger Shimizu <rogershimizu@gmail.com> wrote:
> On Fri, Jan 22, 2016 at 1:44 AM, Uwe Kleine-König
>>> Above patch seems only report the model from dts.
>>> How about user uses a modified dts, other than the one ships with the kernel?
>>>
>>> So I suggest to add a hash-code of the dts used currently.
>>> Is there any method to find the file location of dts used currently?
>> The location is not available, because it's put in memory by the
>> bootloader before jumping into the kernel image. So the best thing you
>> can do is to extract it from /sys. I don't know off-hand how this works,
>> but I know who to ask if needed.
>
> According to: http://xillybus.com/tutorials/device-tree-zynq-1
> the DTS can be extracted by:
>
> scripts/dtc/dtc -I fs -O dts -o ~/effective.dts /proc/device-tree/
>
> I haven't tried this, but if so and we need to add the dependency of
> dtc command, then we can append the DTS to bugreport.
Can help to try this earlier. So there's the result
# apt install device-tree-compiler
# dtc -I fs /proc/device-tree/
so you can get the full DTS
Cheers,
Roger
Reply to: