Bug 199446 - arm Raspberry Pi panic without ethernet connected on boot
Summary: arm Raspberry Pi panic without ethernet connected on boot
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-14 15:16 UTC by Steve Wills
Modified: 2015-05-17 15:44 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Wills freebsd_committer freebsd_triage 2015-04-14 15:16:25 UTC
I downloaded FreeBSD-11.0-CURRENT-arm-armv6-RPI-B-20150407-r281236.img and booted it on my rPI. I got a panic on boot that said:

panic: pmap_demote_section: No l2_bucket for wired mapping

Once I connected the ethernet, it went away.
Comment 1 Steve Wills freebsd_committer freebsd_triage 2015-04-15 02:57:47 UTC
I was mistaken about the ethernet affecting this. It seems to happen at random times. Setting vm.pmap.sp_enabled=0 works around it.
Comment 2 Pratik Singhal 2015-04-15 03:15:26 UTC
Steve, to get around the issue you have to enable the ARM_NEW_PMAP option in your config file.  

Just put "options ARM_NEW_PMAP" in your config file and recompile the kernel. The issue will be resolved.
Comment 3 Steve Wills freebsd_committer freebsd_triage 2015-04-15 13:45:21 UTC
(In reply to Pratik Singhal from comment #2)
Thanks, I've got a kernel running with that option set now and it seems to be working fine. Catching up on the mailing list, I see this l2_bucket issue is well known.
Comment 4 Luiz Otavio O Souza,+55 (14) 99772-1255 freebsd_committer freebsd_triage 2015-05-17 13:57:24 UTC
Hi Steve,

Can we close this PR ?

This problem is not related to ethernet and ARM_NEW_PMAP is enabled by default now (which fix the l2_bucket issue).
Comment 5 Steve Wills freebsd_committer freebsd_triage 2015-05-17 15:44:21 UTC
(In reply to Luiz Otavio O Souza from comment #4)

Yep, closing!