openwrt-ipq60xx / openwrt

Other
4 stars 1 forks source link

Add 256m memory profile #7

Closed proxer05 closed 6 months ago

proxer05 commented 8 months ago

https://github.com/bkspc/backspacewrt/commits/main/target/linux/qualcommax Based on mr7350 dtsi we should be able to boot ath11k mode 2 allowing stock devices to boot. image image Memory usage with dns recursor (unbound). Basic functionality without services like this should be possible(as on stock fw).

pexcn commented 8 months ago

Do you mean that 256M of memory can also enable WiFi?

proxer05 commented 8 months ago

Exactly. That's how Xiaomi and other OEMs are able to use 256mb dies.

proxer05 commented 8 months ago

https://pastebin.com/raw/HTrZbvRv This should explain you everything.(from qsdk 4.4.60)

backslashxx commented 5 months ago

just saw this @proxer05 heres all you need for 256M profile to work

https://github.com/backslashxx/backspacewrt/blob/240328/target/linux/qualcommax/patches-6.1/0911-arm64-dts-qcom-ipq6018-fix-memory-regions.patch

https://github.com/backslashxx/backspacewrt/blob/main/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-256m.dtsi

proxer05 commented 5 months ago

just saw this @proxer05 heres all you need for 256M profile to work

https://github.com/backslashxx/backspacewrt/blob/240328/target/linux/qualcommax/patches-6.1/0911-arm64-dts-qcom-ipq6018-fix-memory-regions.patch

https://github.com/backslashxx/backspacewrt/blob/main/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-256m.dtsi

Something changed from the time we talked for the first time? I tried once and I had oom after a while of using wifi.

backslashxx commented 5 months ago

just saw this @proxer05 heres all you need for 256M profile to work https://github.com/backslashxx/backspacewrt/blob/240328/target/linux/qualcommax/patches-6.1/0911-arm64-dts-qcom-ipq6018-fix-memory-regions.patch https://github.com/backslashxx/backspacewrt/blob/main/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-256m.dtsi

Something changed from the time we talked for the first time? I tried once and I had oom after a while of using wifi.

    reserved-memory {
        #address-cells = <2>;
        #size-cells = <2>;
        ranges;

        rpm_msg_ram: memory@60000 {
            reg = <0x0 0x00060000 0x0 0x6000>;
            no-map;
        };

        bootloader@4a100000 {
            reg = <0x0 0x4a100000 0x0 0x400000>;
            no-map;
        };

        sbl@4a500000 {
            reg = <0x0 0x4a500000 0x0 0x100000>;
            no-map;
        };

        nss_region: memory@40000000 {
            reg = <0x0 0x40000000 0x0 0x01000000>;
            no-map;
        };

        tzapp_region: memory@49b00000 {
            reg = <0x0 0x49b00000 0x0 0x00600000>;
            no-map;
        };

        sbl: memory@4a500000 {
            reg = <0x0 0x4a500000 0x0 0x00100000>;
            no-map;
        };

        tz: memory@4a600000 {
            reg = <0x0 0x4a600000 0x0 0x400000>;
            no-map;
        };

        smem_region: memory@4aa00000 {
            reg = <0x0 0x4aa00000 0x0 0x100000>;
            no-map;
        };

        q6_region: memory@4ab00000 {
            reg = <0x0 0x4ab00000 0x0 0x5500000>;
            no-map;
        };

        q6_etr_region: memory@50000000 {
            reg = <0x0 0x50000000 0x0 0x100000>;
            no-map;
        };

        m3_dump_region: memory@50100000 {
            reg = <0x0 0x50100000 0x0 0x100000>;
            no-map;
        };
    };
backslashxx commented 5 months ago

just saw this @proxer05 heres all you need for 256M profile to work https://github.com/backslashxx/backspacewrt/blob/240328/target/linux/qualcommax/patches-6.1/0911-arm64-dts-qcom-ipq6018-fix-memory-regions.patch https://github.com/backslashxx/backspacewrt/blob/main/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-256m.dtsi

Something changed from the time we talked for the first time? I tried once and I had oom after a while of using wifi.

still works on 6.6 https://github.com/backslashxx/openwrt/commit/a77b3c7f1b18ec8248009721c44a0326a5ee921d