I really need the linux config file!


#1

I got the lichee pi zero with the wifi adapter board.

The lichee pi zero works fine but I can’t make the wifi working.

The module load ok but when I execute the ifconfig wlan0 up I got errors and after 1 minutes
wlan0 disappeared.

root@LicheePi:~# insmod r8723bs.ko
[ 4371.081707] r8723bs: loading out-of-tree module taints kernel.
[ 4371.099044] RTL8723BS: module init start
[ 4371.103133] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 4371.110464] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 4371.119420] pnetdev = c3300000
[ 4371.167073] RTL8723BS: rtw_ndev_init(wlan0)
[ 4371.178548] RTL8723BS: module init ret =0
root@LicheePi:~# ifconfig wlan0 up
[ 4382.695889] rtl8723bs: accquire FW from file:rtlwifi/rtl8723bs_nic.bin
[ 4384.129005] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 53, WR DCE !!
[ 4384.135132] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.383270] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.389772] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.398228] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.404701] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.414831] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.421417] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.427303] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.433733] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.439591] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.446074] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.451899] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.458374] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.464177] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.470655] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.476517] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.485500] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.493923] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.502939] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.511313] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 4384.520263] sunxi-mmc 1c10000.mmc: send stop command failed
[ 4384.528532] sunxi-mmc 1c10000.mmc: data error, sending stop command

Is there a some kind of test to check if the wifi board works ?
I check my solder and everything is ok.

B.T.W. I hate picture. I prefer a good schematic were pins are labeled to a specific position. And were is the schematic of the lichee pi zero core.

For now I download the linux source code but I’m missing the config file ? where is it ?
I want to use an usb wifi adapter or an usb ethernet adapter.

Just wonder if I should spend time on that device . Chippro looks like years ahead of you.( I do have a couple).

Hope that you will fix all your documentations because it is all over the place.


#2

hi, your problems are more likely hardware-related - there’s a resistor you have to remove for the wifi to work. Read the tutorial here 【Tutorial】Use the WiFi module , there’s a photo with exact placement. It made my wifi work like a charm :wink:
Regarding schematics, your best bet is the github repo https://github.com/Lichee-Pi/lichee-pi-zero/tree/master/HardWare/Schematics.
I certainly hope the documentation gets better soon, too…


#3

While I understand your frustration with this, if you had read the tutorial thread ( 【Tutorial】Use the WiFi module ) entirely you would find that on the URGENT boards there is a resistor you must remove on the board if you do not use the adapter in the sdcard reader and solder it.

Read through the comments on the thread for more information on the resistor you need to remove.

Edit: seems someone beat me to replying…

Hope this helps.

Cheers!


#4

My current largest complaint is the lack of a Linux-4.10.2 kernel source so we can build additional modules. Currently the only source I can find is 4.10.15 in their github and it lacks any basic/default configurations which makes creating a usable kernel a chore.

@Zepan
It would be great if we could get the source to 4.10.2 which is used in all the images ( or at least a default config or a document showing how to compile your own kernel)!

Cheers!


#5

Hi, here is the simple tutorial:
https://www.kancloud.cn/zepan/zero_tutorial/342701
You can comment out what you needed.


#6

Thank you for the tutorial. I will try it tonight !
“licheepi_zero_defconfig” This is what I was missing . That little piece of information and again it’s on another site. This is what I complain about the documentation! Its all over the place.


#7

Yes I followed that post and my resistor was removed. I put the wifi on top and did exactly like the picture except I soldered longer pin (0.4 inch high) to increase the heat exchange.

Tonight I will unsolder the wifi and check it again.

I will check also the device tree source code. The English version from that post point the boot.scr (wifi version) to the wrong DTB so I had to compile my own, (After testing the current and the wifi version provided).


#8

licheepi_zero_defconfig is contains in default branch, maybe you cloned another branch?


#9

Perfect I will also add a link to that tutorial on the licheepizero.us site to make it easier to locate.

Update: there is now a link to that tutorial on the site.

Thanks for taking the time to reply.

Cheers!


#10

As mentioned in the other thread, I have fixed the boot.scr (I accidentally uploaded wrong one) and the site is also back online (had unplanned reboot of server and didn’t have services set to auto start, which has now been fixed).

@Zepan can you please move this thread under Lichee Pi Zero sub category as it was made un-categorized, I think others will find the information in this thread useful, so it will be better to be in the right category.

Cheers!


#11

Thanks Zepan I got the kernel compiled and I was able to run my usb ethernet adapter! :wink:

But I can’t figure out the part to compile the rtl8723bs :disappointed:
How did you get the r8723bs.ko ?

Now the current rtl8723bs.ko ,http://pan.baidu.com/s/1bpB04XL, is the wrong format!

Also I did have to change the sources.list to ftp.us.debian.org since the chinese ftp for apt-get was giving me timeout.

I did have to create a swap partition to get the apt-get update working.

Only thing left will be to get the wifi working and add the SPI.
I want to use this board to my neopixel lamppost on my left side of my house.


#12

Here is the rtl8723bs driver code:
git clone https://github.com/hadess/rtl8723bs.git
git reset --hard db2c4f61d48fe3b47c167c8bcd722ce83c24aca5

Here is the spi LCD example(chinese version):
https://www.kancloud.cn/lichee/lpi0/327291


#13

@Zepan thanks for the spi LCD but I wasn’t able to get a /dev/spidev device.

I checked and looks like that the SPI for the w3s is not currently supported in the kernel for spidev.

I will put it aside until the product is more mature software wise or I find a prove working solution.

Right now I’m switching to chippro for my lamppost project. I do have the wifi and the SPI working fine.


#14

Hi, you can follow next instruction to enable spi dev:

  1. enable spi0 in dts:
    /arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts

    &spi0 {
    pinctrl-names = “default”;
    pinctrl-0 = <&spi0_pins>;
    status = “okay”;
    #address-cells=<1>;
    #size-cells=<0>;
    spidev@0x00 {
    compatible = “spidev”;
    spi-max-frequency = <100000000>;
    reg = <0>;
    };
    };

  2. enable SPIDEV in kernel:

    x -> Device Drivers
    x (1) -> SPI support (SPI [=y])
    SPI_SPIDEV [=y]

and you will find spidev:

root@LicheePi:~# ls /dev/s
shm/           spidev32766.0  stdin          
snd/           stderr         stdout

Void Linux on Lichee Pi Zero
#15

Thanks! I got the spi working.
My own device tree was practically the same but I did forget to enable the spidev in the kernel. :wink:


#16

How do you build the rtl8723bs kernel module from these sources? I keep failing.


#17

Its not worth the pain, just use the 4.13-exp branch. That has the wifi module available in tree


#18

Awesome, thanks for letting me know. Was the last piece to my audio streaming.