Commit Graph

659 Commits

Author SHA1 Message Date
Laurent Vivier
739db05755 Remove broken and useless cuda unit decode/encode methods.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@605 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-10 21:52:40 +00:00
Laurent Vivier
dbe983062e Define methods to decode/encode mac-io units.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@604 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-10 21:50:36 +00:00
Laurent Vivier
d6365bca24 Fully decode PCI unit name attribute.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@603 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-10 21:39:42 +00:00
Laurent Vivier
92e6599c92 Correctly encode strings of bootpath and bootargs properties.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@602 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-10 21:34:21 +00:00
Laurent Vivier
a1cc7db948 Move "bind_func("poweroff", ppc32_poweroff)" from ob_cuda_initialize()
to cuda_init() because it is a global word and if it is binded into 
the node initialization it breaks some other words ("decode-unit", 
"encode-unit").

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@601 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-09 19:39:26 +00:00
Laurent Vivier
5398f1f5e3 Correct typo
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@600 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-08 23:43:19 +00:00
Laurent Vivier
657daacde8 ppc/qemu: correctly manage property "available" of package "/memory"
Instead of hardcoding values during init, call ofmem_register() with "/memory" phandle.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@599 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-07 21:53:45 +00:00
Laurent Vivier
1eb7d7b54a Client Interface: manage arguments number overflow
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@598 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-06 21:59:24 +00:00
Laurent Vivier
0dd8e42f39 ADB: Manage arrow keys and more.
Manage more keyboard keys by emiting escape sequences.
This allows to manage key up, key down, key left, key right, home, end ...
(F1 to F16, HELP, ... are not tested)

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@597 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-06 21:23:32 +00:00
Laurent Vivier
ec767f4ec3 Allow to move on command line and in history using the arrow keys.
(with -nographic)

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@596 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-05 21:39:58 +00:00
Laurent Vivier
6c9288e4b1 Add management of "ctrl-" for ADB keyboard.
On PPC, allow to navigate through command line history and current line 
with:
ctrl-p, ctrl-n, ctrl-f, ctrl-b, ctrl-d, ctrl-c, ctrl-k, ctrl-y...

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@595 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-05 20:51:15 +00:00
Laurent Vivier
fb3518132e printk() needs openbios/config.h
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@594 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-05 20:22:21 +00:00
Laurent Vivier
b0b0192262 load: manage file size smaller than 512 bytes
Allow to load bootinfo scripts of haiku and FreeBSD.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@593 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-02 22:35:59 +00:00
Laurent Vivier
1e01b24657 client interface: add verbosity in traces
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@592 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-02 22:17:40 +00:00
Laurent Vivier
e76492313a ppc: replace ofmem_claim_phys() + ofmem_claim_virt() by ofmem_map().
This is needed by haiku-ppc bootloader (but it is not enough).

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@591 f158a5a8-5612-0410-a976-696ce0be7e32
2009-11-01 23:27:35 +00:00
Laurent Vivier
b9486926d9 ppc: if "\\:tbxi" (mac) fails, try "ppc\bootinfo.txt" (chrp).
This is needed to load the bootloader of OpenBSD.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@590 f158a5a8-5612-0410-a976-696ce0be7e32
2009-10-19 23:02:10 +00:00
Laurent Vivier
6e47ae9e09 ppc: simplify boot by using load and go.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@589 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-21 23:12:02 +00:00
Laurent Vivier
7d35d36bd4 mac-parts: better management of comma.
from "PowerPC Microprocessor CHRP binding", "11.1.2. Open Method Algorithm":

"If the argument string contains a comma, or if the argument string begins with a decimal digit, the 
partition component is deemed to be present."

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@588 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-21 23:00:42 +00:00
Laurent Vivier
428b4b807f Manage state-valid.
"go" can be done only if init-program has set state-valid to true.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@587 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-21 22:44:21 +00:00
Blue Swirl
89f31fbead Fix accidental system header use in r584
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@586 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-21 15:30:50 +00:00
Laurent Vivier
0f885c07be Revert commit of local change (sparc-elf / sparc-linux-gnu )
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@585 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-20 20:18:15 +00:00
Laurent Vivier
719271835f Add bootinfo-loader.
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@584 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-20 20:15:46 +00:00
Laurent Vivier
1f31d2f057 When "load" is used, correctly set bootpath and bootargs.
Signed-off-by: Laurent Vivier <Laurent@Vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@583 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-20 19:32:30 +00:00
Laurent Vivier
ebf7e3f6da According to IEEE Std 1275-1994, "CORE REQUIREMENTS AND PRACTICES",
Annexe H.8, "User interface name changes", "select-dev" and
"unselect-dev" have been obsoleted and replaced by "open-dev" and 
"device-end".
But some scripts (like BootX) are using the obsoleted name, so we need 
to
define them.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@582 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-20 04:20:48 +00:00
Laurent Vivier
9164a49dc8 Implements XCOFF loader (to be able to boot Apple BootX bootloader)
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@581 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-19 21:44:05 +00:00
Laurent Vivier
dbc694c83f call elf_loader_init() only for PPC
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@580 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-18 23:32:59 +00:00
Laurent Vivier
7999deeeb6 Add missing file from r578
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@579 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-18 23:01:28 +00:00
Laurent Vivier
1a93a83480 Allows to boot openSUSE from install CD-ROM
Implements "init-program" using loader packages
Write a first loader package: elf-loader

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@578 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-18 22:59:30 +00:00
Laurent Vivier
39e3ce79f3 Allow "boot hd:,%BOOT" to work again (and thus Quik).
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@577 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-02 22:25:44 +00:00
Laurent Vivier
38283e32ac Use the load method to load and execute CHRP script.
This adds a better support of Apple BootX script.
However, "init-program" and "go" are always missing to be able to really boot with BootX.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@576 f158a5a8-5612-0410-a976-696ce0be7e32
2009-09-01 23:44:24 +00:00
Laurent Vivier
95a04cec0e Implement load method
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@575 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-30 23:39:55 +00:00
Laurent Vivier
0ab0524962 Remove useless openSUSE hack.
This hack was needed because we were using the IBM bootscript (ppc/bootinfo.txt)
with an HFS+ filesystem (whereas bootscript was using ISO9660 partition number)

The newworld_boot() function uses now the Apple bootscript (suseboot/os-chooser)
with the correct partition number.
 
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@574 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-30 23:37:42 +00:00
Laurent Vivier
a58190e204 Define load-base to follow memory mapping defined in the BootX source
comments.

This as been reported by Steven Noonan.



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@573 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-29 21:09:21 +00:00
Laurent Vivier
3e457210bd Implement "$=" to compare two strings (needed by BootX)
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@572 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-29 20:42:22 +00:00
Laurent Vivier
2db781a446 Replace yaboot_startup() by newworld_boot() which implements generic
CHRP boot method.
It finds the CHRP bootscript using the file attribute 'tbxi' and 
the blessed directory.

This method allows to boot easily Fedora (the bitness detection is done
by the script and yaboot is called with the according yaboot.conf) but
openSUSE is broken (you have to use "boot cd:,\suseboot\yaboot")
Debian works well (as usual...).
The openSUSE needs the missing forth words: "load" and "go".
The MacOS bootloader (BootX) is also loaded automatically but forth 
script is too complex to be executed correctly.

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@571 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-29 15:43:00 +00:00
Laurent Vivier
1ced7923e7 For mac-parts, when no partition number is provided, open the first HFS
partition (type is "Apple_HFS").

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@570 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-29 15:24:49 +00:00
Blue Swirl
a3e861a2cf Use -fno-strict-aliasing flag for all filesystems imported from GRUB.
Otherwise, they won't compile with gcc 4.4.  Fixing the code would
require massive changes, which is not practical for the code taken from
another project.

Author: Pavel Roskin <proski@gnu.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@569 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-23 12:40:24 +00:00
Blue Swirl
b6c69cc18e Fix gcc 4.4 warnings about strict aliasing
Rather than cast char arrays to other types, use correct types and cast
them to char pointers when needed.

Author: Pavel Roskin <proski@gnu.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@568 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-23 12:40:22 +00:00
Blue Swirl
ee130e0452 Show version.fs and openbios-version.h generation
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@567 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-23 12:40:20 +00:00
igor.v.kovalenko
f13fecfb60 v1 Preliminary support for softint handler with trap to bug on other irqs
v0->v1: removed extra instructions

Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@566 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-22 06:04:00 +00:00
Blue Swirl
ab4082359b Allow NULL dlabel path argument without accessing page zero.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@565 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-22 06:03:40 +00:00
Blue Swirl
19e066a8a5 Allow NULL string argument without accessing page zero.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@564 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-22 06:03:20 +00:00
igor.v.kovalenko
6433c74bf7 Enable timer after trap table is initialized
Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@563 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-21 19:15:55 +00:00
igor.v.kovalenko
b26b3c4391 Save locked tlb space by aligning to 512k pages.
Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@562 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-21 19:15:46 +00:00
Blue Swirl
e56cc95fb0 Some gcc versions need __negti2
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@561 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-20 19:10:04 +00:00
Blue Swirl
bc770eddac Fix OpenBSD boot
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@560 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-19 19:44:40 +00:00
Laurent Vivier
1be70e1bca We can select cpu using unit number instead of name,
for instance we can use "dev /cpus/@0" instead of "dev 
/cpus/PowerPC,750". This notation is used in Fedora bootscript
to know if the CPU is 64-bit or 32-bit: it looks at "64-bit" property
of first available CPUS ("@0").

Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@559 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-17 21:57:04 +00:00
Blue Swirl
aea3404ef2 Add STGit files to .gitignore
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@558 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-17 16:58:48 +00:00
Blue Swirl
468ce9442b Sparc32/64: omit less useful FS modules etc. to reduce size
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@557 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-17 16:58:45 +00:00
Blue Swirl
9162f1b584 Introduce quiet build
Make forthstrap quiet by default. Use generic rules when possible, unify
the rules and cleanup white space. Use ld flag --whole-archive to avoid
some local rule use. We can also remove some hacks introduced to avoid
missing symbols.

Fix problems brought in by ld flag --whole-archive:
 * x86: fix missing nvram symbols
 * PPC: disable misc.S build for qemu (conflicts with our libgcc)

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@556 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-17 16:58:42 +00:00