On Mon, Jan 11, 2016 at 2:23 PM, Martin Michlmayr <t...@cyrius.com> wrote:
> Package: linux
> Version: 4.3.3-5
> Severity: wishlist
> Tags: patch
>
> It would be nice to include the Device Tree model in the reportbug
> output.  On DT based platforms, /proc/cpuinfo only includes quite
> generic information.
>
> Please note that the strange "echo ... $(cat ..)" construct is
> intentional.  'cat /proc/device-tree/model' leads to a strange
> character at the end because there's no newline and using echo
> gets rid of it.
>
> diff --git a/debian/templates/image.plain.bug/include-model 
> b/debian/templates/image.plain.bug/include-model
> index 60a7112..9c6aedd 100644
> --- a/debian/templates/image.plain.bug/include-model
> +++ b/debian/templates/image.plain.bug/include-model
> @@ -39,6 +39,11 @@ grep_model() {
>      false
>      ;;
>    esac
> +
> +  # Device Tree model
> +  if [ -r /proc/device-tree/model ]; then
> +    echo "Device Tree model:" $(cat /proc/device-tree/model)
> +  fi
>  }
>
>  add_model() {

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?

Cheers,
Roger

Reply via email to