lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 14 Nov 2009 12:19:13 -0600
From:	Robert Hancock <hancockrwd@...il.com>
To:	venu <vjosyula@...il.com>
Cc:	Roland Dreier <rdreier@...co.com>,
	Philip Downer <phil@...devices.co.uk>,
	linux-kernel@...r.kernel.org
Subject: Re: firmware loading interface

On Sat, Nov 14, 2009 at 10:55 AM, venu <vjosyula@...il.com> wrote:
>  who triggers this upgrade from userspace ? I understand it is a naivee /
> beginers questions but i hope somebody explains me how ?

The request_firmware interface probably isn't suitable for that..
using an ioctl or read/write-based interface, possibly on a separate
device node, would likely be the way to go..

>
> On Sat, Nov 14, 2009 at 9:38 PM, Robert Hancoctk <hancockrwd@...il.cr tom>
> wrote:
>>
>> On 11/13/2009 06:35 PM, Roland Dreier wrote:
>>>
>>>  >  However our device will have flash to store the firmware in and,
>>> whilst
>>>  >  it looks as though it would be possible for us to use
>>> request_firmware
>>>  >  to provide occasional firmware upgrades from userspace, I can't find
>>> any
>>>  >  reference as to whether this is an accepted method for doing so.
>>> Could
>>>  >  someone please confirm for me whether or not it's a good idea to use
>>>  >  request_firmware for this, or perhaps point me at another standard
>>>  >  method for doing firmware updates from userspace?
>>>
>>> I think request_firmware() is fine for this... you could have a look at
>>> drivers/net/cxgb3 to see a device that writes new firmware to flash when
>>> it detects a version mismatch between driver and device.
>>
>> It depends on the consequences of a failed flash due to losing power,
>> crash, etc - if it has the potential to brick the device then I don't think
>> that should happen without the user triggering it explicitly..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ