PHYSMEM_SIZE and a hang on boot for kirkwood

Kate F kate at elide.org
Sat Jun 23 13:45:13 UTC 2012


Hi,

I have a Marvell Kirkwood 88F6281 device, which I'm trying to get running with
FreeBSD. It's in a D-link model "DNS 325", which has 256MB RAM.

With FreeBSD 8.3, I found a hang on boot using the default DB-88F6XXX config.
I found PHYSMEM_SIZE=0x20000000 hardcoded in sys/arm/mv/kirkwood/std.db88f6xxx
which I presume means 512MB RAM - so I changed this to 0x10000000 and then
8.3 booted fine.

Now I'm trying 9.0 (primarily because I'm interested in the recent NAND work)
and I see the PHYSMEM_SIZE option was removed by commit [210249]:
http://lists.freebsd.org/pipermail/svn-src-head/2010-July/018727.html

The default 9.0 DB-88F6XXX kernel hangs in exactly the same way as 8.3's did
for me:

  ## Starting application at 0x00900000 ...
   dtbp = 0xc0c04408
  Copyright (c) 1992-2012 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
          The Regents of the University of California. All rights reserved.
  FreeBSD is a registered trademark of The FreeBSD Foundation.
  FreeBSD 10.0-CURRENT #0 r237466: Sat Jun 23 03:08:08 BST 2012
      root at freebsd83.lan:/usr/obj/arm.arm/usr/src/sys/DB-88F6XXX-DNS325 arm
  [silence]

I believe this is the same problem. Is there a way I can hardcode the
physical memory size which would be equivalent to 8.3's PHYSMEM_SIZE option?

Is is there a better way to solve this, and have the memory size found
automatically?

Thank you,

-- 
Kate


More information about the freebsd-arm mailing list