FAQ Of EBD9200I Linux.docx
《FAQ Of EBD9200I Linux.docx》由会员分享,可在线阅读,更多相关《FAQ Of EBD9200I Linux.docx(26页珍藏版)》请在冰豆网上搜索。
FAQOfEBD9200ILinux
EBD9200-IUserGuide
FAQOfEBD9200-ILinux
CopyrightShenzhen Embedall Technology Co., Ltd
6-Nov-2006
V1.0-E
TableofContents
1.Introduction3
2.HowtouseUSBHost3
3.HowtouseUART5
4.HowtouseEthernet7
5.HowtouseLCD10
6.HowtouseNandFlash(SMC_Card)andYaffsfilesystem13
7.HowtouseNorFlashandJffs2filesystem16
8.HowtouseCFandIDE20
9.HowtouseCAN-Bus23
10.HowtouseRTC(DS1307)25
11.Howtousewatchdog(internal)27
1.Introduction
Thisdocumentcoverssomefrequentlyaskedquestionsandanswersonlinuxbsp.
2.HowtouseUSBHost
Select“USBsupport”
Select“AT91RM9200OHCI-compatiblehostinterfacesupport”
IfyouwanttosupportUSBmouseorUSBkeyboard,youmustselectthat:
IfyouwanttootherUSBdevices,youcanfindthem,andthenyouselectthem.
WhenLinuxup,inserttheUSBdevices,youcanshowthat:
Usecommand“mount”tooperateit:
3.HowtouseUART
Select“Characterdevices”
Select“Serialdrivers”
Select“AT91RM9200serialportsupport”and“ConsoleonAT91RM9200serialport”
Therearetwointernalserialports,whenLinuxup,youcanfindthedevices“ttyS0~ttyS1”inthe/dev/.
4.HowtouseEthernet
Select“Networkingoptions”
Youcanseethat:
Andyoumustselectnetworkprotocol,whatyouwant.
Select“Networkdevicesupport”
Select“Networkdevicesupport”,andthenenter“Ethernet(10or100Mbit)”.
Select“AT91RM9200Ethernetsupport”and“RMIIinterface”
IfyouareatthefirsttimetouseEthernet,youmustsetMACandIP.
SetMACandIP:
5.HowtouseLCD
Select“Consoledrivers”
Select“Frame-buffersupport”
Youmustselectthat:
EBD9200-IsupportalotofLCDS,formoreinformation,pleaseseethefilesontheCD:
“/LinuxCodes/Kernel/”
Thereisafiles1d13806.honeveryfile.whenyouwanttouseLCD,youmustreplacethefile“s1d13806.h”onLinuxsource“/drivers/video/epson/”withthefileontheCD.
WhenuseSTN320_240,mustselect“8bpppackedpixelssupport”,othersmustselect“16bpppackedpixelssupport”.
6.HowtouseNandFlash(SMC_Card)andYaffsfilesystem
Select“MemoryTechnologyDevices(MTD)”
Selectthat:
Andenter“NANDFlashDeviceDrivers”,select“SmartMediaCardonAtmelAT91RM9200”
IfyouselectNandFlash,andthenyoumustsupportyaffsfilesystem.
Select“Filesystems”
youmustselectthattosupportyaffsfilesystem.
Ifyouuse64MBNandFlash(intelflashE28F128J3A),andwhenLinuxup,youcanseethat:
SmartMediacardinserted.
NANDdevice:
ManufacturerID:
0xec,ChipID:
0x76(SamsungNAND64MiB3,3V)
Creating2MTDpartitionson"NAND64MiB3,3V":
0x00000000-0x02000000:
"NANDpartition1,root-yaffs"
0x02000000-0x04000000:
"NANDpartition2,use-yaffs"
Youcanalsousecommand“cat”tofindthatonthefile“/proc/mtd”.
Andthenyoucanusecommand“mount”tooperateit:
7.HowtouseNorFlashandJffs2filesystem
Select“MemoryTechnologyDevices(MTD)”
Select“RAM/ROM/Flashchipdrivers”
Andthenselectthat:
Select“Mappingdriversforchipaccess”,
Andthenselectthat:
IfyouselectNorFlash,andthenyoumustsupportyaffsfilesystem.
Select“Filesystems”
youmustselectthattosupportJffs2filesystem.
Ifyouuse16MBNorFlash,andwhenLinuxup,youcanseethat:
physmapflashdevice:
1000000at10000000
cfi_cmdset_0001:
Erasesuspendonwriteenabled
Usingbufferwritemethod
usingstaticpartitiondefinition
Creating1MTDpartitionson"Physicallymappedflash(E28F128J3A)":
0x00100000-0x00fe0000:
"Norpartition,jffs2"
Youcanalsousecommand“cat”tofindthatonthefile“/proc/mtd”.
Andthenyoucanusecommand“mount”tooperateit:
8.HowtouseCFandIDE
Select“ATAsupport”
Select“ATA/ATAPI/MFM/RLLsupport”,andtheenter“IDE,ATAandATAPIBlockdevices”
Andthenselectthat
Ifyouselectthe“ATAforAT91RM9200”,andthenyoumustselectvfatfilesystemtosupportit.
Select“Filesystems”
Select“VFAT(Windows-95)fssupport”
TherearetwoslotsforATA,one(J17)isforCFcardslot,another(CN2)isforIDEcardslot.
IfyouwanttouseCFcardorIDEcard,youmustsettheVCC(J33)andthecardwhichoneismasterorslave(J34andJ35).
Ifyoudoabove,andtheninsertthecard,whenLinuxup,youcanseetheinformation:
ide:
Assuming50MHzsystembusspeedforPIOmodes;overridewithidebus=xx
EBD9200IDEinitialization-driverversion1.0,2-18-06.
hda:
HitachiXX.V.3.4.0.0,CFADISKdrive
ide0at0xc2a81040-0xc2a81047,0xc2a81038onirq28
hda:
attachedide-diskdriver.
hda:
250368sectors(128MB)w/1KiBCache,CHS=978/8/32
Partitioncheck:
/dev/ide/host0/bus0/target0/lun0:
p1
SCSIsubsystemdriverRevision:
1.00
Andthenyoucancreateanewfilec,andusecommand“mount”tooperateit:
9.HowtouseCAN-Bus
Select“Characterdevices”
Select“AT91RM9200SPIdeviceinterface”and“AT91RM9200CAN-Businterface”
Youcanfindthedevices“0”and“1”inthe“/dev/spi/”whenLinuxstarted.
AndyoualsocanusethefileCANtesttotesttheCAN-Bus.
BeforeyourunCANtest,youmustconnecttheJ1orJ3toaCANEquipment.
10.HowtouseRTC(DS1307)
Select“Characterdevices”
Select“AT91RM9200I2C-BusinterfaceForDS1307”
Youcanfindthedevice“0”inthe“/dev/i2c/”whenLinuxstarted.
Andyoualsocanusethefile“ds1307”toresetthetimeorshowthetime.
11.Howtousewatchdog(internal)
Select“Characterdevices”
Select“WatchdogCards”
Select“AT91RM9200watchdog”
Youcanfindthedevices“watchdog”inthe“/dev/misc/”whenLinuxstarted.
PASS-061106DY-XJW000-070201GHX-0921-