2017年11月12日 星期日

主機板BIOS 嗶聲錯誤提示

主機板 BIOS 嗶聲判讀
  
AWARD BIOS(技嘉、微星大多數為此)

嗶聲狀態可能問題嗶聲狀態可能問題
一短系統啟動正常一長三短鍵盤錯誤
二短CMOS設定錯誤一長九短ROM錯誤
一長一短DRAM錯誤不斷長響DRAM未插好
一長二短顯示卡或螢幕不停急響電源供應


AMI BIOS(華碩似乎較多採用AMI BIOS)
嗶聲狀態可能問題嗶聲狀態可能問題
一短DRAM刷新錯誤六短鍵盤錯誤
二短DRAM ECC錯誤八短顯示卡記憶體錯誤
三短DRAM檢查失敗九短ROM錯誤
五短CPU錯誤一長三短DRAM損壞
一長三短DRAM損壞一長八短顯示卡 或 螢幕

IBM BIOS(很少遇到了)
嗶聲狀態可能問題嗶聲狀態可能問題
電源器 主機板損壞持續短聲電源供應器或主機板損壞
持續主機板嚴重損壞一長一短主機板有錯誤
短聲系統自我測試正確一長二短(三短)顯示卡錯誤
二短聲自我測試發現錯誤三長聲鍵盤錯誤

PHOENIX BIOS(這個比較亂一點,用到機會應該跟IBM差不多少)
嗶聲錯誤&描述
1 1 3CMOS-RAM 的存取
1 1 4ROM-BIOS 檢查值
1 2 1可撰寫的計時器晶片 (8253)
1 2 2直接記憶體存取途徑第 0 號之位址與 / 或計數暫存器
1 2 3直接記憶體存取"頁暫存器"之讀寫
1 3 1記憶體恢復
1 3 3前 64K 記憶體之晶片或資料線
1 3 4前 64K 記憶體有錯誤:單 / 雙邏輯錯誤
1 4 1前 64K 記憶體有錯誤:位址匯流排
1 4 2前 64K 記憶體中發生等位錯誤
1 4 3安全計時器 (只有在 EISA BIOS 中才有)
1 4 4非遮蔽中斷 (NMI) 介面的軟體 (只有在 EISA BIOS 中才有)
2 1 1故障的前 64K 記憶體中之位元 0
2 1 2故障的前 64K 記憶體中之位元 1
2 1 3故障的前 64K 記憶體中之位元 2

2017年10月25日 星期三

EFI/UEFI Shell Command

EFI/UEFI Shell Command

Lists the commands supported by the EFI Shell interface on EFI/UEFI.
The EFI Shell is accessible from an nPartition console when the nPartition is in an active state but has not booted an operating system.
For details on these commands, enter help command at the EFI shell prompt.


The following categories of commands are available:
    “Boot Commands — EFI Shell”.
    “Configuration Commands — EFI Shell”.
    “Device, Driver, and Handle Commands — EFI Shell”.
    “Filesystem Commands — EFI Shell”.
    “Memory Commands — EFI Shell”.
    “Shell Navigation and Other Commands — EFI Shell”.
    “Shell Script Commands / Programming Constructs — EFI Shell”.


CommandDescription
Boot Commands — EFI Shell. Commands related to nPartition booting.
autobootSet/view autoboot timeout variable.
bcfgDisplay/modify the driver/boot configuration.
boottestSet/view BootTest bits.
dbprofileDisplay/modify direct boot profiles for use by lanboot.
lanbootBoot over the LAN.
reconfigresetReset the system (nPartition) for reconfiguration; the nPartition remains inactive, in the shutdown for reconfig state.
resetReset the system (nPartition).
searchConnect drivers for bootables devices.
Configuration Commands — EFI Shell. Commands for changing and retrieving system (nPartition) information.
acpiconfigSet/view ACPI configuration mode.
cellconfigDeconfigure/reconfigure cells. (Set cell use-on-next-boot values.)
cpuconfigDeconfigure/reconfigure processors and processor cores..
dateDisplay the current date or set the date of the system (nPartition).
dimmconfigDeconfigure/reconfigure memory (DIMMs).
errDisplay/change the error level.
errdumpView/clear logs.
fruView FRU data.
infoDisplay hardware information.
monarchSet/view a monarch processor.
palprocMake a PAL call.
romdriversEnable/disable PCI expansion ROM drivers.
rootcellSet/view preferred root cells. (Set nPartition core cell choices.)
salprocMake a SAL call.
tftpPerforms TFTP operation to a bootp/DHCP enabled Unix boot server.
timeDisplay the current time or set the time of the system (nPartition). EFI time is set and presented in GMT (Greenwich mean time).
variableSave/restore specific EFI variables.
verDisplay the version information.
Device, Driver, and Handle Commands — EFI Shell. Commands for managing devices, drivers, and handles.
baudView serial port com settings.
connectBind a driver to a device.
dblkHex dump of BlkIo devices.
devicesDisplay devices managed by EFI drivers.
devtreeDisplay tree of devices.
dhDump handle info.
disconnectDisconnect driver(s) from device(s).
driversDisplay list of drivers.
drvcfgInvoke the Driver Config Protocol.
drvdiagInvoke the Driver Diagnostics Protocol.
guidDump known GUID IDs.
lanaddressDisplay MAC address.
loadLoad EFI drivers.
mapMap shortname to device path.
openinfoDisplay the open protocols for given handle.
pciDisplay PCI devices or PCI function configuration space.
reconnectReconnect driver(s) from a device.
unloadUnload a protocol image.
Filesystem Commands — EFI Shell. Commands for managing files, directories, and attributes.
attribDisplay/change the attributes of files/directories.
cdUpdate/view the current directory.
compCompare the contents of two files.
cpCopy one or more files/directories to another location.
editEdit an ASCII or UNICODE file in full screen.
eficompressCompress infile and write to outfile.
efidecompressDecompress infile and write to outfile.
hexeditEdit a file, block device, or memory region using hex.
lsDisplay a list of files and subdirectories in a directory.
mkdirCreate one or more directories.
mountMount a filesystem on a block device.
rmDelete one or more files/directories.
setsizeSet the size of a file.
touchUpdate time of file/directory with current time.
typeDisplay the contents of a file.
volDisplay volume information of the file system.
Memory Commands — EFI Shell. Commands for listing and managing memory, EFI variables, and NVRAM details.
defaultSet the default NVRAM values.
dmemDump memory or memory mapped IO.
dmpstoreDisplay all EFI variables.
memmapDisplay the memory map.
mmDisplay/modify MEM/IO/PCI.
pdtView/clear nPartition or cell memory page deallocation table (PDT).
Shell Navigation and Other Commands — EFI Shell. Commands for basic EFI Shell navigation and customization.
aliasSet/get alias settings.
clsClear the standard output with an optional background color.
exitExit EFI Shell environment.
getmtcDisplay current monotonic counter value.
help or ?Display help.
modeDisplay the mode of the console output device.
setSet/Get environment variable.
xcharTurn on/off extended character features.
Shell Script Commands / Programming Constructs — EFI Shell. EFI shell-script commands.
echoEcho message to stdout or toggle script echo.
elseScript-only: Use with IF THEN.
endforScript-only: Delimiter for FOR loop construct.
endifScript-only: Delimiter for IF THEN construct.
forScript-only: Loop construct.
gotoScript-only: Jump to label location in script.
ifScript-only: IF THEN construct.
inputTake user input and place in EFI variable.
pauseScript-only: Prompt to quit or continue.
stallStall the processor for some microseconds.

Resets the system.

RESET [-w [string]]
RESET [-s [string]]


    -w       - Performs a warm reset
    -s       - Performs a shutdown
    string   - String to be passed to reset service


Note:
   1. Not all systems support the '-w' option.
   2. Reset will be guaranteed to reset the chipset as well as the processor
      when cold reset is called.
   3. This command does not support output redirection.

2017年10月11日 星期三

判別Linux安裝於EFI Mode或是Legacy Mode?

請用“df –a”指令可以查出SuSE Linux Enterprise Server 是不是裝於EFI Mode


RPM Command

一、基本安裝
rpm -ivh 軟體套件名稱
i 是 install,v(verbose)是顯示,h 是進度以一串 ########### 來表示
二、基本安裝的問題
(1)該軟體已安裝過
rpm -ivh 套件名稱
套件名稱 is already installed..
如果要重新安裝可用--force 指令:
--force 表示強行置換
rpm -ivh --force 套件名稱
(2)沒有相依的套件
rpm -ivh php-imap.x.rpm
failed dependencies:imap is needed by php-imap
如果不管軟體的相依性,可用--nodeps指令強制安裝
rpm -ivh --nodeps php-ldap*.rpm
三、移除套件
rpm -e 套件名稱
四、升級套件
rpm -Uvh 套件名稱
U是upgrade, 表示會把舊的軟體移除再安裝新的,所以不管有沒有安裝過都可以使用rpm -Uvh來安裝軟體
五、更新套件
 rpm -Fvh 套件名稱
-F 選項有個特性:只有已經安裝過的套件才會更新,這點和 rpm -Uvh 中的 U 升級是不同的,因此極適合拿來大量修補套件之用。
六、查詢
rpm -qa | grep mesa
rpm -ql apache
a 是 all,q 是 query 查詢已安裝的套件,grep 是搜尋符合的字串
l 是列出的意思(list)
rpm -qf /usr/bin/neat
查詢 neat 這個指令是從那一個 rpm 套件安裝的。


###################################################
Ubuntu/Debian dpkg search command
dpkg -l | grep libgl

2017年10月10日 星期二

Intel(R) Ethernet Connection (2) I219-V Wake On Lan Windows 10 failed

you need to untick the option "Turn on fast startup" in 
Control Panel\Hardware and Sound\Power Options 
(accessible via "Power and Sleep". See picture below as well.

After this, WOL worked fine!

































Windows 10 ver 1709 set:











2017年10月4日 星期三

PnPUtil Command Syntax

Pnputil

適用於: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista,2012,10,2016
Pnputil.exe is a command line utility that you can use to manage the driver store. You can use Pnputil to add driver packages, remove driver packages, and list driver packages that are in the store.

Syntax

pnputil.exe [-f | -i] [ -? | -a | -d | -e ] <INF name>

Parameters

 

-a
Specifies to add the identified INF file.
-d
Specifies to delete the identified INF file.
-e
Specifies to enumerate all third-party INF files.
-f
Specifies to force the deletion of the identified INF file. Cannot be used in conjunction with the –iparameter.
-i
Specifies to install the identified INF file. Cannot be used in conjunction with the -f parameter.
/?
Displays help at the command prompt.

Remarks

Examples

  • pnputil.exe -a a:\usbcam\USBCAM.INF Adds the INF file that is specified by USBCAM.INF
  • pnputil.exe -a c:\drivers\*.inf Adds all INF files in c:\drivers\
  • pnputil.exe -i -a a:\usbcam\USBCAM.INFAdds and installs the specified driver.
  • pnputil.exe –e Enumerates all third-party drivers.
  • pnputil.exe -d oem0.inf Deletes the specified.
  • pnputil.exe -f -d oem0.inf Forces the deletion of the specified INF file.