Age | Commit message (Collapse) | Author | Files | Lines |
|
These two compiler flags for additional warnings help to improve the quality
of the source code: Removed some unused code and fixed some obvious bugs.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
The biosemu on bimini had some problems with newer versions of GCC ... I saw
on a couple of websites that for lwbrx and lhbrx, the assembler constraint
"Z" should be used instead of "r". This seems to fix the hang.
|
|
So far the net-snk could only use networking cards that had corresponding
drivers in the ROM filesystem. NICs that come with their of FCODE drivers were
not supported yet. For these NICs I added now a pseudo-module to the net-snk
that is able to use the corresponding device tree nodes via the "read" and
"write" functions of the client interface.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
These additional files are necessary to built board-js2x, see the following
URL for details: http://www.ibm.com/developerworks/power/pa-slof-js20/
|
|
The TFTP downloads failed when the read request packet got lost.
This problem is now fixed by retransmitting the read request after a while.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
The compiler flags -Wmissing-prototypes and -Wstrict-prototypes generally help
to write code with proper prototypes. This way one can avoid some ugly bugs
because it helps to identify functions that do not have prototypes in headers.
It also helps to improve performance since local functions then have to be
declared "static", so the compiler can do better optimizations.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Added a driver for the "virtio-net" virtualized network devices from KVM/qemu.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Fixed network booting for device tree nodes that do not provide a
local-mac-address property by default.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
|
|
When the biosemu has been enabled, there were some additional compiler warnings
showing up which have been silenced now.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
These delays were needed to get the code running on the PowerStation again.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Fixed an "unused-but-set" warning and removed the obsolete "-a32" parameter.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
DMA transfers can only happen within a dedicated DMA window, so we need
special functions for allocating buffers and for mapping these buffers in and
out again.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Our "portable" types are defined in stdint.h, so there is no need for the
types.h header files anymore.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Replaced "make" by "$(MAKE)" to be able to built in parallel, fixed
the indentation of some rules and removed some unused targets.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
The function for determining the PHB Unit ID had a bug - when translating the
address, it used the PCI child node for starting the translation. However,
since the PHB Unit ID is bound to the PCI bus root node, we've got to use that
node as starting point instead.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
GCC 4.6 complains about unused-but-set variables - which can safely be removed
in our cases.
Also fixed a strict-aliasing problem in rtas_flash.c of board-js2x.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
The /vdevice/l-lan device tree node from qemu uses a 8-byte wide
local-mac-address property instead of a normal 6-byte wide one.
According to a comments in the qemu code, this is necessary for backward
compatibility with old Linux kernels, so the problem is not going to be fixed
on the qemu side and we've got to take care about this in SLOF instead.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Due to some bad built rules, client has always been linked during each built.
This has been fixed now so that it only gets rebuild when something has changed.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
printf does not work during rtas_init of snk yet, so the code has to use the
snk_kernel_interface instead.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Cleaned up the toc-relative assembly of net-snk, fixed the Makefiles, save the
modules as ELF files instead of raw binaries, adjust the net-snk base address
and the load-base variable... a lot of changes were required to make the net-snk
and the snk modules relocatable, too. But now it should be possible to relocate
all files so that the firmware also runs with less than 256 MiB RAM.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
The byte-swapping functions were scattered all over the source tree, now they
are merged into a new common header file called byteswap.h.
Signed-off-by: <thuth@linux.vnet.ibm.com>
|
|
We've got a getchar() function already in our libc, so there is no need to
define a second one within the net-snk code itself.
Signed-off-by: <thuth@linux.vnet.ibm.com>
|
|
CFLAGS and LDFLAGS are declared in make.rules already and should not be
redefined in sub-folders.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Cleaned up some remainders of SNK modules that have never been used in
production.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
The make.rules of net-snk now uses the rules of the main make.rules file, too,
so that it is not necessary anymore to configure everything twice.
Also replaced the non-intuitive NEW_BUILD variable with the simply "V" flag
variable, so that you can now type "make V=x" with x being either 0, 1 or 2
for controlling the verbosity level of the build process.
Finally I also replaced the "echo -e" constructs with printfs since "echo -e"
is not POSIX compliant and and thus does not work other shells than bash.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Added a new board for SLOF running on KVM/qemu.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
|
|
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
|