* Loading Barebox to RAM
@ 2019-03-02 12:49 Patrick Schneider
2019-03-02 14:36 ` Oleksij Rempel
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Schneider @ 2019-03-02 12:49 UTC (permalink / raw)
To: barebox
Hey guys,
I have a question about a way of "emergency flashing" the device.
So I have a fully operational linux system with barebox as bootloader. In production environment I have no access to the serial console but I have a USB OTG port.
For security reasons I don't want USB active in my "normal" barebox environment, so it's off by config.
For support, to gain access to a barebox and bootloader functionality is there a way to load another barebox (with usb active) from linux userspace into RAM and start/reboot into that?
Have a nice weekend!
Regards,
Patrick
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Loading Barebox to RAM
2019-03-02 12:49 Loading Barebox to RAM Patrick Schneider
@ 2019-03-02 14:36 ` Oleksij Rempel
2019-03-04 8:11 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Oleksij Rempel @ 2019-03-02 14:36 UTC (permalink / raw)
To: Patrick Schneider, barebox
Hi,
Am 02.03.19 um 13:49 schrieb Patrick Schneider:
> Hey guys,
> I have a question about a way of "emergency flashing" the device.
> So I have a fully operational linux system with barebox as bootloader. In production environment I have no access to the serial console but I have a USB OTG port.
> For security reasons I don't want USB active in my "normal" barebox environment, so it's off by config.
> For support, to gain access to a barebox and bootloader functionality is there a way to load another barebox (with usb active) from linux userspace into RAM and start/reboot into that?
> Have a nice weekend!
Let me rephrase: you disabled every thing in a bootloader which can be
accessed only locally and provided functional to nuke complete system
from linux which can be accessed locally and remotely?
I assume, it would make sense to review the thread model of this project.
Any way. "is it possible to run barebox from linux", the answer would
be: theoretically it should be possible to do it from kexec. I never
tried it before.
--
Regards,
Oleksij
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Loading Barebox to RAM
2019-03-02 14:36 ` Oleksij Rempel
@ 2019-03-04 8:11 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2019-03-04 8:11 UTC (permalink / raw)
To: Oleksij Rempel; +Cc: Patrick Schneider, barebox
On Sat, Mar 02, 2019 at 03:36:51PM +0100, Oleksij Rempel wrote:
> Hi,
>
> Am 02.03.19 um 13:49 schrieb Patrick Schneider:
> > Hey guys,
> > I have a question about a way of "emergency flashing" the device.
> > So I have a fully operational linux system with barebox as bootloader. In production environment I have no access to the serial console but I have a USB OTG port.
> > For security reasons I don't want USB active in my "normal" barebox environment, so it's off by config.
> > For support, to gain access to a barebox and bootloader functionality is there a way to load another barebox (with usb active) from linux userspace into RAM and start/reboot into that?
> > Have a nice weekend!
>
> Let me rephrase: you disabled every thing in a bootloader which can be
> accessed only locally and provided functional to nuke complete system
> from linux which can be accessed locally and remotely?
> I assume, it would make sense to review the thread model of this project.
>
> Any way. "is it possible to run barebox from linux", the answer would
> be: theoretically it should be possible to do it from kexec. I never
> tried it before.
I tried it on ARM and it used to work. Of course you need a barebox that
doesn't try to bringup the SDRAM you are currently running at, but most
code in barebox tests the PC being outside SDRAM before setting it up.
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] 3+ messages in thread
end of thread, other threads:[~2019-03-04 8:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-02 12:49 Loading Barebox to RAM Patrick Schneider
2019-03-02 14:36 ` Oleksij Rempel
2019-03-04 8:11 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox