1. 07 4月, 2009 1 次提交
  2. 08 1月, 2009 1 次提交
    • S
      fix modules_install via NFS · 8b249b68
      Sam Ravnborg 提交于
      Rafael reported:
      
      I get the following error from 'make modules_install' on my test boxes:
      
        HOSTCC  firmware/ihex2fw
      /home/rafael/src/linux-2.6/firmware/ihex2fw.c:268: fatal error: opening dependency file firmware/.ihex2fw.d: Read-only file system
      compilation terminated.
      make[3]: *** [firmware/ihex2fw] Error 1
      make[2]: *** [_modinst_post] Error 2
      make[1]: *** [sub-make] Error 2
      make: *** [all] Error 2
      
      where the configuration is that the kernel is compiled on a build box
      with 'make O=<destdir> -j5' and then <destdir> is mounted over NFS read-only by
      each test box (full path to this directory is the same on the build box and on
      the test boxes).  Then, I cd into <destdir>, run 'make modules_install' and get
      the error above.
      
      The issue turns out to be that we when we install firmware pick
      up the list of firmware blobs from firmware/Makefile.
      And this triggers the Makefile rules to update ihex2fw.
      
      There were two solutions for this issue:
      1) Move the list of firmware blobs to a separate file
      2) Avoid ihex2fw rebuild by moving it to scripts
      
      As I seriously beleive that the list of firmware blobs should be
      done in a fundamental different way solution 2) was selected.
      Reported-and-tested-by: N"Rafael J. Wysocki" <rjw@sisk.pl>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      8b249b68
  3. 03 8月, 2008 1 次提交
  4. 10 7月, 2008 2 次提交
    • D
      ihex: Add support for long records to ihex2fw.c · 59890f74
      David Woodhouse 提交于
      Some drivers could do with using records like Intel HEX, but with each
      record being larger than 256 bytes. This has been possible in the binary
      representation (struct ihex_binrec) in the kernel since the beginning --
      at least of the the current version of history. But we haven't been able
      to represent that in the .HEX files which get converted to .fw files.
      
      This adds a '-w' option to ihex2fw to make it interpret the first _two_
      bytes of each line as the record length, instead of only one byte. And
      adds makefile rules for %.H16->%.fw which use that.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      59890f74
    • D
      ihex: add ihex2fw tool for converting HEX files into firmware images · 8bd6b222
      David Woodhouse 提交于
      Not the straight conversion to binary which objcopy can do for us, but
      actually representing each record with its original {addr, length},
      because some drivers need that information preserved.
      
      Fix up 'firmware_install' to be able to build $(hostprogs-y) too.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      8bd6b222