hmmm ... no dell under laptops at all
 

----- Forwarded Message -----
From: "openbios-request@openbios.org" <openbios-request@openbios.org>
To: openbios@openbios.org
Sent: Friday, July 12, 2013 6:00 AM
Subject: OpenBIOS Digest, Vol 99, Issue 5

Send OpenBIOS mailing list submissions to
    openbios@openbios.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://www.openfirmware.info/mailman/listinfo/openbios
or, via email, send a message with subject or body 'help' to
    openbios-request@openbios.org

You can reach the person managing the list at
    openbios-owner@openbios.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of OpenBIOS digest..."


Today's Topics:

  1. Re: OpenBIOS Support (Artyom Tarasenko)
  2. [commit] r1170 - in trunk/openbios-devel: drivers
      include/arch/common (repository service)
  3. [commit] r1171 - trunk/openbios-devel/include/arch/ppc
      (repository service)


----------------------------------------------------------------------

Message: 1
Date: Thu, 11 Jul 2013 14:27:22 +0200
From: Artyom Tarasenko <atar4qemu@gmail.com>
To: The OpenBIOS Mailinglist <openbios@openbios.org>
Subject: Re: [OpenBIOS] OpenBIOS Support
Message-ID:
    <CACXAS8C6Z=nypfyKSzvWLP8md2fL5pMaD4GbTkSUXUBkZyppcA@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Mike,

On Wed, Jul 10, 2013 at 6:52 PM, Mike <wmichaeltrout@yahoo.com> wrote:
> I'm a newbie on the list, and I'm just wondering about support forums for
> OpenBIOS ... is there an IRC channel that one could get help
> implenting/installing? I have an old Dell d600 I got cheap at a garage sale,
> that doesn't recognise its hdd, cd drive, or usb for booting -- people have
> said that I must have a bad BIOS. Is this machine a good candidate for
> OpenBIOS?

Probably not. But you can check the list of motherboards supported by
coreboot here:
http://www.coreboot.org/Supported_Motherboards

HTH,
Artyom

--
Regards,
Artyom Tarasenko

linux/sparc and solaris/sparc under qemu blog:
http://tyom.blogspot.com/search/label/qemu



------------------------------

Message: 2
Date: Thu, 11 Jul 2013 18:49:26 +0200
From: repository service <svn@openbios.org>
To: openbios@openbios.org
Subject: [OpenBIOS] [commit] r1170 - in trunk/openbios-devel: drivers
    include/arch/common
Message-ID: <E1UxK3a-0004SB-RR@ra.coresystems.de>
Content-Type: text/plain; charset=UTF-8

Author: agraf
Date: Thu Jul 11 18:49:26 2013
New Revision: 1170
URL: http://tracker.coreboot.org/trac/openbios/changeset/1170

Log:
Macio: Fetch nvram offset from fw_cfg if available

We want the hypervisor to tell us where NVRAM lies so that we do not have to
rely on hardcoded addresses for it.

Introduce a new fw_cfg interface that allows us to receive it at runtime.

Signed-off-by: Alexander Graf <agraf@suse.de>

Modified:
  trunk/openbios-devel/drivers/macio.c
  trunk/openbios-devel/include/arch/common/fw_cfg.h

Modified: trunk/openbios-devel/drivers/macio.c
==============================================================================
--- trunk/openbios-devel/drivers/macio.c    Sun Jun 30 05:13:14 2013    (r1169)
+++ trunk/openbios-devel/drivers/macio.c    Thu Jul 11 18:49:26 2013    (r1170)
@@ -43,6 +43,30 @@
                return NW_IO_NVRAM_SIZE >> NW_IO_NVRAM_SHIFT;
}

+static unsigned long macio_nvram_offset(void)
+{
+    unsigned long r;
+
+    /* Hypervisor tells us where NVRAM lies */
+    r = fw_cfg_read_i32(FW_CFG_PPC_NVRAM_ADDR);
+    if (r)
+        return r;
+
+    /* Fall back to hardcoded addresses */
+    if (is_oldworld())
+        return OW_IO_NVRAM_OFFSET;
+
+    return NW_IO_NVRAM_OFFSET;
+}
+
+static unsigned long macio_nvram_size(void)
+{
+    if (is_oldworld())
+        return OW_IO_NVRAM_SIZE;
+    else
+        return NW_IO_NVRAM_SIZE;
+}
+
void macio_nvram_init(const char *path, phys_addr_t addr)
{
    phandle_t chosen, aliases;
@@ -51,13 +75,9 @@
    char buf[64];
        unsigned long nvram_size, nvram_offset;

-        if (is_oldworld()) {
-                nvram_offset = OW_IO_NVRAM_OFFSET;
-                nvram_size = OW_IO_NVRAM_SIZE;
-        } else {
-                nvram_offset = NW_IO_NVRAM_OFFSET;
-                nvram_size = NW_IO_NVRAM_SIZE;
-        }
+        nvram_offset = macio_nvram_offset();
+        nvram_size = macio_nvram_size();
+
    nvram = (char*)addr + nvram_offset;
        snprintf(buf, sizeof(buf), "%s/nvram", path);
    nvram_init(buf);

Modified: trunk/openbios-devel/include/arch/common/fw_cfg.h
==============================================================================
--- trunk/openbios-devel/include/arch/common/fw_cfg.h    Sun Jun 30 05:13:14 2013    (r1169)
+++ trunk/openbios-devel/include/arch/common/fw_cfg.h    Thu Jul 11 18:49:26 2013    (r1170)
@@ -44,6 +44,7 @@
#define FW_CFG_PPC_IS_KVM    (FW_CFG_ARCH_LOCAL + 0x05)
#define FW_CFG_PPC_KVM_HC    (FW_CFG_ARCH_LOCAL + 0x06)
#define FW_CFG_PPC_KVM_PID    (FW_CFG_ARCH_LOCAL + 0x07)
+#define FW_CFG_PPC_NVRAM_ADDR    (FW_CFG_ARCH_LOCAL + 0x08)

#define FW_CFG_INVALID          0xffff




------------------------------

Message: 3
Date: Thu, 11 Jul 2013 18:49:28 +0200
From: repository service <svn@openbios.org>
To: openbios@openbios.org
Subject: [OpenBIOS] [commit] r1171 -
    trunk/openbios-devel/include/arch/ppc
Message-ID: <E1UxK3c-0004SM-6X@ra.coresystems.de>
Content-Type: text/plain; charset=UTF-8

Author: agraf
Date: Thu Jul 11 18:49:27 2013
New Revision: 1171
URL: http://tracker.coreboot.org/trac/openbios/changeset/1171

Log:
PPC: Add kernel header style typedefs

When compiling OpenBIOS on openSUSE 12.3 ppc64 I end up getting real host
headers included that make use of the __uxx and __sxx types.

Define those too in our asm copy of the types.h file, as that one overrides
the host's types.h that we would've used otherwise.

Signed-off-by: Alexander Graf <agraf@suse.de>

Modified:
  trunk/openbios-devel/include/arch/ppc/types.h

Modified: trunk/openbios-devel/include/arch/ppc/types.h
==============================================================================
--- trunk/openbios-devel/include/arch/ppc/types.h    Thu Jul 11 18:49:26 2013    (r1170)
+++ trunk/openbios-devel/include/arch/ppc/types.h    Thu Jul 11 18:49:27 2013    (r1171)
@@ -82,13 +82,21 @@
/* size named types */

typedef unsigned char  u8;
+typedef unsigned char  __u8;
typedef unsigned short u16;
+typedef unsigned short __u16;
typedef unsigned int  u32;
+typedef unsigned int  __u32;
typedef unsigned long long u64;
+typedef unsigned long long __u64;

typedef signed char    s8;
+typedef signed char    __s8;
typedef short        s16;
+typedef short        __s16;
typedef int        s32;
+typedef int        __s32;
typedef long long    s64;
+typedef long long    __s64;

#endif



------------------------------

--
OpenBIOS mailing list
OpenBIOS@openbios.org
http://www.openfirmware.info/mailman/listinfo/openbios

End of OpenBIOS Digest, Vol 99, Issue 5
***************************************