1. 11 Mar, 2015 1 commit
    • Adam Wujek's avatar
      patches/barebox: fix tftp boot sequence · 1140c4b1
      Adam Wujek authored
      Second test of $? value was not always result of command
      "tftp $eth0.ipaddr/wrboot wrboot", but sometimes result of first if statement
      (in case first tftp was successful).
      
      In other words, when there was file wrboot-$eth0.ethaddr on tftp server, script
      was still fetching and executing wrboot.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      1140c4b1
  2. 11 Dec, 2014 1 commit
  3. 28 Nov, 2014 3 commits
    • Alessandro Rubini's avatar
      kernel config: change in timing setup · fe9f6db6
      Alessandro Rubini authored
      This changes the kernel configuration, in two ways:
      
      1- It uses CONFIG_NOHZ, which enables Hight Resolution Timers
      
      Unfortunately this has no effect, as the timeevent device for AT91
      doesn't support oneshot mode.  This means that if you usleep(100)
      you'll wait 10ms.  Thus, we can't remove the busy-looping in libwr/util.c .
      
      This is the output of my libstamp sample program:
      
           0.003 -- stamping overhead
          12.243 -- usleep     1 usec
          10.005 -- usleep     1 usec
           9.963 -- usleep     2 usec
          10.037 -- usleep     5 usec
          10.083 -- usleep    10 usec
           9.905 -- usleep   100 usec
          10.394 -- usleep  1000 usec
          19.775 -- usleep 10000 usec
         109.925 -- usleep 100000 usec
      
      2- It moves CONFIG_HZ from 100 to 1000. Thus, we have 1000 timer interrupts
      per second.
      
      This means, in practice, that if you usleep(100) you wait 1ms.  This
      costs around 2% of CPU power (measured by running a cpu-busy program
      before and after the change, in both cases after killing all
      processes), but makes stuff millisecond-grained instead of
      10ms-grained. This is a benefit for the PTP daemon and everything uses
      timeouts in system calls.
      
      This is libstamp again:
      
           0.003 -- stamping overhead
           0.662 -- usleep     1 usec
           0.869 -- usleep     1 usec
           0.976 -- usleep     2 usec
           0.951 -- usleep     5 usec
           0.993 -- usleep    10 usec
           0.999 -- usleep   100 usec
           1.999 -- usleep  1000 usec
          11.006 -- usleep 10000 usec
         101.043 -- usleep 100000 usec
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      fe9f6db6
    • Alessandro Rubini's avatar
      boot scripts: better examples · 56891b34
      Alessandro Rubini authored
      This updates binaries/wrboot-* to be more commented and complete.
      It also adds wrboot-install and wrboot-nand, that I personally used.
      
      As a side effect, "mem=64m" is removed by all command lines, as it has
      been properly autodetected for a few years now, so it is not needed
      any more.
      
      Documentation is updated too.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      56891b34
    • Alessandro Rubini's avatar
      0b161dcf
  4. 03 Oct, 2014 1 commit
    • Benoit Rat's avatar
      barebox: add new DF AT45DB641E for SCB v3.4 · 490d802d
      Benoit Rat authored
      Standard JEDEC ID is only 24bits to identify a DF chip.
      It also has an optional Extended Device Info (EDI) on bytes 4 and/or 5
      that need to be read to differentiate some DF chips. (i.e, the
      difference between AT45DB641E and AT45DB642D is made by byte 4).
      
      This patch is similar to the kernel one #66595328
      490d802d
  5. 30 Sep, 2014 2 commits
  6. 29 Sep, 2014 3 commits
  7. 24 Sep, 2014 3 commits
  8. 13 Sep, 2014 1 commit
  9. 12 Sep, 2014 2 commits
  10. 01 Aug, 2014 4 commits
  11. 29 Jul, 2014 1 commit
  12. 28 Jul, 2014 2 commits
    • Alessandro Rubini's avatar
      barebox: use more relaxed nand timings · 1425cac7
      Alessandro Rubini authored
      This is similar to the kernel patch, but its impact is less
      important: barebox is only reading nand in our setup, and it looks
      like it never failed (on the other hand, the times were definitely out
      of specifications).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      1425cac7
    • Alessandro Rubini's avatar
      bugfix: kernel: use more relaxed nand timings · bb56d5b5
      Alessandro Rubini authored
      We used the timing from the g45ek, but ours is slower. Actually, ours
      is slower only in 16-bit mode, and has the same timing when used in
      8-bit mode.
      
      Our timing setup was outside of the allowed specification, and resulted
      in random and unreproducible failures.  The "visible" effect is
      that reading 100MB takes 13.4s instead of 11.4s, measured with:
      
        time dd bs=1k count=102400 < /dev/mtd1 > /dev/null
      
      You can try another, still slower, setup just by hand, like this
      (in this order):
      
         devmem 0xffffe83c w 0x00051003
         devmem 0xffffe838 w 0x000f000f
         devmem 0xffffe830 w 0x04060406
      
      but the current settings (41003, 000c000c, 02040204) are alread within
      specification.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      bb56d5b5
  13. 27 Jul, 2014 1 commit
  14. 22 Jul, 2014 1 commit
  15. 24 Jun, 2014 3 commits
  16. 17 Jun, 2014 1 commit
  17. 13 Jun, 2014 2 commits
  18. 10 Jun, 2014 1 commit
  19. 27 May, 2014 2 commits
    • Alessandro Rubini's avatar
      patches/buildroot: to build under ubuntu-14.04, change autoconf docs · f986c7cb
      Alessandro Rubini authored
      Again, suboptimal formatting is now an error in new makeinfo. Worse,
      this looks correct, but the complain is there anyways.  Hack a fix,
      killing a newline that make the parser report the error.
      
      Hope we are done: nobody outside gnu is fool enough to use makeinfo.
      Me excluded, obviously (see wr-switch-sw/doc).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f986c7cb
    • Alessandro Rubini's avatar
      patches/buildroot: to build under ubuntu-14.04 avoid building gcc docs · 57e10c2a
      Alessandro Rubini authored
      Somebody decided that suboptimal formatting is now an error. So the
      new makeinfo errors out when building gcc-4.3.6 because of
      documentation details.  Idiocy has no limits, and we are are bound to
      suffer for that.  I remember when "gnu's not unix, we have higher standards".
      
      This patch prevents gcc documentation to be built when buildroot prepares
      the cross compiler.  Bah.
      
      /alessandro who wasted a whole day on that
      57e10c2a
  20. 13 May, 2014 2 commits
    • Alessandro Rubini's avatar
      flashing: new procedure · 0a793309
      Alessandro Rubini authored
      This changes the flashing procedure, because the previous one did not
      work any more now that the default filesystem size is bigger.
      
      With this commit no jffs2 images is generated any more, and the
      filesystem image is not included as a payload in the initramfs booted
      using the USB tools.
      
      Rather, the initramfs downloads wrs-image.tar.gz using TFTP, from the
      IP address that replied to DHCP, and untars it to the NAND partitions.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      0a793309
    • Alessandro Rubini's avatar
      barebox: force memory size to 64MB · c66964e6
      Alessandro Rubini authored
      This barebox version autodetects memory, but at installation time it
      detects 8MB instead of 64MB.  This patch forces 64MB, like we used to
      do in v2012.05 when no autodetection was there (actually, there the
      pm9g45 harwired 128MB, but this had no side effects for us).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c66964e6
  21. 12 May, 2014 1 commit
  22. 02 May, 2014 2 commits