summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Zero parser globals before useGeoff Levand2009-07-094-2/+20
| | | | Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add default video arg to kernel command lineGeoff Levand2009-07-091-2/+30
| | | | | | | Add the current bootloader video mode to the kernel command line when the command line does not have a video mode specified. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add ncurses joystick supportGeoff Levand2009-07-0911-9/+278
| | | | Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Update item text on editGeoff Levand2009-07-093-28/+112
| | | | | | Update the boot option menu item text on edit. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Remove unused ked status ked_boot.Geoff Levand2009-07-092-8/+1
| | | | | | Remove unused code for the ked return status ked_boot. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Remove nc menu descriptionGeoff Levand2009-07-095-38/+23
| | | | | | Remove some unused nc menu description code. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* CUI add empty itemGeoff Levand2009-07-097-14/+72
| | | | | | Add a CUI hot-key 'o' that opens a new empty menu item. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add generic CUI programGeoff Levand2009-07-093-3/+290
| | | | | | Add a non-PS3 CUI program. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Fix CUI scrollGeoff Levand2009-07-091-0/+3
| | | | | | | A call to pos_menu_cursor() is needed when items are added to menu. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Fix ps3 boot game OSGeoff Levand2009-07-091-2/+1
| | | | | | Fix the PS3 boot game OS item. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Display version on debug buildsGeoff Levand2009-07-091-0/+5
| | | | | | Display the program version in the main menu for debug builds. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add PS3 timeout optionGeoff Levand2009-07-091-4/+10
| | | | | | | Add an option --timeout to the PS3 CUI program to enable the use of the autoboot timer. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add PS3 reset default optionGeoff Levand2009-07-093-13/+22
| | | | | | Add a --reset-defaults option to the PS3 CUI program. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add PS3 countdown timerGeoff Levand2009-07-093-15/+66
| | | | | | Add countdown timer support to the PS3 UI programs. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add CUI countdown timerGeoff Levand2009-07-092-8/+51
| | | | | | Add support for a petitboot CUI countdown timer. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add generic UI countdown timerGeoff Levand2009-07-093-1/+182
| | | | | | Add support for a generic petitboot UI countdown timer. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Remove ked ctrl-B hot keyGeoff Levand2009-07-091-14/+3
| | | | | | | Remove ked ctrl-B hot key. It is just as easy to hit enter twice. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Fix ked backspaceGeoff Levand2009-07-091-9/+18
| | | | | | | | Fix a bug in the ked editor field backspace logic. Stop deleting chars when cursor reaches front of feild buffer. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Simplify kexecGeoff Levand2009-07-091-14/+14
| | | | | | Simplify the pb_run_kexec() routine. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Fix kexec callGeoff Levand2009-07-091-8/+15
| | | | | | | Fix the preparation of kexec call args. kexec wants the param and value in the same arg. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Quiet wgetGeoff Levand2009-07-091-6/+9
| | | | | | Add the --quiet option to wget for non-debug builds. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Log child outputGeoff Levand2009-07-091-2/+14
| | | | | | Redirect the output of child processes to pb_log. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Remove discover sd to ps3d hackGeoff Levand2009-07-091-8/+0
| | | | | | | This is now old enough to be retired and allow config files on ps3d devices to refer to scsi devices. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* makefile INSTALL variablesGeoff Levand2009-07-092-4/+9
| | | | | | Add more INSTALL variables to the makefile. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Fix nc-cui commentGeoff Levand2009-07-091-4/+4
| | | | | | A simple comment move. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
* Add PS3 ncurses CUI programGeoff Levand2009-06-304-5/+558
| | | | | | | | Add a PS3 ncurses CUI program, and the configure option --enable-ps3 to control its build. The default is --enable-ps3=yes. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add ncurses UI supportGeoff Levand2009-06-303-1/+602
| | | | | | | Add helper routines to support ncurses UI programs. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add ncurses boot option editorGeoff Levand2009-06-303-1/+418
| | | | | | | Add an ncurses boot option editor. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add ncurses UI menuGeoff Levand2009-06-305-1/+703
| | | | | | | Add support for an ncurses UI menu object. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add udhcpc utility scriptGeoff Levand2009-06-302-1/+41
| | | | | | | | | | Add a udhcpc utility script. udhcpc can be configured to run a specified script when there is a change in the dhcp configuration. This udhcpc utility script will write a petitboot netboot message to the petitboot user event socket. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add pb-event helper utilityGeoff Levand2009-06-303-3/+109
| | | | | | | | | Add a new helper utility pb_event. pb_event reads data on stdin and writes it to the petitboot event socket. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add discover user eventGeoff Levand2009-06-307-3/+333
| | | | | | | Add a gereric event interface to pb-discover. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Make udev_event a generic eventGeoff Levand2009-06-308-130/+213
| | | | | | | | | | The struct udev_event can be used as a generic event, so rename it struct event and move it from udev.h into a new file event.h. Also, rename the emums UDEV_ACTION_ADD and UDEV_ACTION_REMOVE to ACTION_UDEV_ADD and ACTION_UDEV_REMOVE. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add ui-system helper routinesGeoff Levand2009-06-304-2/+201
| | | | | | | | | | | | Add some UI system helper routines: pb_run_kexec() pb_elf_hash() pb_cat_hash() pb_opt_hash() Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add remote file loading routinesGeoff Levand2009-06-303-1/+326
| | | | | | | | Create the new files loader.h and loader.c for loading remote file specifed by its URL. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add URL parsing routinesGeoff Levand2009-06-303-1/+249
| | | | | | | | | Create the new files url.h and url.c for parsing URL strings. The new structure struct pb_url holds the results of the parse operation. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Switch device-handler to system helpersGeoff Levand2009-06-301-100/+14
| | | | | | | Convert device-handler to use the common lib system routines. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Move common system routines to libGeoff Levand2009-06-304-4/+182
| | | | | | | | | | | | Move some of the common system operations to lib system routines. Creates these common routines: pb_mkdir_recursive() pb_rmdir_recursive() pb_run_cmd() Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add URL test to resolve_pathGeoff Levand2009-06-301-0/+8
| | | | | | | | | | Add a check to discover's resolve_path() to test if the path is a URL, and if so just return that path. If the path has "file://", treat it as a local path. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add discover device reportGeoff Levand2009-06-303-12/+97
| | | | | | | | | | Fillout the missing discover code that reports current devices. Replaces device_handler_get_current_devices() with two new accessor routines device_handler_get_device_count() and device_handler_get_device(). Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Remove device handler test codeGeoff Levand2009-06-301-33/+4
| | | | | | | | | Remove the test code from device-handler.c and hookup handler.devices and handler.n_devices in device_handler_get_current_devices(). Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add test case for empty yaboot.conf fileGeoff Levand2009-06-301-0/+6
| | | | | | | Add a test case for empty yaboot.conf files. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Check if yaboot.conf files are emptyGeoff Levand2009-06-301-1/+6
| | | | | | | Add a yaboot parser check to ignore empty yaboot.conf files. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Remove unneeded conf stripGeoff Levand2009-06-301-5/+0
| | | | | | | | conf_get_param_pair() already runs conf_strip_str() on value, so remove a redundent conf_strip_str() call. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Udev log socket deviceGeoff Levand2009-06-301-0/+2
| | | | | | | To aid problem resolution log the udev socket device to the pb_log. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add udev triggerGeoff Levand2009-06-303-0/+13
| | | | | | | | Add a new routine udev_trigger() that requests a replay of system udev events. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Increase protocol payload size to 64KiBGeoff Levand2009-06-301-1/+1
| | | | | | | | | | | Increase the protocol payload size from 8 KiB to 64 KiB. Udev uses some really long device names for USB mass storage devices so the config file data can easily excceed the protocol payload. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Revert const device in discover_client_opsGeoff Levand2009-06-302-4/+4
| | | | | | | | | | | | | | Make the device structure passed to the discover_client_ops callbacks writable. Commit 2b42cdd35ccd83c52e9df257efdfcda040d170d9 (Make client ops constant) changed the discover_client_ops callback routine arguments to be pointers to const device structures. Typically, the callback routines will initialize and destroy the device.ui_info and boot_option.info variables, so the device instance must be writable by the callback routines. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix memmove sizeGeoff Levand2009-06-302-2/+3
| | | | | | | Correct the byte count for several memmove calls. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* PS3 platform routinesGeoff Levand2009-03-303-2/+312
| | | | | | | | | | | Add new files ui/common/ps3.h and ui/common/ps3.c with platform specific routines to access the PS3 flash memory and to get and set the PS3 video mode. The flash routines use the ps3-utils library. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
OpenPOWER on IntegriCloud