From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::a2d; helo=mail-vk1-xa2d.google.com; envelope-from=sdherts@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ezW8vHAv; dkim-atps=neutral Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48R5qp66B8zDqLW for ; Tue, 25 Feb 2020 02:40:35 +1100 (AEDT) Received: by mail-vk1-xa2d.google.com with SMTP id w4so2606208vkd.5 for ; Mon, 24 Feb 2020 07:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UeeYOzjqr71+6XH4rI15G48G2h29MGBRhEZtz3vmAe0=; b=ezW8vHAvs/xWMYolZoi1vdetr3FiNqd66FQl/4GXUL7pLRpjnmntGc/SqcmRv5Fc7s Jo8HEaq2lyTNjHNIxZU3uaB8pcBmWzJsVeB7wkjs0uOFuBYzRNM7IKncNIGeY6GXT/IA lGJ4/jfjmxu4WPPSlGhDXP4Ut/7W1puB/ZvGz4qBUZjQDBahgJ8qOD87iLE5VP1k8vKM T2SVcVEGxXjPf+sVbbXURNEzueN9tiwOwolfzuogqXNMjqTIwWHkalUu5S7NeFGXFV2H Mj0vWrbvRYgllQulOlRXf8g3Qic3Bx2ojjDqdrefKI7mEaTnMCWWn18gjs1s7JJta3SV lW0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UeeYOzjqr71+6XH4rI15G48G2h29MGBRhEZtz3vmAe0=; b=tJOd0yCfK5t40E/2JjWc5OHp1lV8tIGyngHP2XczjqqXclNHXeSuqja6UNyBboW00J ZooDiZlWUy6jLdCkuG/0Eo5pmgmKFZxD5FEj+DIWifqJy9zbMW8Zhu6ghRwNJWsyLuU9 joE3MdZxchugj2p5gS0gNc06lpVeeWQYxSYVD9idqWIWTNJH6DIR+e6xjfx/mGbu0Jvs GS/f1FkKF3Z5lh1IukeQ4egFJxhF45wjnfaWUbZiM5ezhRQvp6S8jEAZPSfDiiPq7LT4 xE6hPOOfC+0/lLqBolUymldU5wCO5Y3u6HkiBjU9SjKpVogBk0YuLBSIfOrNJvJln3+j 8enw== X-Gm-Message-State: APjAAAU7hk6jH/5msGoCFCHdRMXV1IQ5hoqMcuEaUMLe3qG0tSGDOaaN ILdUy+lEckf/b9+CK8KVmH7uiu7TcE9oqW5Ctak= X-Google-Smtp-Source: APXvYqyEVMVaJsP8n5ls+vn4hcXH3Mi7Ap6mfF82EsRumbtApHxLPXMU2LPRoCty8OWb93Q7/b+Q5ylaNCrLs56nvao= X-Received: by 2002:ac5:c1c7:: with SMTP id g7mr23993852vkk.97.1582558830916; Mon, 24 Feb 2020 07:40:30 -0800 (PST) MIME-Version: 1.0 References: <5937.1579503424@localhost> In-Reply-To: <5937.1579503424@localhost> From: Samuel Herts Date: Mon, 24 Feb 2020 10:40:22 -0500 Message-ID: Subject: Re: OpenBMC Starting Point To: Michael Richardson Cc: geissonator@yahoo.com, openbmc@lists.ozlabs.org Content-Type: multipart/alternative; boundary="000000000000f3f9fc059f543095" X-Mailman-Approved-At: Thu, 27 Feb 2020 13:08:41 +1100 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2020 15:40:39 -0000 --000000000000f3f9fc059f543095 Content-Type: text/plain; charset="UTF-8" So if I wanted a c++ script to run on the bmc whenever I desired, how exactly would I go about implementing it as a module to run? Kind of like the Phosphor state manager module that the Hello World guide starts on, specifically, what steps would I need to take or what resources should I look into for creating my own module that will run when a specific command is sent, like the systemctl start phosphor. On Mon, Jan 20, 2020 at 1:57 AM Michael Richardson wrote: > > Samuel Herts wrote: > > I am currently working on getting a working OpenBMC test environment > > up and running. I am using VirtualBox and the github Development > > Environment tutorial. I had a couple questions regarding how to make > > our own modules. Would it be possible to upload files to the bmc on > > the virtual server? > > You can do that. > The disk is rather small by default. > If you are using VirtualBox, you may be able to use the vboxfs file system > to > mount the host. That might require adding modules to the kernel. > > > And would I be able to make a script which can read text off of that > > file inside the bmc chip? > > > I have a physical server which I am not using yet, would I be able to > > install openbmc and the scripts and insert the file onto the actual > > bmc chip, and eventually read from that file? > > Maybe. What server do you have? > > -- > ] Never tell me the odds! | ipv6 mesh > networks [ > ] Michael Richardson, Sandelman Software Works | IoT > architect [ > ] mcr@sandelman.ca http://www.sandelman.ca/ | ruby on > rails [ > > -- Sincerely, Samuel Herts --000000000000f3f9fc059f543095 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
So if I wanted a c++ script to run on the bmc whenever I d= esired, how exactly would I go about implementing it as a module to run? Ki= nd of like the Phosphor state manager module that the Hello World guide sta= rts on, specifically, what steps would I need to take or what resources sho= uld I look into for creating my own module that will run when a specific co= mmand is sent, like the systemctl start phosphor.=C2=A0

On Mon, Jan 20, 2020= at 1:57 AM Michael Richardson <mcr@= sandelman.ca> wrote:

Samuel Herts <sdh= erts@gmail.com> wrote:
=C2=A0 =C2=A0 > I am currently working on getting a working OpenBMC test= environment
=C2=A0 =C2=A0 > up and running. I am using VirtualBox and the github Dev= elopment
=C2=A0 =C2=A0 > Environment tutorial. I had a couple questions regarding= how to make
=C2=A0 =C2=A0 > our own modules. Would it be possible to upload files to= the bmc on
=C2=A0 =C2=A0 > the virtual server?

You can do that.
The disk is rather small by default.
If you are using VirtualBox, you may be able to use the vboxfs file system = to
mount the host. That might require adding modules to the kernel.

=C2=A0 =C2=A0 > And would I be able to make a script which can read text= off of that
=C2=A0 =C2=A0 > file inside the bmc chip?

=C2=A0 =C2=A0 > I have a physical server which I am not using yet, would= I be able to
=C2=A0 =C2=A0 > install openbmc and the scripts and insert the file onto= the actual
=C2=A0 =C2=A0 > bmc chip, and eventually read from that file?

Maybe. What server do you have?

--
]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Never tell me the o= dds!=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| ipv6 me= sh networks [
]=C2=A0 =C2=A0Michael Richardson, Sandelman Software Works=C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 =C2=A0 IoT architect=C2=A0 =C2=A0[
]=C2=A0 =C2=A0 =C2=A0= mcr@sandelman.ca=C2=A0 http://www.sandelman.ca/=C2=A0 =C2=A0 =C2=A0 = =C2=A0 |=C2=A0 =C2=A0ruby on rails=C2=A0 =C2=A0 [



--
Sincerely,=C2=A0
Samuel Her= ts
--000000000000f3f9fc059f543095--