[BPI-R2] Kernel Development

Uart/ssh should work on both (ssh depending on os) this is basic on rc where these 2 are inherited

mfd fix (was broken in 5.4-rc1) is now merged to mainline: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f116b96685a046a89c25d4a6ba2da489145c8888

1 Like

I was able to use your 5.4.0-rc1-hdmi and get a working arch img ready. Will get a server & LXQT uploaded in sometime, While making img for 5.4.0-rc1-wifi for server and test the wifi. Update: With server img, I am getting alot of audit for keystrokes on keyboard, making it impossible to type.

evbug  Event. Dev: input7, Type: 4, Code: 4, Value: 156
evbug Event. Dev: input7, Type: 1, Code: 96, Value: 0
evbug Event. Dev: input7, Type: 0, Code: 0, Value: 0

Kindly advice. Thanks for all your work.

I think audit rules are usually specified in /etc/audit/audit.rules. Eventually for particular users the logging via pam_tty_audit is enabled in /etc/pam.d/password-auth and /etc/pam.d/system-auth. Can you check those configurations?

blacklist evbug

/etc/modprobe/blacklist.conf

I think i should drop evbugā€¦

Will try this and report back to you.

Maybe yes, for server build its hard to work with this audits coming all the time.

Was able to get Arch Server running on 5.4-wifi need to test wifi before uploading it.

Thanks.

After youve tested wifi i suggest merging wifi+hdmi+poweroff so you have an all-in-one kernel. Have you bridged your power-switch (blacklist pmic-keys module)?

Btw have disabled evbug and updated all branches to this change and to rc4

This is a good idea. But do you mean copy everything from the wifi - hdmi- poweroff directory to 1 directory and move it to the usb for testing ? As I am just using your compiled version and not compiling it myself.

Also I wasnā€™t able to test wifi, I donā€™t think I have put wpa_supplicant to search and connect to one. Also I donā€™t even know if the wifi is for AP or can connect to other APā€™s. I will test today.

No. I use manual press.

Great.

No,it have to be merged in code and then compiledā€¦hdmi+wifi are builtin (in uimage)

have merged locally, but currently facing some issues based on ā€œmissingā€ files (existing , but not found) of wifi-part

../drivers/misc/mediatek/btif/common/mtk_btif_exp.c:20:10: fatal error: mtk_btif.h: No such file or directory
 #include "mtk_btif.h"
../drivers/misc/mediatek/connectivity/wlan/gen2/common/dump.c:47:10: fatal error: precomp.h: No such file or directory
../drivers/misc/mediatek/connectivity/common/common_detect/drv_init/conn_drv_init.c:20:10: fatal error: wmt_detect.h: No such file or directory
 #include "wmt_detect.h"
../drivers/misc/mediatek/connectivity/common/common_detect/wmt_stp_exp.c:14:10: fatal error: osal_typedef.h: No such file or directory
 #include "osal_typedef.h"
          ^~~~~~~~~~~~~~~~
../drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c:39:10: fatal error: osal_typedef.h: No such file or directory
 #include "osal_typedef.h"
          ^~~~~~~~~~~~~~~~
../drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/stp_btif.c:35:10: fatal error: osal_typedef.h: No such file or directory
 #include "osal_typedef.h"

as far as i see the folders (with the files) are passed to make with -I, seems this only happens if i move KBUILD_OUTPUT (i try to move building-process in ramdisk) @LeXa2 any idea why this happens?

@spikerguy i have uploaded merged kernel to my gdrive

You have wmt-tools+config+firmware+hostapd+dnsmasq and maybe my script? Wpa-supplicant has to be uninstalled at least for ap-mode

1 Like

Thanks but is this tested to boot? I will try it myself by evening.

I will try it in both modes. Client mode first then ap mode.

## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux Kernel 5.4.0-rc4-merged
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8244432 Bytes = 7.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    4.917107] printk: console [ttyS0] enabled
[    4.925506] printk: bootconsole [earlycon0] disabled
[    4.935780] mt6577-uart 11004000.serial: IRQ index 1 not found
[    4.962589] 11002000.serial: ttyS1 at MMIO 0x11002000 (irq = 202, base_baud = 1625000) is a ST16650V2
[    4.972127] mt6577-uart 11002000.serial: IRQ index 1 not found
[    4.998927] 11003000.serial: ttyS2 at MMIO 0x11003000 (irq = 203, base_baud = 1625000) is a ST16650V2
[    5.008474] mt6577-uart 11003000.serial: IRQ index 1 not found
[    5.015388] mtk_rng 1020f000.rng: registered RNG driver
[    5.015536] random: fast init done
[    5.024297] random: crng init done
[    5.024544] mediatek-drm 14000000.dispsys: Adding component match for /ovl@14007000
[    5.035460] mediatek-drm 14000000.dispsys: Adding component match for /rdma@14008000
[    5.043346] mediatek-drm 14000000.dispsys: Adding component match for /color@1400b000
[    5.051292] mediatek-drm 14000000.dispsys: Adding component match for /rdma@14012000
[    5.059065] mediatek-drm 14000000.dispsys: Adding component match for /dpi@14014000
[    5.068628] mediatek-hdmi-phy 10209100.phy: Using default TX DRV impedance: 4.2k/36
[    5.078739] [drm] hdmi-audio-codec driver bound to HDMI
[    5.094338] loop: module loaded
[    5.097692] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) installed success
[    5.105616] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0
[    5.112637] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=3758a12a
[    5.119966] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=3724adb0
[    5.130039] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    5.145402] Uniform Multi-Platform E-IDE driver
[    5.150030] ide-gd driver 1.18
[    5.153805] libphy: Fixed MDIO Bus: probed
[    5.181456] libphy: mdio: probed
[    5.185349] mtk_soc_eth 1b100000.ethernet: generated random MAC address 5a:94:0c:89:91:f6
[    5.194143] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xf0cc0000, irq 228
[    5.203801] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    5.209081] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    5.220017] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    5.229249] xhci-mtk 1a1c0000.usb: irq 225, io mem 0x1a1c0000
[    5.236188] hub 1-0:1.0: USB hub found
[    5.240012] hub 1-0:1.0: 1 port detected
[    5.244440] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    5.249716] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    5.257161] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    5.263550] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.272457] hub 2-0:1.0: USB hub found
[    5.276263] hub 2-0:1.0: 1 port detected
[    5.281341] xhci-mtk 1a240000.usb: xHCI Host Controller
[    5.286607] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    5.297392] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    5.306561] xhci-mtk 1a240000.usb: irq 226, io mem 0x1a240000
[    5.313388] hub 3-0:1.0: USB hub found
[    5.317207] hub 3-0:1.0: 1 port detected
[    5.321645] xhci-mtk 1a240000.usb: xHCI Host Controller
[    5.326896] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    5.334343] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed
[    5.340720] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.349617] hub 4-0:1.0: USB hub found
[    5.353461] hub 4-0:1.0: 1 port detected
[    5.358110] usbcore: registered new interface driver usb-storage
[    5.364609] mousedev: PS/2 mouse device common for all mice
[    5.371665] mt6397-rtc mt6323-rtc: registered as rtc0
[    5.378829] MTK_WDT_NONRST_REG(0)
[    5.382927] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    5.390691] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    5.400310] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: [email protected]
[    5.409204] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.415774] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.422408] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.429218] device-mapper: raid: Loading target version 1.14.0
[    5.435624] cpu cpu0: dummy supplies not allowed for exclusive requests
[    5.444670] mtk-msdc 11240000.mmc: Got CD GPIO
[    5.509152] mmc0: host does not support reading read-only switch, assuming write-enable
[    5.517725] hidraw: raw HID events driver (C) Jiri Kosina
[    5.523333] usbcore: registered new interface driver usbhid
[    5.528911] usbhid: USB HID core driver
[    5.534102] mtk-iommu-v1 10205000.mmsys_iommu: bound 14010000.larb (ops mtk_smi_larb_component_ops)
[    5.543219] mtk-iommu-v1 10205000.mmsys_iommu: bound 16010000.larb (ops mtk_smi_larb_component_ops)
[    5.552303] mtk-iommu-v1 10205000.mmsys_iommu: bound 15001000.larb (ops mtk_smi_larb_component_ops)
[    5.562356] mmc0: new high speed SDHC card at address 0001
[    5.562669] drop_monitor: Initializing network drop monitor service
[    5.575111] NET: Registered protocol family 10
[    5.580868] Segment Routing with IPv6
[    5.581218] mmcblk0: mmc0:0001 EB1QT 29.8 GiB 
[    5.584677] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.595832] NET: Registered protocol family 17
[    5.596508]  mmcblk0: p1 p2
[    5.600382] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    5.616744] NET: Registered protocol family 41
[    5.621400] 8021q: 802.1Q VLAN Support v1.8
[    5.626023] ThumbEE CPU extension supported.
[    5.630310] Registering SWP/SWPB emulation handler
[    5.635418] Loading compiled-in X.509 certificates
[    5.649065] mmc1: new high speed MMC card at address 0001
[    5.655983] mmcblk1: mmc1:0001 8WPD3R 7.28 GiB 
[    5.661517] mmcblk1boot0: mmc1:0001 8WPD3R partition 1 4.00 MiB
[    5.662001] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    5.668279] mmcblk1boot1: mmc1:0001 8WPD3R partition 2 4.00 MiB
[    5.674106] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    5.680236] mmcblk1rpmb: mmc1:0001 8WPD3R partition 3 512 KiB, chardev (247:0)
[    5.687248] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    5.747176] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    5.753415] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.758909] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    5.768414] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    5.775339] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    5.781397] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    5.787740] pci 0000:00:00.0: supports D1
[    5.791771] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    5.797978] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    5.804063] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    5.810402] pci 0000:00:01.0: supports D1
[    5.814432] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    5.823204] PCI: bus0: Fast back to back transfers disabled
[    5.828799] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.836837] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.845060] pci 0000:01:00.0: [14c3:7612] type 00 class 0x028000
[    5.851142] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    5.857980] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    5.864814] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    5.903861] PCI: bus1: Fast back to back transfers disabled
[    5.909457] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    5.916325] pci 0000:02:00.0: [1b21:0611] type 00 class 0x010185
[    5.922401] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    5.929456] pci 0000:02:00.0: reg 0x10: [io  size 0x0008]
[    5.934883] pci 0000:02:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    5.941949] pci 0000:02:00.0: reg 0x14: [io  size 0x0004]
[    5.947358] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    5.954422] pci 0000:02:00.0: reg 0x18: [io  size 0x0008]
[    5.959832] pci 0000:02:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    5.966896] pci 0000:02:00.0: reg 0x1c: [io  size 0x0004]
[    5.972320] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    5.979372] pci 0000:02:00.0: reg 0x20: [io  size 0x0010]
[    5.984794] pci 0000:02:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    5.991085] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    6.023852] PCI: bus2: Fast back to back transfers disabled
[    6.029444] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.036141] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    6.042961] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    6.050193] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    6.057003] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    6.064248] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    6.071060] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    6.077856] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    6.083983] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    6.091330] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    6.098561] pci 0000:00:00.0: PCI bridge to [bus 01]
[    6.103546] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    6.110339] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    6.117590] pci 0000:02:00.0: BAR 6: assigned [mem 0x60300000-0x6030ffff pref]
[    6.124835] pci 0000:02:00.0: BAR 5: assigned [mem 0x60200000-0x602001ff]
[    6.131645] pci 0000:02:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    6.137746] pci 0000:02:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    6.143860] pci 0000:02:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    6.149961] pci 0000:02:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    6.156080] pci 0000:02:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    6.162196] pci 0000:00:01.0: PCI bridge to [bus 02]
[    6.167164] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    6.173274] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    6.180068] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    6.187548] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    6.193908] pcieport 0000:00:00.0: PME: Signaling with IRQ 239
[    6.200139] pcieport 0000:00:00.0: AER: enabled with IRQ 239
[    6.206190] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.212502] pcieport 0000:00:01.0: PME: Signaling with IRQ 220
[    6.218728] pcieport 0000:00:01.0: AER: enabled with IRQ 220
[    6.224876] ahci 0000:02:00.0: enabling device (0140 -> 0143)
[    6.230757] ahci 0000:02:00.0: SSS flag set, parallel bus scan disabled
[    6.237470] ahci 0000:02:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode
[    6.245508] ahci 0000:02:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs 
[    6.255669] scsi host0: ahci
[    6.259263] scsi host1: ahci
[    6.262524] ata1: SATA max UDMA/133 abar m512@0x60200000 port 0x60200100 irq 220
[    6.269935] ata2: SATA max UDMA/133 abar m512@0x60200000 port 0x60200180 irq 220
[    6.277819] mediatek-dpi 14014000.dpi: Found bridge node: /hdmi@14015000
[    6.284845] mediatek-drm 14000000.dispsys: bound 14007000.ovl (ops mtk_disp_ovl_component_ops)
[    6.293520] mediatek-drm 14000000.dispsys: bound 14008000.rdma (ops mtk_disp_rdma_component_ops)
[    6.302338] mediatek-drm 14000000.dispsys: bound 1400b000.color (ops mtk_disp_color_component_ops)
[    6.311324] mediatek-drm 14000000.dispsys: bound 14012000.rdma (ops mtk_disp_rdma_component_ops)
[    6.320153] mediatek-drm 14000000.dispsys: bound 14014000.dpi (ops mtk_dpi_component_ops)
[    6.328448] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    6.335089] [drm] No driver support for vblank timestamp query.
[    6.341552] [drm] Initialized mediatek 1.0.0 20150513 for 14000000.dispsys on minor 0
[    6.435301] Console: switching to colour frame buffer device 160x64
[    6.458327] mediatek-drm 14000000.dispsys: fb0: mediatekdrmfb frame buffer device
[    6.476100] libphy: dsa slave smi: probed
[    6.480561] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    6.489971] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    6.499441] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    6.508930] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    6.518380] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    6.527879] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[    6.537880] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[    6.545768] DSA: tree 0 setup
[    6.549372] mt6397-rtc mt6323-rtc: setting system clock to 2010-01-01T00:00:34 UTC (1262304034)
[    6.558568] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.569493] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.576634] ALSA device list:
[    6.579673]   No soundcards found.
[    6.583756] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    6.592583] cfg80211: failed to load regulatory.db
[    6.602665] ata1: SATA link down (SStatus 0 SControl 300)
[    6.932557] ata2: SATA link down (SStatus 0 SControl 300)
[    6.938188] md: Waiting for all devices to be available before autodetect
[    6.945151] md: If you don't use raid, use raid=noautodetect
[    6.951707] md: Autodetecting RAID arrays.
[    6.955900] md: autorun ...
[    6.958746] md: ... autorun DONE.
[    7.008299] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    7.016728] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    7.031861] devtmpfs: mounted
[    7.038065] Freeing unused kernel memory: 1024K
[    7.043057] Run /sbin/init as init process
[    7.513179] systemd[1]: System time before build time, advancing clock.
[    7.563928] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNU)
[    7.586713] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 10 (buster)!
...

had quick-tested poweroff (after poweroff 0.4w),wifi (ap0 successful created) and hdmi (see lightdm on my screen)

1 Like

Worked.

Shudown - poweroff finally works. YEAY!!!

Testing Hdmi and WIFi and then will upload it for users to test.

Great work.

Wifi is bit tricky because of that terrible driver,but hdmi should work too including fbcon (except some resolutions which are reported as not working)

HDMI worked.

Wifi and Lan is tricky for me.

I am not able to get LAN to work. I think DHCP is not on.

You need to configure it in your system. For lan you need to put ethx up first before rubning dhclient or setting fixed ip to lanx

For wifi you can install dnsmasq and hostapd and then unpack my wifi-package to have a basic config, tools and script to running all in right order

Tried this I got the Static ip for the lan0 but still it is not able to ping my router.

Where is this ?

You set eth0 up? Please show ā€œip aā€

Wifi-package is on my gdrive in folder ā€œinternal wifiā€ā€¦i hope this link works (mobile version misses share option) https://drive.google.com/drive/u/0/mobile/folders/1WLWAR1FC-rF4n2SgFecBlU1ym_XKqAR_/15Y5Y3NAOwg_IMmN3k6hdb7pAQj9oTVTl/15lHk7IEyVyQdYzVfvPvV-3jMhz7GSL7p?sort=13&direction=a

There is one with conf

After reboot lan works.

Now will test wifi. But there is no interface of wlan yet without the config and firmware.

I copied all the files in the respected directory. And rebooted but still I cant see the wifi interface.

@frank-w

Update: I see sit@NONE in ip link.

Start wifi.shā€¦this calles wmt-tools to create ap0 device and sets ip and hostapd on top,then restart dnsmasq to enable dhcp on wifi-clients

To get it after reboot you have to add wifi.sh to autostart (e.g. rc.local,which has to be enabled in systemd systems)