aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-19Workaround for the VSCSI problems with latest qemu versionqemu-slof-20110830Thomas Huth2-3/+17
The VSCSI behaviour of upstream qemu has changed a little bit, so that the read-capacity command from SLOF failed. We now issue a test-unit-ready for normal disks, too, and explicitly check whether read-capacity returned valid values to work-around the problem. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-08-19Fixed some problems with libnvramThomas Huth3-28/+59
- On board-qemu, the logging partitions were too big (bigger than the total NVRAM size). - Fixed a compiler warning about type-punned pointers in nvram.c - When DISABLE_NVRAM is set, the fake buffer should not be accessed with cache-inhibited functions - Makefile did not generate proper dependencies Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-08-19Cleaned up vio-vscsi.fs a little bitThomas Huth1-12/+13
Got rid of the target-id/target-lun hack. Instead we're now creating a temporary node instance for scanning, too. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-06-06Fixed problem with potentially unitialized variable.Thomas Huth1-1/+2
GCC complained about an uninitialized variable in the veth_receive() receive function. And indeed, the buf variable might have been used uninitialized here when the packet could not be handled and the code jumped to the recycle part immediately. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Removed superfluous getchar() function.qemu-slof-20110323Thomas Huth1-11/+0
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>
2011-03-22Do not override CFLAGS and LDFLAGS from main makefile.Thomas Huth3-21/+3
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>
2011-03-22Fixed compiler warningThomas Huth1-1/+2
Silenced a compiler warning that was easy to fix. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Removed obsolete/unused code.Thomas Huth4-36/+4
Cleaned up some remainders of SNK modules that have never been used in production. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Fixed claim problem with accurately fitting areasThomas Huth1-7/+10
The third claim call in the following sequence failed though it should be successful: 5000 1000 0 claim 7000 1000 0 claim 6000 1000 0 claim The problem was that "(?available-segment-#)" returned the wrong value when the two areas (the one to be claimed and the one from the available list) exactly matched. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Fixed iso9660 package to be able to boot Debian and Ubuntu CD-ROM ISO images.Thomas Huth1-5/+10
ISO9660 file names can have a semicolon followed by a revision number in the file name. However, the code for cleaning these file names was broken, since it removed the string pointer and length from the stack. Beside this bug, there were two more problems: ISO9660 file names without extension can have a trailing dot at the end, which must be stripped away. And the file names can all be in uppercase letters (just like old MS-DOS file names), so we should use case insensitive string compare here, too. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Fixed a bug in the set-alias commandThomas Huth1-1/+6
set-alias did not clean up the stack in case the "/aliases" node coud not be found. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Some bugfixes in the boot functionsThomas Huth1-5/+5
ABORT" needs a boolean value on the stack, but ABORT (without quotes at the end) always aborts. In boot.fs, ABORT" has been used without the flag value on the stack. Also added a missing "disable-watchdog" before jumping to the operating system, without this statement, the real JS2x blades rebooted in certain cases due to the non-disarmed watchdog. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Fixed paflof MakefileThomas Huth1-5/+8
Replaced the \t in the sed rules with real tabs since this is more portable (\t only works with the GNU version of sed, not with the BSD version). Also replaced the pushd and popd commands since they are not POSIX compliant, they only work with bash but e.g. not with dash on Debian/Ubuntu systems. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-22Improved make.rules filesThomas Huth2-41/+37
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>
2011-03-22Initial qemu/KVM board supportBenjamin Herrenschmidt70-59/+3667
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>
2011-03-21Use common timebase and delay code in all boards.Thomas Huth2-9/+8
There is a file called timebase.fs in the common code folder already, so there is no need to duplicate the delay functions in the board directories, too. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-03-21Add preliminary gitignoreBenjamin Herrenschmidt1-0/+6
2010-12-01Initial import of slof-JX-1.7.0-4Benjamin Herrenschmidt423-0/+62267
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>