ARM64 Windows 11で遊ぶ
ARMのWindowsはいいぞ
ARM64のWindowsはARM32(Windows RT)のアプリも動きます。
ARM32ビットはこちら ARM32版Windows 10 build 15035で遊ぶ
ARM64ネイティブアプリ
Section titled “ARM64ネイティブアプリ”- notepad++ 海外でド定番の高性能テキストエディタ
- 7-zip これも海外でド定番のアーカイバ
- Process Explorer
- Process Explorer 日本語化 ARM64向けパッチもある
- Keepass .net framework製なのでダブルクリック一発で動く多分ARM32のWindows10でもいけるかも?
Xiaomi Mi MIX 2S (polaris)にインストール
Section titled “Xiaomi Mi MIX 2S (polaris)にインストール”本体のファームウエアバージョンはV12.0.3.0.QDGMIXMを使用し、LineageOS 20(Android13)とOrangeFox Recoveryがインストールされた状態で作業を行った。
デュアルブートはまだ試していない。
<WRAP round alert 60%> 一番最初にEFSのバックアップを取る
必ずEFSのバックアップを取る
絶対にEFSのバックアップを取る
確実にEFSのバックアップを取る
とにかくにEFSのバックアップを取る
大事なことだから6回言うがにmodemとEFSのバックアップを取る </WRAP>
使用したファイル
Section titled “使用したファイル”adbとfastbootは使えて当然なのでここでは表記しない
- OrangeFox Recovery
- AArch64 Parted
- WOA-Drivers 2210.1-fix
- SDM845 EDK2 - v2.0rc2 issueを見ると最新版は壊れているようなので動作実績があるバージョンを選択した
- edk2-msm 2301.1 ↑のバージョンだと再起動後にタッチパネルが利かなくなる不具合が出たので更新。ちゃんと動いた
個体差等で動作の可否が分かれるので、動かない場合はバージョンを上げ下げするとよい。
公開されているファイル名やバージョン番号がクッソ適当なので自分でわかりやすい名前を付けて管理するしかない。
<WRAP round info 60%> ドライバや手順が更新されておりmix2sではdevcfgの書き込みやdism++の導入は不要 </WRAP>
EFSのバックアップ
Section titled “EFSのバックアップ”TWRPやOrangeFoxRecoveryはROOT権限のadb shellが使えるのでPCからバックアップを取る。
リカバリー内のバックアップ機能を使ったバックアップも併せて取る
Windowsのインストール中にWindowsがEFSを破壊するため、**絶対に**バックアップする。
バックアップがなければLTEが破壊され、半文鎮となります。
adb shelldd if=/dev/block/by-name/fsc of=/sdcard/fscdd if=/dev/block/by-name/fsg of=/sdcard/fsgdd if=/dev/block/by-name/modemst1 of=/sdcard/bootmodem_fs1dd if=/dev/block/by-name/modemst2 of=/sdcard/bootmodem_fs2
adb pull /sdcard/fscadb pull /sdcard/fsgadb pull /sdcard/bootmodem_fs1adb pull /sdcard/bootmodem_fs2バックアップ取ったな?PCに移したな?NextCloudに上げたな?
この下は後戻り出来んぞ?????
<WRAP center round alert 60%> 本当にバックアップを取っておかないと取り返しがつかなくなる </WRAP>
パーティションのサイズ変更
Section titled “パーティションのサイズ変更”パーティションの番号やサイズを間違えないように慎重に作業する。
敢えてノーヒントなので下記の内容を普通に理解できる人以外はやるなよ。
<WRAP round important 60%> 公式の手順書を5回読んで脳内で2回シミュレートして覚悟が決まったらインストールを始める。 </WRAP>
adb push parted /cache/adb shellchmod 755 /cache/partedcd /cache/umount /data./parted /dev/block/sda
GNU Parted 3.5Using /dev/block/sdaWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) printprintModel: SAMSUNG KLUEG8U1EA-B0C1 (scsi)Disk /dev/block/sda: 251GBSector size (logical/physical): 4096B/4096BPartition Table: gptDisk Flags:
Number Start End Size File system Name Flags 1 24.6kB 41.0kB 16.4kB switch 2 41.0kB 73.7kB 32.8kB ssd 3 73.7kB 524kB 451kB bk01 4 524kB 786kB 262kB bk02 5 786kB 1049kB 262kB bk03 6 1049kB 1573kB 524kB keystore 7 1573kB 2097kB 524kB frp 8 2097kB 4194kB 2097kB bk04 9 4194kB 8389kB 4194kB misc10 8389kB 16.8MB 8389kB logfs11 16.8MB 33.6MB 16.8MB oops12 33.6MB 50.3MB 16.8MB devinfo13 50.3MB 67.1MB 16.8MB bk0514 67.1MB 134MB 67.1MB ext4 persist15 134MB 201MB 67.1MB ext4 persistbak16 201MB 268MB 67.1MB logdump17 268MB 403MB 134MB minidump18 403MB 1275MB 872MB ext4 cust19 1275MB 1342MB 67.1MB recovery20 1342MB 1611MB 268MB ext4 cache21 1611MB 251GB 249GB ext4 userdata
(parted) resizepart 21resizepart 21Warning: Partition /dev/block/sda21 is being used. Are you sure you want tocontinue?Yes/No? yesyesEnd? [251GB]? 32GB32GBWarning: Shrinking a partition can cause data loss, are you sure you want tocontinue?Yes/No? yesyes
(parted) mkpart esp fat32 32GB 32.5GBmkpart esp fat32 32GB 32.5GB(parted) set 22 esp onset 22 esp on
(parted) printprintModel: SAMSUNG KLUEG8U1EA-B0C1 (scsi)Disk /dev/block/sda: 251GBSector size (logical/physical): 4096B/4096BPartition Table: gptDisk Flags:
Number Start End Size File system Name Flags 1 24.6kB 41.0kB 16.4kB switch 2 41.0kB 73.7kB 32.8kB ssd 3 73.7kB 524kB 451kB bk01 4 524kB 786kB 262kB bk02 5 786kB 1049kB 262kB bk03 6 1049kB 1573kB 524kB keystore 7 1573kB 2097kB 524kB frp 8 2097kB 4194kB 2097kB bk04 9 4194kB 8389kB 4194kB misc10 8389kB 16.8MB 8389kB logfs11 16.8MB 33.6MB 16.8MB oops12 33.6MB 50.3MB 16.8MB devinfo13 50.3MB 67.1MB 16.8MB bk0514 67.1MB 134MB 67.1MB ext4 persist15 134MB 201MB 67.1MB ext4 persistbak16 201MB 268MB 67.1MB logdump17 268MB 403MB 134MB minidump18 403MB 1275MB 872MB ext4 cust19 1275MB 1342MB 67.1MB recovery20 1342MB 1611MB 268MB ext4 cache21 1611MB 32.0GB 30.4GB ext4 userdata22 32.0GB 32.5GB 499MB fat32 esp boot, esp
(parted) mkpart win ntfs 32.5GB 251GBmkpart win ntfs 32.5GB 251GB(parted) printprintModel: SAMSUNG KLUEG8U1EA-B0C1 (scsi)Disk /dev/block/sda: 251GBSector size (logical/physical): 4096B/4096BPartition Table: gptDisk Flags:
Number Start End Size File system Name Flags 1 24.6kB 41.0kB 16.4kB switch 2 41.0kB 73.7kB 32.8kB ssd 3 73.7kB 524kB 451kB bk01 4 524kB 786kB 262kB bk02 5 786kB 1049kB 262kB bk03 6 1049kB 1573kB 524kB keystore 7 1573kB 2097kB 524kB frp 8 2097kB 4194kB 2097kB bk04 9 4194kB 8389kB 4194kB misc10 8389kB 16.8MB 8389kB logfs11 16.8MB 33.6MB 16.8MB oops12 33.6MB 50.3MB 16.8MB devinfo13 50.3MB 67.1MB 16.8MB bk0514 67.1MB 134MB 67.1MB ext4 persist15 134MB 201MB 67.1MB ext4 persistbak16 201MB 268MB 67.1MB logdump17 268MB 403MB 134MB minidump18 403MB 1275MB 872MB ext4 cust19 1275MB 1342MB 67.1MB recovery20 1342MB 1611MB 268MB ext4 cache21 1611MB 32.0GB 30.4GB ext4 userdata22 32.0GB 32.5GB 499MB fat32 esp boot, esp23 32.5GB 251GB 218GB ntfs win msftdata
(parted) quitquitInformation: You may need to update /etc/fstab.マスストレージモードに変更
Section titled “マスストレージモードに変更”fastboot boot edk2-msm_v2.0rc2_boot-polaris.imgボリュームボタンと電源ボタンで simpleinit に入ってmass storageを選択する。 タッチパネルが利きそうな画面だがmix 2sでは効かない
Windows用パーティションの準備
Section titled “Windows用パーティションの準備”本体とPCをUSB接続し、管理者権限のコマンドプロンプトから作業する。
<WRAP round important 60%> エクスプローラーがフォーマットのお伺いを立ててくるが絶対してはいけない。
即座に文鎮になる。 </WRAP>
DISKPART> lis dis
ディスク 状態 サイズ 空き ダイナ GPT ### ミック ------------ ------------- ------- ------- --- --- ディスク 0 オンライン 2794 GB 0 B * ディスク 1 オンライン 3726 GB 0 B * ディスク 2 オンライン 476 GB 1024 KB * ディスク 3 メディアなし 0 B 0 B ディスク 4 メディアなし 0 B 0 B ディスク 5 メディアなし 0 B 0 B ディスク 6 メディアなし 0 B 0 B ディスク 7 メディアなし 0 B 0 B ディスク 9 オンライン 32 MB 8128 KB * ディスク 10 オンライン 32 MB 28 MB * ディスク 11 オンライン 8 MB 384 KB * ディスク 12 オンライン 4608 MB 63 MB * ディスク 13 オンライン 8 MB 384 KB * ディスク 14 オンライン 233 GB 0 B *
DISKPART> sel dis 14
ディスク 14 が選択されました。
DISKPART> lis par
Partition ### Type Size Offset ------------- ------------------ ------- ------- Partition 1 不明 16 KB 24 KB Partition 2 不明 32 KB 40 KB Partition 3 不明 440 KB 72 KB Partition 4 不明 256 KB 512 KB Partition 5 不明 256 KB 768 KB Partition 6 不明 512 KB 1024 KB Partition 7 不明 512 KB 1536 KB Partition 8 不明 2048 KB 2048 KB Partition 9 不明 4096 KB 4096 KB Partition 10 不明 8 MB 8 MB Partition 11 不明 16 MB 16 MB Partition 12 不明 16 MB 32 MB Partition 13 不明 16 MB 48 MB Partition 14 不明 64 MB 64 MB Partition 15 不明 64 MB 128 MB Partition 16 不明 64 MB 192 MB Partition 17 不明 128 MB 256 MB Partition 18 不明 832 MB 384 MB Partition 19 不明 64 MB 1216 MB Partition 20 不明 256 MB 1280 MB Partition 21 不明 28 GB 1536 MB Partition 22 システム 476 MB 29 GB Partition 23 プライマリ 203 GB 30 GB
DISKPART> sel par 22
パーティション 22 が選択されました。
DISKPART> format quick fs=fat32 label="System"
100% 完了しました
DiskPart は、ボリュームのフォーマットを完了しました。
DISKPART> assign letter="S"
DiskPart はドライブ文字またはマウント ポイントを正常に割り当てました。
DISKPART> sel par 23
パーティション 23 が選択されました。
DISKPART> format quick fs=ntfs label="Windows"
100% 完了しました
DiskPart は、ボリュームのフォーマットを完了しました。
DISKPART> assign letter="W"
DiskPart はドライブ文字またはマウント ポイントを正常に割り当てました。
DISKPART> exit
DiskPart を終了しています...Windowsのインストール
Section titled “Windowsのインストール”Dism /Get-ImageInfo /imagefile:N:\sources\install.wimDism /apply-image /ImageFile:N:\sources\install.wim /index:2 /ApplyDir:W:\bcdboot W:\Windows /s S: /f UEFIドライバのインストール
Section titled “ドライバのインストール”dism /Image:W: /Add-Driver /Driver:R:\WOA-Drivers_polaris_2210.1-fix /RecurseDevcfgパーティションの書き込みは不要。
署名確認の無効化
Section titled “署名確認の無効化”cd /d S:\EFI\Microsoft\Boot
bcdedit /store BCD /set "{default}" testsigning onbcdedit /store BCD /set "{default}" nointegritychecks onbcdedit /store BCD /set "{default}" recoveryenabled noWindowsインストールの仕上げ
Section titled “Windowsインストールの仕上げ”ハードウエアの取り外しを行った後電源を長押しで切る。
fastboot flash boot edk2-msm_v2.0rc2_boot-polaris.imgbootを焼いた後の起動でWindowsの初期設定ウィザードが始まれば成功。
mix 2sはWifiが動作するのでネットワーク接続の回避策は不要。やってもいいけど。
mix 2sは この時点でタッチパネルが効くので効かないようであればキーボードとマウスを接続するか、boot.imgのバージョンを変えてみる
バックアップしたEFSを戻す
Section titled “バックアップしたEFSを戻す”デスクトップまで言って自由に操作可能になったらシャットダウンしてAndroidのリカバリを立ち上げる。
dd if=/sdcard/fsc of=/dev/block/by-name/fscdd if=/sdcard/fsg of=/dev/block/by-name/fsgdd if=/sdcard/bootmodem_fs1 of=/dev/block/by-name/modemst1dd if=/sdcard/bootmodem_fs2 of=/dev/block/by-name/modemst2