[SLOF] [PATCH 00/11] Integrate libnet into paflof instead of net-snk

Thomas Huth thuth at redhat.com
Sat Sep 10 05:51:58 AEST 2016


This patch series introduces some glue code in paflof that is
needed for linking it with libnet. Once everything is in place,
we finally switch the libnet from net-snk to paflof. This way,
network booting is now much faster (at least with QEMU TCG),
since we do not have to go through the client interface for
each network packet anymore. We also save some precious space in
the firmware binary and RAM now, since we do not need net-snk
for board-qemu anymore.
Note that this patch series still does not get rid of net-snk
completely since it still contains the biosemu code for board-js2x.
Moving that into a proper library will be done in a later patch
series, since I wanted to keep this one here small and reviewable.

Thomas Huth (11):
  paflof: Use CFLAGS from make.rules instead of completely redefining
    them
  paflof: Copy sbrk code from net-snk
  paflof: Add a write_mm_log helper function
  paflof: Provide get_timer() and set_timer() helper functions
  paflof: Add socket(), send() and recv() functions to paflof
  paflof: Add a read() function to read keyboard input
  Link libnet code to Paflof and add a wrapper for netboot()
  Do not link libnet to net-snk anymore
  Add a Forth-to-C wrapper for the ping command, too
  libnet: Make sure to close sockets when we're done
  Do not include net-snk in the build of board-qemu anymore

 board-qemu/Makefile                                |   2 +-
 board-qemu/romfs/boot_rom.ffs                      |   1 -
 board-qemu/slof/Makefile                           |   8 +-
 clients/net-snk/Makefile                           |   2 +-
 clients/net-snk/app/Makefile                       |   2 +-
 clients/net-snk/app/main.c                         |   5 -
 include/helpers.h                                  |   1 +
 {clients/net-snk => lib/libc}/include/sys/socket.h |   0
 lib/libnet/Makefile                                |   3 +-
 lib/libnet/libnet.code                             |  26 ++++
 lib/libnet/libnet.in                               |   3 +
 lib/libnet/netapps.h                               |   2 +-
 lib/libnet/netload.c                               |   8 +-
 lib/libnet/ping.c                                  |  24 ++--
 lib/libnet/time.h                                  |   6 +
 slof/Makefile.inc                                  |  17 ++-
 slof/allocator.c                                   |   9 +-
 slof/fs/packages/obp-tftp.fs                       |  11 +-
 slof/helpers.c                                     |  27 ++++
 slof/ppc64.c                                       | 145 ++++++++++++++++++++-
 slof/ppc64.h                                       |   2 +-
 slof/sbrk.c                                        |  39 ++++++
 22 files changed, 298 insertions(+), 45 deletions(-)
 rename {clients/net-snk => lib/libc}/include/sys/socket.h (100%)
 create mode 100644 lib/libnet/libnet.code
 create mode 100644 lib/libnet/libnet.in
 create mode 100644 lib/libnet/time.h
 create mode 100644 slof/sbrk.c

-- 
1.8.3.1



More information about the SLOF mailing list