Hi Ogra,

After adding the `#define CONFIG_SUPPORT_RAW_INITRD` the uboot still
complains `Wrong Ramdisk Image Format Ramdisk image is corrupt or invalid`
...

Is there any other macros should be defined?

BR,
Madper

On Mon, Mar 20, 2017 at 8:26 PM, Oliver Grawert <o...@ubuntu.com> wrote:

> hi,
> On Do, 2017-03-16 at 21:22 +0800, Madper Xie wrote:
> > Hi all,
> >
> > My u-boot do not support the format of the initrd.img. So I need to
> > manually convert it via mkimage every time.
> >
> > I tried to use scriptlet to convert the initrd.img file but failed.
> >
> > ```
> >     install: |
> >       mkimage -n 'RamdiskImage' -A arm -O linux -T ramdisk -C gzip -d
> > initrd.img ramfs.img
> >       rm initrd.img
> > ```
> >
> > I got:
> > mkimage: Can't open initrd.img: No such file or directory
> > rm: cannot remove 'initrd.img': No such file or directory
> >
> > It seems the scriptlet executed before downloading the initrd.img.
> > Do we have any way to run a command after downloading the initrd.img?
> >
>
> please fix your u-boot instead, one of the required uboot config
> options we have is:
>
> #define CONFIG_SUPPORT_RAW_INITRD
>
> in your include/configs/<board>.h file ...
>
> the others are:
>
> #define CONFIG_ENV_IS_IN_FAT
> #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
> and
> #define CONFIG_ENV_SIZE                        SZ_128K
>
> to make the rollback function work.
>
> ciao
>         oli
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to