mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Hans-Ulrich Schlieben <hu.schlieben@codewrights.de>
To: "Enrico Jörns" <ejo@pengutronix.de>
Cc: "yocto@lists.yoctoproject.org" <yocto@lists.yoctoproject.org>,
	"barebox@lists.infradead.org" <barebox@lists.infradead.org>,
	"rauc@pengutronix.de" <rauc@pengutronix.de>
Subject: RE: Private: Re: [yocto] #yocto update the kernel with a rauc bundle
Date: Tue, 18 Feb 2020 14:06:50 +0000	[thread overview]
Message-ID: <AM0PR03MB3714AE8A8592D7A0E7853B83FE110@AM0PR03MB3714.eurprd03.prod.outlook.com> (raw)
In-Reply-To: <8178103e-c35d-461d-c485-d6b64753641b@pengutronix.de>

Hi Enrico,

I just answered your first mail on the website and thought that will automatically reply to all. Added all lists now, hope these are correct.

Thanks to you I found the custom automount in the providers recipes. This mounts /dev/mmc0.0 to /mnt/mmc.
After the mount it seems that only when I install a new image the barebox mount /dev/mmc0.0 to /mnt/mmc0.0 works. 
Rauc / barebox seems something to change after a bundle update whereas mount /dev/mmc0.0 to /mnt/mmc0.0 fails and the files are only visible in /mnt/mmc.

/mnt/mmc works in both cases so I have now 
/mnt/mmc/boot... for system0 and
/mnt/mmc0.1/boot... for system1

Best regards

hu

-----Original Message-----
From: Enrico Jörns <ejo@pengutronix.de> 
Sent: Tuesday, 18 February 2020 01:12
To: Hans-Ulrich Schlieben <hu.schlieben@codewrights.de>
Subject: Re: Private: Re: [yocto] #yocto update the kernel with a rauc bundle

Hi hu,

please keep at least any list in CC so that others can benefit from this discussion, too (Both RAUC and barebox ML would fit here). It also increases the range and thus potential people that may help here.

Am 17.02.20 um 13:58 schrieb Hans-Ulrich Schlieben:
> Hi Enrico,
> 
> thank you very much for your help with IMAGE_INSTALL_append = " 
> kernel-image kernel-devicetree"
> that did the trick.
> 
> What i do not understand is how barebox handles the mount names for my 
> two alternate boot partitions.
> The boot on the first partition works only under /mnt/mmc/:
> 
> global.bootm.image="/mnt/mmc/boot/zImage"
> global.bootm.oftree="/mnt/mmc/boot/imx6q-phytec-ksp0663.dtb"
> global.linux.bootargs.dyn.root="root=/dev/mmcblk0p1
> rootflags='data=journal' wd=60 ipv6.disable=1"
> 
> whereas the second works with /mnt/mmc1/:
> global.bootm.image="/mnt/mmc0.1/boot/zImage"
> global.bootm.oftree="/mnt/mmc0.1/boot/imx6q-phytec-ksp0663.dtb"
> global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2
> rootflags='data=journal' wd=60 ipv6.disable=1"
> 
> In barebox i see both root filesystems under /mnt/mmc0.0 and 
> /mnt/mmc0.1/.
> 
> When i try to have a symmetrical configuration and rename /mmc/ into 
> /mmc0.0/ boot on mmc0.0 does not work because it still mounts the 
> first partition ar /mnt/mmc/.

Which version of barebox?

It should be sufficient to either say

  boot mmc0.0

or

  boot mmc0.1

and barebox will automatically mount the partition, look for a bootspec file under /loader/entries and assemble the required boot options and kernel command line automatically.

> What tells barebox to mount during boot mmc and mmc0.1 instead of 
> mmc0.0 and mmc0.1?

Is there any custom automount unit located in you built-in env probably?


Best regards, Enrico

-- 
Pengutronix e.K.                           | Enrico Jörns                |
Industrial Linux Solutions                 | https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pengutronix.de%2F&amp;data=01%7C01%7Chu.schlieben%40codewrights.de%7C6020bc01e00441d6349308d7b40726d7%7C0974af9b352b437cb606e9f242c0c227%7C0&amp;sdata=dcTydL6d89X3tBEeBaFlzMqJ6%2FpFkGrzNRQ6atkpLRk%3D&amp;reserved=0  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

       reply	other threads:[~2020-02-18 14:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f52c462f-8f88-f953-7383-18633de010ff@pengutronix.de>
     [not found] ` <21810.1581944282288454644@lists.yoctoproject.org>
     [not found]   ` <8178103e-c35d-461d-c485-d6b64753641b@pengutronix.de>
2020-02-18 14:06     ` Hans-Ulrich Schlieben [this message]
2020-02-19 16:27       ` [RAUC] " Enrico Jörns
2020-02-24 12:12         ` Hans-Ulrich Schlieben
2020-02-25 15:16           ` Stefan Riedmüller
2020-02-26 12:19             ` Hans-Ulrich Schlieben
2020-02-26 13:23               ` Stefan Riedmüller
2020-02-26 16:03                 ` Hans-Ulrich Schlieben
2020-02-27 14:51                   ` Stefan Riedmüller

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=AM0PR03MB3714AE8A8592D7A0E7853B83FE110@AM0PR03MB3714.eurprd03.prod.outlook.com \
    --to=hu.schlieben@codewrights.de \
    --cc=barebox@lists.infradead.org \
    --cc=ejo@pengutronix.de \
    --cc=rauc@pengutronix.de \
    --cc=yocto@lists.yoctoproject.org \
    /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