From patchwork Thu Dec 17 17:02:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Problems porting H8dmr_fam10 to H8qme-2+ Date: Thu, 17 Dec 2009 17:02:03 -0000 From: Myles Watson X-Patchwork-Id: 662 Message-Id: <2831fecf0912170902i24bd41f6r7bfda620774e8e25@mail.gmail.com> To: Knut Kujat Cc: coreboot@coreboot.org On Thu, Dec 17, 2009 at 7:03 AM, Knut Kujat wrote: > Hi, > > I did some small changes in Config.lb and Options.lb and then I compiled > the H8dmr_fam10 board to flash it in a H8qme-2+ board. And of course the > booting fails :(: > > (split)40K table at =dfff0000 > 0: mmio_basek=00380000, basek=00400000, limitk=00000000 > 1: mmio_basek=00380000, basek=00480000, limitk=00000000 > PCI_DOMAIN: 0000 assign_resources, bus 0 link: 0 ? > VGA: PCI: 00:18.0 (aka node 0) link 2 has VGA device > > and here it stucks and doesn't continues. > I'm not sure what the problem is, but your IO resources aren't getting set properly. Could you apply this patch and send the output? I'm wondering if there's an error in the constraint code, a memory corruption problem, or an invalid resource declared. Thanks, Myles Index: svn/src/devices/device.c =================================================================== --- svn.orig/src/devices/device.c +++ svn/src/devices/device.c @@ -585,11 +585,15 @@ static void constrain_resources(struct d * check is signed so that "negative" amounts of space * are handled correctly. */ + printk_debug("%s:@%s %02lx base %08Lx limit %08Lx\n", __func__, + dev_path(dev), res->index, res->base, res->limit); if ((signed long long)(lim->limit - (res->base + res->size -1)) > (signed long long)(res->base - lim->base)) lim->base = res->base + res->size; else lim->limit = res->base -1; + printk_debug("%s:lim base %08Lx limit %08Lx\n", __func__, + lim->base, lim->limit); } /* Descend into every enabled child and look for fixed resources. */