mail archive of the rauc mailing list
 help / color / mirror / Atom feed
* [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

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