* [RAUC] booted slot issue @ 2017-11-10 16:28 Kevin Chen 2017-11-10 18:20 ` Middelschulte, Leif 0 siblings, 1 reply; 4+ messages in thread From: Kevin Chen @ 2017-11-10 16:28 UTC (permalink / raw) To: rauc 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RAUC] booted slot issue 2017-11-10 16:28 [RAUC] booted slot issue Kevin Chen @ 2017-11-10 18:20 ` Middelschulte, Leif 2017-11-11 5:52 ` Kevin Chen 0 siblings, 1 reply; 4+ messages in thread From: Middelschulte, Leif @ 2017-11-10 18:20 UTC (permalink / raw) To: chenxlbr, rauc [-- Attachment #1.1: Type: text/plain, Size: 1335 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 2016 bytes --] [-- Attachment #2: Type: text/plain, Size: 65 bytes --] _______________________________________________ RAUC mailing list ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RAUC] booted slot issue 2017-11-10 18:20 ` Middelschulte, Leif @ 2017-11-11 5:52 ` Kevin Chen 2017-11-11 8:16 ` Kevin Chen 0 siblings, 1 reply; 4+ messages in thread From: Kevin Chen @ 2017-11-11 5:52 UTC (permalink / raw) To: Middelschulte, Leif; +Cc: rauc 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 _______________________________________________ RAUC mailing list ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RAUC] booted slot issue 2017-11-11 5:52 ` Kevin Chen @ 2017-11-11 8:16 ` Kevin Chen 0 siblings, 0 replies; 4+ messages in thread From: Kevin Chen @ 2017-11-11 8:16 UTC (permalink / raw) To: Middelschulte, Leif; +Cc: rauc 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-11 8:17 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-11-10 16:28 [RAUC] booted slot issue Kevin Chen 2017-11-10 18:20 ` Middelschulte, Leif 2017-11-11 5:52 ` Kevin Chen 2017-11-11 8:16 ` Kevin Chen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox