* [RAUC] RAUC fails to mark slot as good --> fw_utils access error on mmc
@ 2019-04-24 14:17 Steffen Kothe
2019-05-14 9:47 ` Enrico Joerns
0 siblings, 1 reply; 2+ messages in thread
From: Steffen Kothe @ 2019-04-24 14:17 UTC (permalink / raw)
To: rauc
Hello mailinglist,
Following error message occured after start of system.
Log output comes from systemd (rauc.service)
systemctl status rauc.service
Apr 24 13:48:43 pixi-cdl100 rauc[478]: Write error on
> /dev/mmcblk3boot0: Operation not
> permitted > Apr 24 13:48:43
pixi-cdl100 rauc[478]: Error: can't write fw_env to
> flash >
Apr 24 13:48:43 pixi-cdl100 rauc[478]: [[0;1;39mrauc mark: Failed
> marking 'rootfs.0' as good: Failed to run fw_setenv: Child process
ex> ited with code
> 1[[0m
> > Apr 24 13:53:51
fw_utils have the correct setup, a manual call of fw_utils
shows the correct environment of uboot.
I fixed this problem with a script, starting before the rauc daemon,
forcing the mmcblk3bootX devices to enable read/write.
Why do I need to set the "force_ro" to 0, before rauc can access the u-
boot environment?
Why RAUC does not handle the "force_ro" after start?
Attached the script, which is triggered before the rauc daemon.
#!/bin/bash echo 0 >> /sys/block/mmcblk3boot0/force_ro
echo 0 $gt;> /sys/block/mmcblk3boot1/force_ro
Best Regards
Steffen
_______________________________________________
RAUC mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RAUC] RAUC fails to mark slot as good --> fw_utils access error on mmc
2019-04-24 14:17 [RAUC] RAUC fails to mark slot as good --> fw_utils access error on mmc Steffen Kothe
@ 2019-05-14 9:47 ` Enrico Joerns
0 siblings, 0 replies; 2+ messages in thread
From: Enrico Joerns @ 2019-05-14 9:47 UTC (permalink / raw)
To: Steffen Kothe; +Cc: rauc
Hi Steffen,
On 4/24/19 4:17 PM, Steffen Kothe wrote:
> Hello mailinglist,
>
> Following error message occured after start of system.
> Log output comes from systemd (rauc.service)
> systemctl status rauc.service
>
> Apr 24 13:48:43 pixi-cdl100 rauc[478]: Write error on
>> /dev/mmcblk3boot0: Operation not
>> permitted > Apr 24 13:48:43
> pixi-cdl100 rauc[478]: Error: can't write fw_env to
>> flash >
> Apr 24 13:48:43 pixi-cdl100 rauc[478]: [[0;1;39mrauc mark: Failed
>> marking 'rootfs.0' as good: Failed to run fw_setenv: Child process
> ex> ited with code
>> 1[[0m
>> > Apr 24 13:53:51
>
> fw_utils have the correct setup, a manual call of fw_utils
> shows the correct environment of uboot.
>
> I fixed this problem with a script, starting before the rauc daemon,
> forcing the mmcblk3bootX devices to enable read/write.
>
> Why do I need to set the "force_ro" to 0, before rauc can access the u-
> boot environment?
> Why RAUC does not handle the "force_ro" after start?
>
> Attached the script, which is triggered before the rauc daemon.
>
> #!/bin/bash echo 0 >> /sys/block/mmcblk3boot0/force_ro
> echo 0 $gt;> /sys/block/mmcblk3boot1/force_ro
sorry for being a bit unresponsive, but I was only rarely in the office the last
weeks. Did you resolve your issue?
Is that intentionally that you have the environment in the eMMC boot partitions?
Don't you loose the state after updating the bootloader?
We had a similar question as issue on GitHub some time ago:
https://github.com/rauc/rauc/issues/165
Best regards, Enrico
--
Pengutronix e.K. | Enrico Jörns |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
RAUC mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-14 9:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24 14:17 [RAUC] RAUC fails to mark slot as good --> fw_utils access error on mmc Steffen Kothe
2019-05-14 9:47 ` Enrico Joerns
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox