Port-arm archive

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

Re: NetBSD on a Pi3



On 06/16/16 19:08, John Klos wrote:
It does work, but a custom build is required to get full CPU speed with the attached hack.

How does that patch fix things? I'm not able to change my clock:

# sysctl machdep.cpu.frequency
machdep.cpu.frequency.target = 600
machdep.cpu.frequency.current = 600
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1200

# sysctl -w machdep.cpu.frequency.target=900
machdep.cpu.frequency.target: 600 -> 900

# sysctl machdep.cpu.frequency.current
machdep.cpu.frequency.current = 600

# sysctl -w machdep.cpu.frequency.target=1200
machdep.cpu.frequency.target: 600 -> 1200

# sysctl machdep.cpu.frequency.current
machdep.cpu.frequency.current = 600

Thanks,
John


Typo!

The RPI3 uses bsc0 internally so we shouldn't attach it.

Nick
Index: bcm2835_bsc.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/broadcom/bcm2835_bsc.c,v
retrieving revision 1.5
diff -u -r1.5 bcm2835_bsc.c
--- bcm2835_bsc.c	24 Jan 2015 00:27:31 -0000	1.5
+++ bcm2835_bsc.c	23 May 2016 05:51:00 -0000
@@ -91,6 +91,9 @@
 	if (strcmp(aaa->aaa_name, "bcmbsc") != 0)
 		return 0;
 
+	if (aaa->aaa_addr == BCM2835_BSC0_BASE)
+		return 0;
+
 	return 1;
 }
 


Home | Main Index | Thread Index | Old Index