changes in readme
This commit is contained in:
1 parent
7907768756
commit
caff5270bb
3 files changed
+36
-73
No files matched your search
@@ -1,39 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# init script to extract Qualcomm MSM8916 firmware
|
||||
# /etc/init.d/qcom-firmware
|
||||
|
||||
START=10
|
||||
|
||||
OUTDIR="/lib/firmware/qcom/msm8916"
|
||||
FLAG="$OUTDIR/done.flag"
|
||||
PARTS="modem persist fsg fsc sec dsp"
|
||||
|
||||
start() {
|
||||
if [ -f "$FLAG" ]; then
|
||||
echo "[*] Qualcomm firmware already extracted, skipping."
|
||||
return 0
|
||||
fi
|
||||
|
||||
mkdir -p "$OUTDIR"
|
||||
|
||||
echo "[*] Extracting Qualcomm firmware partitions..."
|
||||
for part in $PARTS; do
|
||||
DEV="/dev/disk/by-partlabel/$part"
|
||||
if [ -e "$DEV" ]; then
|
||||
echo " - Dumping $part..."
|
||||
dd if="$DEV" of="$OUTDIR/$part.img" bs=1M status=none
|
||||
else
|
||||
echo " ! Partition $part not found at $DEV"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "[*] Creating symbolic links..."
|
||||
for f in $OUTDIR/*.img; do
|
||||
base=$(basename "$f" .img)
|
||||
ln -sf "$f" "$OUTDIR/$base"
|
||||
done
|
||||
|
||||
# Create the flag
|
||||
touch "$FLAG"
|
||||
echo "[+] Firmware successfully extracted to $OUTDIR (flag created)"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
## NOT WORKING
|
||||
There is no fine control tu run the init in openwrt before kernel asks for drivers, so luckily modem gets activated, but not wifi:
|
||||
- Working if manually enabled, as it seems that asks for wifi driver before persist is mounted.
|
||||
```shell
|
||||
echo start > /sys/class/remoteproc/remoteproc0/state
|
||||
echo start > /sys/class/remoteproc/remoteproc1/state
|
||||
```
|
||||
- https://gitlab.postmarketos.org/postmarketOS/msm-firmware-loader/
|
||||
- Investigate if this can be replicated in wrt:
|
||||
```shell
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="MSM Firmware Loader"
|
||||
description="Load firmware that is located on dedicated partitions of qcom devices"
|
||||
|
||||
depend() { # <-----------------
|
||||
need sysfs devfs
|
||||
before udev
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting msm-firmware-loader"
|
||||
# This script must be executed before udev, block other services until it's done.
|
||||
/usr/sbin/msm-firmware-loader.sh
|
||||
eend $?
|
||||
}
|
||||
```
|
||||
@@ -2,43 +2,18 @@
|
||||
These are my attempts at building the os... my end goal is to build a working modern openwrt, but first I will start from immortalwrt from lkiuyu and the from official immortalwrt.
|
||||
|
||||
### lkiuyu/immortalwrt
|
||||
- Using `msm-firmware-loader`:
|
||||
- Working if manually enabled, as it seems that asks for wifi driver before persist is mounted.
|
||||
```shell
|
||||
echo start > /sys/class/remoteproc/remoteproc0/state
|
||||
echo start > /sys/class/remoteproc/remoteproc1/state
|
||||
```
|
||||
- https://gitlab.postmarketos.org/postmarketOS/msm-firmware-loader/
|
||||
- Investigate if this can be replicated in wrt:
|
||||
```
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="MSM Firmware Loader"
|
||||
description="Load firmware that is located on dedicated partitions of qcom devices"
|
||||
|
||||
depend() { # <-----------------
|
||||
need sysfs devfs
|
||||
before udev
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting msm-firmware-loader"
|
||||
# This script must be executed before udev, block other services until it's done.
|
||||
/usr/sbin/msm-firmware-loader.sh
|
||||
eend $?
|
||||
}
|
||||
```
|
||||
- Revert back to bundling the firmwares...
|
||||
|
||||
#### TODO:
|
||||
- Modem does not register...
|
||||
- Modem Working
|
||||
- No Rx/Tx displayed in luci interface (?)
|
||||
- Wifi Working
|
||||
- USB gadget working (NCM, RNDIS, MASS, ACM tested!)
|
||||
---
|
||||
### TODO:
|
||||
- ~~Use `msm-firmware-loader` instead of bundling firmware.~~
|
||||
- There is no easy way to load the partitions before kernel looks for them... so dumps instead of ln `msm-firmware-dumper` and then restart...
|
||||
- msm8916-usb-gadget: attach console to tty?
|
||||
- _**ucify**_ the uz801-tweaks... see `usb0` network setup!
|
||||
- There is no easy way to load the partitions before kernel looks for them...
|
||||
- Recover GHA build pipeline
|
||||
- Use built dtb from openstick-builder?
|
||||
|
||||
- use linux's dts?
|
||||
- modemmanager not showing rxtx
|
||||
---
|
||||
### Stuff
|
||||
- The `msm8916-yiming-uz801v3.dtb` file is a prebuilt dtb extracted from one of the many OpenStick-Builder project living in Github.
|
||||
Reference in new issue
Block a user