Seite 7 von 9 ErsteErste ... 56789 LetzteLetzte
Ergebnis 61 bis 70 von 81
  1. #61
    Mitglied
    Registriert seit
    02.12.2017
    Beiträge
    71
    Thanks (gegeben)
    3
    Thanks (bekommen)
    4
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDankeAktivitäten
    Box 1:
    U5PVR Deluxe
     
     
    Hmm, ok. But how is this included? This does not work:

    Code:
    #include "arch/arm/mach-hi3798cv2x/include/mach/io.h"
    This is from Android, but does not work either:

    Code:
    #include "mach/io.h"

    •   Alt Advertising

       

  2. #62
    Mitglied
    Registriert seit
    02.12.2017
    Beiträge
    71
    Thanks (gegeben)
    3
    Thanks (bekommen)
    4
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDankeAktivitäten
    Box 1:
    U5PVR Deluxe
     
     
    Ok, had to add some paths to the Makefile. Now it almost compiles. But one of the included files requires the CHIP_TYPE to be defined. Shouldn't this already be set in the build env? If not, is there a common place where to define this?

  3. #63
    Avatar von Captain
    Registriert seit
    03.04.2013
    Beiträge
    13.381
    Thanks (gegeben)
    708
    Thanks (bekommen)
    18787
    Total Downloaded
    162,35 MB
    Total Downloaded
    162,35 MB
    ReceiverDankeAktivitäten
    like this EXTRA_CFLAGS += -I$(srctree)/drivers/msp/drv/include/ -I$(srctree)/arch/arm/mach-hi3798cv2x/include/mach


    openATV we are open Source

    Boykott GPL violator

  4. #64
    Mitglied
    Registriert seit
    02.12.2017
    Beiträge
    71
    Thanks (gegeben)
    3
    Thanks (bekommen)
    4
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDankeAktivitäten
    Box 1:
    U5PVR Deluxe
     
     
    Also fixed the missing var with ccflags-y += -DCHIP_TYPE_hi3798cv200 in Makefile and the driver compiles. Let's see...

  5. #65
    Avatar von Captain
    Registriert seit
    03.04.2013
    Beiträge
    13.381
    Thanks (gegeben)
    708
    Thanks (bekommen)
    18787
    Total Downloaded
    162,35 MB
    Total Downloaded
    162,35 MB
    ReceiverDankeAktivitäten
    or include .../base.mak you see the file in kernel source root


    openATV we are open Source

    Boykott GPL violator

  6. #66
    Mitglied
    Registriert seit
    02.12.2017
    Beiträge
    71
    Thanks (gegeben)
    3
    Thanks (bekommen)
    4
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDankeAktivitäten
    Box 1:
    U5PVR Deluxe
     
     
    Finally some sucess! My modified brcmfmac module now powers up the card and it initialized as mmc2 device:

    May 1 20:23:13 dinobot4kse user.warn kernel: ========= u5pvr_pdata_init !!!!====
    May 1 20:23:13 dinobot4kse user.warn kernel: WL_REG_ON gpio 37
    May 1 20:23:13 dinobot4kse user.warn kernel: WL_HOST_WAKE gpio 36
    May 1 20:23:13 dinobot4kse user.warn kernel: gpio(36) oob init
    May 1 20:23:13 dinobot4kse user.warn kernel: IRQ: 104
    May 1 20:23:13 dinobot4kse user.warn kernel: ===== debug value 30
    May 1 20:23:13 dinobot4kse user.warn kernel: brcmf_sdio_init Enter
    May 1 20:23:13 dinobot4kse user.warn kernel: brcmf_sdio_pd_probe Enter
    May 1 20:23:13 dinobot4kse user.warn kernel: ========= power on!!!!====
    May 1 20:23:13 dinobot4kse user.warn kernel: gpio(37) set 1
    May 1 20:23:13 dinobot4kse user.info kernel: card connected!
    May 1 20:23:13 dinobot4kse user.warn kernel: mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
    May 1 20:23:13 dinobot4kse user.warn kernel: mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
    May 1 20:23:13 dinobot4kse user.warn kernel: mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
    May 1 20:23:13 dinobot4kse user.warn kernel: mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
    May 1 20:23:13 dinobot4kse user.warn kernel: mmc2: queuing unknown CIS tuple 0x91 (3 bytes)
    May 1 20:23:13 dinobot4kse user.info kernel: mmc2: new high speed SDIO card at address 0001
    root@dinobot4kse:~# cat /sys/class/mmc_host/mmc2/mmc2\:0001/mmc2\:0001\:1/vendor
    0x02d0
    root@dinobot4kse:~# cat /sys/class/mmc_host/mmc2/mmc2\:0001/mmc2\:0001\:1/device
    0x4335
    I could not set an IRQ - but not sure if that's needed. Also removing the module and loading again results in Segfault.

    The question is: What now? It should now register the card as wlan0 interface. I don't know (yet) how this is done.

  7. #67
    Avatar von Captain
    Registriert seit
    03.04.2013
    Beiträge
    13.381
    Thanks (gegeben)
    708
    Thanks (bekommen)
    18787
    Total Downloaded
    162,35 MB
    Total Downloaded
    162,35 MB
    ReceiverDankeAktivitäten
    the card must read firmware und conf file , looks this part not ready yet

    i can first take a look next week

    what have you change send please all your infos


    openATV we are open Source

    Boykott GPL violator

  8. #68
    Mitglied
    Registriert seit
    02.12.2017
    Beiträge
    71
    Thanks (gegeben)
    3
    Thanks (bekommen)
    4
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDankeAktivitäten
    Box 1:
    U5PVR Deluxe
     
     
    Correct, working on the firmware now. It requires two files: One from kernel.org here: https://git.kernel.org/pub/scm/linux...c4339-sdio.bin

    The other must be copied from nvram, but this does not work for me yet:

    Some new devices are storing the nvram which is needed in addition to the firmware by the driver in an EFI variable and the Windows driver can access it (this file should be optional in the case of PCIe devices). Currently brcmfmac does not support this automatically. First mount the efi vars into sysfs:

    Code:
    mount -t efivarfs none /sys/firmware/efi/efivars
    The content of the nvram is in this file:

    Code:
    /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113
    Copy this file where brcmfmac expects the nvram, for example:

    Code:
    cat /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113 > /lib/firmware/brcm/brcmfmac43241b4-sdio.txt
    My problem is, that I don't have /sys/firmware/efi. I guess some kernel module is still missing.

  9. #69
    Mitglied
    Registriert seit
    02.12.2017
    Beiträge
    71
    Thanks (gegeben)
    3
    Thanks (bekommen)
    4
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDankeAktivitäten
    Box 1:
    U5PVR Deluxe
     
     
    Somehow the efivarfs module is missing. And I can not activate it with
    Code:
    CONFIG_EFIVAR_FS=y
    . This setting gets removed from .config again. And I don't find the option in make menuconfig.

  10. #70
    Mitglied
    Registriert seit
    02.12.2017
    Beiträge
    71
    Thanks (gegeben)
    3
    Thanks (bekommen)
    4
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDankeAktivitäten
    Box 1:
    U5PVR Deluxe
     
     
    I've now used the .txt firmware file that you pasted from Android. After more messing around I finally got a wlan0 adapter created:

    Code:
    root@dinobot4kse:~# ifconfig wlan0
    wlan0     Link encap:Ethernet  HWaddr E0:76:D0:FB:76:CF  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    I can assign it an IP address and ping it. So - SUCCESS!

    Now we only need to stabilize things. I'm also not sure, how the interface is picked up and autoconfigured by the system.

  11. Thanks JayBorn bedankten sich

Seite 7 von 9 ErsteErste ... 56789 LetzteLetzte

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:58 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2021 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,88%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com