public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
From: daniel.sangorrin@toshiba.co.jp (Daniel Sangorrin)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 2/3] iwg20m: add device type and dictionary	template
Date: Thu, 14 Dec 2017 15:06:19 +0900	[thread overview]
Message-ID: <001301d374a1$a8a21eb0$f9e65c10$@toshiba.co.jp> (raw)
In-Reply-To: <1513231035-42479-3-git-send-email-daniel.sangorrin@toshiba.co.jp>

> -----Original Message-----
> From: cip-dev-bounces at lists.cip-project.org [mailto:cip-dev-bounces at lists.cip-project.org] On Behalf Of Daniel Sangorrin
> Sent: Thursday, December 14, 2017 2:57 PM
> To: cip-dev at lists.cip-project.org
> Subject: [cip-dev] [PATCH 2/3] iwg20m: add device type and dictionary template
> 
> The user will have to modify myiwg20m.jinja2 according
> to its environment (ip address, PDU, etc)
> 
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
> ---
>  device-dictionary/myiwg20m.jinja2     |  9 +++++++++
>  device-types/renesas-iwg20m.jinja2    | 15 +++++++++++++++
>  integration-scripts/configure_lava.sh |  6 ++++++
>  3 files changed, 30 insertions(+)
>  create mode 100644 device-dictionary/myiwg20m.jinja2
>  create mode 100644 device-types/renesas-iwg20m.jinja2
> 
> diff --git a/device-dictionary/myiwg20m.jinja2 b/device-dictionary/myiwg20m.jinja2
> new file mode 100644
> index 0000000..fc0de62
> --- /dev/null
> +++ b/device-dictionary/myiwg20m.jinja2
> @@ -0,0 +1,9 @@
> +{% extends 'renesas-iwg20m.jinja2' %}
> +{% set connection_command = 'telnet localhost 8020' %}
> +{% set power_on_command = 'curl http://admin:<password>@<ip>/set.cmd?cmd=setpower+p61=1' %}
> +{% set power_off_command = 'curl http://admin:<password>@<ip>/set.cmd?cmd=setpower+p61=0' %}
> +{% set hard_reset_command = 'curl http://admin:<password>@<ip>/set.cmd?cmd=setpower+p61=0; curl
> http://admin:12345678 at 192.168.11.68/set.cmd?cmd=setpower+p61=1' %}

Sorry, please change "12345678" to <password>

> +{% set test_delay = 500 %}
> +{% set uboot_ipaddr_cmd = 'setenv ipaddr 192.168.1.55' %}
> +{% set base_ip_args = 'ip=192.168.1.55' %}
> +{% set extra_kernel_args = 'ignore_loglevel vmalloc=384M' %}
> diff --git a/device-types/renesas-iwg20m.jinja2 b/device-types/renesas-iwg20m.jinja2
> new file mode 100644
> index 0000000..f1506ae
> --- /dev/null
> +++ b/device-types/renesas-iwg20m.jinja2
> @@ -0,0 +1,15 @@
> +{% extends 'base-uboot.jinja2' %}
> +
> +{% set console_device = console_device|default('ttySC0') %}
> +{% set baud_rate = baud_rate|default(115200) %}
> +{% set device_type = "renesas-iwg20m" %}
> +{% set bootloader_prompt = bootloader_prompt|default('iWave-G20M >') %}
> +{% set kernel_file = kernel_file | default('uImage') %}
> +{% set dtb_file = dtb_file | default('r8a7743-iwg20d-q7.dtb') %}
> +{% set bootm_kernel_addr = '0x40007fc0' %}
> +{% set bootm_ramdisk_addr = '0x41000000' %}
> +{% set bootm_dtb_addr = '0x40f00000' %}
> +{% set bootz_kernel_addr = '0x40007fc0' %}
> +{% set bootz_ramdisk_addr = '0x81600000' %}
> +{% set bootz_dtb_addr = '0x40f00000' %}
> +{% set uboot_mkimage_arch = 'arm' %}
> diff --git a/integration-scripts/configure_lava.sh b/integration-scripts/configure_lava.sh
> index 8d75b76..b13acdd 100755
> --- a/integration-scripts/configure_lava.sh
> +++ b/integration-scripts/configure_lava.sh
> @@ -51,6 +51,12 @@ sudo DEBIAN_FRONTEND=noninteractive cp mybbb.dat /etc/lava-server/dispatcher-con
>  sudo DEBIAN_FRONTEND=noninteractive chown lavaserver.lavaserver /etc/lava-server/dispatcher-config/devices/*
>  # lava-tool device-dictionary --update mybbb.dat http://lavauser at localhost:8080/RPC2 bbb01
> 
> +# Renesas iwg20m
> +sudo DEBIAN_FRONTEND=noninteractive cp -v /vagrant/device-types/renesas-iwg20m.jinja2 /etc/lava-server/dispatcher-
> config/device-types/
> +sudo DEBIAN_FRONTEND=noninteractive lava-server manage device-types add renesas-iwg20m
> +sudo DEBIAN_FRONTEND=noninteractive lava-server manage devices add --device-type renesas-iwg20m --worker $(hostname --
> long) iwg20m01
> +sudo DEBIAN_FRONTEND=noninteractive cp -v /vagrant/device-dictionary/myiwg20m.jinja2 /etc/lava-server/dispatcher-
> config/devices/iwg20m01.jinja2
> +
>  # Change the default shutdown message for kernel v4.4 - comment these lines out if using older kernel with a Shutdown message of
> "The system is going down for reboot NOW"
>  cd /usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/utils/
>  sudo DEBIAN_FRONTEND=noninteractive sed -ie "/SHUTDOWN_MESSAGE/s/The system is going down for reboot NOW/Restarting
> system/" constants.py
> --
> 2.7.4
> 
> 
> _______________________________________________
> cip-dev mailing list
> cip-dev at lists.cip-project.org
> https://lists.cip-project.org/mailman/listinfo/cip-dev

  reply	other threads:[~2017-12-14  6:06 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-14  5:57 [cip-dev] B@D: iwg20m support Daniel Sangorrin
2017-12-14  5:57 ` [cip-dev] [PATCH 1/3] Vagrantfile: support the http proxy plugin Daniel Sangorrin
2017-12-14  5:57 ` [cip-dev] [PATCH 2/3] iwg20m: add device type and dictionary template Daniel Sangorrin
2017-12-14  6:06   ` Daniel Sangorrin [this message]
2017-12-14  5:57 ` [cip-dev] [PATCH 3/3] iwg20m: add a test that boots a cip-core ramdisk Daniel Sangorrin
2017-12-18 11:36 ` [cip-dev] B@D: iwg20m support Daniel Wagner
2017-12-19  1:40   ` Daniel Sangorrin
2018-01-02  9:37     ` Trung. Huynh
2018-01-09  8:40       ` Daniel Sangorrin
2018-01-09 10:40         ` Trung. Huynh
2018-01-09 23:55           ` Daniel Sangorrin
2018-01-10  4:04             ` Trung. Huynh
2018-01-10  5:25               ` Daniel Sangorrin
2018-01-10  6:58                 ` Trung. Huynh
2018-01-11  5:49                   ` Daniel Sangorrin
2018-01-12  2:16                     ` Trung. Huynh
2018-03-23 14:34                       ` Tram Quynh Thi. Nguyen
2018-03-26  1:08                         ` Daniel Sangorrin
2018-03-26  7:54                           ` Zoran S
2018-03-26  8:39                             ` Tram Quynh Thi. Nguyen
2018-03-26  8:45                               ` Daniel Sangorrin
2018-03-26  8:53                                 ` Tram Quynh Thi. Nguyen
2018-03-26  8:59                                   ` Daniel Sangorrin
2018-03-28 11:19                                     ` Tram Quynh Thi. Nguyen
2018-03-28 11:52                                       ` Zoran S
2018-03-29  3:37                                         ` Tram Quynh Thi. Nguyen
2018-03-29  8:23                                           ` Zoran S
2018-03-28 23:23                                       ` Daniel Sangorrin
2018-01-02  9:45     ` [cip-dev] FW: " Trung. Huynh
2018-01-02 11:26     ` [cip-dev] " Daniel Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001301d374a1$a8a21eb0$f9e65c10$@toshiba.co.jp' \
    --to=daniel.sangorrin@toshiba.co.jp \
    --cc=cip-dev@lists.cip-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox