Android lsmod输出

Android lsmod输出,android,Android,我很难理解安卓4.0.3的lsmod输出。所有这些“Live ADDR”条目是什么意思 option 14926 0 - Live 0xbf12b000 usb_wwan 9419 1 option, Live 0xbf124000 cdc_acm 15150 0 - Live 0xbf11b000 g_crypto 11918 0 - Live 0xbf0cc000 g_wmt_cmoscam 1421 0 - Live 0xbf0c8000 g_wmt_v4l2_cmos 68606 1 g

我很难理解安卓4.0.3的lsmod输出。所有这些“Live ADDR”条目是什么意思

option 14926 0 - Live 0xbf12b000
usb_wwan 9419 1 option, Live 0xbf124000
cdc_acm 15150 0 - Live 0xbf11b000
g_crypto 11918 0 - Live 0xbf0cc000
g_wmt_cmoscam 1421 0 - Live 0xbf0c8000
g_wmt_v4l2_cmos 68606 1 g_wmt_cmoscam, Live 0xbf0b1000
g_wmt_v4l2 5135 1 g_wmt_v4l2_cmos, Live 0xbf0ab000
g_wmt_ve_h264 11644 0 - Live 0xbf0a5000
g_wmt_ve_com 9021 1 g_wmt_ve_h264, Live 0xbf09e000
g_wmt_vd_vpx 65936 0 - Live 0xbf088000
g_wmt_vd_rv 735 0 - Live 0xbf084000
g_wmt_vd_vc1 713 0 - Live 0xbf080000
g_wmt_vd_h264 715 0 - Live 0xbf07c000
g_wmt_vd_h263 715 0 - Live 0xbf078000
g_wmt_vd_divx 715 0 - Live 0xbf074000
g_wmt_vd_mpeg4 717 0 - Live 0xbf070000
g_wmt_vd_mpeg2 717 0 - Live 0xbf06c000
g_wmt_vd_jdec 18829 0 - Live 0xbf063000
g_wmt_lock 2881 5 - Live 0xbf05f000
g_wmt_vd_com 158558 12 g_wmt_vd_vpx,g_wmt_vd_rv,g_wmt_vd_vc1,g_wmt_vd_h264,g_wmt_vd_h263,g_wmt_vd_divx,g_wmt_vd_mpeg4,g_wmt_vd_mpeg2,g_wmt_vd_jdec, Live 0xbf032000
mali 102375 6 - Live 0xbf00d000
ump 27968 11 mali, Live 0xbf000000
我问这个是因为我使用完全相同的内核来启动Ubuntu,这是Ubuntu上lsmod的输出

option                 14926  0 
g_wmt_lock              2881  0 
g_wmt_vd_jdec          18829  0 
g_wmt_vd_mpeg2           717  0 
g_wmt_vd_mpeg4           717  0 
g_wmt_vd_divx            715  0 
g_wmt_vd_h263            715  0 
g_wmt_vd_h264            715  0 
g_wmt_vd_vc1             713  0 
g_wmt_vd_rv              735  0 
g_wmt_vd_vpx           65936  0 
g_wmt_ve_h264          11644  0 
g_wmt_ve_com            9021  1 g_wmt_ve_h264
g_wmt_cmoscam           1421  0 
g_wmt_v4l2_cmos        68606  1 g_wmt_cmoscam
g_wmt_v4l2              5135  1 g_wmt_v4l2_cmos
g_wmt_vd_com          158558  9 g_wmt_vd_jdec,g_wmt_vd_mpeg2,g_wmt_vd_mpeg4,g_wmt_vd_divx,g_wmt_vd_h263,g_wmt_vd_h264,g_wmt_vd_vc1,g_wmt_vd_rv,g_wmt_vd_vpx
g_crypto               11918  0 
mali                  102375  0 
ump                    27968  1 mali
cdc_acm                15150  0 
usb_wwan                9419  1 option
rt3070sta_rtl8188     442205  0 

HDMI、摄像头等都不能在Ubuntu上工作,尽管两个操作系统都加载了相同的模块。这就是为什么我问起Live和ADDR专栏。我想知道这是否与Ubuntu缺乏功能有关。

lsmod
只是读取文件
/proc/modules
(它实际上调用cat
/proc/modules

这对于许多类似UNIX的操作系统也是一样的:

The first column contains the name of the module.

The second column refers to the memory size of the module, in bytes.

The third column lists how many instances of the module are currently loaded. A value of zero represents an unloaded module.

The fourth column states if the module depends upon another module to be present in order to function, and lists those other modules.

The fifth column lists what load state the module is in: Live, Loading, or Unloading are the only possible values.

The sixth column lists the current kernel memory offset for the loaded module. This information can be useful for debugging purposes, or for profiling tools such as oprofile. 

嘿,谢谢你的回答!我只是为了问这个问题编辑了我的原始答案。你介意看一看吗?你说相机和hdmi在ubuntu上不工作是什么意思?我不知道,例如,在Android上,如果我在开机后使用lsusb,它不会显示相机连接到USB端口。但在我启动摄像头应用程序后,摄像头不知怎么安装上了(通过dmesg和lsusb进行检查)。然而,当我启动Ubuntu时,摄像头根本无法识别(通过dmesg和lsusb进行检查)。如果我在一个通电的USB端口和相机连接的USB端口之间连接一根电线,我会给那个USB端口一个电源,dmesg和lsusb会检测相机。