Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 21:06
    codysch starred UpdateHub/updatehub
  • 13:59

    fbertux on master

    conf/layer.conf: Set layer comp… (compare)

  • 13:58

    fbertux on master

    conf/layer.conf: Set layer comp… (compare)

  • 13:57

    fbertux on master

    conf/layer.conf: Set layer comp… (compare)

  • 13:56

    fbertux on master

    conf/layer.conf: Set layer comp… (compare)

  • 13:55

    fbertux on master

    conf/layer.conf: Set layer comp… (compare)

  • 13:11

    otavio on master

    general: Use json for requests … (compare)

  • 13:11
    otavio closed #267
  • 12:50
    Jonathas-Conceicao review_requested #267
  • 12:50
    Jonathas-Conceicao opened #267
  • 12:22

    otavio on master

    updatehub: Run rollback callbac… (compare)

  • 12:22
    otavio closed #266
  • 12:01
    Jonathas-Conceicao review_requested #266
  • 11:41
    Jonathas-Conceicao synchronize #266
  • Mar 28 21:44

    otavio on master

    uh-qemu-armv5e: Remove unnecess… u-boot-updatehub-fw-utils: Remo… (compare)

  • Mar 27 21:41
    Jonathas-Conceicao review_requested #266
  • Mar 27 21:41
    Jonathas-Conceicao opened #266
  • Mar 26 21:02

    fbertux on master

    updatehub-active-inactive-backe… (compare)

  • Mar 26 20:05

    otavio on master

    updatehub-active-get: Allow boa… (compare)

  • Mar 26 17:10

    otavio on master

    Improve repository README and g… (compare)

mtahirbutt
@mtahirbutt
hi i still see the same message

tahir@ubuntu:~/zephyrproject$ cd zephyr/
tahir@ubuntu:~/zephyrproject/zephyr$ source zephyr-env.sh
tahir@ubuntu:~/zephyrproject/zephyr$ cd ..
tahir@ubuntu:~/zephyrproject$ cd bootloader/
tahir@ubuntu:~/zephyrproject/bootloader$ cd mcuboot/
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot$ cd boot/
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot$ cd zephyr/
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr$ git branch

  • (HEAD detached at 1084100)
    manifest-rev
    tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x$ cmake -GNinja -DBOARD=disco_l475_iot1 ..
    -- Application: /home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr
    -- Zephyr version: 2.2.99
    -- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.9", minimum required is "3.6")
    -- Board: disco_l475_iot1
    -- Found west: /home/tahir/.local/bin/west (found suitable version "0.7.2", minimum required is "0.6.0")
    -- Found toolchain: zephyr (/home/tahir/zephyr-sdk-0.11.2)
    -- Loading /home/tahir/zephyrproject/zephyr/boards/arm/disco_l475_iot1/disco_l475_iot1.dts as base
    -- Overlaying /home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/dts.overlay
    Devicetree header saved to '/home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr/include/generated/devicetree_unfixed.h'
    Parsing /home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/home/tahir/zephyrproject/zephyr/boards/arm/disco_l475_iot1/disco_l475_iot1_defconfig'
    Merged configuration '/home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/prj.conf'
    Configuration saved to '/home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr/.config'
    Kconfig header saved to '/home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.0
    -- The CXX compiler identification is GNU 9.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /home/tahir/zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Cache files will be written to: /home/tahir/.cache/zephyr
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x
    tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x$ ninja
    [1/235] Preparing syscall dependency handling

[230/235] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region Used Size Region Size %age Used
FLASH: 46896 B 64 KB 71.56%
SRAM: 29596 B 96 KB 30.11%
IDT_LIST: 168 B 2 KB 8.20%
[235/235] Linking C executable zephyr/zephyr.elf
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x$ cd zephyr/
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr$ grep -nr . -e FLASH_CTRL
Binary file ./CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_default.c.obj matches
Binary file ./zephyr.elf matches
Binary file ./zephyr_prebuilt.elf matches
Binary file ./libzephyr.a matches
Binary file ./zephyr.bin matches
./disco_l475_iot1.dts.pre.tmp:44: label = "FLASH_CTRL";
./zephyr.dts:42: label = "FLASH_CTRL";
./include/generated/devicetree_unfixed.h:1470:#define DT_ST_STM32L4_FLASH_CONTROLLER_40022000_LABEL "FLASH_CTRL"
./include/generated/devicetree_unfixed.h:1552:#define DT_FLASH_AREA_MCUBOOT_DEV "FLASH_CTRL"
./include/generated/devicetree_unfixed.h:1559:#define DT_FLASH_AREA_0_DEV "FLASH_CTRL"
./include/generated/devicetree_unfixed.h:1588:#define DT_FLASH_AREA_IMAGE_0_DEV "FLASH_CTRL"
./include/generated/devicetree_unfixed.h:1595:#define DT_FLASH_AREA_1_DEV "FLASH_CTRL"
./include/generated/devicetree_unfixed.h:1624:#define DT_FLASH_AREA_IMAGE_1_DEV "FLASH_CTRL"
./include/generated/devicetree_unfixed.h:1631:#define DT_FLASH_AREA_2_DEV "FLASH_CTRL"
./include/generated/devicetree_unfixed.h:1660:#define DT_FL

tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr$ sha256sum zephyr.bin zephyr.elf
f9a0ac6bda0d9a528a58ec0561a04b58180767a7e79483220fa43500044e0eed zephyr.bin
bc2c3033420c52d91e0c9a2d59d6bc6f6c80d431e8f1d316c7cae39a030e972f zephyr.elf
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr$ west flash
FATAL ERROR: --build-dir was not given, and neither /home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr nor /home/tahir/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr/build are zephyr build directories.
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x/zephyr$ cd ..
tahir@ubuntu:~/zephyrproject/bootloader/mcuboot/boot/zephyr/build_stm32l4x$ west flash
Booting Zephyr OS build zephyr-v2.2.0-541-g1c79096559f5
[00:00:00.005,000] <inf> mcuboot: Starting bootloader
[00:00:00.005,000] <err> mcuboot: Flash device FLASH_CTRL not found
Gerson Fernando Budke
@nandojve
Now, you need create a issue on Zephyr and add your full procedure and logs.
We need ST guys to help with [00:00:00.005,000] <err> mcuboot: Flash device FLASH_CTRL not found
It's not an updatehub issue anymore.
Did you flash version that I sent to you here on chat?
The binaries are not same size.
mtahirbutt
@mtahirbutt
I think i pasted what i did here
I have modified .prj file
ohh yes
Gerson Fernando Budke
@nandojve
My binary have
FLASH: 47364 B 64 KB 72.27%
SRAM: 26524 B 96 KB 26.98%
IDT_LIST: 168 B 2 KB 8.20%
Your have:
FLASH: 46896 B 64 KB 71.56%
SRAM: 29596 B 96 KB 30.11%
IDT_LIST: 168 B 2 KB 8.20%
there are too much differences.
please, give a try with my binary
before open an issue.
mtahirbutt
@mtahirbutt
ok
Gerson Fernando Budke
@nandojve
you should use SDK 0.11.2
mtahirbutt
@mtahirbutt
yes i did
mtahirbutt
@mtahirbutt
okay i did
but same results
there is a question
in the console i see Booting Zephyr OS build zephyr-v2.2.0-541-g1c79096559f5
[00:00:00.005,000] <inf> mcuboot: Starting bootloader
[00:00:00.005,000] <err> mcuboot: Flash device FLASH_CTRL not found
but i am building with 2.2.99
Gerson Fernando Budke
@nandojve
Open an issue at Zephyr and share how you build and results.
mtahirbutt
@mtahirbutt
can you share the link
please
where i can post the issue
Gerson Fernando Budke
@nandojve
simple create a new bug:
mtahirbutt
@mtahirbutt
hi I tried with latest zephyr
i do not see this behaviour with that.
i mean the error
Gerson Fernando Budke
@nandojve
Sorry, I don't understand.
mtahirbutt
@mtahirbutt
i mean i tried with zepyhr 2.2.99 with mcuboot outside
zephyr repos
even with zepyhr 2.0
with mcuboot inside zephyr
there i do not see these messages
or error
during run time
even zephyr main line was working fine only problem comes when i try to upload image
when i switched to master i see this problem
mtahirbutt
@mtahirbutt
just a question why u are using sha256 on binary and hex files
I think signing is done when some application is used in combination with mcuboot
Gerson Fernando Budke
@nandojve
Fixed 2h ago
Please, @mtahirbutt check it and report on the issue for erwango.
Gerson Fernando Budke
@nandojve
Please, check this doc update too.