This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Xperia XA | |
BOARD_KERNEL_OFFSET="40080000" | |
BOARD_RAMDISK_OFFSET="45000000" | |
BOARD_TAGS_OFFSET="44000000" | |
BOARD_KERNEL_CMDLINE=""bootopt=64S3,32N2,64N2"" | |
BOARD_PAGE_SIZE="4096" | |
Xperia X Compact(SO-02J) | |
BOARD_KERNEL_OFFSET="20080000" | |
BOARD_RAMDISK_OFFSET="22000000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lrwxrwxrwx root root 1970-01-27 12:17 DDR -> /dev/block/mmcblk0p23 | |
lrwxrwxrwx root root 1970-01-27 12:17 aboot -> /dev/block/mmcblk0p5 | |
lrwxrwxrwx root root 1970-01-27 12:17 abootbk -> /dev/block/mmcblk0p11 | |
lrwxrwxrwx root root 1970-01-27 12:17 bfss1 -> /dev/block/mmcblk0p37 | |
lrwxrwxrwx root root 1970-01-27 12:17 bfss2 -> /dev/block/mmcblk0p38 | |
lrwxrwxrwx root root 1970-01-27 12:17 boot -> /dev/block/mmcblk0p14 | |
lrwxrwxrwx root root 1970-01-27 12:17 bootwork -> /dev/block/mmcblk0p28 | |
lrwxrwxrwx root root 1970-01-27 12:17 cache -> /dev/block/mmcblk0p20 | |
lrwxrwxrwx root root 1970-01-27 12:17 chkcode -> /dev/block/mmcblk0p29 | |
lrwxrwxrwx root root 1970-01-27 12:17 dbi -> /dev/block/mmcblk0p4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make BOARD_HAS_QCOM_WLAN=false BOARD_HAS_QCOM_WLAN=false BOARD_HAS_QCOM_WLAN=false | |
1. B2G build | |
The build environment is virtually identical to Android. | |
However additional host tools are required, | |
please be sure to install all required prerequisites as listed in build prerequisites. | |
- Download original android source code ( kitkat 4.4.2 ) from http://source.android.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kernel=zImage | |
ramdisk=ramdisk | |
page_size=2048 | |
kernel_size=10399518 | |
ramdisk_size=2636018 | |
base_addr=0x00000000 | |
kernel_addr=0x00008000 | |
ramdisk_addr=0x02000000 | |
tags_addr=0x01e00000 | |
cmd_line="console=ttyHSL0,115200,n8 androidboot.hardware=g3 user_debug=31 msm_rtb.filter=0x0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
①Androidログ出力 | |
・ログに出力時間を含める | |
adb logcat -v time | |
・ファイルに出力 | |
adb logcat > log.txt | |
・ログにスレッドIDも出力 | |
adb logcat -v long |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
・パーティション情報? | |
0865: Start End Actual | |
0903: 0 0:SBL 0x0000 0x0009 0x100000002 main_and_spare_ecc_10 1x_pages .\TOTAL/sbl1.mbn | |
0993: 1 0:MIBIB 0x000A 0x0013 0x100000001 main_and_spare_ecc_10 1x_pages m\bib_partition | |
1082: 2 0:SDI 0x0014 0x002E 0x100000001 main_and_spare_ecc_10 1x_pages .\TOTAL/sdi.mbn | |
1171: 3 0:TZ 0x002F 0x0049 0x100000003 main_and_spare_ecc_10 1x_pages .\TOTAL/tz.mbn | |
1259: 4 0:MBA 0x004A 0x004F 0x100000003 main_and_spare_ecc_10 1x_pages .\TOTAL/mba.mbn | |
1348: 5 0:RPM 0x0050 0x006A 0x100000001 main_and_spare_ecc_10 1x_pages .\TOTAL/rpm.mbn | |
1437: 6 0:EFS2 0x006B 0x00C2 0x100000000 main_and_spare_ecc_10 1x_pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aboot.imgをバイナリエディタで開いて、 | |
アドレス0xCの値から0x28引いたものがABOOT_BASE_G2になる。 | |
(リトルエンディアンなので下位バイトから読む) | |
ABOOT_BASE_G2 = 0x0f800000 - 0x28 = 0x0f7fffd8 | |
今までは、ANDROID_BOOT!のアドレスをOFFSETに指定していたが、 | |
既にコミットされているhdrやcheck_sigsのアドレスから考えると、 | |
G2のOFFSETはapp/aboot/aboot.cのアドレスになる。 |