1. 07 5月, 2018 12 次提交
  2. 03 5月, 2018 2 次提交
  3. 02 5月, 2018 13 次提交
  4. 01 5月, 2018 3 次提交
  5. 30 4月, 2018 2 次提交
  6. 29 4月, 2018 8 次提交
    • A
      tools: mkimage: Check for datafile when type is script · 8c84287a
      Alex Kiernan 提交于
      If generating a script image and no datafile has been passed in, mkimage
      dies with SIGSEGV:
      
        #0  __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
        #1  0x0000000000403818 in main
            at tools/mkimage.c:503
      
      Add explicit test for datafile to fix this.
      Signed-off-by: NAlex Kiernan <alex.kiernan@gmail.com>
      8c84287a
    • A
      tools: mkenvimage: Fix possible segfault on stdin input · c3b115f4
      Alexander Dahl 提交于
      The size of 'filebuf' was not increased as more and more bytes are read
      from stdin, but 'filebuf' was always reallocated to the same fix size.
      This works as long as only less bytes than the initial buffer size come
      in, for more input this will segfault. (It actually does, I tested
      that.) So for each loop cycle the buffer size has to be increased by the
      number of bytes we want to read.
      Signed-off-by: NAlexander Dahl <ada@thorsis.com>
      c3b115f4
    • A
      tools: mkenvimage: Fix read() stdin error handling · 3559028c
      Alexander Dahl 提交于
      On success read() returns the number of bytes read or zero for EOF. On
      error -1 is returned and errno is set, so the right way to test if read
      had failed is to test the return value instead of errno.
      Signed-off-by: NAlexander Dahl <ada@thorsis.com>
      3559028c
    • P
      serial: serial_stm32: Rename status register flags · 8dc4e1fb
      Patrice Chotard 提交于
      Uart status register is named USART_ISR on STM32F7, STM32H7
      and STM32MP1 SoCs family, but USART_SR only on STM32F4 SoCs.
      
      Use USART_ISR_ prefix instead of USART_SR_ .
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      8dc4e1fb
    • P
      serial: serial_stm32: Enable overrun · 7b3b74d3
      Patrice Chotard 提交于
      Enable uart overrun feature which allows to benefits of uart
      FIFO usage.
      
      Previously overrun management was disabled, this has to effect
      to bypassed the uart FIFO usage even if FIFO was enabled.
      In particular configuration, for example when video console is
      enabled, copy/pasting a long command line in console results in
      corruption. This is due to the fact that a lot of time is consumed
      in flushing the cache during frame buffer update, so uart chars are
      not read fast enough.
      
      By using uart FIFO and managing overrun, long command line can by
      copy/paste in console without being corrupted.
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      7b3b74d3
    • A
      spl: disk: usb: Add dependencies to sprintf/strto* · ab9e12f6
      Alex Kiernan 提交于
      If SPL serial support is disabled nothing brings in sprintf, snprintf
      or simple_strtoul:
      
        env/built-in.o: In function `regex_callback':
        env/attr.c:128: undefined reference to `sprintf'
        disk/built-in.o: In function `blk_get_device_by_str':
        disk/part.c:386: undefined reference to `simple_strtoul'
        disk/part.c:395: undefined reference to `simple_strtoul'
        disk/built-in.o: In function `blk_get_device_part_str':
        disk/part.c:522: undefined reference to `simple_strtoul'
        disk/built-in.o: In function `part_set_generic_name':
        disk/part.c:704: undefined reference to `sprintf'
        drivers/built-in.o: In function `init_peripheral_ep':
        drivers/usb/musb-new/musb_gadget.c:1826: undefined reference to `sprintf'
        drivers/built-in.o: In function `musb_core_init':
        drivers/usb/musb-new/musb_core.c:1451: undefined reference to `snprintf'
      
      Add those dependencies here.
      Signed-off-by: NAlex Kiernan <alex.kiernan@gmail.com>
      ab9e12f6
    • A
      Consolidate __assert_failed into one implementation · e21c03be
      Alex Kiernan 提交于
      We had two implementations of __assert_failed which were almost identical,
      combine them into one.
      Signed-off-by: NAlex Kiernan <alex.kiernan@gmail.com>
      e21c03be
    • A
      spl: Disable printf if not required · 4f1eed75
      Alex Kiernan 提交于
      Now we have a guard for printf, disable it in the build if it's not
      selected.
      Signed-off-by: NAlex Kiernan <alex.kiernan@gmail.com>
      4f1eed75