Jump to content

User:Halamix2/test: Difference between revisions

From postmarketOS Wiki
Halamix2 (talk | contribs)
Halamix2 (talk | contribs)
Line 26: Line 26:


// final cmdline
// final cmdline
//console=tty0 console=ttyMT0,921600n1 vmalloc=400M slub_debug=OFZPU page_owner=on swiotlb=noforce cgroup.memory=nosocket,nokmem androidboot.hardware=mt6739 maxcpus=8 firmware_class.path=/vendor/firmware loop.max_part=7 has_battery_removed=0 androidboot.boot_devices=bootdevice,soc/11230000.mmc,11230000.mmc ramoops.mem_address=0x44410000 ramoops.mem_size=0xe0000 ramoops.pmsg_size=0x10000 ramoops.console_size=0x40000 bootopt=64S3,32S1,32S1 buildvariant=user root=/dev/ram androidboot.vbmeta.device=PARTUUID=bece74c8-d8e2-4863-9bfe-5b0b66bb920f androidboot.vbmeta.avb_version=1.1 androidboot.vbmeta.device_state=unlocked androidboot.veritymode=enforcing androidboot.veritymode.managed=yes androidboot.verifiedbootstate=orange fih_hwid=0x034 androidboot.colorver=L androidboot.skuid=600E0 fih_skuid=600E0 ramtest_result=0x0 androidboot.sim_card_slot=0 emmc_total_size=0x1d2880000 emmc_user_size=0x1d2000000 memory_type=0x203 ddr_vendor=0x1 androidboot.securityfused=true androidboot.fac=0 androidboot.atm=disabled androidboot.meta_log_disable=0 ro.boot.fdp.uid=150100464e36324d42030534c6f036bd androidboot.remote_lock=noactive androidboot.device=ANT mtk_printk_ctrl.disable_uart=1 androidboot.serialno=ANTH10009507045F androidboot.bootreason=lk_crash gpt=1 usb2jtag_mode=0 androidboot.dtb_idx=0 androidboot.dtbo_idx=0 androidboot.hwmodel=ANT androidboot.simslot=2
//console=tty0 console=ttyMT0,921600n1 vmalloc=400M slub_debug=OFZPU page_owner=on swiotlb=noforce cgroup.memory=nosocket,nokmem androidboot.hardware=mt6739 maxcpus=8 firmware_class.path=/vendor/firmware loop.max_part=7 has_battery_removed=0 androidboot.boot_devices=bootdevice,soc/11230000.mmc,11230000.mmc ramoops.mem_address=0x44410000 ramoops.mem_size=0xe0000 ramoops.pmsg_size=0x10000 ramoops.console_size=0x40000 bootopt=64S3,32S1,32S1 buildvariant=user root=/dev/ram androidboot.vbmeta.device=PARTUUID=bece74c8-d8e2-4863-9bfe-5b0b66bb920f androidboot.vbmeta.avb_version=1.1 androidboot.vbmeta.device_state=unlocked androidboot.veritymode=enforcing androidboot.veritymode.managed=yes androidboot.verifiedbootstate=orange fih_hwid=0x034 androidboot.colorver=L androidboot.skuid=600E0 fih_skuid=600E0 ramtest_result=0x0 androidboot.sim_card_slot=0 emmc_total_size=0x1d2880000 emmc_user_size=0x1d2000000 memory_type=0x203 ddr_vendor=0x1 androidboot.securityfused=true androidboot.fac=0 androidboot.atm=disabled androidboot.meta_log_disable=0 ro.boot.fdp.uid=XXX androidboot.remote_lock=noactive androidboot.device=ANT mtk_printk_ctrl.disable_uart=1 androidboot.serialno=XXX androidboot.bootreason=lk_crash gpt=1 usb2jtag_mode=0 androidboot.dtb_idx=0 androidboot.dtbo_idx=0 androidboot.hwmodel=ANT androidboot.simslot=2
</syntaxhighlight>
</syntaxhighlight>

Revision as of 00:07, 7 February 2025

Getting stuff from stock Android

Or what info I had to check before porting, examples from HMD Global Nokia 1 Plus (nokia-ant)

Prerequisites

  • If bootloader can be unlocked and unlocking it

Android apks

Find an app that can print some data bout your device (RAM, resolution etc.) I've used Device Info HW+. That way I was able to determne that my phone should have hardware acceleration for MP3, GMS audio and following video formats: AVC, H264, HEVC, MPEG2, MPEG4, VPX, VP9, VC1, XVID; and it has hardware acceleration for AVC, H263, MPEG4 encoding.

Boot options

Sanity check if bootloader injects any cmdline boot params

// to compare with boot.img/kernel compile options if nothing gets added by the boot process
$ adb shell cat /proc/cmdline
// if the file is unavailable (newer Androids) you can make full bugrepots, which takes several minutes, and it should contain current cmdline
$ adb bugreport

// default kernels options were
// console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O
// default boot.img options were
// bootopt=64S3,32S1,32S1 buildvariant=user

// final cmdline
//console=tty0 console=ttyMT0,921600n1 vmalloc=400M 			slub_debug=OFZPU page_owner=on swiotlb=noforce 			cgroup.memory=nosocket,nokmem 			androidboot.hardware=mt6739 maxcpus=8 			firmware_class.path=/vendor/firmware loop.max_part=7 has_battery_removed=0 androidboot.boot_devices=bootdevice,soc/11230000.mmc,11230000.mmc ramoops.mem_address=0x44410000 ramoops.mem_size=0xe0000 ramoops.pmsg_size=0x10000 ramoops.console_size=0x40000 bootopt=64S3,32S1,32S1 buildvariant=user root=/dev/ram androidboot.vbmeta.device=PARTUUID=bece74c8-d8e2-4863-9bfe-5b0b66bb920f androidboot.vbmeta.avb_version=1.1 androidboot.vbmeta.device_state=unlocked androidboot.veritymode=enforcing androidboot.veritymode.managed=yes androidboot.verifiedbootstate=orange fih_hwid=0x034 androidboot.colorver=L androidboot.skuid=600E0 fih_skuid=600E0 ramtest_result=0x0 androidboot.sim_card_slot=0 emmc_total_size=0x1d2880000 emmc_user_size=0x1d2000000 memory_type=0x203 ddr_vendor=0x1 androidboot.securityfused=true androidboot.fac=0 androidboot.atm=disabled androidboot.meta_log_disable=0 ro.boot.fdp.uid=XXX androidboot.remote_lock=noactive androidboot.device=ANT mtk_printk_ctrl.disable_uart=1 androidboot.serialno=XXX androidboot.bootreason=lk_crash gpt=1 usb2jtag_mode=0 androidboot.dtb_idx=0 androidboot.dtbo_idx=0 androidboot.hwmodel=ANT androidboot.simslot=2