mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: Mikhail <mp_kenga@mail.ru>
To: "Enrico Jörns" <ejo@pengutronix.de>
Cc: rauc@pengutronix.de
Subject: Re: [RAUC] RAUC with nanopi board
Date: Thu, 19 Mar 2020 12:56:11 +0300	[thread overview]
Message-ID: <1584611771.110568565@f400.i.mail.ru> (raw)
In-Reply-To: <52895440-7b10-b1f8-694d-59547ecfec50@pengutronix.de>


[-- Attachment #1.1: Type: text/plain, Size: 2717 bytes --]


Hi,
Yes, I’ve seen the example script for boot selection. The problem is I don’t know where to integrate it. The image flashed on emmc has no boot partition which would usually be mounted at /boot and contain boot.scr script. Instead, bootloader, kernel image and other components are placed to separate raw partitions at the beginning of the emmc. Then go rootfs and data ext4 partitions. Here is the layout:
 
flash=mmc,1:loader:idb:0x8000,0x280000:idbloader.img;
flash=mmc,1:env:env:0x3F8000,0x8000;
flash=mmc,1:parm:parm:0x400000,0x0400000:param4sd.txt;
flash=mmc,1:uboot:raw:0x800000,0x0400000:uboot.img;
flash=mmc,1:trust:raw:0xC00000,0x0400000:trust.img;
flash=mmc,1:misc:raw:0x1000000,0x0400000;
flash=mmc,1:resc:raw:0x1400000,0x0C00000:resource.img;
flash=mmc,1:kern:raw:0x2000000,0x2000000:kernel.img;
flash=mmc,1:boot:raw:0x4000000,0x2000000:boot.img;
flash=mmc,1:rootfs:ext4:0x6000000,0x117800000:rootfs.img;
flash=mmc,1:userdata:ext4:0x11D800000,0x0:userdata.img;
 
Best regards,
Mikhail
  
>Среда, 18 марта 2020, 3:14 +03:00 от Enrico Jörns <ejo@pengutronix.de>:
> 
>Hi Mikhail,
>
>Am 12.03.20 um 13:53 schrieb Mikhail:
>> Hi,
>>  
>> I need to implement a solution for rootfs/app update with nanopi neo4
>> board. The system (with Ubuntu 18) is installed on EMMC and it uses
>> rockchip u-boot as bootloader. This board seems to use special approach
>> for defining partitions: the command line defining mtd partitions is
>> hard-coded at specific block address on EMMC, and it also tells which
>> partition is the rootfs (e.g. "root=/dev/mmcblk1p7 … mtdparts=…"). Since
>> it looks hard-coded, I don’t know how to change rootfs partition by
>> using u-boot environment variables. So even though I’ve managed to setup
>> RAUC and successfully used it to update roofs in an inactive partition,
>> I can’t make my board switch to the new rootfs partition after reboot.
>>  
>> Since I’m new to the topic, maybe I’m missing something. I’d be grateful
>> for any advice.
>> Are there any success stories of using RAUC with nanopi boards
>> (especially Neo4)?
>an example script for implementing boot device selection with u-boot can
>be found here:
>
>https://github.com/rauc/rauc/blob/master/contrib/uboot.sh
>
>A more detailed guide on how to integrate this we have in the documentation:
>
>https://rauc.readthedocs.io/en/latest/integration.html#id4
>
>Does this help already?
>
>
>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 | 
 
 
--
. .
 

[-- Attachment #1.2: Type: text/html, Size: 3666 bytes --]

[-- Attachment #2: Type: text/plain, Size: 66 bytes --]

_______________________________________________
RAUC mailing list

  reply	other threads:[~2020-03-19  9:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-12 12:53 Mikhail
2020-03-18  0:14 ` Enrico Jörns
2020-03-19  9:56   ` Mikhail [this message]
2020-03-18 18:01 ` Arti Zirk
2020-03-20  8:35   ` Mikhail
2020-04-01  9:22   ` Mikhail

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=1584611771.110568565@f400.i.mail.ru \
    --to=mp_kenga@mail.ru \
    --cc=ejo@pengutronix.de \
    --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