Porting to zte blade af3
Hello! Recently got the device ZTE blade af3. I decided to put PostmarketOS on it, I collect the kernel and an error occurs. log.txt
Apparently the problem is in iomem. But I am not a programmer, so I have no idea how to fix it.
Kernel: https://github.com/blade-af3/android_kernel_zte_P731A20
My branch: https://gitlab.com/LibrePhone/pmaports/tree/zteaf3
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Author Owner
Specifications:
- Display: 480x800
- RAM: 512MB
- OS: Android 4.4
- Flash: 4 GB
- SoC: Spreadtrum SC7731G
- Architecture: Cortex-A7
- GPU: ARM Mali-400 MP2
- Kernel: 3.10.17
By Михалыч on 2019-04-04T10:44:29
Edited by Administrator - Author Owner
The iomem are just warnings, these doesn't affect the compilation, but the main issue here is that there are shell commands trying to run
arm-eabi-objdump
, which doesn't exist.Someone should look into this.
You should join our postmarketOS IRC channels: https://wiki.postmarketos.org/wiki/Matrix_and_IRC They might be able to help you with this issue.
By Danct12 on 2019-04-04T12:14:39
Edited by Administrator - Author Owner
Remove this line:
https://github.com/blade-af3/android_kernel_zte_P731A20/blob/a1b2e761517f0e2bed0dd5e1a94053d7c648614d/Makefile#L196edit: It's probably better change it to
CROSS_COMPILE ?=arm-eabi-
to make it override-able.By ryang on 2019-04-04T13:59:17
Edited by Administrator 1 - Author Owner
Happened! The kernel started to compile, but I was happy early.log.txt
By Михалыч on 2019-04-04T14:29:10
- Author Owner
#ifdef CONFIG_TOUCHSCREEN_FIRMWARE_UPGRADE static unsigned char CTPM_FW[] = { #include "CF35770_FT6206_Ver02_20141125_app-64983.i" }; #else static unsigned char CTPM_FW[] = { }; #endif
Not sure if the firmware upgrade is even needed, but I've tried to look for this file on search engine, can't find any.
By Danct12 on 2019-04-04T14:47:24
Edited by Administrator - Author Owner
A little bit more digging, seems like you're using the wrong defconfig. This defconfig should work with the device. https://github.com/blade-af3/android_kernel_zte_P731A20/blob/stock/arch/arm/configs/sp7731gea-dt_defconfig
By Danct12 on 2019-04-04T14:55:47
- Author Owner
Does it boot? If it does you're ready to make a pull request! Welcome!
By Danct12 on 2019-04-04T17:13:55
- Author Owner
My device requires QCDT, but dt.img is not going to. The
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/dts/"
command in APKBUILD gives the error:No valid dtbs found
By Михалыч on 2019-04-04T18:53:13
- Author Owner
I took the finished dt.img from the repository https://github.com/blade-af3/android_device_zte_P731A20, I requested it with deviceinfo_bootimg_qcdt = "true" and it all worked for me.
By Михалыч on 2019-04-12T16:00:05
- Author Owner
I took the finished dt.img from the repository https://github.com/blade-af3/android_device_zte_P731A20, I requested it with deviceinfo_bootimg_qcdt = "true" and it all worked for me.
Great news! Now let's get it working with building the dt.img from pmbootstrap.
My device requires QCDT, but dt.img is not going to. The
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/dts/"
command in APKBUILD gives the error:No valid dtbs found
the scripts/dtc dir exists: https://github.com/blade-af3/android_kernel_zte_P731A20/tree/stock/scripts/dtc
So it seems like the dtc file in there does not generated for some reason. Maybe you need to explicitly run "make" in there?
By Oliver Smith on 2019-04-12T21:47:59
- Author Owner
I tried dtbtool-lineage. He also gives the error:
/home/pmos/build/src/android_kernel_zte_P731A20-a1b2e761517f0e2bed0dd5e1a94053d7c648614d # dtbTool-lineage -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/" DTB combiner: Input directory: 'arch/arm/boot/' Output file: 'arch/arm/boot/dt.img' Searching subdir: arch/arm/boot/bootp/ ... Searching subdir: arch/arm/boot/compressed/ ... Searching subdir: arch/arm/boot/dts/ ... Searching subdir: arch/arm/boot/dts/include/ ... Searching subdir: arch/arm/boot/dts/testcases/ ... Found file: sprd-scx35_sp7731gea.dtb ... Version:1 ... skip, incorrect 'qcom,msm-id = <' format skip, failed to scan for 'qcom,msm-id = <' tag => Found 0 unique DTB(s)
By Михалыч on 2019-04-13T15:40:10
- Author Owner
[km2@user boot]$ tree . ├── bootp │ ├── bootp.lds │ ├── initrd.S │ ├── init.S │ ├── kernel.S │ └── Makefile ├── compressed │ ├── ashldi3.o │ ├── ashldi3.S │ ├── atags_to_fdt.c │ ├── big-endian.S │ ├── debug.S │ ├── decompress.c │ ├── decompress.o │ ├── head.o │ ├── head.S │ ├── head-sa1100.S │ ├── head-shark.S │ ├── head-sharpsl.S │ ├── head-shmobile.S │ ├── head-xscale.S │ ├── hyp-stub.o │ ├── hyp-stub.S │ ├── lib1funcs.o │ ├── lib1funcs.S │ ├── libfdt_env.h │ ├── ll_char_wr.S │ ├── Makefile │ ├── misc.c │ ├── misc.o │ ├── mmcif-sh7372.c │ ├── ofw-shark.c │ ├── piggy.gzip │ ├── piggy.gzip.o │ ├── piggy.gzip.S │ ├── piggy.lzma.S │ ├── piggy.lzo.S │ ├── piggy.xzkern.S │ ├── sdhi-sh7372.c │ ├── sdhi-shmobile.c │ ├── sdhi-shmobile.h │ ├── string.c │ ├── string.o │ ├── vmlinux │ ├── vmlinux.lds │ └── vmlinux.lds.in ├── dts │ ├── aks-cdu.dts │ ├── am335x-bone.dts │ ├── am335x-evm.dts │ ├── am335x-evmsk.dts │ ├── am33xx.dtsi │ ├── am3517-evm.dts │ ├── am3517_mt_ventoux.dts │ ├── animeo_ip.dts │ ├── armada-370-db.dts │ ├── armada-370.dtsi │ ├── armada-370-mirabox.dts │ ├── armada-370-rd.dts │ ├── armada-370-xp.dtsi │ ├── armada-xp-db.dts │ ├── armada-xp.dtsi │ ├── armada-xp-gp.dts │ ├── armada-xp-mv78230.dtsi │ ├── armada-xp-mv78260.dtsi │ ├── armada-xp-mv78460.dtsi │ ├── armada-xp-openblocks-ax3-4.dts │ ├── at91-ariag25.dts │ ├── at91rm9200.dtsi │ ├── at91rm9200ek.dts │ ├── at91sam9260.dtsi │ ├── at91sam9263.dtsi │ ├── at91sam9263ek.dts │ ├── at91sam9g15.dtsi │ ├── at91sam9g15ek.dts │ ├── at91sam9g20.dtsi │ ├── at91sam9g20ek_2mmc.dts │ ├── at91sam9g20ek_common.dtsi │ ├── at91sam9g20ek.dts │ ├── at91sam9g25.dtsi │ ├── at91sam9g25ek.dts │ ├── at91sam9g35.dtsi │ ├── at91sam9g35ek.dts │ ├── at91sam9g45.dtsi │ ├── at91sam9m10g45ek.dts │ ├── at91sam9n12.dtsi │ ├── at91sam9n12ek.dts │ ├── at91sam9x25.dtsi │ ├── at91sam9x25ek.dts │ ├── at91sam9x35.dtsi │ ├── at91sam9x35ek.dts │ ├── at91sam9x5cm.dtsi │ ├── at91sam9x5.dtsi │ ├── at91sam9x5ek.dtsi │ ├── atlas6.dtsi │ ├── atlas6-evb.dts │ ├── bcm11351-brt.dts │ ├── bcm11351.dtsi │ ├── bcm2835.dtsi │ ├── bcm2835-rpi-b.dts │ ├── ccu9540.dts │ ├── cros5250-common.dtsi │ ├── da850.dtsi │ ├── da850-enbw-cmc.dts │ ├── da850-evm.dts │ ├── dbx5x0.dtsi │ ├── dove-cm-a510.dts │ ├── dove-cubox.dts │ ├── dove-dove-db.dts │ ├── dove.dtsi │ ├── ea3250.dts │ ├── ecx-2000.dts │ ├── ecx-common.dtsi │ ├── elpida_ecb240abacn.dtsi │ ├── emev2.dtsi │ ├── emev2-kzm9d.dts │ ├── ethernut5.dts │ ├── evk-pro3.dts │ ├── exynos4210.dtsi │ ├── exynos4210-origen.dts │ ├── exynos4210-pinctrl.dtsi │ ├── exynos4210-smdkv310.dts │ ├── exynos4210-trats.dts │ ├── exynos4210-universal_c210.dts │ ├── exynos4212.dtsi │ ├── exynos4412.dtsi │ ├── exynos4412-odroidx.dts │ ├── exynos4412-origen.dts │ ├── exynos4412-smdk4412.dts │ ├── exynos4.dtsi │ ├── exynos4x12.dtsi │ ├── exynos4x12-pinctrl.dtsi │ ├── exynos5250-arndale.dts │ ├── exynos5250.dtsi │ ├── exynos5250-pinctrl.dtsi │ ├── exynos5250-smdk5250.dts │ ├── exynos5250-snow.dts │ ├── exynos5440.dtsi │ ├── exynos5440-sd5v1.dts │ ├── exynos5440-ssdk5440.dts │ ├── ge863-pro3.dtsi │ ├── highbank.dts │ ├── href.dtsi │ ├── hrefprev60.dts │ ├── hrefv60plus.dts │ ├── imx23.dtsi │ ├── imx23-evk.dts │ ├── imx23-olinuxino.dts │ ├── imx23-stmp378x_devb.dts │ ├── imx25.dtsi │ ├── imx25-karo-tx25.dts │ ├── imx25-pdk.dts │ ├── imx27-apf27dev.dts │ ├── imx27-apf27.dts │ ├── imx27.dtsi │ ├── imx27-pdk.dts │ ├── imx27-phytec-phycore.dts │ ├── imx28-apf28dev.dts │ ├── imx28-apf28.dts │ ├── imx28-apx4devkit.dts │ ├── imx28-cfa10036.dts │ ├── imx28-cfa10037.dts │ ├── imx28-cfa10049.dts │ ├── imx28.dtsi │ ├── imx28-evk.dts │ ├── imx28-m28evk.dts │ ├── imx28-sps1.dts │ ├── imx28-tx28.dts │ ├── imx31-bug.dts │ ├── imx31.dtsi │ ├── imx35-pinfunc.h │ ├── imx51-apf51dev.dts │ ├── imx51-apf51.dts │ ├── imx51-babbage.dts │ ├── imx51.dtsi │ ├── imx51-pinfunc.h │ ├── imx53-ard.dts │ ├── imx53.dtsi │ ├── imx53-evk.dts │ ├── imx53-mba53.dts │ ├── imx53-pinfunc.h │ ├── imx53-qsb.dts │ ├── imx53-smd.dts │ ├── imx53-tqma53.dtsi │ ├── imx6dl.dtsi │ ├── imx6dl-pinfunc.h │ ├── imx6dl-sabreauto.dts │ ├── imx6dl-sabresd.dts │ ├── imx6dl-wandboard.dts │ ├── imx6q-arm2.dts │ ├── imx6qdl.dtsi │ ├── imx6qdl-sabreauto.dtsi │ ├── imx6qdl-sabresd.dtsi │ ├── imx6q.dtsi │ ├── imx6q-pinfunc.h │ ├── imx6q-sabreauto.dts │ ├── imx6q-sabrelite.dts │ ├── imx6q-sabresd.dts │ ├── imx6q-sbc6x.dts │ ├── imx6sl-pinfunc.h │ ├── include │ │ └── dt-bindings -> ../../../../../include/dt-bindings │ ├── integratorap.dts │ ├── integratorcp.dts │ ├── integrator.dtsi │ ├── kirkwood-6281.dtsi │ ├── kirkwood-6282.dtsi │ ├── kirkwood-98dx4122.dtsi │ ├── kirkwood-cloudbox.dts │ ├── kirkwood-dns320.dts │ ├── kirkwood-dns325.dts │ ├── kirkwood-dnskw.dtsi │ ├── kirkwood-dockstar.dts │ ├── kirkwood-dreamplug.dts │ ├── kirkwood.dtsi │ ├── kirkwood-goflexnet.dts │ ├── kirkwood-guruplug-server-plus.dts │ ├── kirkwood-ib62x0.dts │ ├── kirkwood-iconnect.dts │ ├── kirkwood-iomega_ix2_200.dts │ ├── kirkwood-is2.dts │ ├── kirkwood-km_kirkwood.dts │ ├── kirkwood-lschlv2.dts │ ├── kirkwood-lsxhl.dts │ ├── kirkwood-lsxl.dtsi │ ├── kirkwood-mplcec4.dts │ ├── kirkwood-netgear_readynas_duo_v2.dts │ ├── kirkwood-ns2-common.dtsi │ ├── kirkwood-ns2.dts │ ├── kirkwood-ns2lite.dts │ ├── kirkwood-ns2max.dts │ ├── kirkwood-ns2mini.dts │ ├── kirkwood-nsa310.dts │ ├── kirkwood-openblocks_a6.dts │ ├── kirkwood-topkick.dts │ ├── kirkwood-ts219-6281.dts │ ├── kirkwood-ts219-6282.dts │ ├── kirkwood-ts219.dtsi │ ├── kizbox.dts │ ├── lpc32xx.dtsi │ ├── Makefile │ ├── marco.dtsi │ ├── marco-evb.dts │ ├── mmp2-brownstone.dts │ ├── mmp2.dtsi │ ├── mpa1600.dts │ ├── msm8660-surf.dts │ ├── msm8960-cdp.dts │ ├── omap2420.dtsi │ ├── omap2420-h4.dts │ ├── omap2430.dtsi │ ├── omap2.dtsi │ ├── omap3430-sdp.dts │ ├── omap34xx.dtsi │ ├── omap36xx.dtsi │ ├── omap3-beagle.dts │ ├── omap3-beagle-xm.dts │ ├── omap3-devkit8000.dts │ ├── omap3.dtsi │ ├── omap3-evm.dts │ ├── omap3-igep0020.dts │ ├── omap3-igep0030.dts │ ├── omap3-igep.dtsi │ ├── omap3-overo.dtsi │ ├── omap3-tobi.dts │ ├── omap443x.dtsi │ ├── omap4460.dtsi │ ├── omap4.dtsi │ ├── omap4-panda-a4.dts │ ├── omap4-panda-common.dtsi │ ├── omap4-panda.dts │ ├── omap4-panda-es.dts │ ├── omap4-sdp.dts │ ├── omap4-sdp-es23plus.dts │ ├── omap4-var-som.dts │ ├── omap5.dtsi │ ├── omap5-evm.dts │ ├── orion5x.dtsi │ ├── orion5x-lacie-ethernet-disk-mini-v2.dts │ ├── phy3250.dts │ ├── picoxcell-pc3x2.dtsi │ ├── picoxcell-pc3x3.dtsi │ ├── picoxcell-pc7302-pc3x2.dts │ ├── picoxcell-pc7302-pc3x3.dts │ ├── pm9g45.dts │ ├── prima2.dtsi │ ├── prima2-evb.dts │ ├── pxa168-aspenite.dts │ ├── pxa168.dtsi │ ├── pxa27x.dtsi │ ├── pxa2xx.dtsi │ ├── pxa3xx.dtsi │ ├── pxa910-dkb.dts │ ├── pxa910.dtsi │ ├── r8a73a4-ape6evm.dts │ ├── r8a73a4.dtsi │ ├── r8a7740-armadillo800eva.dts │ ├── r8a7740.dtsi │ ├── r8a7778-bockw.dts │ ├── r8a7778.dtsi │ ├── r8a7779.dtsi │ ├── r8a7779-marzen-reference.dts │ ├── r8a7790.dtsi │ ├── r8a7790-lager.dts │ ├── rt5033.dtsi │ ├── sama5d31ek.dts │ ├── sama5d33ek.dts │ ├── sama5d34ek.dts │ ├── sama5d35ek.dts │ ├── sama5d3.dtsi │ ├── sama5d3xcm.dtsi │ ├── sama5d3xdm.dtsi │ ├── sama5d3xmb.dtsi │ ├── samsung_k3pe0e000b.dtsi │ ├── sc2723-regulators.dtsi │ ├── scx15-clocks.dtsi │ ├── scx15-regulators.dtsi │ ├── scx30g-clocks.dtsi │ ├── scx30g-regulators.dtsi │ ├── scx35-clocks.dtsi │ ├── scx35l-clocks.dtsi │ ├── scx35-regulators.dtsi │ ├── sh7372.dtsi │ ├── sh7372-mackerel.dts │ ├── sh73a0.dtsi │ ├── sh73a0-kzm9g.dts │ ├── sh73a0-kzm9g-reference.dts │ ├── skeleton64.dtsi │ ├── skeleton.dtsi │ ├── snowball.dts │ ├── socfpga_cyclone5.dts │ ├── socfpga.dtsi │ ├── socfpga_vt.dts │ ├── spear1310.dtsi │ ├── spear1310-evb.dts │ ├── spear1340.dtsi │ ├── spear1340-evb.dts │ ├── spear13xx.dtsi │ ├── spear300.dtsi │ ├── spear300-evb.dts │ ├── spear310.dtsi │ ├── spear310-evb.dts │ ├── spear320.dtsi │ ├── spear320-evb.dts │ ├── spear320-hmi.dts │ ├── spear3xx.dtsi │ ├── spear600.dtsi │ ├── spear600-evb.dts │ ├── sprd-battery.dtsi │ ├── sprd-scx15_corsica_ve.dts │ ├── sprd-scx15_sp7715ea.dts │ ├── sprd-scx35_core3.dts │ ├── sprd-scx35.dtsi │ ├── sprd-scx35_kanas_w_cma.dts │ ├── sprd-scx35_kanas_w.dts │ ├── sprd-scx35_pikeayoung2dtv.dts │ ├── sprd-scx35_sp7730gga.dts │ ├── sprd-scx35_sp7731gea.dtb │ ├── sprd-scx35_sp7731gea.dts │ ├── sprd-scx35_sp7731gea_fwvga.dts │ ├── sprd-scx35_sp7731gea_lm.dts │ ├── sprd-scx35_sp7731geaopenphone.dts │ ├── sprd-scx35_sp7731gga_lc.dts │ ├── sprd-scx35_sp8730sea.dts │ ├── sprd-scx35_sp8830gea.dts │ ├── sprd-scx35_tsharkwsamsung.dts │ ├── sprd-sound.dtsi │ ├── ste-nomadik-s8815.dts │ ├── ste-nomadik-stn8815.dtsi │ ├── stuib.dtsi │ ├── sun4i-a10-cubieboard.dts │ ├── sun4i-a10.dtsi │ ├── sun4i-a10-hackberry.dts │ ├── sun4i-a10-mini-xplus.dts │ ├── sun5i-a13.dtsi │ ├── sun5i-a13-olinuxino.dts │ ├── tegra114-dalmore.dts │ ├── tegra114.dtsi │ ├── tegra114-pluto.dts │ ├── tegra20-colibri-512.dtsi │ ├── tegra20.dtsi │ ├── tegra20-harmony.dts │ ├── tegra20-iris-512.dts │ ├── tegra20-medcom-wide.dts │ ├── tegra20-paz00.dts │ ├── tegra20-plutux.dts │ ├── tegra20-seaboard.dts │ ├── tegra20-tamonten.dtsi │ ├── tegra20-tec.dts │ ├── tegra20-trimslice.dts │ ├── tegra20-ventana.dts │ ├── tegra20-whistler.dts │ ├── tegra30-beaver.dts │ ├── tegra30-cardhu-a02.dts │ ├── tegra30-cardhu-a04.dts │ ├── tegra30-cardhu.dtsi │ ├── tegra30.dtsi │ ├── testcases │ │ ├── tests.dtsi │ │ └── tests-phandle.dtsi │ ├── tny_a9260_common.dtsi │ ├── tny_a9260.dts │ ├── tny_a9263.dts │ ├── tny_a9g20.dts │ ├── tps6507x.dtsi │ ├── tps65217.dtsi │ ├── tps65910.dtsi │ ├── twl4030.dtsi │ ├── twl6030.dtsi │ ├── u9540.dts │ ├── usb_a9260_common.dtsi │ ├── usb_a9260.dts │ ├── usb_a9263.dts │ ├── usb_a9g20-dab-mmx.dtsi │ ├── usb_a9g20.dts │ ├── versatile-ab.dts │ ├── versatile-pb.dts │ ├── vexpress-v2m.dtsi │ ├── vexpress-v2m-rs1.dtsi │ ├── vexpress-v2p-ca15_a7.dts │ ├── vexpress-v2p-ca15-tc1.dts │ ├── vexpress-v2p-ca5s.dts │ ├── vexpress-v2p-ca9.dts │ ├── vt8500-bv07.dts │ ├── vt8500.dtsi │ ├── wm8505.dtsi │ ├── wm8505-ref.dts │ ├── wm8650.dtsi │ ├── wm8650-mid.dts │ ├── wm8850.dtsi │ ├── wm8850-w70v2.dts │ ├── xenvm-4.2.dts │ ├── zynq-7000.dtsi │ └── zynq-zc702.dts ├── Image ├── install.sh ├── Makefile └── zImage 6 directories, 432 files
By Михалыч on 2019-04-13T15:42:47
- Author Owner
Reading !325 (merged), it seems that dtbTool is working now?
By Oliver Smith on 2019-04-18T19:35:09
- Author Owner
Initial device support is merged in !325 (merged). I'm closing this, so it doesn't become endless. Feel free to create more issues for specific things, once you encounter them. Thanks again for the port @LibrePhone!
By Oliver Smith on 2019-04-26T21:10:20
- Administrator closed · Imported
closed
By Oliver Smith on 2019-04-26T21:10:21