mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* barebox JSON
@ 2012-04-16 10:01 christian.buettner
  2012-04-16 11:11 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 15+ messages in thread
From: christian.buettner @ 2012-04-16 10:01 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 239 bytes --]

hi all,

is there allready an approach to accept JSON messages through a UART or 
Ethernet interface?
I am thinking of an update mechanism in the bootloader, beeing able to 
exchange the kernel, rootfs or change env settings..

- christian

[-- Attachment #1.2: Type: text/html, Size: 409 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: barebox JSON
  2012-04-16 10:01 barebox JSON christian.buettner
@ 2012-04-16 11:11 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-04-16 11:52   ` Antwort: " christian.buettner
  0 siblings, 1 reply; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-16 11:11 UTC (permalink / raw)
  To: christian.buettner; +Cc: barebox

On 12:01 Mon 16 Apr     , christian.buettner@rafi.de wrote:
>    hi all,
> 
>    is there allready an approach to accept JSON messages through a UART or
>    Ethernet interface?
>    I am thinking of an update mechanism in the bootloader, beeing able to
>    exchange the kernel, rootfs or change env settings..
JSON no

but you can use script to do it other container

and protocol like xyzmodem /nfs and co so what is the advantage of JSON?

Best Regards,
J.
> 
>    - christian

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Antwort: Re: barebox JSON
  2012-04-16 11:11 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-16 11:52   ` christian.buettner
  2012-04-16 12:19     ` Sascha Hauer
  0 siblings, 1 reply; 15+ messages in thread
From: christian.buettner @ 2012-04-16 11:52 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 1168 bytes --]

The advantage is a generic interface used in mass production.

I formulate my question in another way.
Is there an approach launching a little tool, that listens to UART or 
Ethernet when the bootloader starts.
The tool is kind of an dispatcher, using an incoming message to start e.g. 
an update of the kernel.

- christian



Von:    Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
An:     christian.buettner@rafi.de
Kopie:  barebox@lists.infradead.org
Datum:  16.04.2012 13:29
Betreff:        Re: barebox JSON



On 12:01 Mon 16 Apr     , christian.buettner@rafi.de wrote:
>    hi all,
> 
>    is there allready an approach to accept JSON messages through a UART 
or
>    Ethernet interface?
>    I am thinking of an update mechanism in the bootloader, beeing able 
to
>    exchange the kernel, rootfs or change env settings..
JSON no

but you can use script to do it other container

and protocol like xyzmodem /nfs and co so what is the advantage of JSON?

Best Regards,
J.
> 
>    - christian

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



[-- Attachment #1.2: Type: text/html, Size: 2367 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Antwort: Re: barebox JSON
  2012-04-16 11:52   ` Antwort: " christian.buettner
@ 2012-04-16 12:19     ` Sascha Hauer
  2012-04-16 12:26       ` Antwort: " christian.buettner
  2012-04-19 10:59       ` Antwort: Re: Antwort: Re: barebox JSON christian.buettner
  0 siblings, 2 replies; 15+ messages in thread
From: Sascha Hauer @ 2012-04-16 12:19 UTC (permalink / raw)
  To: christian.buettner; +Cc: barebox

On Mon, Apr 16, 2012 at 01:52:33PM +0200, christian.buettner@rafi.de wrote:
> The advantage is a generic interface used in mass production.
> 
> I formulate my question in another way.
> Is there an approach launching a little tool, that listens to UART or 
> Ethernet when the bootloader starts.
> The tool is kind of an dispatcher, using an incoming message to start e.g. 
> an update of the kernel.

Well we have UART console and network console, you can use something
like kermit or expect to remote control barebox.

I know this sucks and is not what you wanted to hear, but currently this
is all we have.

I more than once thought about a real machine interface to barebox, but
I have no good idea how to do this.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Antwort: Re: Antwort: Re: barebox JSON
  2012-04-16 12:26       ` Antwort: " christian.buettner
@ 2012-04-16 12:22         ` Jean-Christophe PLAGNIOL-VILLARD
  2012-04-16 12:52           ` Antwort: " christian.buettner
  2012-04-16 12:53         ` Eric Bénard
  1 sibling, 1 reply; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-16 12:22 UTC (permalink / raw)
  To: christian.buettner; +Cc: barebox

On 14:26 Mon 16 Apr     , christian.buettner@rafi.de wrote:
>    Ok, thank you anyway..
>    We have a plan to 'remote control' barebox.. Would have been good, if i
>    wasn't the first doing this ;)
I do so too

I use bootp for this and remote power control

I send the binfmt patch series so when you boot you can send a shell and it
will be execute it

so I never need JSON

Best Regards,
J.
> 

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Antwort: Re: Antwort: Re: barebox JSON
  2012-04-16 12:19     ` Sascha Hauer
@ 2012-04-16 12:26       ` christian.buettner
  2012-04-16 12:22         ` Jean-Christophe PLAGNIOL-VILLARD
  2012-04-16 12:53         ` Eric Bénard
  2012-04-19 10:59       ` Antwort: Re: Antwort: Re: barebox JSON christian.buettner
  1 sibling, 2 replies; 15+ messages in thread
From: christian.buettner @ 2012-04-16 12:26 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 1429 bytes --]

Ok, thank you anyway..
We have a plan to 'remote control' barebox.. Would have been good, if i 
wasn't the first doing this ;)

- christian



Von:    Sascha Hauer <s.hauer@pengutronix.de>
An:     christian.buettner@rafi.de
Kopie:  Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>, 
barebox@lists.infradead.org
Datum:  16.04.2012 14:19
Betreff:        Re: Antwort: Re: barebox JSON



On Mon, Apr 16, 2012 at 01:52:33PM +0200, christian.buettner@rafi.de 
wrote:
> The advantage is a generic interface used in mass production.
> 
> I formulate my question in another way.
> Is there an approach launching a little tool, that listens to UART or 
> Ethernet when the bootloader starts.
> The tool is kind of an dispatcher, using an incoming message to start 
e.g. 
> an update of the kernel.

Well we have UART console and network console, you can use something
like kermit or expect to remote control barebox.

I know this sucks and is not what you wanted to hear, but currently this
is all we have.

I more than once thought about a real machine interface to barebox, but
I have no good idea how to do this.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


[-- Attachment #1.2: Type: text/html, Size: 2664 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox JSON
  2012-04-16 12:52           ` Antwort: " christian.buettner
@ 2012-04-16 12:46             ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-16 12:46 UTC (permalink / raw)
  To: christian.buettner; +Cc: barebox

On 14:52 Mon 16 Apr     , christian.buettner@rafi.de wrote:
>    ah binfmt in barebox.. ill check it, thx.
they are on the ML

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Antwort: Re: Antwort: Re: Antwort: Re: barebox JSON
  2012-04-16 12:22         ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-16 12:52           ` christian.buettner
  2012-04-16 12:46             ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 15+ messages in thread
From: christian.buettner @ 2012-04-16 12:52 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 709 bytes --]

ah binfmt in barebox.. ill check it, thx.



Von:    Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
An:     christian.buettner@rafi.de
Kopie:  Sascha Hauer <s.hauer@pengutronix.de>, barebox@lists.infradead.org
Datum:  16.04.2012 14:41
Betreff:        Re: Antwort: Re: Antwort: Re: barebox JSON



On 14:26 Mon 16 Apr     , christian.buettner@rafi.de wrote:
>    Ok, thank you anyway..
>    We have a plan to 'remote control' barebox.. Would have been good, if 
i
>    wasn't the first doing this ;)
I do so too

I use bootp for this and remote power control

I send the binfmt patch series so when you boot you can send a shell and 
it
will be execute it

so I never need JSON

Best Regards,
J.
> 


[-- Attachment #1.2: Type: text/html, Size: 1565 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: barebox JSON
  2012-04-16 12:26       ` Antwort: " christian.buettner
  2012-04-16 12:22         ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-16 12:53         ` Eric Bénard
  2012-04-16 13:10           ` Antwort: " christian.buettner
  2012-04-16 15:03           ` tftpserver christian.buettner
  1 sibling, 2 replies; 15+ messages in thread
From: Eric Bénard @ 2012-04-16 12:53 UTC (permalink / raw)
  To: barebox

Hi,

Le Mon, 16 Apr 2012 14:26:20 +0200,
christian.buettner@rafi.de a écrit :

> Ok, thank you anyway..
> We have a plan to 'remote control' barebox.. Would have been good, if i 
> wasn't the first doing this ;)
> 
FWIW here we are doing that with python & pyserial
that's quite easy to do without changing anything to barebox

Eric

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Antwort: Re: barebox JSON
  2012-04-16 12:53         ` Eric Bénard
@ 2012-04-16 13:10           ` christian.buettner
  2012-04-16 15:03           ` tftpserver christian.buettner
  1 sibling, 0 replies; 15+ messages in thread
From: christian.buettner @ 2012-04-16 13:10 UTC (permalink / raw)
  To: Eric Bénard; +Cc: barebox, barebox-bounces


[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]

Ok, another approach.. Thank you.



Von:    Eric Bénard <eric@eukrea.com>
An:     barebox@lists.infradead.org
Datum:  16.04.2012 14:55
Betreff:        Re: barebox JSON
Gesendet von:   barebox-bounces@lists.infradead.org



Hi,

Le Mon, 16 Apr 2012 14:26:20 +0200,
christian.buettner@rafi.de a écrit :

> Ok, thank you anyway..
> We have a plan to 'remote control' barebox.. Would have been good, if i 
> wasn't the first doing this ;)
> 
FWIW here we are doing that with python & pyserial
that's quite easy to do without changing anything to barebox

Eric

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


[-- Attachment #1.2: Type: text/html, Size: 1663 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* tftpserver
  2012-04-16 12:53         ` Eric Bénard
  2012-04-16 13:10           ` Antwort: " christian.buettner
@ 2012-04-16 15:03           ` christian.buettner
  2012-04-23  7:06             ` tftpserver Jean-Christophe PLAGNIOL-VILLARD
  2012-04-23  7:24             ` tftpserver Franck Jullien
  1 sibling, 2 replies; 15+ messages in thread
From: christian.buettner @ 2012-04-16 15:03 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 129 bytes --]

Hi,

is there a patch containing a tftp server on barebox, beeing able to 
connect to and send data from any client?

- christian

[-- Attachment #1.2: Type: text/html, Size: 258 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Antwort: Re: Antwort: Re: barebox JSON
  2012-04-16 12:19     ` Sascha Hauer
  2012-04-16 12:26       ` Antwort: " christian.buettner
@ 2012-04-19 10:59       ` christian.buettner
  2012-04-19 11:32         ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 1 reply; 15+ messages in thread
From: christian.buettner @ 2012-04-19 10:59 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 1540 bytes --]

Thx,
Is there an example code to accept a message through ethernet with 
'network console'
and call another tool, defined by the incoming message, through expect or 
kermit (depends what fits better).
I am new to programming with linux..

- christian



Von:    Sascha Hauer <s.hauer@pengutronix.de>
An:     christian.buettner@rafi.de
Kopie:  Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>, 
barebox@lists.infradead.org
Datum:  16.04.2012 14:19
Betreff:        Re: Antwort: Re: barebox JSON



On Mon, Apr 16, 2012 at 01:52:33PM +0200, christian.buettner@rafi.de 
wrote:
> The advantage is a generic interface used in mass production.
> 
> I formulate my question in another way.
> Is there an approach launching a little tool, that listens to UART or 
> Ethernet when the bootloader starts.
> The tool is kind of an dispatcher, using an incoming message to start 
e.g. 
> an update of the kernel.

Well we have UART console and network console, you can use something
like kermit or expect to remote control barebox.

I know this sucks and is not what you wanted to hear, but currently this
is all we have.

I more than once thought about a real machine interface to barebox, but
I have no good idea how to do this.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


[-- Attachment #1.2: Type: text/html, Size: 2858 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Antwort: Re: Antwort: Re: barebox JSON
  2012-04-19 10:59       ` Antwort: Re: Antwort: Re: barebox JSON christian.buettner
@ 2012-04-19 11:32         ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-19 11:32 UTC (permalink / raw)
  To: christian.buettner; +Cc: barebox

On 12:59 Thu 19 Apr     , christian.buettner@rafi.de wrote:
>    Thx,
>    Is there an example code to accept a message through ethernet with
>    'network console'
>    and call another tool, defined by the incoming message, through expect or
>    kermit (depends what fits better).
>    I am new to programming with linux..
> 
you have it here scripts/netconsole

and  in the doc

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: tftpserver
  2012-04-16 15:03           ` tftpserver christian.buettner
@ 2012-04-23  7:06             ` Jean-Christophe PLAGNIOL-VILLARD
  2012-04-23  7:24             ` tftpserver Franck Jullien
  1 sibling, 0 replies; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-23  7:06 UTC (permalink / raw)
  To: christian.buettner; +Cc: barebox

On 17:03 Mon 16 Apr     , christian.buettner@rafi.de wrote:
>    Hi,
> 
>    is there a patch containing a tftp server on barebox, beeing able to
>    connect to and send data from any client?
no barebox is designed to request so we have only clients

add this support will not to much complexe but I recommand you to use bootp

so barebox can download and execute what you want

binfmt is in the next branch


I do it here with shell script and them manage the dhcp request with
hostname/vendor id/client id/clinet uuid/user class or custom request

Best Regards,
J.
> 
>    - christian

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: tftpserver
  2012-04-16 15:03           ` tftpserver christian.buettner
  2012-04-23  7:06             ` tftpserver Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-23  7:24             ` Franck Jullien
  1 sibling, 0 replies; 15+ messages in thread
From: Franck Jullien @ 2012-04-23  7:24 UTC (permalink / raw)
  To: christian.buettner; +Cc: barebox

2012/4/16  <christian.buettner@rafi.de>:
> Hi,
>
> is there a patch containing a tftp server on barebox, beeing able to connect
> to and send data from any client?
>
> - christian
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>

Hi,

There is no tftp server in Barebox. However, you can send data to an
host server using tftp push.

Franck.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-04-23  7:26 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16 10:01 barebox JSON christian.buettner
2012-04-16 11:11 ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-16 11:52   ` Antwort: " christian.buettner
2012-04-16 12:19     ` Sascha Hauer
2012-04-16 12:26       ` Antwort: " christian.buettner
2012-04-16 12:22         ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-16 12:52           ` Antwort: " christian.buettner
2012-04-16 12:46             ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-16 12:53         ` Eric Bénard
2012-04-16 13:10           ` Antwort: " christian.buettner
2012-04-16 15:03           ` tftpserver christian.buettner
2012-04-23  7:06             ` tftpserver Jean-Christophe PLAGNIOL-VILLARD
2012-04-23  7:24             ` tftpserver Franck Jullien
2012-04-19 10:59       ` Antwort: Re: Antwort: Re: barebox JSON christian.buettner
2012-04-19 11:32         ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox