# Conflicts: # crate/memory/src/memory_set.rs # kernel/Cargo.lock # kernel/src/arch/aarch64/interrupt/handler.rs # kernel/src/arch/aarch64/interrupt/mod.rs # kernel/src/arch/aarch64/memory.rs # kernel/src/arch/aarch64/mod.rs # kernel/src/arch/aarch64/paging.rs # kernel/src/consts.rs # kernel/src/fs.rs # kernel/src/lib.rs # kernel/src/memory.rs # kernel/src/process/context.rs # tools/riscv-pk/.gitignore # tools/riscv-pk/LICENSE # tools/riscv-pk/Makefile.in # tools/riscv-pk/README.md # tools/riscv-pk/aclocal.m4 # tools/riscv-pk/bbl/bbl.ac # tools/riscv-pk/bbl/bbl.c # tools/riscv-pk/bbl/bbl.h # tools/riscv-pk/bbl/bbl.lds # tools/riscv-pk/bbl/bbl.mk.in # tools/riscv-pk/bbl/logo.c # tools/riscv-pk/bbl/payload.S # tools/riscv-pk/bbl/raw_logo.S # tools/riscv-pk/bbl/riscv_logo.txt # tools/riscv-pk/config.h.in # tools/riscv-pk/configure # tools/riscv-pk/configure.ac # tools/riscv-pk/dummy_payload/dummy_entry.S # tools/riscv-pk/dummy_payload/dummy_payload.lds # tools/riscv-pk/dummy_payload/dummy_payload.mk.in # tools/riscv-pk/machine/atomic.h # tools/riscv-pk/machine/bits.h # tools/riscv-pk/machine/disabled_hart_mask.h # tools/riscv-pk/machine/emulation.c # tools/riscv-pk/machine/emulation.h # tools/riscv-pk/machine/encoding.h # tools/riscv-pk/machine/fdt.c # tools/riscv-pk/machine/fdt.h # tools/riscv-pk/machine/finisher.c # tools/riscv-pk/machine/finisher.h # tools/riscv-pk/machine/flush_icache.c # tools/riscv-pk/machine/htif.c # tools/riscv-pk/machine/htif.h # tools/riscv-pk/machine/machine.ac # tools/riscv-pk/machine/machine.mk.in # tools/riscv-pk/machine/mcall.h # tools/riscv-pk/machine/mentry.S # tools/riscv-pk/machine/minit.c # tools/riscv-pk/machine/misaligned_ldst.c # tools/riscv-pk/machine/mtrap.c # tools/riscv-pk/machine/mtrap.h # tools/riscv-pk/machine/muldiv_emulation.c # tools/riscv-pk/machine/uart.c # tools/riscv-pk/machine/uart.h # tools/riscv-pk/machine/uart16550.c # tools/riscv-pk/machine/uart16550.h # tools/riscv-pk/machine/unprivileged_memory.h # tools/riscv-pk/machine/vm.h # tools/riscv-pk/scripts/config.guess # tools/riscv-pk/scripts/config.sub # tools/riscv-pk/scripts/install.sh # tools/riscv-pk/scripts/mk-install-dirs.sh # tools/riscv-pk/scripts/vcs-version.sh # tools/riscv-pk/util/snprintf.c # tools/riscv-pk/util/string.c # tools/riscv-pk/util/util.mk.intoolchain_update
commit
2afe8c731e
@ -1,222 +1,297 @@
|
||||
//! Page table implementations for aarch64.
|
||||
|
||||
// Depends on kernel
|
||||
use consts::{KERNEL_PML4, RECURSIVE_INDEX};
|
||||
use memory::{active_table, alloc_frame, alloc_stack, dealloc_frame};
|
||||
use ucore_memory::memory_set::*;
|
||||
use ucore_memory::PAGE_SIZE;
|
||||
use ucore_memory::paging::*;
|
||||
use aarch64::asm::{tlb_invalidate, tlb_invalidate_all, flush_icache_all, ttbr_el1_read, ttbr_el1_write};
|
||||
use aarch64::{PhysAddr, VirtAddr};
|
||||
use aarch64::paging::{Mapper, PageTable as Aarch64PageTable, PageTableEntry, PageTableFlags as EF, RecursivePageTable};
|
||||
use aarch64::paging::{FrameAllocator, FrameDeallocator, Page, PhysFrame as Frame, Size4KiB, Size2MiB, Size1GiB};
|
||||
use aarch64::paging::memory_attribute::*;
|
||||
|
||||
// need 3 page
|
||||
pub fn setup_temp_page_table(frame_lvl4: Frame, frame_lvl3: Frame, frame_lvl2: Frame) {
|
||||
let p4 = unsafe { &mut *(frame_lvl4.start_address().as_u64() as *mut Aarch64PageTable) };
|
||||
let p3 = unsafe { &mut *(frame_lvl3.start_address().as_u64() as *mut Aarch64PageTable) };
|
||||
let p2 = unsafe { &mut *(frame_lvl2.start_address().as_u64() as *mut Aarch64PageTable) };
|
||||
p4.zero();
|
||||
p3.zero();
|
||||
p2.zero();
|
||||
|
||||
let (start_addr, end_addr) = (0, 0x40000000);
|
||||
let block_flags = EF::VALID | EF::AF | EF::WRITE | EF::XN;
|
||||
for page in Page::<Size2MiB>::range_of(start_addr, end_addr) {
|
||||
let paddr = PhysAddr::new(page.start_address().as_u64());
|
||||
|
||||
use arch::board::IO_REMAP_BASE;
|
||||
if paddr.as_u64() >= IO_REMAP_BASE as u64 {
|
||||
p2[page.p2_index()].set_block::<Size2MiB>(paddr, block_flags | EF::PXN, MairDevice::attr_value());
|
||||
} else {
|
||||
p2[page.p2_index()].set_block::<Size2MiB>(paddr, block_flags, MairNormal::attr_value());
|
||||
}
|
||||
}
|
||||
|
||||
type VirtAddr = usize;
|
||||
type PhysAddr = usize;
|
||||
p3[0].set_frame(frame_lvl2, EF::default(), MairNormal::attr_value());
|
||||
p3[1].set_block::<Size1GiB>(PhysAddr::new(0x40000000), block_flags | EF::PXN, MairDevice::attr_value());
|
||||
|
||||
use alloc::alloc::{alloc, Layout};
|
||||
use crate::memory::{active_table, alloc_frame, dealloc_frame};
|
||||
p4[0].set_frame(frame_lvl3, EF::default(), MairNormal::attr_value());
|
||||
p4[RECURSIVE_INDEX].set_frame(frame_lvl4, EF::default(), MairNormal::attr_value());
|
||||
|
||||
/// TODO
|
||||
pub struct ActivePageTable {
|
||||
// TODO
|
||||
ttbr_el1_write(0, frame_lvl4);
|
||||
tlb_invalidate_all();
|
||||
}
|
||||
|
||||
impl ActivePageTable {
|
||||
/// TODO
|
||||
pub unsafe fn new() -> Self {
|
||||
unimplemented!()
|
||||
}
|
||||
pub struct ActivePageTable(RecursivePageTable<'static>);
|
||||
|
||||
pub fn token() -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
pub struct PageEntry(PageTableEntry);
|
||||
|
||||
impl PageTable for ActivePageTable {
|
||||
type Entry = PageEntry;
|
||||
|
||||
fn map(&mut self, addr: VirtAddr, target: PhysAddr) -> &mut Self::Entry {
|
||||
unimplemented!()
|
||||
fn map(&mut self, addr: usize, target: usize) -> &mut PageEntry {
|
||||
let flags = EF::default();
|
||||
let attr = MairNormal::attr_value();
|
||||
self.0.map_to(Page::of_addr(addr), Frame::of_addr(target), flags, attr, &mut FrameAllocatorForAarch64)
|
||||
.unwrap().flush();
|
||||
self.get_entry(addr)
|
||||
}
|
||||
fn unmap(&mut self, addr: VirtAddr) {
|
||||
unimplemented!()
|
||||
|
||||
fn unmap(&mut self, addr: usize) {
|
||||
let (frame, flush) = self.0.unmap(Page::of_addr(addr)).unwrap();
|
||||
flush.flush();
|
||||
}
|
||||
|
||||
fn get_entry(&mut self, addr: VirtAddr) -> Option<&mut Self::Entry> {
|
||||
unimplemented!()
|
||||
fn get_entry(&mut self, addr: usize) -> Option<&mut PageEntry> {
|
||||
let entry_addr = ((addr >> 9) & 0o777_777_777_7770) | (RECURSIVE_INDEX << 39);
|
||||
Some(unsafe { &mut *(entry_addr as *mut PageEntry) })
|
||||
}
|
||||
|
||||
// For testing with mock
|
||||
fn get_page_slice_mut<'a, 'b>(&'a mut self, addr: VirtAddr) -> &'b mut [u8] {
|
||||
unimplemented!()
|
||||
fn get_page_slice_mut<'a, 'b>(&'a mut self, addr: usize) -> &'b mut [u8] {
|
||||
use core::slice;
|
||||
unsafe { slice::from_raw_parts_mut((addr & !0xfffusize) as *mut u8, PAGE_SIZE) }
|
||||
}
|
||||
|
||||
fn read(&mut self, addr: VirtAddr) -> u8 {
|
||||
unimplemented!()
|
||||
fn read(&mut self, addr: usize) -> u8 {
|
||||
unsafe { *(addr as *const u8) }
|
||||
}
|
||||
|
||||
fn write(&mut self, addr: VirtAddr, data: u8) {
|
||||
unimplemented!()
|
||||
fn write(&mut self, addr: usize, data: u8) {
|
||||
unsafe { *(addr as *mut u8) = data; }
|
||||
}
|
||||
}
|
||||
|
||||
/// TODO
|
||||
pub struct PageEntry {
|
||||
// TODO
|
||||
const ROOT_PAGE_TABLE: *mut Aarch64PageTable =
|
||||
((RECURSIVE_INDEX << 39) | (RECURSIVE_INDEX << 30) | (RECURSIVE_INDEX << 21) | (RECURSIVE_INDEX << 12)) as *mut Aarch64PageTable;
|
||||
|
||||
impl ActivePageTable {
|
||||
pub unsafe fn new() -> Self {
|
||||
ActivePageTable(RecursivePageTable::new(&mut *(ROOT_PAGE_TABLE as *mut _)).unwrap())
|
||||
}
|
||||
fn with_temporary_map(&mut self, frame: &Frame, f: impl FnOnce(&mut ActivePageTable, &mut Aarch64PageTable)) {
|
||||
// Create a temporary page
|
||||
let page = Page::of_addr(0xcafebabe);
|
||||
assert!(self.0.translate_page(page).is_none(), "temporary page is already mapped");
|
||||
// Map it to table
|
||||
self.map(page.start_address().as_u64() as usize, frame.start_address().as_u64() as usize);
|
||||
// Call f
|
||||
let table = unsafe { &mut *page.start_address().as_mut_ptr() };
|
||||
f(self, table);
|
||||
// Unmap the page
|
||||
self.unmap(0xcafebabe);
|
||||
}
|
||||
}
|
||||
|
||||
impl Entry for PageEntry {
|
||||
/// IMPORTANT!
|
||||
/// This must be called after any change to ensure it become effective.
|
||||
/// Usually this will make a flush to TLB/MMU.
|
||||
fn update(&mut self) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
/// Will be set when accessed
|
||||
fn accessed(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
/// Will be set when written
|
||||
fn dirty(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
/// Will PageFault when try to write page where writable=0
|
||||
fn writable(&self) -> bool {
|
||||
unimplemented!()
|
||||
let addr = VirtAddr::new_unchecked((self as *const _ as u64) << 9);
|
||||
tlb_invalidate(addr);
|
||||
}
|
||||
|
||||
/// Will PageFault when try to access page where present=0
|
||||
fn present(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn clear_accessed(&mut self) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn clear_dirty(&mut self) {
|
||||
unimplemented!()
|
||||
}
|
||||
fn present(&self) -> bool { self.0.flags().contains(EF::VALID) }
|
||||
fn accessed(&self) -> bool { self.0.flags().contains(EF::AF) }
|
||||
fn writable(&self) -> bool { self.0.flags().contains(EF::WRITE) }
|
||||
fn dirty(&self) -> bool { self.hw_dirty() && self.sw_dirty() }
|
||||
|
||||
fn set_writable(&mut self, value: bool) {
|
||||
unimplemented!()
|
||||
fn clear_accessed(&mut self) { self.as_flags().remove(EF::AF); }
|
||||
fn clear_dirty(&mut self)
|
||||
{
|
||||
self.as_flags().remove(EF::DIRTY);
|
||||
self.as_flags().insert(EF::AP_RO);
|
||||
}
|
||||
|
||||
fn set_present(&mut self, value: bool) {
|
||||
unimplemented!()
|
||||
fn set_writable(&mut self, value: bool)
|
||||
{
|
||||
self.as_flags().set(EF::AP_RO, !value);
|
||||
self.as_flags().set(EF::WRITE, value);
|
||||
}
|
||||
|
||||
fn target(&self) -> PhysAddr {
|
||||
unimplemented!()
|
||||
fn set_present(&mut self, value: bool) { self.as_flags().set(EF::VALID, value); }
|
||||
fn target(&self) -> usize { self.0.addr().as_u64() as usize }
|
||||
fn set_target(&mut self, target: usize) {
|
||||
self.0.modify_addr(PhysAddr::new(target as u64));
|
||||
}
|
||||
|
||||
fn set_target(&mut self, target: PhysAddr) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
// For Copy-on-write extension
|
||||
fn writable_shared(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn readonly_shared(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn writable_shared(&self) -> bool { self.0.flags().contains(EF::WRITABLE_SHARED) }
|
||||
fn readonly_shared(&self) -> bool { self.0.flags().contains(EF::READONLY_SHARED) }
|
||||
fn set_shared(&mut self, writable: bool) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn clear_shared(&mut self) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
// For Swap extension
|
||||
fn swapped(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn set_swapped(&mut self, value: bool) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn user(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
let flags = self.as_flags();
|
||||
flags.set(EF::WRITABLE_SHARED, writable);
|
||||
flags.set(EF::READONLY_SHARED, !writable);
|
||||
}
|
||||
fn clear_shared(&mut self) { self.as_flags().remove(EF::WRITABLE_SHARED | EF::READONLY_SHARED); }
|
||||
fn user(&self) -> bool { self.0.flags().contains(EF::AP_EL0) }
|
||||
fn swapped(&self) -> bool { self.0.flags().contains(EF::SWAPPED) }
|
||||
fn set_swapped(&mut self, value: bool) { self.as_flags().set(EF::SWAPPED, value); }
|
||||
fn set_user(&mut self, value: bool) {
|
||||
unimplemented!()
|
||||
self.as_flags().set(EF::AP_EL0, value);
|
||||
self.as_flags().set(EF::nG, value); // set non-global to use ASID
|
||||
}
|
||||
|
||||
fn execute(&self) -> bool {
|
||||
unimplemented!()
|
||||
if self.user() {
|
||||
!self.0.flags().contains(EF::XN)
|
||||
} else {
|
||||
!self.0.flags().contains(EF::PXN)
|
||||
}
|
||||
}
|
||||
|
||||
fn set_execute(&mut self, value: bool) {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct MockFrame(PhysAddr);
|
||||
|
||||
impl MockFrame {
|
||||
pub fn of_addr(addr: PhysAddr) -> Self {
|
||||
MockFrame(addr)
|
||||
}
|
||||
pub fn start_address(&self) -> PhysAddr {
|
||||
unimplemented!()
|
||||
if self.user() {
|
||||
self.as_flags().set(EF::XN, !value)
|
||||
} else {
|
||||
self.as_flags().set(EF::PXN, !value)
|
||||
}
|
||||
}
|
||||
pub fn p2_index(&self) -> usize {
|
||||
unimplemented!()
|
||||
fn mmio(&self) -> bool {
|
||||
self.0.attr().value == MairDevice::attr_value().value
|
||||
}
|
||||
pub fn p1_index(&self) -> usize {
|
||||
unimplemented!()
|
||||
fn set_mmio(&mut self, value: bool) {
|
||||
if value {
|
||||
self.0.modify_attr(MairDevice::attr_value())
|
||||
} else {
|
||||
self.0.modify_attr(MairNormal::attr_value())
|
||||
}
|
||||
}
|
||||
pub fn number(&self) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
impl PageEntry {
|
||||
fn read_only(&self) -> bool { self.0.flags().contains(EF::AP_RO) }
|
||||
fn hw_dirty(&self) -> bool { self.writable() && !self.read_only() }
|
||||
fn sw_dirty(&self) -> bool { self.0.flags().contains(EF::DIRTY) }
|
||||
fn as_flags(&mut self) -> &mut EF {
|
||||
unsafe { &mut *(self as *mut _ as *mut EF) }
|
||||
}
|
||||
}
|
||||
|
||||
/// TODO
|
||||
#[derive(Debug)]
|
||||
pub struct InactivePageTable0 {
|
||||
p4_frame: MockFrame,
|
||||
p4_frame: Frame,
|
||||
}
|
||||
|
||||
/// TODO
|
||||
impl InactivePageTable for InactivePageTable0 {
|
||||
type Active = ActivePageTable;
|
||||
|
||||
fn new() -> Self {
|
||||
unsafe {
|
||||
let layout = Layout::new::<u64>();
|
||||
let ptr = alloc(layout);
|
||||
let frame = MockFrame::of_addr(*ptr as usize);
|
||||
InactivePageTable0 { p4_frame: frame }
|
||||
}
|
||||
// When the new InactivePageTable is created for the user MemorySet, it's use ttbr1 as the
|
||||
// TTBR. And the kernel TTBR ttbr0 will never changed, so we needn't call map_kernel()
|
||||
Self::new_bare()
|
||||
}
|
||||
|
||||
fn new_bare() -> Self {
|
||||
unimplemented!()
|
||||
let frame = Self::alloc_frame().map(|target| Frame::of_addr(target))
|
||||
.expect("failed to allocate frame");
|
||||
active_table().with_temporary_map(&frame, |_, table: &mut Aarch64PageTable| {
|
||||
table.zero();
|
||||
// set up recursive mapping for the table
|
||||
table[RECURSIVE_INDEX].set_frame(frame.clone(), EF::default(), MairNormal::attr_value());
|
||||
});
|
||||
InactivePageTable0 { p4_frame: frame }
|
||||
}
|
||||
|
||||
fn edit(&mut self, f: impl FnOnce(&mut Self::Active)) {
|
||||
unimplemented!()
|
||||
active_table().with_temporary_map(&ttbr_el1_read(0), |active_table, p4_table: &mut Aarch64PageTable| {
|
||||
let backup = p4_table[RECURSIVE_INDEX].clone();
|
||||
|
||||
// overwrite recursive mapping
|
||||
p4_table[RECURSIVE_INDEX].set_frame(self.p4_frame.clone(), EF::default(), MairNormal::attr_value());
|
||||
tlb_invalidate_all();
|
||||
|
||||
// execute f in the new context
|
||||
f(active_table);
|
||||
|
||||
// restore recursive mapping to original p4 table
|
||||
p4_table[RECURSIVE_INDEX] = backup;
|
||||
tlb_invalidate_all();
|
||||
});
|
||||
}
|
||||
|
||||
unsafe fn activate(&self) {
|
||||
unimplemented!()
|
||||
let old_frame = ttbr_el1_read(0);
|
||||
let new_frame = self.p4_frame.clone();
|
||||
debug!("switch TTBR0 {:?} -> {:?}", old_frame, new_frame);
|
||||
if old_frame != new_frame {
|
||||
ttbr_el1_write(0, new_frame);
|
||||
tlb_invalidate_all();
|
||||
}
|
||||
}
|
||||
|
||||
unsafe fn with<T>(&self, f: impl FnOnce() -> T) -> T {
|
||||
unimplemented!()
|
||||
// Just need to switch the user TTBR
|
||||
let old_frame = ttbr_el1_read(1);
|
||||
let new_frame = self.p4_frame.clone();
|
||||
debug!("switch TTBR1 {:?} -> {:?}", old_frame, new_frame);
|
||||
if old_frame != new_frame {
|
||||
ttbr_el1_write(1, new_frame);
|
||||
tlb_invalidate_all();
|
||||
}
|
||||
f();
|
||||
debug!("switch TTBR1 {:?} -> {:?}", new_frame, old_frame);
|
||||
if old_frame != new_frame {
|
||||
ttbr_el1_write(1, old_frame);
|
||||
tlb_invalidate_all();
|
||||
flush_icache_all();
|
||||
}
|
||||
}
|
||||
|
||||
fn token(&self) -> usize {
|
||||
0
|
||||
self.p4_frame.start_address().as_u64() as usize // as TTBRx_EL1
|
||||
}
|
||||
|
||||
fn alloc_frame() -> Option<PhysAddr> {
|
||||
fn alloc_frame() -> Option<usize> {
|
||||
alloc_frame()
|
||||
}
|
||||
|
||||
fn dealloc_frame(target: PhysAddr) {
|
||||
fn dealloc_frame(target: usize) {
|
||||
dealloc_frame(target)
|
||||
}
|
||||
}
|
||||
|
||||
impl InactivePageTable0 {
|
||||
fn map_kernel(&mut self) {
|
||||
let table = unsafe { &mut *ROOT_PAGE_TABLE };
|
||||
let e0 = table[KERNEL_PML4].clone();
|
||||
assert!(!e0.is_unused());
|
||||
|
||||
self.edit(|_| {
|
||||
table[KERNEL_PML4].set_frame(Frame::containing_address(e0.addr()), EF::default(), MairNormal::attr_value());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for InactivePageTable0 {
|
||||
fn drop(&mut self) {
|
||||
info!("PageTable dropping: {:?}", self);
|
||||
Self::dealloc_frame(self.p4_frame.start_address().as_u64() as usize);
|
||||
}
|
||||
}
|
||||
|
||||
struct FrameAllocatorForAarch64;
|
||||
|
||||
impl FrameAllocator<Size4KiB> for FrameAllocatorForAarch64 {
|
||||
fn alloc(&mut self) -> Option<Frame> {
|
||||
alloc_frame().map(|addr| Frame::of_addr(addr))
|
||||
}
|
||||
}
|
||||
|
||||
impl FrameDeallocator<Size4KiB> for FrameAllocatorForAarch64 {
|
||||
fn dealloc(&mut self, frame: Frame) {
|
||||
dealloc_frame(frame.start_address().as_u64() as usize);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,59 @@
|
||||
# For more options and information see
|
||||
# http://rpf.io/configtxt
|
||||
# Some settings may impact device functionality. See link above for details
|
||||
|
||||
# uncomment if you get no picture on HDMI for a default "safe" mode
|
||||
#hdmi_safe=1
|
||||
|
||||
# uncomment this if your display has a black border of unused pixels visible
|
||||
# and your display can output without overscan
|
||||
#disable_overscan=1
|
||||
|
||||
# uncomment the following to adjust overscan. Use positive numbers if console
|
||||
# goes off screen, and negative if there is too much border
|
||||
#overscan_left=16
|
||||
#overscan_right=16
|
||||
#overscan_top=16
|
||||
#overscan_bottom=16
|
||||
|
||||
# uncomment to force a console size. By default it will be display's size minus
|
||||
# overscan.
|
||||
#framebuffer_width=1280
|
||||
#framebuffer_height=720
|
||||
|
||||
# uncomment if hdmi display is not detected and composite is being output
|
||||
#hdmi_force_hotplug=1
|
||||
|
||||
# uncomment to force a specific HDMI mode (this will force VGA)
|
||||
#hdmi_group=1
|
||||
#hdmi_mode=1
|
||||
|
||||
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
|
||||
# DMT (computer monitor) modes
|
||||
#hdmi_drive=2
|
||||
|
||||
# uncomment to increase signal to HDMI, if you have interference, blanking, or
|
||||
# no display
|
||||
#config_hdmi_boost=4
|
||||
|
||||
# uncomment for composite PAL
|
||||
#sdtv_mode=2
|
||||
|
||||
#uncomment to overclock the arm. 700 MHz is the default.
|
||||
#arm_freq=800
|
||||
|
||||
# Uncomment some or all of these to enable the optional hardware interfaces
|
||||
#dtparam=i2c_arm=on
|
||||
#dtparam=i2s=on
|
||||
#dtparam=spi=on
|
||||
|
||||
# Uncomment this to enable the lirc-rpi module
|
||||
#dtoverlay=lirc-rpi
|
||||
|
||||
# Additional overlays and parameters are documented /boot/overlays/README
|
||||
|
||||
# Enable audio (loads snd_bcm2835)
|
||||
dtparam=audio=on
|
||||
|
||||
kernel=kernel8.img
|
||||
device_tree=
|
Binary file not shown.
Loading…
Reference in new issue