[systemd-devel] After firmare

John Tobias john.tobias.ph at gmail.com
Thu Dec 13 20:52:29 PST 2012


Could you give me a sample .service in order to solve my problem?.

Regards,

john

On Thu, Dec 13, 2012 at 7:04 PM, Andrey Borzenkov <arvidjaar at gmail.com> wrote:
> В Thu, 13 Dec 2012 10:43:56 -0800
> John Tobias <john.tobias.ph at gmail.com> пишет:
>
>> I renamed the /lib/firmware to /lib/firmware.old and reboot my system.
>> After rebooting it, I was getting an error (pls see below) that the
>> kernel did not find the firmware.
>> wl1271: ERROR could not get nvs file: -2
>> wl1271: loaded
>> wl1271: initialized
>>
>> Then, if I do "ifconfig -a", the wlan0 interface is showing up.
>>
>
> Yes, but it is initialized only after firmware is loaded.
>
>>
>>
>> On Thu, Dec 13, 2012 at 8:39 AM, Andrey Borzenkov <arvidjaar at gmail.com> wrote:
>> > В Wed, 12 Dec 2012 15:57:45 -0800
>> > John Tobias <john.tobias.ph at gmail.com> пишет:
>> >
>> >> ExecStart=/usr/sbin/wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
>> >>
>> >> One of the problem was the systemd called the said script before the
>> >> kernel loads the firmware(/lib/firmware/TIInit_7.2.31.bts). I would
>> >> like to know if there's a way to determine if the firmware is already
>> >> loaded before the systemd execute the said service?.
>> >>
>> >
>> > Normally interface should appear only after firmware is loaded. So
>> > making your script depend on wlan0.device should do it.
>> >
>> > It may be a bit tricky to find correct dependency though. E.g. I have
>> >
>> > Id=sys-devices-pci0000:00-0000:00:1c.1-0000:0c:00.0-net-wlan0.device
>> > Names=sys-devices-pci0000:00-0000:00:1c.1-0000:0c:00.0-net-wlan0.device sys-subsystem-net-devices-wlan0.device
>


More information about the systemd-devel mailing list