aboutsummaryrefslogtreecommitdiff
path: root/slof/fs/packages
AgeCommit message (Collapse)AuthorFilesLines
2013-10-04Add GPT supportAvik Sil1-10/+106
Add support for booting from a GPT partitioned disk. Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2013-06-03iso9660: Don't constantly reallocate the read bufferBenjamin Herrenschmidt1-6/+8
If it's big enough, re-use it ! Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-05-21disk-label: Allocate 4096 bytes for 4k block devicesDinar Valeev1-3/+3
To make 4k scsi devices to work, allocated memory needs to be increased accordingly Tested in the following scenario: modprobe scsi_debug dev_size_mb=100 sector_size=4096 parted /dev/sdc u b p Model: Linux scsi_debug (scsi) Disk /dev/sdc: 209715200B Sector size (logical/physical): 4096B/4096B Partition Table: msdos Number Start End Size Type File system Flags 1 262144B 2097151B 1835008B primary boot, prep, type=41 2 2097152B 200015871B 197918720B primary type=83 qemu-system-ppc64 -enable-kvm -M pseries -m 1024 -nographic -drive file=/dev/sdc,if=none,format=raw,id=drive-scsi0 -device scsi-block,drive=drive-scsi0,id=scsi0 -vga none Signed-off-by: Dinar Valeev <dvaleev@suse.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-05-21disk-label: Increase the max size of the PReP boot partitionBenjamin Herrenschmidt1-2/+2
Some folks put a whole zImage in there, and we can easily cope with more than 8M nowadays. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-05-13Fix disk-label package to use proper instance pathBenjamin Herrenschmidt1-2/+2
This fixes booting from a path that has an explicitly specified unit address on a wildcard node Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-01-04Spelling fixes in comments and debug messagesStefan Weil1-1/+1
Most of these errors were found by codespell: controler -> controller appropiate -> appropriate devide -> divide comming -> coming seperate -> separate reponsible -> responsible initialization -> initialization successfull -> successful whithin -> within recieve -> receive wich -> which occurence -> occurrence beggining -> beginning accessable -> accessible proccess -> process succesfuly -> successfully immediatly -> immediately prefered -> preferred avaliable -> available threshhold -> threshold statistsics -> statistics endianess -> endianness positon -> position writen -> written occurence -> occurrence upto -> up to overwriten -> overwritten availabe -> available enviroment -> environment intruction -> instruction thru -> through substract -> subtract occured -> occurred begining -> beginning lenght -> length atributes -> attributes preceeding -> preceding defintion -> definition decriptor -> descriptor Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2012-04-30Fixed some bugs in the bootinfo.txt parsing codeThomas Huth1-3/+21
The bootinfo.txt parsing code assumed that the filename to the boot loader always contained a backslash. However, this is maybe not the case if the boot loader has been put into the root directory of the filesystem. For example SLES 8 used "boot &device;:1,yaboot.chrp" in its boot-script. Now we look for the &device; string instead which should always work. SLOF also failed if there were parameters after the path to the boot loader. Now we take care of the parameters, too. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2012-04-30Fixed ISO9660 filesystem directory parsing with a lot of entriesThomas Huth1-7/+18
According to the ISO9660/Ecma-119 standard, directory entries must not cross the boundary of a sector. That means that there might be some padding after the last directory entry that still fitted into a sector. SLOF did not take this into account yet so it failed to find files in directories which used more than one sector for its directory entries. Now we are taking the padding into account so the "file not found" problems should be gone. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2012-02-14Fixed disk-label partition parsing to also work with single partition argumentsThomas Huth1-5/+22
The parse-partition function was not able to deal with arguments that only contained a partition number (without comma), e.g. "boot disk:1" failed. Also limited the size that we load from a PReP partition in case the hard disk is smaller than max-prep-partition-blocks. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-24Fixed memory leak during network loadingThomas Huth1-3/+1
Fixed two memory leaks: - The PCI class file for network nodes did not properly close the obp-tftp package - The obp-tftp package used "select-dev" for setting a property in /chosen which created some instances that were not closed anymore Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
2011-11-17Fixed bug in disk-label support packageThomas Huth1-2/+2
The "offset" function only worked for partitions starting within the first 4 GiB of the disk. Also increased the amount of data to be read from a PReP partition since some clients are certainly bigger than 2 MiB nowadays.
2011-11-17Improved ext2-files support packageThomas Huth1-7/+55
- Added support for double and tripple indirect blocks. - For modern revision of ext2, the inode size is configurable and thus has to be read out of the superblock - The group descriptor table can be bigger than one block - Free allocated memory when closing the package
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>
2010-12-01Initial import of slof-JX-1.7.0-4Benjamin Herrenschmidt10-0/+1511
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>