maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets (https://talk.maemo.org/showthread.php?t=96708)

Flos 2017-03-05 14:45

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1524738)
Could you please confirm your revision? Is it V3, V5 or something else? Check the digit after letter "V" in serial number at the back of the tablet.

Ahh.. yes, you're right, it shuld be a V5. The full string is:

P820DBFBV5A01619

So, any chance I can bring the sound back? Thanks!

TheKit 2017-03-05 16:39

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by Flos (Post 1524812)
Ahh.. yes, you're right, it shuld be a V5. The full string is:

P820DBFBV5A01619

So, any chance I can bring the sound back? Thanks!

No easy way, since it's a known issue due to V5 having different sound codec. I didn't see those errors before though. Could you please provide full dmesg log after boot (upload as file or to pastebin) and DSDT tables dump:
Code:

cat /sys/firmware/acpi/tables/DSDT > dsdt.dat

Flos 2017-03-06 17:10

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
Hi TheKit, please kindly find the file in the attachment. Thanks!

TheKit 2017-03-14 15:33

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by Flos (Post 1524931)
Hi TheKit, please kindly find the file in the attachment. Thanks!

Thanks for the logs. I did some investigation in spare time. DSDT is almost the same with V3. I downloaded Android firmwares for both revisions and compared their kernels with BinDiff to see if there are changes in sound codec or SST drivers. Surprisingly, there are no obvious differences in code, which means it might be data that's different.

I compared rt5640_init_reg array in kernel binaries and found exactly one change:
Code:

        {RT5640_HPO_MIXER, 0xc000},        /*HPVOL -> HPOLMIX */
        /*{RT5640_HPO_MIXER, 0xa000},//DAC1 -> HPOLMIX*/

V3 sets RT5640_HPO_MIXER to 0xc000 and V5 sets it to 0xa000 instead, which was present, but commented out in available kernel source tree.

I presume this won't be the only change, but I want V5 owners to test this kernel and post dmesg before I go further.
Code:

devel-su
mkdir /boot/esp
mount /dev/mmcblk0p1 /boot/esp
mv /boot/esp/bzImage /boot/esp/bzImage-old
cp bzImage /boot/esp/bzImage
reboot


tmi 2017-03-14 17:35

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1525400)
I want V5 owners to test this kernel and post dmesg before I go further.

Here's pastebin from mine.
I just want to say, I really appreciate what you're doing here!

TheKit 2017-03-14 17:55

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by tmi (Post 1525406)
Here's pastebin from mine.
I just want to say, I really appreciate what you're doing here!

Thank you! Now that's different from other devices, rt5642 codec isn't detected on I2C. Could you please also upload your DSDT?
Code:

cat /sys/firmware/acpi/tables/DSDT > dsdt.dat

tmi 2017-03-14 18:09

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
Quote:

Originally Posted by TheKit (Post 1525407)
Could you please also upload your DSDT?

Sure. /10char

tmichel 2017-03-16 07:46

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
Hi,

find attached anoterh dmesg and dsdt from an Onda V5.

TheKit 2017-03-16 14:24

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
@tmi, @tmichel your device has rt5651 codec, as opposed to rt5642 on V3 (and some other V5?). Newer kernel has driver for rt5651 codec, but likely it won't be easy to backport to 3.10. Wish there was a way to get actual kernel source used for the tablet.

smatkovi 2017-03-16 16:01

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
1 Attachment(s)
here's mine, as usual i just added the extension because of the filesize edit: experimental kernel with audio

smatkovi 2017-03-16 19:16

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
i encountered a bug, the accelerometer stopped working for me with the experimental kernel

tmi 2017-03-16 19:26

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by smatkovi (Post 1525532)
i encountered a bug, the accelerometer stopped working for me with the experimental kernel

I can verify this as I just realized the same. Copying the old kernel back + reboot makes the display rotate again.

smatkovi 2017-03-17 07:57

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
but i would change the kennel to listen to music and then back, that would be no problem for me, i think better than no sound at all

ferlanero 2017-04-19 01:18

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Hi! Is there any chance of seeing Sailfish 2.1 running in our beloved Onda V820W V3? This tablet port is the only real Sailfish tablet experience (despite the oficial Jolla Tablet) out there for who likes to ban Android away their lifes!

explit 2017-05-10 06:12

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1505017)
I got pretty much inspired by https://jolla.comes.today/jolla-tablet-on-taobao-china/ article and firmware from http://talk.maemo.org/showthread.php?t=96474. In a nutshell, official Jolla Tablet is a device based around Intel Atom Z3735F SoC (Bay Trail) and can work both with Sailfish OS and Android (by the way, Android device tree it's based on is called "anzhen4_mrd8_w").

There have been a lot of cheap Chinese tablet using the same SoC, and usually they come with Android/Windows dualboot. So what's preventing us from running Sailfish OS on them? Android firmware can often be easily ported between such devices, but kernel is device-specific, so custom ROM makers just use the stock kernel from their device unmodified.

For Sailfish OS, we can't, since systemd requires some kernel options which are most of time turned off in Android kernels. Enabling them and recompiling kernel would be easy if Chinese manufacturers didn't violate GPL and actually provided kernel sources, but that's not the case. Thankfully, since most of hardware is similar, it's possible to base custom kernel on other device source.

I have Sailfish OS running on Onda V820w tablet. It's not perfect yet, but the hardware itself (touchscreen, audio, Wi-Fi, Bluetooth, front and back cameras) works. Many thanks to Stskeeps for providing modules folders which were missing from Jolla Tablet kernel sources. The biggest problem was getting kernel working with camera sensors. Even though the needed drivers are present, PMIC regs and GPIO pin meanings turned out to be different. Just a few values to change, but it was very troublesome to debug and I had to disassemble Onda stock Android kernel to understand what's wrong.

Below is a guide to installing Sailfish OS on Onda V820w (tested with V3, see serial number to understand what revision is yours if you happen to have it). Hope community will be interested in running Sailfish OS on other similar devices and we can have more supported. I'm happy to help with what I can either here or at #sailfishos-porters on IRC.



Update: automatic installer (all data is going to be erased!) image for ONDA V820W V3: https://mega.nz/#!8FZRiBwB!FBBD8CUMa...Qp713VqT-FoAhM. Unpack it to the root of FAT32 formatted USB drive and boot tablet from USB drive.

How do you think are the chances to get your image running on another Baytrail tablet Medion Lifetab S10366?
Its also based on anzhen Android Device Tree.

Here is my post about it:
http://talk.maemo.org/showthread.php?t=99355

Thanks

TheKit 2017-05-11 06:53

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by explit (Post 1527841)
How do you think are the chances to get your image running on another Baytrail tablet Medion Lifetab S10366?
Its also based on anzhen Android Device Tree.

Here is my post about it:
http://talk.maemo.org/showthread.php?t=99355

Thanks

I think the way it runs on ONDA is more hacky and complicated than it probably needs to be for Medion, if it's based on same device tree. Onda has 32-bit UEFI firmware and no kernel source code available from vendor, so basically I adapted Jolla Tablet kernel tree for it and used GRUB2 bootloader to boot 64-bit kernel with 32-bit UEFI (32-bit kernel can be also used in theory, but there is weird bug with kernel panic on starting PulseAudio).

Since Medion is Germany-based, can you request GPL kernel source code from them? It's either not present on their website or I couldn't find it.

explit 2017-05-11 08:32

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
This was really easy.
You can download Android 5.1.1 Sources for Medion just on their Website....

http://www1.medion.de/downloads/down...type=quellcode

Can you use them also for Onda?

eugl 2017-07-11 08:12

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1527919)
I think the way it runs on ONDA is more hacky and complicated than it probably needs to be for Medion, if it's based on same device tree. Onda has 32-bit UEFI firmware and no kernel source code available from vendor, so basically I adapted Jolla Tablet kernel tree for it and used GRUB2 bootloader to boot 64-bit kernel with 32-bit UEFI (32-bit kernel can be also used in theory, but there is weird bug with kernel panic on starting PulseAudio).

Since Medion is Germany-based, can you request GPL kernel source code from them? It's either not present on their website or I couldn't find it.

Hello TheKit! Tell me, please, whether it is possible to port sailfishos on a tablet having a dual load. My tablet on an Intel Atom X3 C3230 processor (zenpad c7 z170cg). Can I use the firmware that you prepared for the Onda 830 without modification to be installed on my tablet?

eugl 2017-07-11 08:34

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Hello TheKit! Tell me, please, whether it is possible to port sailfishos on a tablet having a dual load. My tablet on an Intel Atom X3 C3230 processor (zenpad c7 z170cg). Can I use the firmware that you prepared for the Onda 830 without modification to be installed on my tablet?

eugl 2017-07-11 08:38

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1527919)
I think the way it runs on ONDA is more hacky and complicated than it probably needs to be for Medion, if it's based on same device tree. Onda has 32-bit UEFI firmware and no kernel source code available from vendor, so basically I adapted Jolla Tablet kernel tree for it and used GRUB2 bootloader to boot 64-bit kernel with 32-bit UEFI (32-bit kernel can be also used in theory, but there is weird bug with kernel panic on starting PulseAudio).

Since Medion is Germany-based, can you request GPL kernel source code from them? It's either not present on their website or I couldn't find it.

Hello TheKit! Tell me, please, whether it is possible to port sailfishos on a tablet having a dual load. My tablet on an Intel Atom X3 C3230 processor (zenpad c7 z170cg). Can I use the firmware that you prepared for the Onda 830 without modification to be installed on my tablet?

tmi 2017-07-21 16:58

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by ferlanero (Post 1527014)
Hi! Is there any chance of seeing Sailfish 2.1 running in our beloved Onda V820W V3?

I assume there's been no change in this issue lately?

(I admit I haven't been paying attention very closely as I've used my Onda quite sparingly.
Sure, there is the Youyota tablet option and I might still actually end up getting one but in the meantime I will also gladly welcome any possible SFOS updates for Onda.)

ferlanero 2017-07-22 21:29

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
I love to use my Onda V820W V3 with SailfishOS. By far, the best OS for tablets without doubt. Almost a year using the Onda and quite happy with it. Now I've backed th Youyota so I hope I can use Sailfish for at least another year! :)

dubliner 2017-08-26 10:20

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Excited by the idea to run SFOS on a tablet, I ordered myself an Onda V820w V3 which just arrived today.

Problem: I am stuck in an infinite boot loop. :(

What I did: I used the automatic installer including ferlanero's suggestions mentioned in posts #54 and #55. Installation finished with a reboot. After that, all I see is the GRUB menu "Sailfish OS" or "Sailfish OS (USB debug mode)" which, when selected (either one), results in a black screen and a reboot.

Can anyone help, please?

TheKit 2017-08-26 10:39

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by dubliner (Post 1533309)
Excited by the idea to run SFOS on a tablet, I ordered myself an Onda V820w V3 which just arrived today.

Problem: I am stuck in an infinite boot loop. :(

Is it Onda V820W, not Onda V820W CH? Not sure if original one can be found anymore in shops.

dubliner 2017-08-26 10:48

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Thanks for the quick reply, TheKit!!!

I bought it used. The SN starts with P820DBF4V3A... and the package doesn't say anything about CH.

Sticker:
Onda V820W DualOS 32GB
Screen: 8.0inch display (1280x800resolution)
CPU: Intel Z3735F,64-bit,2M Cahce, up to 1.83 GHz
GPU: Intel HD Graphics
...

P.S. Argh, Sticker may not belong to tablet since it has a different SN (for V1). But the SN quoted above is on the tablet itself.

P.P.S. How would a regular V3 serial number start?

P.P.P.S. It's working now!!! All I had to do was to reset BIOS to default! Man, this was stressful... :D

TheKit 2017-08-26 14:28

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by dubliner (Post 1533313)
P.P.P.S. It's working now!!! All I had to do was to reset BIOS to default! Man, this was stressful... :D

Did you boot Windows before installing it? UEFI has "Android" and "Windows" modes with different quirks to boot them.

dubliner 2017-08-26 14:44

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Thanks again for the quick reply, TheKit! I owe you one!

Yes, I did boot into Windows first, basically just to check whether the device was working at all.

One thing I noticed: When I first charged it, a red LED lit up. It no longer seems to do this. Yet, SFOS reported "charging". Is that normal?

Would it be possible to add some information like posts #54/#55, the serial number and the BIOS reset thing to the first message in this thread? Future users might appreciate this.

BTW, I'm just running the 2.0.5.6 upgrade (19%... fingers crossed!). Are there any chances for a 2.1.x upgrade?

dubliner 2017-08-26 16:44

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Here's a funny thing after the upgrade from the installer image to 2.0.5.6.

Instead of the normal "unlock" screen with the "> <" symbols I now just get a black screen with the rotating circle. :confused: At first I thought Lipstick hadn't started until I tried swiping.

Is there a method to remedy?

TheKit 2017-08-26 17:22

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by dubliner (Post 1533327)
One thing I noticed: When I first charged it, a red LED lit up. It no longer seems to do this. Yet, SFOS reported "charging". Is that normal?

BTW, I'm just running the 2.0.5.6 upgrade (19%... fingers crossed!). Are there any chances for a 2.1.x upgrade?

I didn't reverse the kernel part to light that red LED, since on Android it's only lit when charging, so this can be ignored.

I planned to update it to 2.1.x, but still didn't do it. Will try to check it again.

Quote:

Originally Posted by dubliner;1533335
[B
Instead of the normal "unlock" screen with the "> <" symbols I now just get a black screen with the rotating circle.[/B] :confused: At first I thought Lipstick hadn't started until I tried swiping.

Is there a method to remedy?

That's weird. I didn't see this on tablet. Usually this happens when it's waiting for ofono, but we don't have telephony.

dubliner 2017-08-26 20:27

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1533339)
I didn't reverse the kernel part to light that red LED, since on Android it's only lit when charging, so this can be ignored.

Oh, that's fine. I just wanted to know if I "broke" the LED functionality somehow. You are absolutely right, nobody really needs that LED.

Quote:

Originally Posted by TheKit (Post 1533339)
That's weird. I didn't see this on tablet. Usually this happens when it's waiting for ofono, but we don't have telephony.

I re-ran the upgrade instructions again. It seems like I might have skipped the "rm /lib/modules/3.10.20/*.ko" part the first time around. So sorry about that... :o

Quote:

Originally Posted by TheKit (Post 1533339)
I planned to update it to 2.1.x, but still didn't do it. Will try to check it again.

It would so great if you could!!! Again, let me thank you so much for all the wonderful work you did here! It is truly appreciated!

ferlanero 2017-08-27 16:13

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1533339)
I planned to update it to 2.1.x, but still didn't do it. Will try to check it again.

+1 for the 2.1.x update ;)

tmi 2017-08-27 23:21

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by dubliner (Post 1533335)
Here's a funny thing after the upgrade from the installer image to 2.0.5.6.

Instead of the normal "unlock" screen with the "> <" symbols I now just get a black screen with the rotating circle. :confused: At first I thought Lipstick hadn't started until I tried swiping.

Is there a method to remedy?

Funny, I had the same thing... silly me, I always thought it was due to some incompatibility with the hardware since I have the v820w V5 and never really paid any attention to it afterwards. Turns out I'd probably made some typo/mistake when originally upgrading as I just went through the upgrading steps and that seems to have fixed it.

EDIT: I had to install the tablet from scratch and it wasn't a typo after all as the problem reappeared. I believe
Code:

zypper ref -f
before running the long zypper install command again finally fixed it. YMMV
(I am not going to do everything all over again just to be sure, sorry)

Also, it took ages to get the WLAN working first. The best(/only?) way seemed to be from the prompt where the WLAN icon is presented and there is the text Turn WLAN on. I could never connect properly from Settings or Events View even though the password was 100% correct.
(After fighting this for way too long I am not sure anymore if the prompt appeared when trying to launch the Jolla Store with WLAN off but it just might've)

EDIT2: Ok, so I had to do it all over again :P
Due to that I made a github repo.

(Yet again I had initial problems with the WLAN. Before the update I could connect best as I described earlier. Then after the update the only working way seemed to be from Settings.)

tmi 2017-11-20 13:40

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Any hope of a 2.1.3 update now that it's publicly available?
This fixes the WPA2 KRACK vulnerability (among other things) so it would be "nice to have" also on Onda tablets.

TheKit 2017-11-20 19:43

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by tmi (Post 1538622)
Any hope of a 2.1.3 update now that it's publicly available?
This fixes the WPA2 KRACK vulnerability (among other things) so it would be "nice to have" also on Onda tablets.

I tried to update my tablet to 2.1.3.7 today. It mostly worked (after updating onda repo for 2.1.3.7 and manually installing some packages). Yet it seems to have broken Bluetooth and video recording with rear camera, need to investigate why.

Amboss 2017-11-21 19:39

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1538645)
Yet it seems to have broken Bluetooth and video recording with rear camera, need to investigate why.

Probably because it's kind of broken even on official builds :(

tmi 2017-12-09 11:44

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
BT and video recording are not that important to me (plus the tablet is for toying around) so I tried to adapt the 2.0.5.6 update instructions to 2.1.3.7 with "ssu re 2.1.3.7" and using "http://sfos.scanf.su/onda-v820w-v3/2.1.3.7" for adaptation-onda. Seems I didn't know what I was doing since "version --dup" couldn't find all the needed packages. I had nothing to lose so I even tried enabling adaptation0 & adaptation1 without luck.

Maybe an overkill, but in the end I re-ran the 2.0.5.6 update instructions and after rebooting the tablet was working fine as it was before my little experiment.

smatkovi 2018-03-29 16:00

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1538645)
I tried to update my tablet to 2.1.3.7 today. It mostly worked (after updating onda repo for 2.1.3.7 and manually installing some packages). Yet it seems to have broken Bluetooth and video recording with rear camera, need to investigate why.

how did you do it, did you just override adaptation-onda or did you give one of them another name?
for me it says nothing provides pattern:jolla-hw-adaptation-hybris
after running version --dup

TheKit 2018-03-31 16:01

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by smatkovi (Post 1542785)
how did you do it, did you just override adaptation-onda or did you give one of them another name?
for me it says nothing provides pattern:jolla-hw-adaptation-hybris
after running version --dup

I think I did the update by setting new version manually and updating through zypper. I will get to it again soon, I think the issues that were there can be fixed.

smatkovi 2018-03-31 21:44

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by TheKit (Post 1542872)
I think I did the update by setting new version manually and updating through zypper. I will get to it again soon, I think the issues that were there can be fixed.

I also updated through zypper, because version --DUP didn't work, because it asked for a pattern it didn't find, and the device didn't boot anymore. So I will have to get adaptor keyboard splitter and put sfos on a usbstick

TheKit 2018-03-31 22:01

Re: Sailfish OS on ONDA V820W V3 and other Intel SoC-based tablets
 
Quote:

Originally Posted by smatkovi (Post 1542877)
I also updated through zypper, because version --DUP didn't work, because it asked for a pattern it didn't find, and the device didn't boot anymore. So I will have to get adaptor keyboard splitter and put sfos on a usbstick

Does telnet connection work? You should be able to get logs or downgrade this way.


All times are GMT. The time now is 18:21.

vBulletin® Version 3.8.8