mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: Kevin Chen <chenxlbr@gmail.com>
To: "Middelschulte, Leif" <Leif.Middelschulte@klsmartin.com>
Cc: "rauc@pengutronix.de" <rauc@pengutronix.de>
Subject: Re: [RAUC] booted slot issue
Date: Sat, 11 Nov 2017 16:16:58 +0800	[thread overview]
Message-ID: <CAEQuCVv6D9WiL2c7Yc+5cJH8WRPNi848iUqMteCVo1XcMP_LjQ@mail.gmail.com> (raw)
In-Reply-To: <CAEQuCVvvf+zZszJf-Z9bRX6wqL4=WrK7P+YL4Wknvg5qA_fHXw@mail.gmail.com>

That problem resolved by myself.The rauc only install into the
partition of the inactive slot.My rootfs.0 slot is bootable partition,
so it could not be updated.Another things is the rauc service does not
reload the system.conf file in running situation.

On Sat, Nov 11, 2017 at 1:52 PM, Kevin Chen <chenxlbr@gmail.com> wrote:
> Hello Leif,
>
> Thanks for your help.That's solved my problem.And I have confused with
> another point.I install bundle package.It shows me below error.
>
> # rauc -d install /run/media/mmcblk0p1/update-bundle-20171111014633.
> raucb
> Domains: 'rauc'
> (rauc:233): rauc-DEBUG: install started
> (rauc:233): rauc-DEBUG: input bundle:
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb
> trying to contact rauc service
> input bundle: /run/media/mmcblk0p1/update-bundle-20171111014633.raucb
> Active slot bootname: system0
> rauc-Message: installing
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb: installing
> rauc-Message: installing
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb: started
> rauc-Message: Mounting bundle
> '/run/media/mmcblk0p1/update-bundle-20171111014633.raucb' to
> '/mnt/rauc/bundle'
> rauc-Message: installing
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb: Checking and
> mounting bundle...
> rauc-Message: Reading bundle:
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb
> rauc-Message: Verifying bundle...
>
> (rauc:223): rauc-WARNING **: No target for class 'rootfs' found!
>
> (rauc:223): rauc-WARNING **: Could not determine target group
> rauc-Message: installing
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb: Could not
> determine target group
> rauc-Message: installing
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb: finished
> rauc-Message: installing
> `/run/media/mmcblk0p1/update-bundle-20171111014633.raucb` failed: 1
> rauc-Message: installing
> /run/media/mmcblk0p1/update-bundle-20171111014633.raucb: idle
> installing `/run/media/mmcblk0p1/update-bundle-20171111014633.raucb` failed
>
> I am understand the system.conf file describe slot class name.Now, I
> have set class name as rootfs, index as 0 in system.conf.The
> RAUC_BUNDLE_SLOTS is rootfs in yocto.The rauc info shows right result.
>
> (1) core-image-minimal-b6ull.ext4
> Slotclass: rootfs
> Checksum:  492ef53b1141c015e572a0de6c45f83f1f9198b891a3d31085b67521206d3543
> Size:      20971520
> Hooks:
> 0 Files
>
> I am not using the group attribute in system.conf file.So, why it
> always shows the "not determine target group" error?
>
> The mmcblk0 is sd card, mmcblk1 is emmc flash.
>
> On Sat, Nov 11, 2017 at 2:20 AM, Middelschulte, Leif
> <Leif.Middelschulte@klsmartin.com> wrote:
>> Hello Kevin,
>>
>> verify that you pass the right kernel parameter via (in your case) uboot.
>>
>> See
>> https://github.com/rauc/rauc/blob/48aa81da78737876e09010f77b635acda2c54145/src/context.c#L24
>> Also check the example on grub:
>> https://github.com/rauc/rauc/blob/master/docs/examples.rst#grub-configuration
>>
>> I hope this helps.
>>
>> Cheers,
>>
>> Leif
>>
>> Am Samstag, den 11.11.2017, 00:28 +0800 schrieb Kevin Chen:
>>
>> Hi all,
>>
>> I am newer for RAUC.These days I learn RAUC on my NXP iMX6UL
>> project.Now, I use initramfs to test it.Below is my steps.
>>
>> 1.boot initramfs from sd card
>> 2.start service through "rauc service"
>> 3.use "rauc status" to check RAUC
>>
>> Now, I got an error.
>> Failed to determine slot states: Did not find booted slot
>>
>> Here is my system.conf content.
>>
>> [system]
>> compatible=i2c-b6ull
>> bootloader=uboot
>>
>> [keyring]
>> path=ca.cert.pem
>>
>> [slot.rootfs.0]
>> device=/dev/mmcblk1p3
>> type=ext4
>> bootname=system0
>>
>> My board use emmc flash and uboot, it has three partitions.I only use
>> mmcblk1p3 to test install bundle whether it works correctly.
>>
>> In my opinion, the "bootname" is flag the mmcblk1p3 as boot slot.So I
>> am confuse about the "booted slot" tips.Did I missing some boot config
>> for RAUC? Thanks
>>
>> ---
>> Kevin Chen
>> ShenZhen Guangdong, China
>>
>> _______________________________________________
>> RAUC mailing list
>
>
>
> --
>
> ---
> Kevin Chen
> ShenZhen Guangdong, China



-- 

---
Kevin Chen
ShenZhen Guangdong, China

_______________________________________________
RAUC mailing list

      reply	other threads:[~2017-11-11  8:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-10 16:28 Kevin Chen
2017-11-10 18:20 ` Middelschulte, Leif
2017-11-11  5:52   ` Kevin Chen
2017-11-11  8:16     ` Kevin Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEQuCVv6D9WiL2c7Yc+5cJH8WRPNi848iUqMteCVo1XcMP_LjQ@mail.gmail.com \
    --to=chenxlbr@gmail.com \
    --cc=Leif.Middelschulte@klsmartin.com \
    --cc=rauc@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox