Download BERI Software reference - The Computer Laboratory
Transcript
Kernel Configuration
device
altera_avgen
FDT
avgen@0x7f00a000 {
compatible = "sri-cambridge,avgen";
reg = <0x7f00a000 0x14>;
sri-cambridge,width = <4>;
sri-cambridge,fileio = "rw";
sri-cambridge,devname = "berirom";
};
device.hints
hint.altera_avgen.0.at="nexus0"
hint.altera_avgen.0.maddr=0x7f00a000
hint.altera_avgen.0.msize=20
hint.altera_avgen.0.width=4
hint.altera_avgen.0.fileio="rw"
hint.altera_avgen.0.devname="berirom"
4.1.3
Altera University Program SD Card IP Core
This device driver implements FreeBSD block storage device interfaces for the Altera University Program SD Card IP core. Currently, the driver supports only CSD structure 0 SD Cards, limited to 2 GB
in size. This limitation may also apply to the Altera SD Card IP Core. SD Card devices appear in
/dev as they are inserted, and will typically be named /dev/altera_sdcard0. FreeBSD’s GEOM
framework will automatically discover partitions on the disk, causing additional device nodes for those
partitions to appear as well – for example, /dev/altera_sdcard0s1 for the first MBR partition.
Kernel Configuration
device
altera_sdcard
FDT
sdcard@7f008000 {
compatible = "altera,sdcard_11_2011";
reg = <0x7f008000 0x400>;
};
device.hints
hint.altera_sdcardc.0.at="nexus0"
hint.altera_sdcardc.0.maddr=0x7f008000
hint.altera_sdcardc.0.msize=0x400
29