View Issue Details

IDProjectCategoryView StatusLast Update
0014151CentOS-7-OTHERpublic2017-11-20 15:20
Status newResolutionopen 
Product Version7.4.1708 
Target VersionFixed in Version 
Summary0014151: fw_printenv is bad for banana pi (arm, armv7hl)
Descriptionmy system:
Linux bananapi 4.9.40-203.el7.armv7hl #1 SMP Tue Aug 8 17:17:43 UTC 2017 armv7l armv7l armv7l GNU/Linux

It's the problem with modify the u-boot environment from userspace.

I have uboot-tools-2016.09.01-3.el7.armv7hl

Steps To Reproducein /etc/fw_env.config one uncomment string:

/dev/mmcblk0 0x88000 0x20000 0x20000

$ /usr/bin/fw_printenv
Environment does not start on (erase) block boundary
Additional InformationI see bad place in `fw_env.c`:

if (DEVOFFSET(dev) % DEVESIZE(dev) != 0) {
    fprintf(stderr, "Environment does not start on (erase) block boundary\n");
    errno = EINVAL;
    return -1;

As I understood this code isn't right: 0x88000/0x20000 alway 4.25

old version fw_printenv (from 7.2) don't contain this problem.
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-11-20 14:14 eumaster New Issue