Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cam1965

Pages: 1 2 [3] 4 5 ... 23
31
MANY thanks for such an intriguing response.

I have a Huawei E397 USB modem that I've successfully used with a variety of Linux flavors (I just use it for data, which is all I need).

But I don't know how to compile. Do you think I could use your custom kernel in a fresh Linux install on the Cosmo? I've never installed Linux on the Cosmo but I've done it with my Gemini.

(Android is now useless to my Cosmo--it constantly pops-up with an error message that my bt is broken, which I already know)

Thanks again for posting so fast,
Jake

Kernel is too big. Please see my notes below.

For  installing linux
https://support.planetcom.co.uk/index.php/Linux_for_Cosmo


Please see my post here ( for compiling )
https://www.oesf.org/forum/index.php?topic=36540.0

Attached is my  config file.

 


First :

git clone https://github.com/gemian/cosmo-linux-kernel-4.4.git
cd cosmo-linux-kernel-4.4
git checkout packaging

go to home directory ( type cd enter )


So make a compressed backup of the kernel
tar cjvf kernel.tar.bz2 cosmo-linux-kernel-4.4

Enter to the source
cd  cosmo-linux-kernel-4.4

cp arch/arm64/configs/k71v1_64_bsp_defconfig ./.config

Make menuconfig ( install the packages to compile  in order to menuconfig works )

Make your changes.

copy .config file to some location ( cp .config /home/cosmo/confignew )

remove the directory rm -rf cosmo-linux-kernel-4.4

extract the kernel backup

tar jxvf kernel.tar.bz2

Enter the source ( cd cosmo-linux-kernel-4.4 )

copy the confignew file to arch/arm64/configs/k71v1_64_bsp_defconfig ( cp /home/cosmo/confignew arch/arm64/configs/k71v1_64_bsp_defconfig )

so do : debuild -b -uc -us

after the process : sudo dpkg -i ../cosmo-linux-kernel*deb

Good luck.
CAM1965

32
Sorry for posting here.
I tried to insert pictures here, but received this message below:

An Error Has Occurred!
The attachments upload directory is not writable. Your attachment or avatar cannot be saved.
Please help me.
Thank you.

33
My Cosmo has failed again--first, calling/speakers broke; PC fixed that. Now wifi/bt don't work and I'm out of warranty.

I've given up on it as a phone but wonder if I can turn the Cosmo into PDA with a wifi adapter. Is there an available adapter that could make that happen?

(or even an internal wifi replacement)

Thanks,
Jake
My Cosmo has failed again--first, calling/speakers broke; PC fixed that. Now wifi/bt don't work and I'm out of warranty.

I've given up on it as a phone but wonder if I can turn the Cosmo into PDA with a wifi adapter. Is there an available adapter that could make that happen?

(or even an internal wifi replacement)

Thanks,
Jake

Probably YES. But you have to compile the kernel to enable the driver.
I have compiled my own kernel  enabling it to use with  an external usb web cam, a usb  TV usb dongle and a usb modem dongle ( you have to insert  the sim card on it ). You have to use a usb adapter. And it works only for data. Not for telephone.
You have to configute the dialer.
This is an article to configure my modem ZTE on linux. ( In portuguese, but you can translate it in google or find a similar in English )
https://www.vivaolinux.com.br/artigo/Configurando-o-modem-ZTE-MF626-com-Vivo3G-no-Debian
Maybe you find one that works in android.
Good luck.

I am not able to insert pictures here .
But this link has a photo of my usb modem

https://www.clicoutelecom.com.br/eletronicos/modens/modem-zte-3g-usb-modelo-mf626-original-vitrine

And this for the adapter

https://produto.mercadolivre.com.br/MLB-1722846088-adaptador-conversor-baseus-otg-tipo-c-macho-p-usb-fmea-_JM

34
My Cosmo has failed again--first, calling/speakers broke; PC fixed that. Now wifi/bt don't work and I'm out of warranty.

I've given up on it as a phone but wonder if I can turn the Cosmo into PDA with a wifi adapter. Is there an available adapter that could make that happen?

(or even an internal wifi replacement)

Thanks,
Jake
My Cosmo has failed again--first, calling/speakers broke; PC fixed that. Now wifi/bt don't work and I'm out of warranty.

I've given up on it as a phone but wonder if I can turn the Cosmo into PDA with a wifi adapter. Is there an available adapter that could make that happen?

(or even an internal wifi replacement)

Thanks,
Jake

Probably YES. But you have to compile the kernel to enable the driver.
I have compiled my own kernel  enabling it to use with  an external usb web cam, a usb  TV usb dongle and a usb modem dongle ( you have to  insert  the sim card on it ). You have to use a usb adapter. And it works only for data. Not for telephone.
You have to configute the dialer.
This is an article to configure my modem ZTE on linux. ( In portuguese, but you can translate it in google or find a similar in English )
https://www.vivaolinux.com.br/artigo/Configurando-o-modem-ZTE-MF626-com-Vivo3G-no-Debian
Maybe you find one that works in android.
Good luck.

35
Cosmo Communicator - Linux / Re: How to pass a cmd line to kernel ?
« on: June 11, 2021, 06:12:27 am »
Just for curiousity: Does it help to put the quot to the end of the command line like below?
Code: [Select]
--cmdline  "bootopt=64S3,32N2,64N2 log_buf_len=4M apparmor=1 security=apparmor"

I did this also in my previous tests
But the kernel still doesn´t boot correctly.  In both, it stops at the debian logo.
Thank you.

36
Cosmo Communicator - Linux / How to pass a cmd line to kernel ?
« on: June 10, 2021, 08:52:44 pm »
Hi.
How to pass a comand line to kernel ?
I would like to pass apparmor=1 security=apparmor to my kernel.
For example :

mkbootimg --kernel cosmo/arch/arm64/boot/Image.gz-dtb --ramdisk initramfs-4.4.146 --base 0x40078000 --second_offset 0x00e88000 --cmdline "bootopt=64S3,32N2,64N2 log_buf_len=4M" --kernel_offset 0x00008000 --ramdisk_offset 0x14f88000 --tags_offset 0x13f88000 --pagesize 2048 -o linux-boot.img.

I have tried to put something like this  --cmdline  "bootopt=64S3,32N2,64N2 log_buf_len=4M" apparmor=1 security=apparmor.
But the kernel didn´t boot correctly.
Any help ?
Thanks.

37
Hi.
Is there a way to enable the USB port on the right side ?
In android it works if CODI is enabled.
Thank you.

38
Cosmo Communicator - Linux / Re: Newly installed Debian: no Bluetooth
« on: June 02, 2021, 12:07:46 pm »
Starting debugging the bluetooth - the following appears to help for me :- (all V4 install)

 
  • Edit /usr/bin/droid/bluebinder_post.sh -
        Change 644 to 755 - as its a directory I think we need to access files within...
  • Add in to /etc/pulse/default.pa.gemian 
        load-module module-bluetooth-discover
        load-module module-bluetooth-policy
  • Add in to /etc/dbus-1/system.d/ofono.conf
       <policy user="pulse">
        <allow send_destination="org.ofono"/>
      </policy>

Managed to get consistent connections with a Pixel4 and a BT Headset (not saying they operate right - just that connections persist ok on reboots etc)

If this works for you - please post here.... also if you find any additonal items that help fix further.   
   

Hi.
Thank you again.
I did the test following your instructions and the behaviour is the same as yours. Consistent connections in my old macbook air with dual boot  ( Mac and Linux Debian 10 ). In debian 10 in my macbook same behaviour.

I can send files from cosmo to my Debian 10 ( in my macbook air ). Only sending. When I try to send a file from Macbook ( Debian ) to cosmo I receive an error message : Unable to find a service record .

Running Mac os big sur, nothing works. No consistent connections. I can,t  send and receive files also. Sometimes after reboots on both macbook and cosmo, I get some connections. When setiing up the bluetooh first in Macbook I  can set the audio output  to the cosmo, so the audio from macbook is playing in cosmo.

The same behaviour above occurs when I plug a dongle bluetooth usb to cosmo ( I compiled a new kernel to enable this ).
It works only for sending files ( Macbook running debian ).

I also did a test connecting a bluetooth sound box and it works. I did a test using VLC and adjusting the audio (inside from VLC) to my GGMM_E5 audio box. Also works with firefox . I adjust the default audio to  GGMM E5 (  in volume control ).

I did a test with mac os big sur and cosmo running android and everything works ( sending and receiving files ).

So. That is it.

I think the problem may be a configuration since the bluetooth works on android and with a dongle usb bluetooth the behaviour is the same as the internal bluetooth adapter.



39
Only to know.
I have tested a lot of browser and none are working in anbox.
For email client fairmail was the only that worked correct.

40
Cosmo Communicator - Linux / Re: Linux v4 install kills MMS
« on: May 31, 2021, 06:25:26 am »
I was using MMS on v3 under Tmobile successfully.
After upgrading to v4, MMS no longer works.
I installed connman, cmst, etc., followed the same procedure as in v4.
Tried setting the context properties, no luck.
Any ideas?

To work sms and callings ( in / out ) please see https://www.oesf.org/forum/index.php?topic=36554.0
But MMS is not working. In my gemini the same occurs. Only sms is working. I am running v4 and I didn´t test on v3 MMS. As you said it was working on v3 . So iI´d really appreciate  if someone could help. I  made some comparisons of  some files from the a mounted v3 image and they are the same from v4 . For now I really don´ t know what to do. Thank you.

41
Hi Shuntcap.
Thank you for post these instructions : Topic below

https://www.oesf.org/forum/index.php?topic=36525.0


I followed your guide. Except that I didn't build an android image.

But when I did systemctl --global enable anbox-session-manager the error below occurs.
cosmo@cosmocom:~$ systemctl --global enable anbox-session-manager
/usr/lib/systemd/user/anbox-session-manager.service:1: Missing '='.
Failed to enable unit, file anbox-session-manager.service: Invalid argument.

So I did an script like below and it is working.

cosmo@cosmocom:~$ more anbox.sh
sudo systemctl start  anbox-container-manager
systemctl --user start anbox-session-manager
LD_LIBRARY_PATH=/opt/gl4es/lib anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

To test if the network was working I had to install a text browser and It works ( TJ text browser ).
With firefocus ( also firefox )  and other browsers the screen is black.
Also with the pre loaded email software it only loads the messages and I cannot open them. Also witth k-9 mail program. Same behaviour.

Only to know if these errors are happening with you.
Maybe the problem is with the android image. ( I don´t think it is the image, plaease see my note below )
I really would like to know if there is a possibility to install playstore inside the image you have provided.
This will help to install some apps that need google plays ervices and other dependencies.
Thank you so much.
 Note : tested with https://wiki.mobian-project.org/doku.php?id=anbox
http://alexmitter.org/downloads/anbox/anbox_image_builder_image/android.img

Same behaviour with the android image above.

42
Cosmo Communicator - Linux / Re: Anbox on Cosmo Linux
« on: May 30, 2021, 08:17:28 am »
mine is a few builds different to yours: 1.8.0_292-8u292-b10-0ubuntu1~20.10-b10
Sounds like your computer won't relent in our fight to build AOSP 7.1.1 on it, so I've updated my instructions above with a download link to my prebuilt rootfs image.  I don't know how you feel about using a 3rd party build in the Gemian repo, but at least the rootfs image will help other folks get started with Anbox on the Cosmo.  It's in step 4 above in post https://www.oesf.org/forum/index.php?topic=36525.msg297542#msg297542.

Hi.
Thank you for post these instructions.
I followed your guide. Except that I didn't build an android image.

But when I did systemctl --global enable anbox-session-manager the error below occurs.
cosmo@cosmocom:~$ systemctl --global enable anbox-session-manager
/usr/lib/systemd/user/anbox-session-manager.service:1: Missing '='.
Failed to enable unit, file anbox-session-manager.service: Invalid argument.

So I did an script like below and it is working.

cosmo@cosmocom:~$ more anbox.sh
sudo systemctl start  anbox-container-manager
systemctl --user start anbox-session-manager
LD_LIBRARY_PATH=/opt/gl4es/lib anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

To test if the network was working I had to install a text browser and It works ( TJ text browser ).
With firefocus ( also firefox )  and other browsers the screen is black.
Also with the pre loaded email software it only loads the messages and I cannot open them. Also witth k-9 mail program. Same behaviour.

Only to know if these errors are happening with you.
Maybe the problem is with the android image.
I really would like to know if there is a possibility to install playstore inside the image you have provided.
Thank you so much.

43
Cosmo Communicator - Linux / Re: On-device kernel compilation
« on: May 28, 2021, 07:12:48 pm »
hello i am tryingto compile it on cosmo comunictaor linux V4 fresh install all thesteps followed n errors the final make file for the final output getting 2 errors
1 helio-dvfsrx.h no such file
2. error 2 drivers/devfreq

/drvgen/drvgen.mk:61: target 'arch/arm64/boot/dts/mediatek/k71v1_64_bsp.dtb' given more than once in the same rule
scripts/drvgen/drvgen.mk:61: target 'arch/arm64/boot/dts/mediatek/k71v1_64_bsp.dtb' given more than once in the same rule
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[1]: 'include/generated/vdso-offsets.h' is up to date.
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  CC      drivers/devfreq/helio-dvfsrc.o
drivers/devfreq/helio-dvfsrc.c:27:10: fatal error: helio-dvfsrc.h: No such file or directory
 #include <helio-dvfsrc.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:278: drivers/devfreq/helio-dvfsrc.o] Error 1
make[1]: *** [scripts/Makefile.build:484: drivers/devfreq] Error 2
make: *** [Makefile:1008: drivers] Error 2

First :

git clone https://github.com/gemian/cosmo-linux-kernel-4.4.git
cd cosmo-linux-kernel-4.4
git checkout packaging

go to home directory ( type cd enter )


So make a compressed backup of the kernel
tar cjvf kernel.tar.bz2 cosmo-linux-kernel-4.4

Enter to the source
cd  cosmo-linux-kernel-4.4

cp arch/arm64/configs/k71v1_64_bsp_defconfig ./.config

Make menuconfig ( install the packages to compile  in order to menuconfig works )

Make your changes.

copy .config file to some location ( cp .config /home/cosmo/confignew )

remove the directory rm -rf cosmo-linux-kernel-4.4

extract the kernel backup

tar jxvf kernel.tar.bz2

Enter the source ( cd cosmo-linux-kernel-4.4 )

copy the confignew file to arch/arm64/configs/k71v1_64_bsp_defconfig ( cp /home/cosmo/confignew arch/arm64/configs/k71v1_64_bsp_defconfig )

so do : debuild -b -uc -us

after the process : sudo dpkg -i ../cosmo-linux-kernel*deb

Good luck.
CAM1965

44
For text messages - you need to get a patched version of the following :-
https://gitlab.com/ubports/community-ports/android9/planet-cosmocom/planet-cosmocom/-/commit/16efbf31cb3d333add831107ba3f65d857572128

This should go in /usr/libexec/droid-hybris/vendor/lib64/libmtk-ril.so
Make sure permissions remain the same

Messages received ok now with this
Hi.
Thank you so much !
Now it is working !
Thank you again!

45
Just to expand on what Cam wrote above.... (this is not my work!)

This assumes you have installed the latest v4 from http://support.planetcom.co.uk/download/cosmo-customos-installer-v4.zip
Once this is installed and working ok (wifi etc).

Download the following file (15Mb). This contains the droid-hybris folder from v3.
https://github.com/dnapla/droidhybris/blob/main/droid-hybris.zip

Apologies (its a zip... I will look to do a tar sometime)
(sudo apt install unzip)

Use whichever program you like to transfer files to Cosmo (eg Filezilla) via SFTP to home directory. ( ~/ )
(unzip droid-hybris.zip)
Will create a droid-hybris folder containing system and vendor folders. (assuming in ~/droid-hybris)

The files all need to be owned by root ( sudo chown -R root:root droid-hybris )

Then copied to the /usr/libexec folder....
There is an existing droid-hybris folder - containing a lot less files on v4.

(sudo cp -r ~/droid-hybris/ /usr/libexec/ )

Reboot

Then ensure codi-app / lxc-android are not updated
(sudo apt-mark hold codi-app lxc-android)

Other files can be updated as usual
(sudo apt-get update)
(sudo apt-get upgrade)

This worked ok for me to get incoming calls. I have not tested messaging (SMS) at all.
This is hopefully a short term workaround.

Hope this works ok for you guys.
Thank you. This will help kmd.
But  unfortunately  messaging-app is working only for outgoing messages...  yet .
You can test it sending a message to yourself in linux. Go to android and you will see the messages in your message app.
In linux in v3 when you send a message to yoursel the message appears twice .
In v4 only once.
I have tried a lot of libraries but up to now no success.
I also have compiled my own kernel in order to work with an  external webcam that I use in Microsoft Teams (Yes , I found a version on the net ) . and also my isdb-t tuner for watchung digital tv in linux.
When I have time I will test an usb dongle with a sim card and with modem-manager-gui.

Pages: 1 2 [3] 4 5 ... 23