Page 1 of 27

[DISCUSSION] Linux on LattePanda

Posted: Mon Apr 18, 2016 12:59 pm
by Raymond Day
I order this wanting to run Linux on it. Seems like only the newer 16 type ones will work on it. Can put the ISO on a USB flash drive and it will boot from you on power up.

I had the live one work but installing it would not boot. The only one I found that boots and installs is Lubuntu 16.04. Or:

Linux Lattepanda 4.4.0-18-generic #34-Ubuntu SMP Wed Apr 6 14:01:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

It seems to be working very good.

Did you know this Lattepanda has the same CPU in it as the Intel Compute Stick with USB 3.0 on it too. STK1AW32SCR type.

-Raymond Day

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Tue Apr 19, 2016 12:14 pm
by tomjokiel
Hello Raymond,

This is very good news to me and my project :)

I'm getting tired of users requesting Raspberry PI support and hoping that LattePanda can be a RPi alternative in the x86 word (this way i would not have to bother with an ARM port).

Something like LattePanda "Zero" would be perfect. I dont need Windows and even internal storage. Getting lower price would be nice to compete with RPis and alike.

Is there any hardware which is currently not supported by the *buntu 16.04 image? I guess it will be wifi which probably requires out of the tree r8723bs driver:

Thank you in advance.

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Tue Apr 19, 2016 12:20 pm
by Raymond Day
I am not using WiFi or the sound so not sure if they work.

But I just tested WiFi and looks like it don't see any. Typed the command nmtui It shows this:

┌─┤ NetworkManager TUI ├──┐
│ │
│ Please select an option │
│ │
│ Edit a connection │
│ Activate a connection │
│ Set system hostname │
│ │
│ Quit │
│ │
│ <OK> │
│ │

If I go to one of them it just show about nothing. Like this:

│ │
│ ┌──────────┐ │
│ │ ↑ │ <Add> │
│ │ ▮ │ │
│ │ ▒ │ <Edit...> │
│ │ ▒ │ │
│ │ ▒ │ <Delete> │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ▒ │ │
│ │ ↓ │ <Quit> │
│ └──────────┘ │
│ │

So no WiFi at lest on the default load of Lubuntu.

-Raymond Day

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Tue Apr 19, 2016 12:46 pm
by tomjokiel
Hopefully i wont ask for too much: could you generate hardware report and upload it to so myself and other linux users could benefit from the info provided?

I have a script created for this purpose:

Please have a look on it - all what it does is to collect hardware data and save as /tmp/debug.txt
If you dont trust it then any hardware focused report would be fine :)

Thank you.

perhaps you should remove MAC address of your NIC from the report generated by my script before posting publicly.

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Tue Apr 19, 2016 2:05 pm
by Raymond Day
That's neat to show the info.

I did commands like this:

chmod 755

It said saved at /tmp/debug.txt

Can attach it here any extension I put on it or no extension says not allowed. Test .jpg but not possible to deteremine the dimensions.

I put it in my Google docs.

Can see at the end I was trying to see if could get WiFi working on it. Never did but I did not spend a lot of time to do it.

-Raymond Day

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Tue Apr 19, 2016 2:14 pm
by tomjokiel
Thank you very much!

Unfortunately i see we are not there yet :(

a) sound drivers are missing
b) wifi does not work (looks like Ubuntu ships r8723bs driver by default so maybe just firmware is missing?)
c) intel drm driver causes kernel oopses and modesetting driver is used in the GUI:

Code: Select all

[   13.030524] WARNING: CPU: 1 PID: 1050 at /build/linux-XwpX40/linux-4.4.0/drivers/gpu/drm/i915/intel_sideband.c:200 vlv_dpio_read+0x86/0x90 [i915]()
[   13.030528] DPIO read pipe A reg 0x8134 == 0xffffffff
[   13.030531] Modules linked in: snd_soc_sst_cht_bsw_rt5645(+) intel_rapl intel_powerclamp kvm_intel kvm nls_iso8859_1 irqbypass punit_atom_debug crct10dif_pclmul crc32_pclmul aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd lpc_ich cdc_ether snd_intel_sst_acpi usbnet mei_txe snd_soc_rt5640 mei joydev snd_soc_rt5670 input_leds snd_intel_sst_core r8152 cdc_acm snd_soc_rt5645 fdp_i2c snd_soc_sst_mfld_platform snd_soc_rl6231 mii fdp goodix snd_soc_core nci nfc snd_compress ac97_bus snd_pcm_dmaengine snd_pcm processor_thermal_device intel_soc_dts_iosf snd_seq_midi snd_seq_midi_event snd_rawmidi hci_uart snd_seq btbcm btqca btintel snd_seq_device snd_timer 8250_fintek snd bluetooth dw_dmac dw_dmac_core rfkill_gpio soundcore i2c_designware_platform i2c_designware_core pwm_lpss_platform
[   13.030616]  spi_pxa2xx_platform 8250_dw pwm_lpss tpm_crb int3400_thermal soc_button_array acpi_thermal_rel mac_hid int3403_thermal int340x_thermal_zone acpi_pad coretemp autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic usbhid uas usb_storage mmc_block i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm fjes video i2c_hid hid sdhci_acpi sdhci pinctrl_cherryview
[   13.030661] CPU: 1 PID: 1050 Comm: Xorg Tainted: G      D W       4.4.0-18-generic #34-Ubuntu
[   13.030665] Hardware name: To be filled by O.E.M. To be filled by O.E.M./Cherry Trail CR, BIOS S70C_001 03/17/2016
[   13.030668]  0000000000000286 000000001fc11fc5 ffff88007a337a48 ffffffff813e9243
[   13.030675]  ffff88007a337a90 ffffffffc0212498 ffff88007a337a80 ffffffff81080f62
[   13.030681]  0000000000000000 0000000000008134 ffff880176280000 0000000000008004
[   13.030687] Call Trace:
[   13.030698]  [<ffffffff813e9243>] dump_stack+0x63/0x90
[   13.030706]  [<ffffffff81080f62>] warn_slowpath_common+0x82/0xc0
[   13.030711]  [<ffffffff81080ffc>] warn_slowpath_fmt+0x5c/0x80
[   13.030761]  [<ffffffffc01ba1c6>] vlv_dpio_read+0x86/0x90 [i915]
[   13.030811]  [<ffffffffc01a2069>] i9xx_get_pipe_config+0x599/0x690 [i915]
[   13.030862]  [<ffffffffc01cbd99>] ? intel_dp_get_hw_state+0x69/0x180 [i915]
[   13.030912]  [<ffffffffc019e1e2>] intel_modeset_check_state+0x312/0x8a0 [i915]
[   13.030962]  [<ffffffffc01a9bcb>] intel_atomic_commit+0x4bb/0x6f0 [i915]
[   13.031001]  [<ffffffffc00a4c47>] drm_atomic_commit+0x37/0x60 [drm]
[   13.031023]  [<ffffffffc0109a06>] drm_atomic_helper_set_config+0x76/0xb0 [drm_kms_helper]
[   13.031053]  [<ffffffffc0093e02>] drm_mode_set_config_internal+0x62/0x100 [drm]
[   13.031083]  [<ffffffffc0098322>] drm_mode_setcrtc+0x3d2/0x4f0 [drm]
[   13.031110]  [<ffffffffc0089712>] drm_ioctl+0x152/0x540 [drm]
[   13.031140]  [<ffffffffc0097f50>] ? drm_mode_setplane+0x1b0/0x1b0 [drm]
[   13.031148]  [<ffffffff8121ff9f>] do_vfs_ioctl+0x29f/0x490
[   13.031154]  [<ffffffff8120ed51>] ? __sb_end_write+0x21/0x30
[   13.031159]  [<ffffffff8120c95d>] ? vfs_write+0x15d/0x1a0
[   13.031163]  [<ffffffff81220209>] SyS_ioctl+0x79/0x90
[   13.031170]  [<ffffffff818243b2>] entry_SYSCALL_64_fastpath+0x16/0x71
[   13.031218] ---[ end trace ee2b0ec59f974c93 ]---
[   13.033616] ------------[ cut here ]------------
Maybe next kernel version will make some progress.

Thank you once again.

i did not read carefully: r8723bs was added by you :)

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Tue Apr 19, 2016 2:21 pm
by Raymond Day
This was the only Linux I could find that would install on it. I could run live Linux on it but installing them it would not boot all the way then.

I was working on the WiFi but did not get it to work yet. I don't really need it any way.

I don't see why it matters if other see the MAC address. I just know if don't have my URL name in it. That's what I did not want in it.

-Raymond Day

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Tue Apr 19, 2016 7:59 pm
by Raymond Day
I had my Intel compute stick the one with USB 3.0 as my server before the LattePanda. So I booted the same USB live load of Lubuntu 16.04 in it. But did not install it just used it to copy my setting from the eMMC in the ICS.

It has the same CPU as the LP. But I guess not the same WiFi chip.

I just tested nmtui command on it and it shows the LAN and WiFi. Got this photo of my screen of it. That's my WiFi around here.
Live load on ICS USB3 WiFi works.jpg
Live load on ICS USB3 WiFi works.jpg (47 KiB) Viewed 35514 times
What the LP has that the ICS does not is 2 Times the RAM and eMMC. That makes it worth it for me.

-Raymond Day

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Wed Apr 20, 2016 1:22 pm
by Raymond Day
Got phpsysinfo working on it. It's neat to see the info. Here is a screen shot of it with my URL blanked out.


To see it full size to read it click here. and click on the + in the upper right corner.

-Raymond Day

Re: Can install Lubuntu 16.04 (Xenial Xerus) on it.

Posted: Wed Apr 20, 2016 8:27 pm
by serji
That's great news! can't wait to have my LP, as soon as I got mine I will test your instructions & install Ubuntu on it. Many thanks Raymond!!