Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2016 20:33:50 +0100 (CET)
From:      Alexander Klein <xelalex_maker@web.de>
To:        freebsd-ppc@freebsd.org
Subject:   A few glitches with 10.3-RELEASE on an iBook G4
Message-ID:  <alpine.BSF.2.20.1611061803001.1318@Apfelinchen>

index | next in thread | raw e-mail

Hello,

the other day I decided to resurrect my old iBook G4 using FreeBSD just to 
see how far I'd get in setting up an evironment without X or whatever.

Since the hardware is pretty old, I really wasn't expecting everything to 
work right out of the box with a modern system, but generally most things 
work pretty well. There are a few points, however, where I simply got 
stuck, and maybe someone on the list has a few hints for me:


1. Keyboard:

The keymaps I could choose during install weren't all that useful, but I 
modified an existing one to suit my needs for the time being. However, 
there are still a few quirks left:

The machine has a German keyboard, and it seems that both, the ^/°-key in 
the top left corner, as well as the fn-key in the bottom left corner get 
mapped to scancode 0, which results in some unwelcome duplicated features 
for fn, such as generating additional carets when switching virtual 
consoles with fn+ctrl+alt+<Fn>


2. Screen:

I can't seem to do anything useful with vidcontrol when it comes to 
switching video modes. First of all, vidcontrol -i mode only provides me 
with the following:

     mode#     flags   type    size       font      window      linear buffer
------------------------------------------------------------------------------
   0 (0x000) 0x00000000 T 0x0             0x1099121152 0xffffd948 1074888k -9k 0xffffd900 1073243k
   1 (0x001) 0x00000000 T 0x0             0x1099121152 0xffffd948 1074888k -9k 0xffffd900 1073243k

... and so on for another few hundred lines.

This may be related to the video card not being detected properly. I'm 
pretty sure it's ATI, but look what sysctl says with respect to the 
backlight:

dev.backlight.0.level: 0
dev.backlight.0.%parent: vgapci0
dev.backlight.0.%pnpinfo: 
dev.backlight.0.%location: 
dev.backlight.0.%driver: backlight
dev.backlight.0.%desc: PowerBook backlight for nVidia graphics
dev.backlight.%parent:

Needless to say that changing the backlight-level doesn't do a thing, and 
vidcontrol -c blink as well as vidcontrol -t 10 don't do anything useful, 
either.


3. Sound:

While a sound device is detected, and the startup sound works just fine, 
FreeBSD has yet to produce a single beep; here's /dev/soundstat:

Installed devices:
pcm0: <Apple I2S Audio Controller> (play) default

And this is what sysctl knows about sound:

device	snd_ai2s
device	snd_davbus
device	snd_uaudio
hw.snd.default_auto: 1
hw.snd.version: 2009061500/powerpc
hw.snd.default_unit: 0
hw.snd.maxautovchans: 16
hw.snd.verbose: 0
hw.snd.vpc_mixer_bypass: 1
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.feeder_eq_exact_rate: 0
hw.snd.compat_linux_mmap: 0
hw.snd.basename_clone: 1
hw.snd.report_soft_formats: 1
hw.snd.report_soft_matrix: 1
hw.snd.latency: 5
hw.snd.latency_profile: 1
hw.snd.vpc_autoreset: 1
hw.snd.vpc_0db: 45
hw.snd.vpc_reset: 0

However, there's no /dev/dsp


4. CPU:

The machine ought to be running at 800MHz, but it seems to come up with 
some kind of frequency throttling according to dmesg:

cpu0: Motorola PowerPC 7455 revision 3.3, 614.62 MHz
cpu0: Features 9c000000<PPC32,ALTIVEC,FPU,MMU>
cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0

Anything related to cpufreq is missing from sysctl -a output.


Are those bugs, or am I doing something wrong?

I'll be grateful for any hints.

Best regards,

 	Alexander
From owner-freebsd-ppc@freebsd.org  Mon Nov  7 19:40:30 2016
Return-Path: <owner-freebsd-ppc@freebsd.org>
Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A1E2C3534F
 for <freebsd-ppc@mailman.ysv.freebsd.org>;
 Mon,  7 Nov 2016 19:40:30 +0000 (UTC)
 (envelope-from brenohl@br.ibm.com)
Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com
 [148.163.158.5])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "*.pphosted.com", Issuer "thawte SHA256 SSL CA" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4A0927AC
 for <freebsd-ppc@freebsd.org>; Mon,  7 Nov 2016 19:40:29 +0000 (UTC)
 (envelope-from brenohl@br.ibm.com)
Received: from pps.filterd (m0098421.ppops.net [127.0.0.1])
 by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id
 uA7JceEA028284
 for <freebsd-ppc@freebsd.org>; Mon, 7 Nov 2016 14:40:28 -0500
Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208])
 by mx0a-001b2d01.pphosted.com with ESMTP id 26jsq5mvpj-1
 (version=TLSv1.2 cipherŪS256-SHA bits%6 verify=NOT)
 for <freebsd-ppc@freebsd.org>; Mon, 07 Nov 2016 14:40:27 -0500
Received: from localhost
 by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only!
 Violators will be prosecuted
 for <freebsd-ppc@freebsd.org> from <brenohl@br.ibm.com>;
 Mon, 7 Nov 2016 14:40:27 -0500
Received: from d01dlp01.pok.ibm.com (9.56.250.166)
 by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized
 Use Only! Violators will be prosecuted;
 Mon, 7 Nov 2016 14:40:24 -0500
Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com
 [9.57.198.24])
 by d01dlp01.pok.ibm.com (Postfix) with ESMTP id C545C38C8041
 for <freebsd-ppc@freebsd.org>; Mon,  7 Nov 2016 14:40:20 -0500 (EST)
Received: from b01ledav03.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com
 [9.57.199.108])
 by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id
 uA7JeLdm32112788
 for <freebsd-ppc@freebsd.org>; Mon, 7 Nov 2016 19:40:21 GMT
Received: from b01ledav03.gho.pok.ibm.com (unknown [127.0.0.1])
 by IMSVA (Postfix) with ESMTP id E7B41B2050
 for <freebsd-ppc@freebsd.org>; Mon,  7 Nov 2016 14:40:20 -0500 (EST)
Received: from [9.86.26.163] (unknown [9.86.26.163])
 by b01ledav03.gho.pok.ibm.com (Postfix) with ESMTP id 9B2D2B204E
 for <freebsd-ppc@freebsd.org>; Mon,  7 Nov 2016 14:40:20 -0500 (EST)
To: freebsd-ppc@freebsd.org
Subject: Why Huge pages must be enabled to boot a FreeBSD VM?
From: Breno Leitao <brenohl@br.ibm.com>
Date: Mon, 7 Nov 2016 17:40:19 -0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-TM-AS-GCONF: 00
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 16110719-0044-0000-0000-000001ACCAE0
X-IBM-SpamModules-Scores:
X-IBM-SpamModules-Versions: BY=3.00006040; HX=3.00000240; KW=3.00000007;
 PH=3.00000004; SC=3.00000189; SDB=6.00777829; UDB=6.00374534; IPR=6.00555145;
 BA=6.00004861; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000;
 ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013241; XFM=3.00000011;
 UTC 16-11-07 19:40:25
X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused
x-cbparentid: 16110719-0045-0000-0000-000005D9D02F
Message-Id: <0c4b5c7e-1078-4d42-426c-3091da17e501@br.ibm.com>
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, ,
 definitions 16-11-07_08:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 spamscore=0 suspectscore=1
 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam
 adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000
 definitions=main-1611070360
X-BeenThere: freebsd-ppc@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Porting FreeBSD to the PowerPC <freebsd-ppc.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-ppc>,
 <mailto:freebsd-ppc-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ppc/>;
List-Post: <mailto:freebsd-ppc@freebsd.org>
List-Help: <mailto:freebsd-ppc-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-ppc>,
 <mailto:freebsd-ppc-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Nov 2016 19:40:30 -0000

Hello,

I am wondering why Huge pages must be enabled in the hypervisor (KVM) in
order to boot FreeBSD as a guest.

I was facing the issue below, and then I found that I didn't have enough huge
pages available. Enabling the amount of huge pages available solved this issue.

  Kernel entry at 0x1023c0 ...
  panic: Page replacement error: -4
  cpuid = 0
  KDB: stack backtrace:
  #0 0x6144fc at ??+0
  #1 0x614598 at ??+0
  #2 0xa7b078 at ??+0
  #3 0xa31544 at ??+0
  #4 0xa33010 at ??+0
  #5 0xa7b480 at ??+0
  #6 0xa6b2bc at ??+0
  #7 0xa64c74 at ??+0
  #8 0x102458 at ??+0
  Uptime: 1s


If huge pages is not enabled, is there a way to proceed with normal pages
other than crashing the VM?

Thank you,
Breno



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1611061803001.1318>