Acer Shared Memory Debug

Roman Yepishev edited this page Jun 10, 2013 · 1 revision

A1 device has a memory block shared with AMSS defined in arch/arm/mach-msm/include/mach/board_acer.h:

typedef struct {
        acer_amss_boot_mode_t           amss_boot_mode;
        acer_uart_log_switch_t          uart_log_switch;
#ifndef ACER_BATT_TEMP_BY_SMEM_CMD
        acer_batt_temp_info_t           batt_temp_info;
#endif
        acer_charger_type_t             charger_type;
        acer_bootmode_id_type           bootmode_info;
        char                            amss_sw_version[15];
        acer_hw_version_t               hw_version;
        unsigned char                   batt_capacity;
        unsigned char                   factory_sn[32];
        acer_os_pwr_state_t             os_pwr_state;
        unsigned char                   os_sw_version[32];
} acer_smem_flag_t;

This is now exported via debugfs:

# mount -t debugfs nodev /sys/kernel/debug
# cd /sys/kernel/debug/acer_smem/                                              
# ls
os_sw_version
os_pwr_state
factory_sn
batt_capacity
hw_version
amss_sw_version
bootmode_info
charger_type
batt_temp_info
uart_log_switch
amss_boot_mode
# cat os_sw_version                                                            
Acer_LiquidE_4.008.08_EMEA-VFIT
# cat charger_type
ACER_CHARGER_TYPE_USB