[DISCUSSION] Linux on LattePanda

A place to talk about all the Operating Systems, Software & Hardware
Forum rules

- Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.

- Members should post in a way which is consistent with "normal writing". That is users should not post excessive numbers of emoticons, large, small or coloured text, etc. Similarly users should not SHOUT or use excessive punctuation (e.g. ! and ?) in topic titles or posts.

- Members should use an appropriate, descriptive subject when posting a new topic. Examples of bad subjects include; "Help me!", "I'm stuck!", "I've got an error!", etc. Examples of good subjects include; "Getting an TABLE FULL error upon login", "Cannot restore a backup".

- Members are asked to post in English only so that posts can be well received and properly monitored.

- Spam is not tolerated here under any circumstance. This includes offering hosting services (charged and free), installation services, solicitation etc. Recruiting members for your own projects (moderators, designers, professional MOD work, etc.) is not permitted and is also considered spam. Users posting spam will be warned and their post removed.

- Members should post in a way that is respectful of other users. Flaming or abusing users in any way will not be tolerated and will lead to a warning. Vulgar language and inappropriate material is not allowed and will be removed. We try to maintain a family friendly atmosphere whenever it is possible within the main subject matter of this community. Please keep this in mind when participating.

- Each user is allowed to create one account. If you would like to change your username, please contact us and, most likely, we can do it for you while you can keep all of your profile data, posts, and other content.

- If a user violates our guidelines and shows a disregard for them, our staff and our community, they run the risk of losing their account. We reserve the right to deactivate any account and to edit or remove any content without warning. These guidelines are subject to change at any time without notice.

Thank you for visiting LattePanda.com!
User avatar
b-man
Posts: 7
Joined: Wed Jun 22, 2016 11:01 pm

Sat Aug 13, 2016 3:46 am

LattePanda wrote:
b-man wrote:It looks like the Mixtile LOFT-Q also uses the AP6234, and here is how they power on the module.

If we can get this code working on the LattePanda, we'll have a nice fully functional Linux box! :mrgreen:
This is from the standard version chip but the mappings remain the same across both versions so it will apply to the AP6234. Good luck!
lp wifi chip.png
Thank you for the additional info LattePanda, that's really awesome of you to share that!

According to how Linux addresses GPIO on the lattepanda, I've calculated that the two pins connecting the SoC to the WLAN module are gpio 404 and gpio 383. Below is a diagram of how these pins are mapped into gpio:

Code: Select all

WLAN GPIO PINS:
				                 GPO0 (General Purpose Input/Output (GPIO) controller - SOUTHWEST) INT33FF:00
0x0007 -> pin 7 -> gpio  404 GPO1 (General Purpose Input/Output (GPIO) controller - NORTH)     INT33FF:01
0x000A -> pin 10 -> gpio 383 GPO2 (General Purpose Input/Output (GPIO) controller - EAST)      INT33FF:02
				                 GPO3 (General Purpose Input/Output (GPIO) controller - SOUTHEAST) INT33FF:03
Now I can hopefully get WiFi working in Linux this weekend. :)

User avatar
b-man
Posts: 7
Joined: Wed Jun 22, 2016 11:01 pm

Sun Aug 14, 2016 4:14 am

UPDATE:

Thanks to /u/grotgrot on the lattepanda subreddit, WiFi is finally woring under Linux! :mrgreen:

Below is a set of steps for enabling wireless:

Step 1: Setting SDIO PCI mode in UEFI:
  1. 1. Reboot machine and press the DEL key to enter UEFI Setup.
  • 2. Select the Chipset tab and select the South Bridge option.
  • 3. Select the LPSS & SCC Configuration option.
  • 4. Select SCC SDIO Support and select PCI Mode form the SSC SDIO Support list.
  • 5. Save Changes and Exit.
Step 2: Obtaining BCM4334 WLAN settings
  1. 1. Verify that /lib/firmware/brcm/brcmfmac43340-sdio.bin exists. If it doesn't, download it from the linux-firmware project.
  • 2. As root, run the following command to download the BCM4334 WLAN settings and save it to the right location:

    Code: Select all

    curl -L0 https://raw.githubusercontent.com/LattePandaTeam/LattePanda-Win10-Software/master/Drivers/LattePanda_4G64GB_Drivers/MRD-64bit-Intel-Driver-Release/Drivers/WIFI/bcm943341wlagb.txt -o /lib/firmware/brcm/brcmfmac43340-sdio.txt
  • 3. Reboot your LattePanda. You should now have working WiFI.
These steps were tested on a 64GB Emmc/4GB RAM Latepanda running Fedora 24, but the same process should work for the 32GB Emmc/2GB RAM version.

P.S.

Bluetooth is still a WIP, I need some more time to firgure out how to get it working.

User avatar
LattePanda
Site Admin
Posts: 2407
Joined: Wed Jan 20, 2016 9:09 am

Mon Aug 15, 2016 2:31 am

b-man wrote:UPDATE:

Thanks to /u/grotgrot on the lattepanda subreddit, WiFi is finally woring under Linux! :mrgreen:

Below is a set of steps for enabling wireless:

Step 1: Setting SDIO PCI mode in UEFI:
  1. 1. Reboot machine and press the DEL key to enter UEFI Setup.
  • 2. Select the Chipset tab and select the South Bridge option.
  • 3. Select the LPSS & SCC Configuration option.
  • 4. Select SCC SDIO Support and select PCI Mode form the SSC SDIO Support list.
  • 5. Save Changes and Exit.
Step 2: Obtaining BCM4334 WLAN settings
  1. 1. Verify that /lib/firmware/brcm/brcmfmac43340-sdio.bin exists. If it doesn't, download it from the linux-firmware project.
  • 2. As root, run the following command to download the BCM4334 WLAN settings and save it to the right location:

    Code: Select all

    curl -L0 https://raw.githubusercontent.com/LattePandaTeam/LattePanda-Win10-Software/master/Drivers/LattePanda_4G64GB_Drivers/MRD-64bit-Intel-Driver-Release/Drivers/WIFI/bcm943341wlagb.txt -o /lib/firmware/brcm/brcmfmac43340-sdio.txt
  • 3. Reboot your LattePanda. You should now have working WiFI.
These steps were tested on a 64GB Emmc/4GB RAM Latepanda running Fedora 24, but the same process should work for the 32GB Emmc/2GB RAM version.

P.S.

Bluetooth is still a WIP, I need some more time to firgure out how to get it working.
awesome work! keep us updated on your progress :)
Enjoy Tinkering with LattePanda ! :lol:

User avatar
b-man
Posts: 7
Joined: Wed Jun 22, 2016 11:01 pm

Tue Aug 16, 2016 11:16 pm

Just a small status update:

So far I've narrowed the problem with bluetooth not working down to two factors:
The ACPI ID for our bluetooth radio (BCM2E95) needs to be added to the bcm_acpi_match list in drivers/bluetooth/hci_bcm.c so the hci_uart driver detects the radio.

Also, for some reason, the btbcm driver doesn't recognize that the bluetooth device is a BCM43341B0 device, so the patchram firmware never gets loaded.
I'm still trying to figure out why this is happening.

User avatar
Bruno
Posts: 20
Joined: Sat May 21, 2016 1:55 am

Thu Aug 18, 2016 8:23 pm

Driver for Realtek rt8723bs wifi, tested with Ubuntu and Debian on 32BG lp, on both wifi worked, on Debian the stock kernel (3.16) does not support

https://github.com/hadess/rtl8723bs

Edit:

Bluetooth
https://github.com/lwfinger/rtl8723bs_bt

User avatar
LattePanda
Site Admin
Posts: 2407
Joined: Wed Jan 20, 2016 9:09 am

Tue Sep 13, 2016 8:51 am

maybe a little late to the party here, but for people having trouble booting linux images, try burning images using ultraiso
http://www.ezbsystems.com/dl1.php?file=uiso9_pe.exe
this version is free to try

tested with ubuntu-16.04-desktop-amd64.iso on LP enhanced

1. File > Open (to load your image in to the program)
2. Bootable > Write Disk Image
3. Xpress Boot > Write New Disk MBR > USB-HDD+
4. Xpress Boot > Write New Drive Boot Sector > Syslinux
5. Write

full driver support still a WIP, currently have USB, SD, LVDS and ethernet working well
havent yet tested HDMI
wifi not working currently

Please let us know about successes/failures you encounter
Enjoy Tinkering with LattePanda ! :lol:

User avatar
reyncla
Posts: 2
Joined: Wed Sep 14, 2016 1:38 pm

Wed Sep 14, 2016 1:57 pm

I have successfully tested : LattenPanda (4G / 64 GB)

*Debian Jessie 8.5 XFCE
*Debian Jessie 8.5 MATE
*Ubuntu 16.04
*Lububtu 16.04
*Xubuntu 16.04
*Elementary OS 0.4

But all does not work the wifi and sound.

For now the wifi , I have "fixed" with a USB wireless dongle ...

But I could not make it sound . I tried updating the kernel v4.7.3 .. , changing the BIOS ACPI to PCI ... but does not work .

Is there any way , so it is time to make the sound work?

Best regards

User avatar
tomjokiel
Posts: 4
Joined: Tue Apr 19, 2016 11:52 am

Thu Sep 15, 2016 11:58 am

Hello reyncla,

You'll have to downgrade the kernel to 4.5/4.6 release and apply special patch for getting HDMI audio to work:
http://www.cnx-software.com/2016/04/19/ ... -released/

Good luck!

User avatar
daveculp
Posts: 1
Joined: Thu Sep 15, 2016 1:28 pm

Thu Sep 15, 2016 1:35 pm

I am not even remotely interested in running Windows 10. The board looks very interesting and promising, but how is Linux support for the board?

User avatar
reyncla
Posts: 2
Joined: Wed Sep 14, 2016 1:38 pm

Sun Sep 18, 2016 1:05 am

Hello tomjokiel

Thank you for your guidance .

I forgive my ignorance , but I tried several days trying to apply the special patch , but I have not been able .
Always it shows me an error that can not find the file line number 4 " b / drivers / gpu / drm / i915 / intel_hdmi.c " ...

I thank you again , could you explain me what is the right way (commands ) to apply the patch ?

Best regards

Post Reply