[meta-xilinx] uboot-utils fw_setenv ends up with wrong CRC in environment
Arno Steffens
star at gmx.li
Tue Jul 18 01:18:42 PDT 2017
I guess it has been this setting:
CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
Not that I really understand that, but it seems to work now....
> Gesendet: Dienstag, 18. Juli 2017 um 08:06 Uhr
> Von: "Arno Steffens" <star at gmx.li>
> An: meta-xilinx at yoctoproject.org
> Betreff: Re: [meta-xilinx] uboot-utils fw_setenv ends up with wrong CRC in environment
>
> I analyzed the the calls with strace and found one difference:
> although both read the same /etc/fw_env.config, the one kernel calls
>
> ioctl(4, MIXER_READ(1) or MEMGETINFO, {type=MTD_NORFLASH, flags=MTD_WRITEABLE|MTD_BIT_WRITEABLE, size=0x10000, erasesize=0x1000, writesize=0x1, oobsize=0, padding=0}) = 0
>
> and the other
>
> ioctl(4, MIXER_READ(1) or MEMGETINFO, {type=MTD_NORFLASH, flags=MTD_WRITEABLE|MTD_BIT_WRITEABLE, size=0x10000, erasesize=0x10000, writesize=0x1, oobsize=0, padding=0}) = 0
>
> So the erasesize differs!!!
> How can this be? Just depends on kernel options?
> Best regards
> Arno
>
>
> > Gesendet: Montag, 17. Juli 2017 um 10:27 Uhr
> > Von: star at gmx.li
> > An: meta-xilinx at yoctoproject.org
> > Betreff: [meta-xilinx] uboot-utils fw_setenv ends up with wrong CRC in environment
> >
> > With update to yocto2.3 I started using the vanilla 4.9 kernel. (currently out of tree, as I don't know howto build a recipe to build from kernel.org sources).
> > This works for me with minor changes (backporting the spi-zynq-qspi.c).
> >
> > But I found a strange problem. The tool "fw_setenv" (out of u-boot utils) doesn't work anymore - after usage I get a destroyed environment. ("fw_readenv works - but only until usage of fw_setenv).
> > I checked a few things, but I end up, that just changing the kernel is the issue (neither u-boot, nor the utils, nor the devicetree). I am wonding what can be the reason for that? Is some kernel setting missing?
> > --
> > _______________________________________________
> > meta-xilinx mailing list
> > meta-xilinx at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-xilinx
> >
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
>
More information about the meta-xilinx
mailing list