[ 
https://issues.apache.org/jira/browse/MYNEWT-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15783779#comment-15783779
 ] 

Marko Kiiskila commented on MYNEWT-523:
---------------------------------------

Here's some immediate help.
Bootloader builds include a lot of things which are actually not used. I made 
some changes to give ability to exclude some of the bigger items from there.

Here's my target for building bootloader with RSA for nrf51 blenano:
targets/boot_nrf51_blenano
    app=@apache-mynewt-core/apps/boot
    bsp=@apache-mynewt-core/hw/bsp/nrf51-blenano
    build_profile=optimized
    syscfg=TIMER_0=0:UART_0=0

And this the size then:
Size of Application Image: app
  FLASH     RAM 
     35     192 *fill*
     94       0 apps_boot.a
   2933    4004 boot_bootutil.a
     72       0 boot_nrf51_blenano-sysinit-app.a
    128       0 crt0.o
      8       0 crti.o
     16       0 crtn.o
   7668       0 crypto_mbedtls.a
    386     444 hw_bsp_nrf51-blenano.a
     32       0 hw_cmsis-core.a
    384       0 hw_hal.a
    698       0 hw_mcu_nordic_nrf51xxx.a
    441      24 kernel_os.a
    470      32 libc_baselibc.a
     72       0 libg.a
   1680       0 libgcc.a
    282       4 mypkgs_rsa_key.a
    539     128 sys_flash_map.a
    314      12 sys_mfg.a

objsize
   text    data     bss     dec     hex filename
  16252      56    4352   20660    50b4 
/Users/marko/src2/incubator-mynewt-blinky/bin/targets/boot_nrf51_blenano/app/apps/boot/boot.elf


> boot - boot loader with BOOTUTIL_SIGN_RSA/EC is too large
> ---------------------------------------------------------
>
>                 Key: MYNEWT-523
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-523
>             Project: Mynewt
>          Issue Type: Bug
>          Components: Bootloader
>    Affects Versions: v1_0_0_beta1
>            Reporter: Simon Ratner
>            Assignee: Marko Kiiskila
>
> With image signatures enabled, boot loader weighs in at ~27kB, which is too 
> big for both the nrf51 and nrf52. Even disabling most of mbedtls and only 
> keeping minimum required features comes to 25kB(EC) / 20kB(RSA).
> Without signature support, boot loader is ~12kB.
> Maybe consider secp256r1 with tinycrypt as an option for smaller footprint?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to