This starts from v3 as it contains the previous ATI ROM patch split up
into smaller patches and also contains other changes that were
submitted as separate patches to keep them together.
After looking at this again I'm not sure about one patch defining
register access words as io access which should work for io bars but
I'm unsure about memory bars. Does somebody know what these words
should do or what they do on other open firmware implementations?
Regards,
BALATON Zoltan
BALATON Zoltan (6):…
[View More]
Limit binary dump bytes in .properties output
Don't add open/close words to unmanaged devices
Define register access words
drivers/pci: Implement config access words
drivers/pci: Fix map-in and map-out words
arch/ppc/qemu: Add parse-1hex word for compatibility with Apple OF
arch/ppc/qemu/qemu.fs | 6 +++
drivers/pci.c | 91 ++++++++++++++++++++++++++++++++++-------
drivers/pci.fs | 41 +++++++++++++++++++
drivers/vga.fs | 4 +-
forth/admin/devices.fs | 7 ++--
forth/device/other.fs | 6 +++
forth/device/pathres.fs | 5 ++-
7 files changed, 140 insertions(+), 20 deletions(-)
--
2.30.4
[View Less]
Some device trees can contain large chunks of binary data that result
in .properties output to get lost in the dump of all binary bytes. Put
an upper limit of the bytes dumped.
Signed-off-by: BALATON Zoltan <balaton(a)eik.bme.hu>
---
forth/admin/devices.fs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/forth/admin/devices.fs b/forth/admin/devices.fs
index 38f6ad6..879c271 100644
--- a/forth/admin/devices.fs
+++ b/forth/admin/devices.fs
@@ -307,15 +307,16 @@
…
[View More] : .p-bytes? ( data len -- 1 | data len 0 )
." -- " dup . ." : "
- swap >r 0
+ swap >r dup 100 min 0
begin 2dup > while
dup r@ + c@
( len n ch )
2 0.r space
1+
- repeat
- 2drop r> drop 1
+ repeat
+ drop > if ." ..." then
+ r> drop 1
;
\ this function tries to heuristically determine the data format
--
2.30.4
[View Less]
I’m trying to figure how Openbios boots CHRP boot scrips like :tbxi, yet SOLF does not.
Can anyone point me to the code in Openbios that enables :tbxi/CHRP booting?
Also, does anyone know how exactly that works, what was done to Openbios to enable booting the Mac OS?
I’d really like to try and get Apple’s BootX to load on Qemu’s pseries machines and as I understand it CHRP booting should work in SLOF, but it just errors out on BootX with "bad executable”, so there must be some magic I need …
[View More]to understand about :tbxi CHRP boot scripts that SLOF needs some sort of patch.
[View Less]
Devices that OpenBIOS does not have a driver for may have an FCode
driver that would create the open/close methods but this results in
duplicate words due to the empty defaults OpenBIOS adds. These empty
defaults are added so that open-dev works (which is needed to run an
FCode driver) but to avoid this clash change open-dev to check if open
method exists before calling it so we can omit the empty defaults and
let an FCode driver install them without getting duplicates.
Signed-off-by: BALATON …
[View More]Zoltan <balaton(a)eik.bme.hu>
---
drivers/pci.c | 2 +-
forth/device/pathres.fs | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/pci.c b/drivers/pci.c
index 787fa93..aa8de6b 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -1926,7 +1926,7 @@ static phandle_t ob_configure_pci_device(const char* parent_path,
}
/* if devices haven't supplied open/close words then supply them with simple defaults */
- if (!find_package_method("open", phandle) && !find_package_method("close", phandle)) {
+ if (pci_dev && !find_package_method("open", phandle) && !find_package_method("close", phandle)) {
BIND_NODE_METHODS(phandle, ob_pci_simple_node);
}
diff --git a/forth/device/pathres.fs b/forth/device/pathres.fs
index 7976d78..b2217f1 100644
--- a/forth/device/pathres.fs
+++ b/forth/device/pathres.fs
@@ -423,7 +423,10 @@ constant sinfo.size
dup if r@ link-one then
1 = if
dup active-package <> my-self >in.interposed !
- r@ invoke-open
+ " open" my-self >in.device-node @ find-method if
+ drop
+ r@ invoke-open
+ then
r@ handle-interposers
then
active-package!
--
2.30.4
[View Less]
Some device trees can contain large chunks of binary data that result
in .properties output to get lost in the dump of all binary bytes. Put
an upper limit of the bytes dumped.
Signed-off-by: BALATON Zoltan <balaton(a)eik.bme.hu>
---
forth/admin/devices.fs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/forth/admin/devices.fs b/forth/admin/devices.fs
index 38f6ad6..b856f28 100644
--- a/forth/admin/devices.fs
+++ b/forth/admin/devices.fs
@@ -307,7 +307,7 @@
: .p-…
[View More]bytes? ( data len -- 1 | data len 0 )
." -- " dup . ." : "
- swap >r 0
+ swap >r 100 min 0
begin 2dup > while
dup r@ + c@
( len n ch )
--
2.30.4
[View Less]
Some device trees can contain large chunks of binary data that result
in .properties output to get lost in the dump of all binary bytes. Put
an upper limit of the bytes dumped.
Signed-off-by: BALATON Zoltan <balaton(a)eik.bme.hu>
---
forth/admin/devices.fs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/forth/admin/devices.fs b/forth/admin/devices.fs
index 38f6ad6..7397047 100644
--- a/forth/admin/devices.fs
+++ b/forth/admin/devices.fs
@@ -307,15 +307,17 @@
…
[View More]
: .p-bytes? ( data len -- 1 | data len 0 )
." -- " dup . ." : "
- swap >r 0
+ swap >r dup 100 min dup 0
begin 2dup > while
dup r@ + c@
( len n ch )
2 0.r space
1+
- repeat
- 2drop r> drop 1
+ repeat
+ 2drop
+ > if ." ..." then
+ r> drop 1
;
\ this function tries to heuristically determine the data format
--
2.30.4
[View Less]