summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* autoconfiscateJeremy Kerr2008-12-096-65/+458
| | | | | | Add autoconf, but keep non-recursive Makefile structure. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* tests: add tests for assorted ydl and ubuntu configsJeremy Kerr2008-12-074-0/+69
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* kboot parser: Add UUID and LABEL testsJeremy Kerr2008-12-072-0/+20
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* yaboot parser: fix cfg_getc inlineJeremy Kerr2008-12-071-1/+1
| | | | | | | | | | Current build fails with: petitboot/devices/yaboot-cfg.c:151: undefined reference to `cfg_getc' As it it maked inline. This change un-inlines this function. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Include limits.hGeoff Levand2008-12-071-0/+1
| | | | | | | | | | Fixes these build errors: petitboot-udev-helper.c:415: error: 'PATH_MAX' undeclared petitboot-udev-helper.c:496: error: 'INT_MAX' undeclared Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Remove unneded kboot patchGeoff Levand2008-12-071-343/+0
| | | | | | | Remove the unneeded Ubuntu ps3-kboot support patch. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Version 0.2Jeremy Kerr2008-01-111-1/+1
| | | | | | | We don't need a major.minor.patch version string, jsut major.minor is fine. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Unify boot messagesJeremy Kerr2008-01-081-1/+1
| | | | | | Both linux and gameos boots have elipses. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Give boot messages time to display.Jeremy Kerr2008-01-081-2/+1
| | | | | | | | | | | Currently we don't see booting messages, as petitboot has quit before the fbdev has updated. By using twin_window_draw() in pboot_message, we force the refresh before petitboot exits. Also, don't exit in the gameOS path - may as well leave the GUI active while rebooting. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Print ststus message when bootingJeremy Kerr2008-01-083-5/+19
| | | | | | | | | | Add a couple of calls to pboot_message() to give some feedback when an option (or gameos) is selected. Also, convert pboot_message to varargs, to allow more flexible message formats. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add define for boot-game-os binaryJeremy Kerr2008-01-082-1/+2
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Use git-ls-files for make dist targetJeremy Kerr2008-01-081-9/+5
| | | | | | To make sure we won't miss any files. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Rename udev-helper to petitboot-udev-helperJeremy Kerr2008-01-083-7/+8
| | | | | | | .. so that the installed binary looks more like a component of petitboot, not udev. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix check for null initrd and boot argsJeremy Kerr2008-01-071-2/+2
| | | | | | | Because the strings are read from the pb socket, we need to check for an empty string, not a NULL string. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Make kboot_parser global options array staticJeremy Kerr2008-01-071-1/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add kexec argument loggingJeremy Kerr2008-01-071-2/+11
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Ignore /dev/loop* devicesJeremy Kerr2008-01-071-1/+2
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Don't log in removable device poll loopsJeremy Kerr2008-01-071-11/+2
| | | | | | This creates large log files. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Create uuid and label symlinks when mounting devicesJeremy Kerr2008-01-073-2/+99
| | | | | | | | | When we discover a device with ID_FS_UUID or ID_FS_LABEL properties, create a symlink in the mount tree. This will end up with a mount tree structure mirroring /dev, and allow devices to be referenced by uuid when booting is attempted. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Rework device-path handlingJeremy Kerr2008-01-0715-85/+194
| | | | | | | | | | | | | Pass full device paths around, rather than shortened device names and mountpoints. The parse() function has been updated to only take a device path; the mountpoint can be derived with mountpoint_for_device. Also, add initial handling for uuid= and label= syntaxes. This allows us to remap ps3 devices where necessary. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Don't reset dev->id in yaboot parserJeremy Kerr2008-01-041-1/+1
| | | | | | | - this may end up giving duplicate IDs for different partitions. It's fine to keep the device where we discovered the config file. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Move path maniuplation functions to devices/paths.cJeremy Kerr2008-01-0310-108/+128
| | | | | | | This allows us to include the real functions in the parser testsuite, instead of using fakes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Don't #include <libio.h>Jeremy Kerr2007-12-211-1/+0
| | | | | | | It isn't present on uClibc, and we don't seem to need anything from this header. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix path in udev rule exampleJeremy Kerr2007-12-211-1/+1
| | | | | | | The default prefix is /usr, so the correct path to the udev-helper script is /usr/sbin. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Log udev-helper output to /var/log/, not /var/tmp/Jeremy Kerr2007-12-211-1/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Remove completed items from TODOJeremy Kerr2007-09-121-2/+0
| | | | | | | We've got controller support, and the kboot parser can handle device prefixes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Update ps3-kboot patchJeremy Kerr2007-09-121-7/+7
| | | | | | | Ubuntu's ps3-kboot has been updated, so update our patch to match, and fix the missing -. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add 'make check' and 'make distcheck' targetsJeremy Kerr2007-08-231-1/+10
| | | | | | Provides an easy way to test the working dir and tarball. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add parser tests, clean up test systemJeremy Kerr2007-08-236-19/+98
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add ps3 controller supportJeremy Kerr2007-08-232-2/+78
| | | | | | | Using the new twin joystick API, map some of the sixaxis controller events to key events. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add utils dir to tarballJeremy Kerr2007-08-171-0/+1
| | | | | | make dist left it out. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Resolve device paths in kernel and initrd locations.Jeremy Kerr2007-06-278-50/+144
| | | | | | | | Instead of mounting in random locations, create a fixed mapping between device and mountpoint. This allows the parsers to refer to files outside the current partition. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Use --disable-x11 for configuring libtwin in kboot.Jeremy Kerr2007-06-271-1/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Use --std=gnu99, not c99.Jeremy Kerr2007-06-261-1/+1
| | | | | | c99 seems to break byteorder.h Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* kboot parser: add facility for default optionsJeremy Kerr2007-06-262-3/+52
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add todo for kboot device pathsJeremy Kerr2007-04-101-0/+1
| | | | Signed-off-by: Jeremy Kerr
* Include COPYING and TODO in dist targetJeremy Kerr2007-04-061-0/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* More TODO items, ready for 0.0.1 releasev0.0.1Jeremy Kerr2007-04-051-9/+12
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Use shorter status bar stringJeremy Kerr2007-04-051-2/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix another bogon in log()Jeremy Kerr2007-04-051-1/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add petitboot utilitiesJeremy Kerr2007-04-052-0/+309
| | | | | | A udev script and a patch to feisty's ps3-kboot package. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add GPLJeremy Kerr2007-04-051-0/+340
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* More robusst comment-ignoring in kboot parser.Jeremy Kerr2007-04-051-0/+3
| | | | | | The previous check wouldn't ignore comment lines that contain an '='. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Stop on first valid config foundJeremy Kerr2007-04-051-1/+1
| | | | | | Removed the stop case during testing, so put it back now. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix random bytes in string in kboot parserJeremy Kerr2007-04-051-0/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix bogon in parser testJeremy Kerr2007-04-051-1/+1
| | | | | | fprintf isn't vfprintf. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Use pb_log in the udev-helper.Jeremy Kerr2007-04-053-15/+17
| | | | | | Rather than printf(), as stdout gets lost in the ether. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Merge ssh://ozlabs.org//home/jk/git/petitbootJeremy Kerr2007-04-051-2/+31
|\
| * Fill up TODO listBenjamin Herrenschmidt2007-04-051-2/+31
| | | | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* | Separate parsing infrastructure and add test wrapperJeremy Kerr2007-04-059-141/+245
|/ | | | | | | | Add a parsers.h header, providing the interface that parsers should be written to (instead of the olf udev-helper.h). This allows us to build the parsers into a separate test executable. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
OpenPOWER on IntegriCloud