DragonFly users List (threaded) for 2008-08
DragonFly BSD
DragonFly users List (threaded) for 2008-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [GSoC] beastie.4th problem

From: Jordan Gordeev <jgordeev@xxxxxx>
Date: Tue, 19 Aug 2008 11:58:28 +0300

All uses of 'boot' in 'beastie.4th' are of the form "0 boot".
You have two options:
1) Use "0 boot" as the rest of the code does. You can choose which kernel to load by setting an env var just before calling boot. Something like:
s" /kernel.smp/kernel" s" bootfile" setenv
0 boot
2) Read loader(8), specifically the section called "BUILTINS AND FORTH". Then use 'boot' with arguments. Something like this may (or may not) work:
s" /kernel.smp/kernel" 1 boot

Best regards,
     Jordan Gordeev

Louisa Luciani wrote:
I want to add a fancy menu to the LiveDVD to allow users at boot time to choose between UP, SMP and SMP-NOAPIC kernels.
Does anybody know how to get the following piece of code to do that?
I've tried a great number of combinations (just guessing) to no avail. :(

--- /boot/beastie.4th    2008-08-10 20:37:52 +0200
+++ gui/boot/beastie.4th    2008-08-22 15:35:44 +0200
@@ -41,6 +41,8 @@

variable bootkey
variable bootacpikey
+variable bootsmpkey
+variable bootsmpnoapickey
variable bootsafekey
variable bootverbosekey
variable bootsinglekey
@@ -157,6 +159,8 @@
-2 bootacpikey !
+ printmenuitem ." Boot DragonFly in SMP mode" bootsmpkey !
+ printmenuitem ." Boot DragonFly in SMP-NOAPIC mode" bootsmpnoapickey !
printmenuitem ." Boot DragonFly in Safe Mode" bootsafekey !
printmenuitem ." Boot DragonFly in single user mode" bootsinglekey !
printmenuitem ." Boot DragonFly with verbose logging" bootverbosekey !
@@ -225,6 +229,14 @@
0 boot
+ dup bootsmpkey @ = if
+ s" /kernel.smp/modules" s" module_path" setenv
+ s" /kernel.smp/kernel" boot
+ then
+ dup bootsmpnoapickey @ = if
+ s" /kernel.smp/modules" s" module_path" setenv
+ 0 s" /kernel.smp/kernel.noapic" boot
+ then
dup bootsafekey @ = if
s" arch-i386" environment? if
s" acpi_load" unsetenv

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]