Hello Mike Banon,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to review the following change.
Change subject: SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies ......................................................................
SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies
If you'd like to add the useful floppies to your coreboot (read about them at http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, then this change is for you! It contains two valuable patches together with a Makefile mod needed to automatically apply these patches to a cloned SeaBIOS before its' compilation.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console) https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all available floppy images instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
Patch descriptions are available at these links, and just in case here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console)
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got
10 entries because of multiple hard drives / secondary payloads / floppies)
- the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all available floppy images instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch 3 files changed, 551 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/1
diff --git a/payloads/external/SeaBIOS/Makefile b/payloads/external/SeaBIOS/Makefile index e505c8c..ae58c8c 100644 --- a/payloads/external/SeaBIOS/Makefile +++ b/payloads/external/SeaBIOS/Makefile @@ -76,7 +76,18 @@ # echo "# CONFIG_SMBIOS is not set" >> seabios/.config $(MAKE) -C seabios olddefconfig OUT=out/
-build: config +patch: + if [ -d seabios ]; then \ + cd seabios; \ + if [ ! -f .patched ]; then \ + echo " PATCH SeaBIOS $(TAG-y)"; \ + patch -p1 < ./../advanced_bootmenu.patch; \ + patch -p1 < ./../multiple_floppies.patch; \ + touch .patched; \ + fi; \ + fi + +build: config patch echo " MAKE SeaBIOS $(TAG-y)" $(MAKE) -C seabios OUT=out/
diff --git a/payloads/external/SeaBIOS/advanced_bootmenu.patch b/payloads/external/SeaBIOS/advanced_bootmenu.patch new file mode 100644 index 0000000..c914588 --- /dev/null +++ b/payloads/external/SeaBIOS/advanced_bootmenu.patch @@ -0,0 +1,332 @@ +diff --git a/src/boot.c b/src/boot.c +index 9f82f3c..f94dd27 100644 +--- a/src/boot.c ++++ b/src/boot.c +@@ -463,6 +463,7 @@ get_keystroke(int msec) + * Boot menu and BCV execution + ****************************************************************/ + ++#define BOOTMENU_PAGE_SIZE 18 + #define DEFAULT_BOOTMENU_WAIT 2500 + + // Show IPL option menu. +@@ -478,59 +479,282 @@ interactive_bootmenu(void) + ; + + char *bootmsg = romfile_loadfile("etc/boot-menu-message", NULL); +- int menukey = romfile_loadint("etc/boot-menu-key", 1); +- printf("%s", bootmsg ?: "\nPress ESC for boot menu.\n\n"); ++ int menukey = romfile_loadint("etc/boot-menu-key", 1); // custom menukey ++ printf("%s", bootmsg ?: "\nPress ESC or \ / slash for boot menu.\n\n"); + free(bootmsg); + + u32 menutime = romfile_loadint("etc/boot-menu-wait", DEFAULT_BOOTMENU_WAIT); + enable_bootsplash(); + int scan_code = get_keystroke(menutime); + disable_bootsplash(); +- if (scan_code != menukey) ++ if (scan_code != menukey && // custom menukey ++ scan_code != 1 && // ESC ++ scan_code != 43 && // '' char on keyboard ++ scan_code != 53 && // '/' char on keyboard ++ scan_code != 98) { // '/' char on numpad ++ if (scan_code == -1) ++ printf("No key pressed.\n"); ++ else ++ printf("Not a menukey pressed.\n"); + return; ++ } + + while (get_keystroke(0) >= 0) + ; + +- printf("Select boot device:\n\n"); + wait_threads(); + +- // Show menu items ++ char keyboard_keys[35] = {'1','2','3','4','5','6','7','8','9','0', ++ 'q','w','e','r','t','y','u','i','o','p', ++ 'a','s','d','f','g','h','j','k','l', ++ 'z','x','c','v','b','n'}; /* m = TPM */ ++ int numpad_scancodes[10] = { 82, 79, 80, 81, 75, 76, 77, 71, 72, 73 }; ++ int numpi = 0; // Key index: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. ++ int digits = 0; // Numerical length of a current choice number. ++ int decode = 0; // Decode the current choice number into a letter? ++ int entry_id = 0; ++ char desc[77]; ++ ++ printf("Select boot device"); ++ ++ // Show menu items after counting them and determining a number of pages. ++ // Only 35 boot menu items (36 if to count a TPM) are supported currently. ++ + int maxmenu = 0; + struct bootentry_s *pos; +- hlist_for_each_entry(pos, &BootList, node) { +- char desc[77]; ++ hlist_for_each_entry(pos, &BootList, node) + maxmenu++; +- printf("%d. %s\n", maxmenu ++ ++ if (maxmenu > 10) { ++ if (maxmenu > 35) ++ maxmenu = 35; ++ if (maxmenu > BOOTMENU_PAGE_SIZE) ++ printf(" - page 1 :"); ++ else ++ printf(": "); ++ printf(" // press ENTER after your numpad input"); ++ if (maxmenu > BOOTMENU_PAGE_SIZE) ++ printf(" - if any -\n " ++ " // - or to switch between the pages...\n"); ++ else ++ printf(" (if any)\n\n"); ++ } else { ++ printf(":\n\n"); ++ } ++ ++ hlist_for_each_entry(pos, &BootList, node) { ++ if (entry_id == BOOTMENU_PAGE_SIZE) // Show only the first page. ++ break; ++ printf("%c. %s\n", keyboard_keys[entry_id] + , strtcpy(desc, pos->description, ARRAY_SIZE(desc))); ++ entry_id++; + } ++ int tpm_cshm = 0; + if (tpm_can_show_menu()) { +- printf("\nt. TPM Configuration\n"); ++ tpm_cshm = 1; ++ printf("\nm-. TPM Configuration"); + } +- +- // Get key press. If the menu key is ESC, do not restart boot unless +- // 1.5 seconds have passed. Otherwise users (trained by years of +- // repeatedly hitting keys to enter the BIOS) will end up hitting ESC +- // multiple times and immediately booting the primary boot device. +- int esc_accepted_time = irqtimer_calc(menukey == 1 ? 1500 : 0); ++ printf("\n> "); ++ ++ // Do not restart boot on menukey press, unless DEFAULT_BOOTMENU_WAIT msecs ++ // have passed. Otherwise users (trained by years of repeatedly hitting keys ++ // to enter the BIOS) will end up hitting menukey multiple times and ++ // immediately booting the primary boot device. ++ int esc_accepted_time = irqtimer_calc(DEFAULT_BOOTMENU_WAIT); ++ int choice = 0, kb_choice = 0; ++ int page_num = 1; ++ int enter = 0; ++ int backspace = 0; ++ int tpm_show_menu = 0; + for (;;) { + scan_code = get_keystroke(1000); +- if (scan_code == 1 && !irqtimer_check(esc_accepted_time)) +- continue; +- if (tpm_can_show_menu() && scan_code == 20 /* t */) { ++ if (scan_code == menukey || // custom menukey ++ scan_code == 1 || // ESC ++ scan_code == 43 || // '' char on keyboard ++ scan_code == 53 || // '/' char on keyboard ++ scan_code == 98) { // '/' char on numpad ++ if (!irqtimer_check(esc_accepted_time)) ++ continue; ++ if (digits == 2) // Remove the decoded "(*)" ++ printf(" \b\b\b"); ++ /* Remove the existing input before printing a message. */ ++ for (; digits > 0; digits--) ++ printf("\b \b"); ++ printf("Menukey pressed.\n"); ++ return; ++ } ++ kb_choice = 0; ++ /* 4 rows of keyboard_keys: 1 row with numbers, 3 rows with letters. ++ Use any of them to select a boot device (except the TPM 'm-' keys) */ ++ // 1st range: 1-9 and 0 (10) keys <==> 2-11 scan codes <==> 1-10 choice ++ if (scan_code >= 2 && scan_code <= 11) kb_choice = scan_code - 1; ++ // 2nd range: Q-P row of letters <==> 16-25 scan codes <==> 11-20 choice ++ if (scan_code >= 16 && scan_code <= 25) kb_choice = scan_code - 5; ++ // 3rd range: A-L row of letters <==> 30-38 scan codes <==> 21-29 choice ++ if (scan_code >= 30 && scan_code <= 38) kb_choice = scan_code - 9; ++ // 4th range: Z-N row of letters <==> 44-49 scan codes <==> 30-35 choice ++ if (scan_code >= 44 && scan_code <= 49) kb_choice = scan_code - 14; ++ // ENTER: (28) on keyboard, (96) on numpad. ++ if (scan_code == 28 || scan_code == 96) ++ enter = 1; ++ // BCKSPC: '<-'(14) and 'Delete'(111) on keyboard, '.Del'(83) on numpad. ++ if (scan_code == 14 || scan_code == 111 || scan_code == 83) ++ backspace = 1; ++ // TPM keys: 'm'(50) and '-'(12) chars on keyboard, '-'(74) on numpad. ++ if ((scan_code == 50 || scan_code == 12 || scan_code == 74) && tpm_cshm) ++ tpm_show_menu = 1; ++ ++ if (kb_choice != 0 || tpm_show_menu) { ++ if (kb_choice > maxmenu) { ++ if (!tpm_show_menu) ++ continue; ++ } else { ++ choice = kb_choice; ++ } ++ if (digits == 2) // Remove the decoded "(*)" ++ printf(" \b\b\b"); ++ /* Remove the existing input before printing a choice. */ ++ for (; digits > 0; digits--) ++ printf("\b \b"); ++ if (!tpm_show_menu) { ++ // Choice is any of the detected boot devices ==> lets boot! ++ break; ++ } ++ } else { ++ // Internal/USB Numpad console interface. ++ if (digits < 9) { ++ for (numpi = 0; numpi < 10; numpi++) { ++ if (scan_code == numpad_scancodes[numpi]) { ++ if (maxmenu <= 10) { // Console interface is not needed. ++ if ((numpi != 0 && numpi <= maxmenu) || ++ (numpi == 0 && 10 <= maxmenu)) { // 10(0) ++ choice = numpi; ++ enter = 1; // Fake ENTER to boot this entry now. ++ } else { // If no such an entry, don't try to boot. ++ break; ++ } ++ } else { ++ if (digits == 2) { ++ printf(" \b\b\b"); // Remove the decoded "(*)" ++ if (choice == 0) { ++ printf("\b\b \b\b"); // Remove "10". ++ digits = 0; ++ } ++ } ++ choice = 10 * choice + numpi; ++ } ++ if (choice > 0) { ++ printf("%d", numpi); // Print the entered digit. ++ digits++; ++ } else { ++ if (10 <= maxmenu) ++ printf("10(0)\b\b\b"); ++ else ++ printf("10(?)\b\b\b"); ++ digits = 2; ++ } ++ if (choice > 9 && digits == 2) // Decode into a letter. ++ decode = 1; ++ break; ++ } ++ } ++ } ++ if (backspace && digits > 0) { ++ backspace = 0; ++ choice = choice / 10; ++ if (digits == 2) { ++ printf(" \b\b\b"); // Remove the decoded "(*)" ++ // 0 turned into 10: one more Backspace is needed to remove. ++ if (choice == 0) { ++ printf("\b \b"); ++ digits--; ++ } ++ } ++ printf("\b \b"); // Remove the last entered digit. ++ digits--; ++ if (choice > 9 && digits == 2) // Decode into a letter. ++ decode = 1; ++ } ++ if (decode) { // Decode the current choice number into a letter. ++ decode = 0; ++ if (choice <= maxmenu) { ++ printf("(%c)", keyboard_keys[choice-1]); ++ } else { ++ if (tpm_cshm && choice == 36) ++ printf("(m)"); // For TPM. ++ else ++ printf("(?)"); // No matching letter found. ++ } ++ printf("\b\b\b"); // Move a cursor before the "(*)" ++ } ++ } ++ ++ if (enter) { ++ enter = 0; ++ if (choice == 0) { ++ if (digits == 2) { // for 0 that turned into 10 ++ if (10 <= maxmenu) ++ break; ++ else ++ continue; ++ } ++ // If there are two pages - switch between them. ++ if (maxmenu > BOOTMENU_PAGE_SIZE) { ++ entry_id = 0; ++ page_num = 3 - page_num; // 3 - 1 = 2; 3 - 2 = 1. ++ printf("\n\nSelect boot device - page %d :" ++ " // press ENTER after your numpad input" ++ " - if any -\n " ++ " // - or to switch between the pages...\n", ++ page_num); ++ hlist_for_each_entry(pos, &BootList, node) { ++ if ((page_num == 1 && entry_id == BOOTMENU_PAGE_SIZE) || ++ (page_num == 2 && entry_id == 35)) ++ break; ++ if (page_num == 1 || entry_id >= BOOTMENU_PAGE_SIZE) ++ printf("%c. %s\n", keyboard_keys[entry_id], ++ strtcpy(desc, pos->description, ARRAY_SIZE(desc))); ++ entry_id++; ++ } ++ if (tpm_cshm) ++ printf("\nm-. TPM Configuration"); ++ printf("\n> "); ++ } ++ } else { ++ if (choice > maxmenu) { ++ if (tpm_cshm && choice == 36) ++ tpm_show_menu = 1; ++ } else { ++ // Choice is any of the detected boot devices ==> lets boot! ++ break; ++ } ++ } ++ } ++ ++ if (tpm_show_menu) { ++ tpm_show_menu = 0; ++ choice = 0; ++ if (digits == 0) ++ printf("TPM key pressed."); ++ else ++ digits = 0; + printf("\n"); + tpm_menu(); ++ printf("> "); + } +- if (scan_code >= 1 && scan_code <= maxmenu+1) +- break; ++ } ++ ++ if (choice == 0) // 10(0) ++ choice = 10; ++ ++ if (digits == 0 && choice < 36) { ++ printf("%c", keyboard_keys[choice-1]); ++ if (choice > 9) // Decode into a number. ++ printf("(%d)", choice); + } + printf("\n"); +- if (scan_code == 0x01) +- // ESC +- return; + + // Find entry and make top priority. +- int choice = scan_code - 1; + hlist_for_each_entry(pos, &BootList, node) { + if (! --choice) + break; +diff --git a/src/config.h b/src/config.h +index 93c8dbc..f85cc14 100644 +--- a/src/config.h ++++ b/src/config.h +@@ -19,7 +19,7 @@ + // Space to reserve in high-memory for tables + #define BUILD_MAX_HIGHTABLE (256*1024) + // Largest supported externaly facing drive id +-#define BUILD_MAX_EXTDRIVE 16 ++#define BUILD_MAX_EXTDRIVE 36 + // Number of bytes the smbios may be and still live in the f-segment + #define BUILD_MAX_SMBIOS_FSEG 600 + // Maximum number of bytes the mptable may be and still be copied to f-segment diff --git a/payloads/external/SeaBIOS/multiple_floppies.patch b/payloads/external/SeaBIOS/multiple_floppies.patch new file mode 100644 index 0000000..5249394 --- /dev/null +++ b/payloads/external/SeaBIOS/multiple_floppies.patch @@ -0,0 +1,207 @@ +diff --git a/src/block.h b/src/block.h +index f64e880..aaa236f 100644 +--- a/src/block.h ++++ b/src/block.h +@@ -2,7 +2,7 @@ + #define __BLOCK_H + + #include "types.h" // u32 +- ++#include "romfile.h" // struct romfile_s + + /**************************************************************** + * Disk command request +@@ -48,6 +48,7 @@ struct drive_s { + struct drive_s { + u8 type; // Driver type (DTYPE_*) + u8 floppy_type; // Type of floppy (only for floppy drives). ++ struct romfile_s *floppy_file; // Floppy file (only for virtual floppies). + struct chs_s lchs; // Logical CHS + u64 sectors; // Total sectors count + u32 cntl_id; // Unique id for a given driver type. +diff --git a/src/boot.c b/src/boot.c +index 9f82f3c..79f1e7d 100644 +--- a/src/boot.c ++++ b/src/boot.c +@@ -584,7 +584,7 @@ bcv_prepboot(void) + break; + case IPL_TYPE_FLOPPY: + map_floppy_drive(pos->drive); +- add_bev(IPL_TYPE_FLOPPY, 0); ++ add_bev(IPL_TYPE_FLOPPY, (u32)pos->drive); + break; + case IPL_TYPE_HARDDISK: + map_hd_drive(pos->drive); +@@ -733,6 +733,12 @@ do_boot(int seq_nr) + static void + do_boot(int seq_nr) + { ++ ++ int ret; ++ void *pos; ++ struct romfile_s *file; ++ struct drive_s *drive; ++ + if (! CONFIG_BOOT) + panic("Boot support not compiled in.\n"); + +@@ -744,6 +750,16 @@ do_boot(int seq_nr) + switch (ie->type) { + case IPL_TYPE_FLOPPY: + printf("Booting from Floppy...\n"); ++ drive = (struct drive_s *)ie->vector; ++ file = drive->floppy_file; ++ // File is NULL if a floppy is physical. ++ if (file) { ++ // Copy virtual floppy image into ram. ++ pos = (void *)drive->cntl_id; ++ ret = file->copy(file, pos, file->size); ++ if (ret < 0) ++ break; ++ } + boot_disk(0x00, CheckFloppySig); + break; + case IPL_TYPE_HARDDISK: +diff --git a/src/hw/floppy.c b/src/hw/floppy.c +index 9e6647d..5b37c6c 100644 +--- a/src/hw/floppy.c ++++ b/src/hw/floppy.c +@@ -107,7 +107,7 @@ struct floppyinfo_s FloppyInfo[] VARFSEG = { + }; + + struct drive_s * +-init_floppy(int floppyid, int ftype) ++init_floppy(int floppyid, int ftype, struct romfile_s *ffile) + { + if (ftype <= 0 || ftype >= ARRAY_SIZE(FloppyInfo)) { + dprintf(1, "Bad floppy type %d\n", ftype); +@@ -124,6 +124,7 @@ init_floppy(int floppyid, int ftype) + drive->type = DTYPE_FLOPPY; + drive->blksize = DISK_SECTOR_SIZE; + drive->floppy_type = ftype; ++ drive->floppy_file = ffile; + drive->sectors = (u64)-1; + + memcpy(&drive->lchs, &FloppyInfo[ftype].chs +@@ -134,7 +135,7 @@ addFloppy(int floppyid, int ftype) + static void + addFloppy(int floppyid, int ftype) + { +- struct drive_s *drive = init_floppy(floppyid, ftype); ++ struct drive_s *drive = init_floppy(floppyid, ftype, 0); + if (!drive) + return; + char *desc = znprintf(MAXDESCSIZE, "Floppy [drive %c]", 'A' + floppyid); +diff --git a/src/hw/ramdisk.c b/src/hw/ramdisk.c +index b9e9baa..a679385 100644 +--- a/src/hw/ramdisk.c ++++ b/src/hw/ramdisk.c +@@ -23,40 +23,69 @@ ramdisk_setup(void) + if (!CONFIG_FLASH_FLOPPY) + return; + +- // Find image. +- struct romfile_s *file = romfile_findprefix("floppyimg/", NULL); +- if (!file) +- return; +- const char *filename = file->name; +- u32 size = file->size; +- dprintf(3, "Found floppy file %s of size %d\n", filename, size); +- int ftype = find_floppy_type(size); +- if (ftype < 0) { +- dprintf(3, "No floppy type found for ramdisk size\n"); ++ struct romfile_s *file = NULL; ++ char *filename, *desc; ++ u32 size, max_size = 0; ++ int ftype; ++ void *pos; ++ struct drive_s *drive; ++ ++ // Find the max floppy size ++ for (;;) { ++ // Find the next image. ++ file = romfile_findprefix("floppyimg/", file); ++ if (!file) ++ break; ++ filename = file->name; ++ size = file->size; ++ dprintf(3, "Found floppy file %s of size %d\n", filename, size); ++ // Check if this size is valid. ++ ftype = find_floppy_type(size); ++ if (ftype < 0) { ++ dprintf(3, "No floppy type found for ramdisk size\n"); ++ } else { ++ if (size > max_size) ++ max_size = size; ++ } ++ } ++ if (max_size == 0) { ++ dprintf(3, "No floppies found\n"); + return; + } + + // Allocate ram for image. +- void *pos = memalign_tmphigh(PAGE_SIZE, size); ++ pos = memalign_tmphigh(PAGE_SIZE, max_size); + if (!pos) { + warn_noalloc(); + return; + } +- e820_add((u32)pos, size, E820_RESERVED); ++ e820_add((u32)pos, max_size, E820_RESERVED); ++ dprintf(3, "Allocate %u bytes for a floppy\n", max_size); + +- // Copy image into ram. +- int ret = file->copy(file, pos, size); +- if (ret < 0) +- return; +- +- // Setup driver. +- struct drive_s *drive = init_floppy((u32)pos, ftype); +- if (!drive) +- return; +- drive->type = DTYPE_RAMDISK; +- dprintf(1, "Mapping floppy %s to addr %p\n", filename, pos); +- char *desc = znprintf(MAXDESCSIZE, "Ramdisk [%s]", &filename[10]); +- boot_add_floppy(drive, desc, bootprio_find_named_rom(filename, 0)); ++ // Setup the floppy drivers. ++ file = NULL; ++ for (;;) { ++ // Find the next image. ++ file = romfile_findprefix("floppyimg/", file); ++ if (!file) ++ return; ++ filename = file->name; ++ size = file->size; ++ dprintf(3, "Found floppy file %s of size %d\n", filename, size); ++ ftype = find_floppy_type(size); ++ if (ftype < 0) { ++ dprintf(3, "No floppy type found for ramdisk size\n"); ++ } else { ++ // Setup driver. ++ drive = init_floppy((u32)pos, ftype, file); ++ if (!drive) ++ return; ++ drive->type = DTYPE_RAMDISK; ++ dprintf(1, "Mapping floppy %s to addr %p\n", filename, pos); ++ desc = znprintf(MAXDESCSIZE, "Ramdisk [%s]", &filename[10]); ++ boot_add_floppy(drive, desc, bootprio_find_named_rom(filename, 0)); ++ } ++ } + } + + static int +diff --git a/src/util.h b/src/util.h +index 9c06850..ce3a26d 100644 +--- a/src/util.h ++++ b/src/util.h +@@ -147,7 +147,8 @@ void dma_setup(void); + // hw/floppy.c + extern struct floppy_ext_dbt_s diskette_param_table2; + void floppy_setup(void); +-struct drive_s *init_floppy(int floppyid, int ftype); ++extern struct romfile_s *ffile; ++struct drive_s *init_floppy(int floppyid, int ftype, struct romfile_s *ffile); + int find_floppy_type(u32 size); + int floppy_process_op(struct disk_op_s *op); + void floppy_tick(void);
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies ......................................................................
Patch Set 1:
(17 comments)
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 8: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 15: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 22: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 39: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 42: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 45: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/advanced_b... PS1, Line 314: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 47: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 71: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 84: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 102: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 142: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 153: trailing whitespace
https://review.coreboot.org/#/c/32351/1/payloads/external/SeaBIOS/multiple_f... PS1, Line 192: trailing whitespace
Hello Mike Banon, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to look at the new patch set (#2).
Change subject: SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies ......................................................................
SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies
If you'd like to add the useful floppies to your coreboot (read about them at http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, then this change is for you! It contains two valuable patches together with a Makefile mod needed to automatically apply these patches to a cloned SeaBIOS before its' compilation.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console) https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all available floppy images instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
Patch descriptions are available at these links, and just in case here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console)
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got
10 entries because of multiple hard drives / secondary payloads / floppies)
- the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all available floppy images instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch 3 files changed, 591 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/2
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies ......................................................................
Patch Set 2:
(18 comments)
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 8: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 25: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 32: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 49: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 52: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 55: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 344: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/advanced_b... PS2, Line 357: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 47: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 71: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 84: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 102: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 142: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 153: trailing whitespace
https://review.coreboot.org/#/c/32351/2/payloads/external/SeaBIOS/multiple_f... PS2, Line 192: trailing whitespace
mikeb mikeb has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies ......................................................................
Patch Set 2:
Recently at ./src/boot.c SeaBIOS authors have added the support for >9 boot entries, but it still does not support a USB numpad and no support for >18 boot entries (won't be able to see the first ones). So I had to rebase these two unofficial patches on top of SeaBIOS current master ( sorry, not enough free time to try to get them merged again :P )
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS - unofficial patches: advanced_bootmenu and multiple_floppies ......................................................................
Patch Set 3:
(18 comments)
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 8: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 25: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 32: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 49: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 52: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 55: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 344: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/advanced_b... PS3, Line 357: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 47: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 71: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 84: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 102: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 142: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 153: trailing whitespace
https://review.coreboot.org/#/c/32351/3/payloads/external/SeaBIOS/multiple_f... PS3, Line 192: trailing whitespace
Hello Mike Banon, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to look at the new patch set (#4).
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb
If you'd like to add the useful floppies to your coreboot (read about them at http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, or to boot from your USB flash drive with a write protect switch enabled, - then this change is for you! It contains three valuable patches together with a Makefile mod needed to automatically apply these patches to a cloned SeaBIOS before its' compilation.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console) https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all available floppy images instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
[PATCHv2] Support booting USB drives with a write protect switch enabled https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/FPQEYFM...
Patch descriptions are available at these links, and just in case here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console)
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got
10 entries because of multiple hard drives / secondary payloads / floppies)
- the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all available floppy images instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
[PATCHv2] Support booting USB drives with a write protect switch enabled
At least some USB drives with a write protect switch (e.g. Netac U335) could report "MEDIUM NOT PRESENT" for a while if a write protect is enabled. Instead of stopping the initialization attempts immediately, stop only after getting this report for 3 times, to ensure the successful initialization of such a "broken hardware".
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch A payloads/external/SeaBIOS/writeprotected_usb.patch 4 files changed, 621 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/4
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 4:
(21 comments)
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 8: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 25: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 32: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 49: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 52: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 55: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 344: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/advanced_b... PS4, Line 357: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 47: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 71: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 84: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 102: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 142: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 153: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/multiple_f... PS4, Line 192: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/writeprote... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/writeprote... PS4, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/writeprote... PS4, Line 17: trailing whitespace
https://review.coreboot.org/#/c/32351/4/payloads/external/SeaBIOS/writeprote... PS4, Line 28: trailing whitespace
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 5:
(21 comments)
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 8: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 25: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 32: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 49: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 52: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 55: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 344: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/advanced_b... PS5, Line 357: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 47: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 71: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 84: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 102: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 142: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 153: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/multiple_f... PS5, Line 192: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/writeprote... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/writeprote... PS5, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/writeprote... PS5, Line 17: trailing whitespace
https://review.coreboot.org/#/c/32351/5/payloads/external/SeaBIOS/writeprote... PS5, Line 28: trailing whitespace
Hello Mike Banon, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to look at the new patch set (#6).
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb
If you'd like to add the useful floppies to your coreboot (read about them at http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, or to boot from your USB flash drive with a write protect switch enabled, - then this change is for you! It contains three valuable patches together with a Makefile mod needed to automatically apply these patches to a cloned SeaBIOS before its' compilation.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console) https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all available floppy images instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
[PATCHv2] Support booting USB drives with a write protect switch enabled https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/FPQEYFM...
Patch descriptions are available at these links, and just in case here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console)
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got
10 entries because of multiple hard drives / secondary payloads / floppies)
- the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all available floppy images instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
[PATCHv2] Support booting USB drives with a write protect switch enabled
At least some USB drives with a write protect switch (e.g. Netac U335) could report "MEDIUM NOT PRESENT" for a while if a write protect is enabled. Instead of stopping the initialization attempts immediately, stop only after getting this report for 3 times, to ensure the successful initialization of such a "broken hardware".
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch A payloads/external/SeaBIOS/writeprotected_usb.patch 4 files changed, 621 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/6
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 6:
(21 comments)
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 8: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 25: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 32: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 49: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 52: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 55: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 344: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/advanced_b... PS6, Line 357: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 11: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 47: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 71: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 84: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 102: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 142: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 153: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/multiple_f... PS6, Line 192: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/writeprote... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/writeprote... PS6, Line 7: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/writeprote... PS6, Line 17: trailing whitespace
https://review.coreboot.org/#/c/32351/6/payloads/external/SeaBIOS/writeprote... PS6, Line 28: trailing whitespace
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 7:
(21 comments)
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/a... PS7, Line 357: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/m... PS7, Line 192: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/w... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/w... PS7, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/w... PS7, Line 17: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/7/payloads/external/SeaBIOS/w... PS7, Line 28: trailing whitespace
Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 7:
Small bump to make it easier to find
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 8:
(21 comments)
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/a... PS8, Line 357: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/m... PS8, Line 192: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/w... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/w... PS8, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/w... PS8, Line 17: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/8/payloads/external/SeaBIOS/w... PS8, Line 28: trailing whitespace
Hello Mike Banon, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to look at the new patch set (#9).
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb
If you'd like to add the useful floppies to your coreboot (read about them at http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, or to boot from your USB flash drive with a write protect switch enabled, - then this change is for you! It contains three valuable patches together with a Makefile mod needed to automatically apply these patches to a cloned SeaBIOS before its' compilation.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console) https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all available floppy images instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
[PATCHv2] Support booting USB drives with a write protect switch enabled https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/FPQEYFM...
Patch descriptions are available at these links, and just in case here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support (console)
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got
10 entries because of multiple hard drives / secondary payloads / floppies)
- the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all available floppy images instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
[PATCHv2] Support booting USB drives with a write protect switch enabled
At least some USB drives with a write protect switch (e.g. Netac U335) could report "MEDIUM NOT PRESENT" for a while if a write protect is enabled. Instead of stopping the initialization attempts immediately, stop only after getting this report for 3 times, to ensure the successful initialization of such a "broken hardware".
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch A payloads/external/SeaBIOS/writeprotected_usb.patch 4 files changed, 621 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/9
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 9:
(21 comments)
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 20: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/a... PS9, Line 357: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/m... PS9, Line 192: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/w... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/w... PS9, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/w... PS9, Line 17: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/9/payloads/external/SeaBIOS/w... PS9, Line 28: trailing whitespace
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 10:
(21 comments)
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 20: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 357: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 192: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 17: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/10/payloads/external/SeaBIOS/... PS10, Line 28: trailing whitespace
Hello Mike Banon, build bot (Jenkins), Martin Roth, Stefan Reinauer,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to look at the new patch set (#11).
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb
If you'd like to add many useful floppies to your coreboot (learn more: http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, or to boot from your USB flash drive with a write protect switch enabled, - then this change is for you! It contains three valuable patches together with a Makefile mod needed to automatically apply these patches to a cloned SeaBIOS before its' compilation.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad console https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all the available floppies instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
[PATCHv2] Support booting USB drives with a write protect switch enabled https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/FPQEYFM...
Patch descriptions are available at these links, and here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got >10 entries because of multiple hard drives / secondary payloads / floppies) - the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all the available floppies instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
[PATCHv2] Support booting USB drives with a write protect switch enabled
At least some USB drives with a write protect switch (e.g. Netac U335) could report "MEDIUM NOT PRESENT" for a while if a write protect is enabled. Instead of stopping the initialization attempts immediately, stop only after getting this report for 3 times, to ensure the successful initialization of such a "broken hardware".
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch A payloads/external/SeaBIOS/writeprotected_usb.patch 4 files changed, 631 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/11
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 11:
(21 comments)
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 20: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 357: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 192: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 17: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 28: trailing whitespace
Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 11:
At least a "writeprotected_usb" patch should be mergeable to a SeaBIOS official repository, last time didn't get any reasons for not merging it, other than "broken hardware" :P Will try again...
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 11: Code-Review+1
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 11:
(2 comments)
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/Makefile:
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 93: patch -p1 < "./../advanced_bootmenu.patch" ; \ : patch -p1 < "./../multiple_floppies.patch" ; \ : patch -p1 < "./../writeprotected_usb.patch" ; \ Maybe use a naming scheme with numbers and a wildcard here... 0001_advanced... 0002_multiple... 0003_writeprotect.... then you can add to / update your patch stack without having to change the Makefile every time.
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/11/payloads/external/SeaBIOS/... PS11, Line 1: diff -- maybe stuff these in a patches/ subdirectory (similar to crossgcc)
Kevin OConnor has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 11:
There's three patches here. The third patch was sent to the seabios mailing list just yesterday - in general it looks fine and I'd be inclined to merge it into seabios.
As discussed in the past on the seabios mailing list, I don't agree with the first two patches. The first patch adds significant complexity to the boot menu system for an extremely rare situation (more than about 30 bootable items). Also, since that patch was originally sent, seabios now natively supports more than 10 bootable items. There was a review and discussion on the second patch on the seabios mailing list, but not all the review comments were addressed.
-Kevin
Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 11:
Patch Set 11:
There's three patches here. The third patch was sent to the seabios mailing list just yesterday - in general it looks fine and I'd be inclined to merge it into seabios.
As discussed in the past on the seabios mailing list, I don't agree with the first two patches. The first patch adds significant complexity to the boot menu system for an extremely rare situation (more than about 30 bootable items). Also, since that patch was originally sent, seabios now natively supports more than 10 bootable items. There was a review and discussion on the second patch on the seabios mailing list, but not all the review comments were addressed.
-Kevin
Third patch has been sent at June 2019 and originally had a problem, 1 day later I sent a fixed version but seems it didn't get noticed. So I resent it yesterday. Thank you for reviewing it, if at least this 3rd patch gets merged - it will give me much more reasons to continue working on 2nd, and also check if some other important patches (made not by me) didn't get reviewed too.
Regarding the 1st patch: indeed, someone got merged a fix for ">10 items" problem a bit later, and while I was happy to see it fixed upstream - even if my original work was re-used without giving a credit - the result seemed to have a less convenient user interface and no numpad support. For these reasons I continue using my own version and now this 1st patch is just a replacing rebase of it on top of SeaBIOS master.
Best regards, Mike Banon
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, writeprotected_usb ......................................................................
Patch Set 12:
(21 comments)
File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/fe8b692c_d78b63b0 PS12, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/233fa951_20d18b07 PS12, Line 20: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/89d59547_7319efcc PS12, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/7c90ad0b_1c5d4da2 PS12, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/b0df5d54_5ecf4108 PS12, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/687baebf_89a31875 PS12, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/5f35abab_2c6d1a76 PS12, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/47b51455_e773a0da PS12, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/c560feed_0aa1a0ec PS12, Line 357: trailing whitespace
File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/26d785ad_ff502d66 PS12, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/91df1c06_50109ba9 PS12, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/8c8bdf63_949caba3 PS12, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/be332bcc_985ecb08 PS12, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/ff0a846e_543ec9f9 PS12, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/4982e927_160691a4 PS12, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/2ad190dd_4877e044 PS12, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/95c1978a_2f1f9fac PS12, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/001a16f0_909802a5 PS12, Line 192: trailing whitespace
File payloads/external/SeaBIOS/writeprotected_usb.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/e083e0fe_3340e5a5 PS12, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/b91cf154_9679a474 PS12, Line 17: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/aebc38a8_27dcecac PS12, Line 28: trailing whitespace
Hello Mike Banon, build bot (Jenkins), Martin Roth, Kevin OConnor, Stefan Reinauer,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to look at the new patch set (#13).
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies ......................................................................
SeaBIOS patches: advanced_bootmenu, multiple_floppies
If you'd like to add many useful floppies to your coreboot (learn more: http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, - - then this change is for you! It contains two valuable patches together with a Makefile mod needed to automatically apply these patches to a cloned SeaBIOS before its' compilation.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad console https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all the available floppies instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
Patch descriptions are available at these links, and here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got >10 entries because of multiple hard drives / secondary payloads / floppies) - the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all the available floppies instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch 3 files changed, 601 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/13
Attention is currently required from: Mike Banon. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies ......................................................................
Patch Set 13:
(18 comments)
File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/17641b95_27d3c5b5 PS13, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/139547de_13bc83c0 PS13, Line 20: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/4ad0148b_8e292832 PS13, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/0f50d2b2_0e19f0f1 PS13, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/925ffcb7_0f633a46 PS13, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/390d87dd_375278a8 PS13, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/c1c90120_ea18059a PS13, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/7d204975_1cc59a0e PS13, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/de266402_ca848bbc PS13, Line 357: trailing whitespace
File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/2f73ff59_5519877d PS13, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/ac320f83_572b2d88 PS13, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/bff8b0de_4968e9a0 PS13, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/411d7dbe_e5d2cf5b PS13, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/ed8f8a4b_5cff1f6b PS13, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/9a67a53d_d5e5470d PS13, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/5eacab96_421a8744 PS13, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/629ee841_7a61bbb4 PS13, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/430c2035_4cb21aa7 PS13, Line 192: trailing whitespace
Attention is currently required from: Stefan Reinauer, Mike Banon. Mike Banon has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies ......................................................................
Patch Set 13:
(1 comment)
File payloads/external/SeaBIOS/Makefile:
https://review.coreboot.org/c/coreboot/+/32351/comment/bb01356e_a31793da PS11, Line 93: patch -p1 < "./../advanced_bootmenu.patch" ; \ : patch -p1 < "./../multiple_floppies.patch" ; \ : patch -p1 < "./../writeprotected_usb.patch" ; \
Maybe use a naming scheme with numbers and a wildcard here... 0001_advanced... 0002_multiple... […]
Thank you for a good idea, although I should just work on these patches to get them merged and then this "unofficial change" workaround could disappear
Attention is currently required from: Stefan Reinauer. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies ......................................................................
Patch Set 14:
(18 comments)
File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/5496523f_4c3d66a4 PS14, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/ffba5dd9_62bd202c PS14, Line 20: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/ea3ba0df_d7da3e76 PS14, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/e6396b02_3faeb021 PS14, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/7094a927_f93590c6 PS14, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/c735637e_d3b55f51 PS14, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/f37d3bbb_13600048 PS14, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/69599b9c_8cda46ed PS14, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/03e06d28_9d68ff2c PS14, Line 357: trailing whitespace
File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/1f5edfb9_35ab4c05 PS14, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/f5ec1fd6_f0fbbcb8 PS14, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/4ad0ce26_c1a057de PS14, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/549eaba9_d0e238d2 PS14, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/4baade60_0c940672 PS14, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/2de677a4_d7fef3f0 PS14, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/e96c8658_5e39c5c1 PS14, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/8b0ea6eb_b5dff2fd PS14, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/e72fefea_72262afc PS14, Line 192: trailing whitespace
Attention is currently required from: Stefan Reinauer. Hello Mike Banon, build bot (Jenkins), Martin Roth, Kevin OConnor, Stefan Reinauer,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32351
to look at the new patch set (#15).
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, smbios_mptable_768 ......................................................................
SeaBIOS patches: advanced_bootmenu, multiple_floppies, smbios_mptable_768
If you'd like to add many useful floppies to your coreboot (learn more: http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Useful_floppies ), or to use your USB numpad for choosing a SeaBIOS boot entry, or to bump max MPTABLE and SMBIOS sizes from 600 to 768 - then this change is for you! It contains three valuable patches together with a Makefile mod needed to auto-apply these patches to a cloned SeaBIOS before its build.
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad console https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ...
[PATCH v2] ramdisk: search for all the available floppies instead of one https://mail.coreboot.org/pipermail/seabios/2018-December/012670.html
Bump max MPTABLE and SMBIOS sizes from 600 to 768 https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/M3DOOOA...
Patch descriptions are available at these links, and here's a copy:
advanced_bootmenu: up to 35 entries (2 pages if >18), numpad support
Add support for up to 35 boot menu entries (2 pages if >18). To solve the ">10" problem currently experienced by SeaBIOS users (there are no 11, 12, etc. keys on a keyboard - so impossible to choose the last menu entries if you got >10 entries because of multiple hard drives / secondary payloads / floppies) - the boot menu has been extended to the letter keys. NOTE: TPM menu has been moved from T to M letter: it is at the end of keyboard's 3rd row of letters and "Trusted" is adjective while "Module" is a noun; alternatively could press '-'.
Also, add support for a numpad. Small USB numpad could be really convenient for choosing the boot entries at coreboot boards used as (maybe headless) servers. '/' char on numpad could be used to open the boot menu or to exit it. If there are >10 boot menu entries - the numpad console interface will be enabled: press one or two digit keys and then ENTER to confirm your choice, or remove a digit by pressing the '.Del' key. Also you could call TPM with '-' key at any moment, or boot with a single key press of your fullsize keyboard.
[PATCH v2] ramdisk: search for all the available floppies instead of one
All the floppy images available at CBFS will be found and listed in a boot menu, instead of the first found. Could be highly valuable if you are participating in a hobby OS development - would like to test multiple versions of your floppy at the same coreboot image, to reduce the amount of re-flashes and accelerate the development at bare metal - or simply you would like to access multiple floppies as a coreboot user. For example: KolibriOS (nice assembly OS with GUI and apps), FreeDOS, MichalOS, Snowdrop and memtest (coreboot's memtest version is buggy, e.g. external USB keyboard isn't working at some laptops; floppy is much better)
Bump max MPTABLE and SMBIOS sizes from 600 to 768
There are plenty of coreboot platforms whose MPTABLE size is just slightly larger than the current uneven limit of 600 bytes, which prevents these important tables from being copied. For example, G505S has 628 bytes and A88XM-E has 740 bytes. I propose 768 bytes as a new saner default for MPTABLE size, to replace the current uneven limit of 600. SMBIOS size should be bumped the similar way as well.
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Idf4efba31091a8678b51c2f6541d440c5cc6d37d --- M payloads/external/SeaBIOS/Makefile A payloads/external/SeaBIOS/advanced_bootmenu.patch A payloads/external/SeaBIOS/multiple_floppies.patch A payloads/external/SeaBIOS/smbios_mptable_768.patch 4 files changed, 618 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32351/15
Attention is currently required from: Stefan Reinauer. build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, smbios_mptable_768 ......................................................................
Patch Set 15:
(19 comments)
File payloads/external/SeaBIOS/advanced_bootmenu.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/a5ed9bdb_453d9ab6 PS15, Line 8: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/9f2954ac_fa320b1d PS15, Line 20: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/42e153f9_9e9ba733 PS15, Line 25: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/9a51c88a_b6b5cd94 PS15, Line 32: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/5cdf6f86_bf379df3 PS15, Line 49: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/d6814a4e_63ab1ab1 PS15, Line 52: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/9bb950e0_e7e72100 PS15, Line 55: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/12cb72e3_49f51319 PS15, Line 344: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/5d890ccf_828e1b98 PS15, Line 357: trailing whitespace
File payloads/external/SeaBIOS/multiple_floppies.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/90c69d66_35b3f2c9 PS15, Line 7: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/dd5019b7_a379e59f PS15, Line 11: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/a43c6b10_81839b24 PS15, Line 47: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/3b4f944f_e0e30491 PS15, Line 71: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/c74609db_d9874f92 PS15, Line 84: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/2bde7d65_dc1b06b5 PS15, Line 102: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/f9680b56_2a4e0b10 PS15, Line 142: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/4e60e938_53896729 PS15, Line 153: trailing whitespace
https://review.coreboot.org/c/coreboot/+/32351/comment/4e6047db_0580321e PS15, Line 192: trailing whitespace
File payloads/external/SeaBIOS/smbios_mptable_768.patch:
https://review.coreboot.org/c/coreboot/+/32351/comment/5afad516_c5e6f657 PS15, Line 14: trailing whitespace
Attention is currently required from: Stefan Reinauer.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32351 )
Change subject: SeaBIOS patches: advanced_bootmenu, multiple_floppies, smbios_mptable_768 ......................................................................
Patch Set 17: Verified+1
(21 comments)
Commit Message:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/7b5e9c2b_f33682e0 PS17, Line 17: https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/CKWLNTZ... Possible unwrapped commit description (prefer a maximum 72 chars per line)
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/27a11076_705fba7d PS17, Line 23: https://mail.coreboot.org/hyperkitty/list/seabios@seabios.org/thread/M3DOOOA... Possible unwrapped commit description (prefer a maximum 72 chars per line)
File payloads/external/SeaBIOS/advanced_bootmenu.patch:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/38f5fdc6_1e5bf3dd PS17, Line 8: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/b8279c54_89e7bbce PS17, Line 20: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/59e6b4f9_1b5500a2 PS17, Line 25: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/27a796c8_c5f2566e PS17, Line 32: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/11f34b43_1d4fb372 PS17, Line 49: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/4c50b74f_fe114d1c PS17, Line 52: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/dd3c1901_26c25ec7 PS17, Line 55: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/9d8c4abc_4cabb1f5 PS17, Line 344: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/1ee8a020_93b7460e PS17, Line 357: trailing whitespace
File payloads/external/SeaBIOS/multiple_floppies.patch:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/6d8ff935_faaf75fc PS17, Line 7: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/75f5b8b4_f501f34d PS17, Line 11: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/02e0bf08_f00e0b77 PS17, Line 47: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/28edb1cf_ce2fc54c PS17, Line 71: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/84b3e173_10fffa29 PS17, Line 84: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/59506d94_06970bf2 PS17, Line 102: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/c596ec28_e7de1970 PS17, Line 142: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/f2b6f2c2_bdaa2efc PS17, Line 153: trailing whitespace
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/ca61dd09_9c8dd3f5 PS17, Line 192: trailing whitespace
File payloads/external/SeaBIOS/smbios_mptable_768.patch:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164838): https://review.coreboot.org/c/coreboot/+/32351/comment/b5b50bfb_1ade1b73 PS17, Line 14: trailing whitespace