The XDAndroid Project is no longer active.
This site provides archived information from while the project was under development. Some links may no longer function.

Difference between revisions of "Kernel boot command-line parameters"

From The XDAndroid Project
Jump to navigation Jump to search
[checked revision][pending revision]
(more)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
This page documents some of the '''kernel boot command-line parameters''' that are useful for XDAndroid users.
 
This page documents some of the '''kernel boot command-line parameters''' that are useful for XDAndroid users.
  
 +
;acpuclock.force_turbo
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/acpuclock.c arch/arm/mach-msm/acpuclock.c]
 +
:?
 
;acpuclock.oc_freq_khz
 
;acpuclock.oc_freq_khz
:change this for overclocking
+
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/acpuclock.c arch/arm/mach-msm/acpuclock.c]
:''540672'': 528 MHz (stock speed for Rhodium)
+
:change this for overclocking (should be a multiple of 19200)
:''716800'': 700 MHz
+
:''768000'': 768 MHz
:''786432'': 768 MHz
+
:''614400'': 614.4 MHz
 
;board-htcraphael-navi.wake
 
;board-htcraphael-navi.wake
:Controls which buttons wake the device from sleep. (board-htcraphael-navi.c)
+
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/board-htcraphael-navi.c arch/arm/mach-msm/board-htcraphael-navi.c]
 +
:Controls which buttons wake the device from sleep.
 
:''0'': ?
 
:''0'': ?
 
;board-htcrhodium-proximity.on
 
;board-htcrhodium-proximity.on
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/board-htcrhodium-proximity.c arch/arm/mach-msm/board-htcrhodium-proximity.c]
 
:''1'': enable proximity sensor
 
:''1'': enable proximity sensor
 
;board-htcrhodium-proximity.wake
 
;board-htcrhodium-proximity.wake
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/board-htcrhodium-proximity.c arch/arm/mach-msm/board-htcrhodium-proximity.c]
 
:''1'': enable wake on proximity sensor
 
:''1'': enable wake on proximity sensor
 
;board-htcvogue.panel_type
 
;board-htcvogue.panel_type
 +
:arch/arm/mach-msm/board-htcvogue.c
 
:Panel type used to power the panel off and on.
 
:Panel type used to power the panel off and on.
 
:''0'': don't power off the panel (default)
 
:''0'': don't power off the panel (default)
Line 20: Line 27:
 
:''3'': Samsung
 
:''3'': Samsung
 
;clock-7x00.a11
 
;clock-7x00.a11
:[[Wikipedia:ARM11|ARM11]] clock speed in MHz. (clock-7x00.c)
+
:arch/arm/mach-msm/clock-7x00.c
 +
:[[Wikipedia:ARM11|ARM11]] clock speed in MHz.
 
;clock-7x00.ahb_div
 
;clock-7x00.ahb_div
:[[Wikipedia:Advanced Microcontroller Bus Architecture#Advanced High-performance Bus (AHB)|Advanced Host Bus]] (AHB) divider. (clock-7x00.c)
+
:arch/arm/mach-msm/clock-7x00.c
 +
:[[Wikipedia:Advanced Microcontroller Bus Architecture#Advanced High-performance Bus (AHB)|Advanced Host Bus]] (AHB) divider.
 
;clock-7x00.mddi
 
;clock-7x00.mddi
:[[Wikipedia:Mobile Display Digital Interface|Mobile Display Digital Interface]] (MDDI) clock address/offset/? (e.g. 0xa51 or 0xe2c) (clock-7x00.c)
+
:arch/arm/mach-msm/clock-7x00.c
 +
:[[Wikipedia:Mobile Display Digital Interface|Mobile Display Digital Interface]] (MDDI) clock address/offset/? (e.g. 0xa51 or 0xe2c)
 
;external.rhod_speaker
 
;external.rhod_speaker
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/qdsp5/external.c arch/arm/mach-msm/qdsp5/external.c]
 
:''1'': enable external speaker
 
:''1'': enable external speaker
 
;gsensor_axis
 
;gsensor_axis
 
:Maps the hardware accelerometer axes to software.
 
:Maps the hardware accelerometer axes to software.
 
;htcblackstone-panel.no_bkl_off
 
;htcblackstone-panel.no_bkl_off
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/board-htcblackstone-panel.c arch/arm/mach-msm/board-htcblackstone-panel.c]
 
:''1'': don't turn off the backlight
 
:''1'': don't turn off the backlight
 
;htc_battery_smem.fake
 
;htc_battery_smem.fake
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/htc_battery_smem.c arch/arm/mach-msm/htc_battery_smem.c]
 
:''1'': turn off low-battery warning
 
:''1'': turn off low-battery warning
 
;htc_hw.call_vol
 
;htc_hw.call_vol
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/htc_hw.c arch/arm/mach-msm/htc_hw.c]
 
:in-call speaker volume level (non-speakerphone speaker)
 
:in-call speaker volume level (non-speakerphone speaker)
 
:''0'': lowest volume
 
:''0'': lowest volume
 
:...
 
:...
 
:''5'': highest volume
 
:''5'': highest volume
;htc_hw.force_cdma
+
;force_cdma
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/htc_hw.c arch/arm/mach-msm/htc_hw.c]
 
:''1'': tells the phone to use CDMA.  This is useful for the Touch Pro2, which can contain both GSM and CDMA hardware.
 
:''1'': tells the phone to use CDMA.  This is useful for the Touch Pro2, which can contain both GSM and CDMA hardware.
 +
;htc_hw.handsfree
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/htc_hw.c arch/arm/mach-msm/htc_hw.c]
 +
:''1'': enable<ref name="thread_509493">http://forum.xda-developers.com/showthread.php?t=509493</ref>
 +
:''2'': disable
 
;hw3d.force
 
;hw3d.force
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/hw3d.c arch/arm/mach-msm/hw3d.c]
 
:''1'': enable hardware 3D
 
:''1'': enable hardware 3D
 
;lcd.density
 
;lcd.density
Line 51: Line 71:
 
:''1'' - ?
 
:''1'' - ?
 
;msmsdcc_1bit
 
;msmsdcc_1bit
:Eschews 4-bit-data mode for 1-bit-data mode in the MSM SD Card Controller. (msm_sdcc.c)
+
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/drivers/mmc/host/msm_sdcc.c drivers/mmc/host/msm_sdcc.c]
 +
:Eschews 4-bit-data mode for 1-bit-data mode in the MSM SD Card Controller.
 
;msmsdcc_fmax
 
;msmsdcc_fmax
:The maximum frequency (in Hz) used by the MSM SD Card Controller. (msm_sdcc.c)
+
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/drivers/mmc/host/msm_sdcc.c drivers/mmc/host/msm_sdcc.c]
 +
:The maximum frequency (in Hz) used by the MSM SD Card Controller.
 
;msmsdcc_nopwrsave
 
;msmsdcc_nopwrsave
:Disables power saving in the MSM SD Card Controller. (msm_sdcc.c)
+
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/drivers/mmc/host/msm_sdcc.c drivers/mmc/host/msm_sdcc.c]
 +
:Disables power saving in the MSM SD Card Controller.
 
;msmts_calib
 
;msmts_calib
 
:?
 
:?
 
;msmvkeyb_toggle
 
;msmvkeyb_toggle
:''off'': MSM virtual keyboard - ?
+
:''off'': MSM virtual [[keyboard]] - ?
 +
:''on'': displays terminal onscreen keyboard<ref name="thread_509493"/>
 
;north_am_dialing
 
;north_am_dialing
 +
:htcgeneric-ril/htcgeneric-ril.c
 
:''1'': tells the [[Wikipedia:Radio Interface Layer|RIL]] to strip "+" characters from phone numbers before dialing them.  This is useful with some North American carriers (e.g. Sprint) that do not handle phone numbers containing "+".  See also http://wiki.cdg.org/wiki/Plus_Code_Dialing.
 
:''1'': tells the [[Wikipedia:Radio Interface Layer|RIL]] to strip "+" characters from phone numbers before dialing them.  This is useful with some North American carriers (e.g. Sprint) that do not handle phone numbers containing "+".  See also http://wiki.cdg.org/wiki/Plus_Code_Dialing.
 
;physkeyboard
 
;physkeyboard
 +
:See also [[keyboard]].
 
:''fuze''
 
:''fuze''
 
:''raph''
 
:''raph''
Line 69: Line 95:
 
::''swiss_raph''
 
::''swiss_raph''
 
:''rhod100_de''
 
:''rhod100_de''
 +
:''rhod100_es''<ref>http://forum.xda-developers.com/showthread.php?t=935710</ref>
 
:''rhod100_fr''
 
:''rhod100_fr''
 
:''rhod100_it''
 
:''rhod100_it''
 
:''rhod100_nordic''
 
:''rhod100_nordic''
 
:''rhod100_uk''
 
:''rhod100_uk''
:''rhod210''
+
:''rhod210'' (T-Mobile Keyboard)
 +
:''rhod300''
 
:''rhod400'' (Sprint keyboard)
 
:''rhod400'' (Sprint keyboard)
 
:''rhod500'' (Verizon keyboard)
 
:''rhod500'' (Verizon keyboard)
 
:''tilt2''
 
:''tilt2''
 
;pm.debug_mask
 
;pm.debug_mask
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/pm.c arch/arm/mach-msm/pm.c]
 
:power management - debug options
 
:power management - debug options
 
:''2'': vibrates phone lightly after it exits deep sleep
 
:''2'': vibrates phone lightly after it exits deep sleep
 
;pm.sleep_mode
 
;pm.sleep_mode
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/pm.c arch/arm/mach-msm/pm.c]
 
:power management: set the mode used when the phone is "off"
 
:power management: set the mode used when the phone is "off"
 
:''0'': Power Collapse Suspend - totally power off the [[Wikipedia:ARM11|ARM11]] ([[Wikipedia:processor register|register]]s must be restored)<ref name="androidport faq">http://sites.google.com/site/androidport/faq</ref>
 
:''0'': Power Collapse Suspend - totally power off the [[Wikipedia:ARM11|ARM11]] ([[Wikipedia:processor register|register]]s must be restored)<ref name="androidport faq">http://sites.google.com/site/androidport/faq</ref>
Line 98: Line 128:
 
:The username used to connect to the network when dialing #777.
 
:The username used to connect to the network when dialing #777.
 
;rel_path
 
;rel_path
:The path where the kernel should look for other XDAndroid files.
+
:The path where the kernel should look for other XDAndroid files. E.g. <code>rel_path=andboot</code>
 
;sensor
 
;sensor
 
:''topaz'': ?
 
:''topaz'': ?
 +
;snd.force_headset
 +
:[http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/qdsp5/snd.c arch/arm/mach-msm/qdsp5/snd.c]
 +
:add headset half autodetection, when you plug in/out the headset, to apply the output update, make a call (or find any other way to call snd_set_device's ioctl)
 +
:''1'': extUSB audio I/O
 +
:''2'': 3.5-mm jack
  
 
==External links==
 
==External links==
 
* http://www.androidonhtc.com/wiki/Boot_Options - similar information
 
* http://www.androidonhtc.com/wiki/Boot_Options - similar information
 
* http://sites.google.com/site/androidport/faq - look for "What are the different cmdline switches I can pass in the Startup.txt?"
 
* http://sites.google.com/site/androidport/faq - look for "What are the different cmdline switches I can pass in the Startup.txt?"
 +
* http://www.gadgetsdotcom.com
 +
* http://www.duaan.com
 +
* http://www.seoserviceskingdom.com
 +
* http://www.howtomakeaboat.net
  
 
==References==
 
==References==
 
<references/>
 
<references/>

Latest revision as of 03:11, 8 January 2012

This page documents some of the kernel boot command-line parameters that are useful for XDAndroid users.

acpuclock.force_turbo
arch/arm/mach-msm/acpuclock.c
?
acpuclock.oc_freq_khz
arch/arm/mach-msm/acpuclock.c
change this for overclocking (should be a multiple of 19200)
768000: 768 MHz
614400: 614.4 MHz
board-htcraphael-navi.wake
arch/arm/mach-msm/board-htcraphael-navi.c
Controls which buttons wake the device from sleep.
0: ?
board-htcrhodium-proximity.on
arch/arm/mach-msm/board-htcrhodium-proximity.c
1: enable proximity sensor
board-htcrhodium-proximity.wake
arch/arm/mach-msm/board-htcrhodium-proximity.c
1: enable wake on proximity sensor
board-htcvogue.panel_type
arch/arm/mach-msm/board-htcvogue.c
Panel type used to power the panel off and on.
0: don't power off the panel (default)
1: Hitachi
2: Topoly
3: Samsung
clock-7x00.a11
arch/arm/mach-msm/clock-7x00.c
ARM11 clock speed in MHz.
clock-7x00.ahb_div
arch/arm/mach-msm/clock-7x00.c
Advanced Host Bus (AHB) divider.
clock-7x00.mddi
arch/arm/mach-msm/clock-7x00.c
Mobile Display Digital Interface (MDDI) clock address/offset/? (e.g. 0xa51 or 0xe2c)
external.rhod_speaker
arch/arm/mach-msm/qdsp5/external.c
1: enable external speaker
gsensor_axis
Maps the hardware accelerometer axes to software.
htcblackstone-panel.no_bkl_off
arch/arm/mach-msm/board-htcblackstone-panel.c
1: don't turn off the backlight
htc_battery_smem.fake
arch/arm/mach-msm/htc_battery_smem.c
1: turn off low-battery warning
htc_hw.call_vol
arch/arm/mach-msm/htc_hw.c
in-call speaker volume level (non-speakerphone speaker)
0: lowest volume
...
5: highest volume
force_cdma
arch/arm/mach-msm/htc_hw.c
1: tells the phone to use CDMA. This is useful for the Touch Pro2, which can contain both GSM and CDMA hardware.
htc_hw.handsfree
arch/arm/mach-msm/htc_hw.c
1: enable[1]
2: disable
hw3d.force
arch/arm/mach-msm/hw3d.c
1: enable hardware 3D
lcd.density
?
mddi.width
MDDI - ?
mddi.height
MDDI - ?
msm_blackstone_pad.vibrate
1 - ?
msmsdcc_1bit
drivers/mmc/host/msm_sdcc.c
Eschews 4-bit-data mode for 1-bit-data mode in the MSM SD Card Controller.
msmsdcc_fmax
drivers/mmc/host/msm_sdcc.c
The maximum frequency (in Hz) used by the MSM SD Card Controller.
msmsdcc_nopwrsave
drivers/mmc/host/msm_sdcc.c
Disables power saving in the MSM SD Card Controller.
msmts_calib
?
msmvkeyb_toggle
off: MSM virtual keyboard - ?
on: displays terminal onscreen keyboard[1]
north_am_dialing
htcgeneric-ril/htcgeneric-ril.c
1: tells the RIL to strip "+" characters from phone numbers before dialing them. This is useful with some North American carriers (e.g. Sprint) that do not handle phone numbers containing "+". See also http://wiki.cdg.org/wiki/Plus_Code_Dialing.
physkeyboard
See also keyboard.
fuze
raph
german_raph
nordic_raph
swiss_raph
rhod100_de
rhod100_es[2]
rhod100_fr
rhod100_it
rhod100_nordic
rhod100_uk
rhod210 (T-Mobile Keyboard)
rhod300
rhod400 (Sprint keyboard)
rhod500 (Verizon keyboard)
tilt2
pm.debug_mask
arch/arm/mach-msm/pm.c
power management - debug options
2: vibrates phone lightly after it exits deep sleep
pm.sleep_mode
arch/arm/mach-msm/pm.c
power management: set the mode used when the phone is "off"
0: Power Collapse Suspend - totally power off the ARM11 (registers must be restored)[3]
1: Power Collapse - totally power off the ARM11 (registers must be restored)[3]
2: Apps Sleep - ARM11 is still on, but put into low-power mode (registers are still saved)[3]
3: the ARM11's clock is lowered to 20 MHz instead of 300–500, and voltage is lowered too; wait for interrupt[3]
4: Wait for Interrupt - no change in ARM11's clock or voltage[3]
pmem.extra
1: ?
ppp.apn
PPP Access Point Name, e.g. "internet"
ppp.nostart
1: disable starting the PPP connection on boot
ppp.password
The password used to connect to the network when dialing #777.
ppp.username
The username used to connect to the network when dialing #777.
rel_path
The path where the kernel should look for other XDAndroid files. E.g. rel_path=andboot
sensor
topaz: ?
snd.force_headset
arch/arm/mach-msm/qdsp5/snd.c
add headset half autodetection, when you plug in/out the headset, to apply the output update, make a call (or find any other way to call snd_set_device's ioctl)
1: extUSB audio I/O
2: 3.5-mm jack

External links

References