add some rough directions on how to buld a Mobian image
This commit is contained in:
parent
7dcdd22065
commit
d091516a80
1 changed files with 48 additions and 0 deletions
48
README.md
48
README.md
|
|
@ -132,3 +132,51 @@ To Do:
|
|||
- Push changes for Mobian recipes to git
|
||||
- Add droid-juicer config
|
||||
- Amend qcom-phone-utils package (initramfs hooks, perhaps more)
|
||||
|
||||
## Building the Kernel .deb
|
||||
|
||||
```
|
||||
make defconfig pdx213_defconfig usb-gadget-network.config
|
||||
make -j`nproc` bindeb-pkg
|
||||
```
|
||||
|
||||
## Obtaining firmware files
|
||||
|
||||
This should normally happen automatically using `droid-juicer` on first boot, however, as UFS is not supported yet, we have to boot a working system and obtain the files manually for now.
|
||||
|
||||
Easiest way to do that is to use SailfishOS. The licence is not required, the trial image works just fine.
|
||||
|
||||
Firmware files can be obtained from the partitions `modem`, `vendor`, `bluetooth`...
|
||||
|
||||
Recommendation:
|
||||
|
||||
- dump partitions to `.img` files
|
||||
- mount `.img` files and extract files
|
||||
- use pil-squasher to get the files into the right format the kernel expects
|
||||
|
||||
## Building the Image
|
||||
|
||||
Clone my fork of mobian-recipes (temporary fork, will integrate changes once I get to it...)
|
||||
|
||||
```
|
||||
git clone https://salsa.debian.org/erebion/mobian-recipes
|
||||
git checkout wip/erebion/add-pdx213
|
||||
```
|
||||
|
||||
Place kernel .deb at `devices/qcom/packages/`
|
||||
|
||||
Put firmware files into `devices/qcom/firmware/`, this currently what I have in there:
|
||||
|
||||
```
|
||||
a615_zap.mbn adsp.b03 adsp.b08 adsp.b14 adsp.b19 adsp.b24 adsp.b29 adsp.mbn apbtfw11.tlv crbtfw20.tlv crnv21.bin modem.mbn wlanmdsp.mbn
|
||||
a619_gmu.bin adsp.b04 adsp.b09 adsp.b15 adsp.b20 adsp.b25 adsp.b30 adspr.jsn apnv10.bin crbtfw21.tlv crnv32.bin modemst1.img
|
||||
adsp.b00 adsp.b05 adsp.b10 adsp.b16 adsp.b21 adsp.b26 adsp.b31 adsps.jsn apnv11.bin crbtfw32.tlv crnv32u.bin modemst2.img
|
||||
adsp.b01 adsp.b06 adsp.b12 adsp.b17 adsp.b22 adsp.b27 adsp.b32 adspua.jsn cdsp.mbn crnv11.bin egista.mbn qcom_firmware_tmp
|
||||
adsp.b02 adsp.b07 adsp.b13 adsp.b18 adsp.b23 adsp.b28 adsp.b33 apbtfw10.tlv crbtfw11.tlv crnv20.bin ipa_fws.mbn venus.mbn
|
||||
```
|
||||
|
||||
Build image:
|
||||
|
||||
```
|
||||
sudo ./build.sh -t qcom-wip -s -u mobian -p 1234 | tee mobian-build.log
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue