Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Silence on boot with Dreamplug. [fixed]



It turns out that the problem with the dreamplug was really trivial: it reports 
a different value when the kirkwood clock code tries to figure out the CPU 
frequency.   The following patch results in the kernel booting all the way up 
to the root prompt:

Index: kirkwood.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/marvell/kirkwood.c,v
retrieving revision 1.2
diff -c -r1.2 kirkwood.c
*** kirkwood.c  30 Oct 2010 06:37:49 -0000      1.2
--- kirkwood.c  22 May 2011 21:27:09 -0000
***************
*** 274,279 ****
--- 274,280 ----
                case 0x0040000a: mvPclk = 1000 MHz; break;
                case 0x00000012: mvPclk = 1200 MHz; break;
                case 0x00000018: mvPclk = 1200 MHz; break;
+               case 0x00000002: mvPclk = 1200 MHz; break;
                default:
                        panic("unknown mvPclk\n");
                }

Here's the boot output:

Marvell>> tftpboot netbsd.ub
No link on egiga0
Using egiga1 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.101
Filename 'netbsd.ub'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################
done
Bytes transferred = 5226944 (4fc1c0 hex)
Marvell>> bootm
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   NetBSD/sheevaplug 5.99.51
   Created:      2011-05-21  20:41:48 UTC
   Image Type:   ARM NetBSD Kernel Image (uncompressed)
   Data Size:    5226880 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
## Transferring control to NetBSD stage-2 loader (at address 00008000) ...

NetBSD/evbarm (sheevaplug) booting ...
Loaded initial symtab at 0xc0455e5c, strtab at 0xc048c564, # entries 13854
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.51 (KSANTI) #2: Sat May 21 16:41:45 EDT 2011
        mellon@lacryma:/home/mellon/netbsd/sys/arch/evbarm/compile/obj/KSANTI
total memory = 512 MB
avail memory = 496 MB
sysctl_createv: sysctl_create(no_sa_support) returned 22
mainbus0 (root)
cpu0 at mainbus0: Sheeva 88SV131 rev 1 (ARM9E-S core)
cpu0: DC enabled IC enabled WB enabled EABT branch prediction enabled
cpu0: 16KB/32B 4-way Instruction cache
cpu0: 16KB/32B 4-way write-back-locking-C Data cache
mvsoc0 at mainbus0: Marvell 88F6281 Rev. A1  Kirkwood
mvsoc0: CPU Clock 1200.000 MHz  SysClock 480.000 MHz  TClock 200.000 MHz
mvsoctmr0 at mvsoc0 unit 0 offset 0x20300-0x203ff: Marvell SoC Timer
mvsocgpp at mvsoc0 unit 0 not configured
mvsocrtc0 at mvsoc0 unit 0 offset 0x10300-0x10317: Marvell SoC Real Time Clock
com0 at mvsoc0 unit 0 offset 0x12000-0x1201f irq 33: ns16550a, working fifo
com0: console
com1 at mvsoc0 unit 1 offset 0x12100-0x1211f irq 34: ns16550a, working fifo
ehci0 at mvsoc0 unit 0 offset 0x50000-0x51fff irq 19: Marvell USB 2.0 Interface
usb0 at ehci0: USB revision 2.0
gttwsi0 at mvsoc0 unit 0 offset 0x11000-0x11fff irq 29: Marvell TWSI controller
iic0 at gttwsi0: I2C bus
mvcesa at mvsoc0 unit 0 not configured
mvgbec0 at mvsoc0 unit 0 offset 0x70000-0x73fff: Marvell Gigabit Ethernet 
Controller
mvgbe0 at mvgbec0 port 0 irq 11
mvgbe0: Ethernet address f0:ad:4e:00:71:ea
makphy0 at mvgbe0 phy 0: Marvell 88E1116R Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
mvgbec1 at mvsoc0 unit 1 offset 0x74000-0x77fff: Marvell Gigabit Ethernet 
Controller
mvgbe1 at mvgbec1 port 0 irq 15
mvgbe1: Ethernet address f0:ad:4e:00:71:eb
makphy1 at mvgbe1 phy 1: Marvell 88E1116R Gigabit PHY, rev. 0
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
mvpex at mvsoc0 unit 0 not configured
mvsata at mvsoc0 unit 0 not configured
mvsdio0 at mvsoc0 unit 0 offset 0x90000-0x9ffff irq 28: Marvell Secure Digital 
Input/Output Interface
sdmmc0 at mvsdio0
uhub0 at usb0: Marvell EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
sdmmc0: bad CIS ptr 0
sdmmc0: couldn't read CIS
sdmmc0: i/o init failed
sdmmc0: bad CIS ptr 0
sdmmc0: couldn't read CIS
sdmmc0: i/o init failed
"Marvell, 802.11 SDIO ID: 10, " (manufacturer 0x2df, product 0x9103) at sdmmc0 
function 1 not configured
"Marvell, 802.11 SDIO ID: 10, " (manufacturer 0x2df, product 0x9103) at sdmmc0 
function 2 not configured
uhub1 at uhub0 port 1: vendor 0x1a40 USB 2.0 Hub, class 9/0, rev 2.00/1.11, 
addr 2
uhub1: single transaction translator
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: Genesys Logic USB Storage, rev 2.00/99.10, addr 3
scsibus0 at umass0: 2 targets, 2 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, STORAGE DEVICE, 9910> disk removable
sd0: fabricating a geometry
sd0: 1886 MB, 1886 cyl, 64 head, 32 sec, 512 bytes/sect x 3862528 sectors
sd1 at scsibus0 target 0 lun 1: <Generic, STORAGE DEVICE, 9910> disk removable
sd1: drive offline
uhub2 at uhub1 port 3: Genesys Logic USB2.0 Hub, class 9/0, rev 2.00/7.02, addr 
4
uhub2: single transaction translator
umass1 at uhub2 port 4 configuration 1 interface 0
umass1: Seagate FreeAgent GoFlex, rev 2.00/1.48, addr 5
scsibus1 at umass1: 2 targets, 1 lun per target
sd2 at scsibus1 target 0 lun 0: <Seagate, FreeAgent GoFlex, 0148> disk fixed
sd2: 931 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525167 sectors
uaudio0 at uhub1 port 4 configuration 1 interface 0
uaudio0: C-Media Electronics Inc. C-Media USB Headphone Set, rev 1.10/1.00, 
addr 6
uaudio0: audio rev 1.00
audio0 at uaudio0: full duplex, playback, capture, independent
uhidev0 at uhub1 port 4 configuration 1 interface 3
uhidev0: C-Media Electronics Inc. C-Media USB Headphone Set, rev 1.10/1.00, 
addr 6, iclass 3/0
uhid0 at uhidev0: input=4, output=4, feature=0
boot device: <unknown>
root device: 


Home | Main Index | Thread Index | Old Index