1. Configure SD card as SDIO

  1. infinity2m.dtsi dts configuration

  2. Jumper verification, clk can be changed to 12M when the signal is poor, the changes are as follows:

  3. Note

    Check the configuration when the reset pin was used.

    If there is no additional gpio to control the reset pin, the following content can be ignored.

    Use gpio0 on the demo board to control the power enable pin of sd. It is possible to use GPIO0 to control reset on a new design drawing.

    Shield //<PAD_GPIO0 PINMUX_FOR_GPIO_MODE MDRV_PUSE_SDIO0_PWR > in infinity2m-ssc011a-s01a-padmux-display.dtsi.

    Add gpio out 0 0 and gpio out 0 1 to uboot to control the reset.

  4. The gpio that controls sd power in kernle is found according to MDRV_PUSE_SDIO0_PWR in padmux. slot-pwr-gpios in dts has no effect in the presence of padmux.

  5. When power is not a hardware long power supply, it is used as SDIO, if there is an error in initialization, modify the time as follows to 30.

2. Replace 102b ko test

The steps to use 102b wifi are the same as 101b, just replace the corresponding ko insmod. Click here to download 102b test wifi ko.

Test command:

  1. Modify /appconfigs/wpa_supplicant.conf, and add information of AP.

    / # vi appconfigs/wpa_supplicant.conf
        ssid="aryl iPhone"
  2. wifi initialization

    cd /config/wifi
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/lib:/config/wifi
  3. Test wifi connection (connect and get IP, observe through router or mobile phone)

    ./wpa_supplicant -Dnl80211 -i wlan0 -c /appconfigs/wpa_supplicant.conf -d &
    udhcpc -q -i wlan0 -s /etc/init.d/udhcpc.script
  4. Wlan scanning:

    ./iwlist wlan0 scanning
  5. Connection status checking:

    ./wpa_cli -i wlan0 -p /tmp/wifi/run/wpa_supplicant status
  6. ping

    ping -I wlan0