Huawei for linux mint

Linux Mint Forums

Connecting Android and Huawei P9 with Linux Mint. [Solved>

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Connecting Android and Huawei P9 with Linux Mint. [Solved>

Post by Pipeman » Wed Feb 22, 2017 10:38 am

I have a Hawei P9 smartphone.

When plugging the phone into USB, the name Huawei comes up under Devices. but I can not access any files on the phone(when clicking on it it shows an empty screen).

It also brings up CD Rom(I think Linux sees the phone as a CD Rom instead of a phone?), in the devices. This folder has four files, of which one is HiSuiteDownLoader.exe. I suspect this is an install file for the phone software, but as it has a Windows icon.

I am not sure this will work on my Linux Mint 18.1 Cinnamon 64bit.

If so, where should this file be run from. When clicking on the .exe file, it it asks me if I would like to extract files. I’m out of my depth here.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: Connecting Huawei P9 with Linux Mint.

Post by Pipeman » Wed Feb 22, 2017 10:41 am

I also found this article on a Google Search, but I’m dubious about running all these commands, just now I break something

Here they describe the solution as follows:

Huawei have helpfully released the kernel source for the Huawei P9 on their download site. Impressively, the version posted there (3.10.90) actually matches the current release build (B136). However, the download itself is only part of the puzzle — it’s important to then know how to compile it and use it. Hence this guide.

Some points to note first of all.

This guide refers to building on Linux. You can probably build on OSX or whatever too but seriously, it’s less pain in the long run to spin up an Ubuntu VM.
In the download linked above, as well as the kernel, there are some other bits and pieces (some of which are quite bizarre). I’ve mirrored the kernel to Bitbucket, so you don’t need to grab the whole download.
Got that? OK, so here’s a step by step on how to build the kernel! I strongly recommend building stock first and testing that works for you, then you can start adding your tweaks in. I’m interested to hear what you add / change!

Читайте также:  Проверить порт 3306 linux

Open a terminal window on your Linux machine / in your Linux VM. No GUIs here. Change to the directory where you want the kernel / toolchain to live.
First of all, we’re going to clone the toolchain from AOSP.
git clone https://android.googlesource.com/platfo . ndroid-4.9
Next we’re going to clone the kernel source itself from my git repo on bitbucket.

git clone https://gitlab.com/paulobrien/android_k . wei_p9.git kernel
We need to add the toolchain location to the path.
export PATH=$(pwd)/aarch64-linux-android-4.9/bin:$PATH
We need to specify that we are cross compiling for arm64.
export CROSS_COMPILE=$(pwd)/aarch64-linux-android-4.9/bin/aarch64-linux-android-
Let’s create a directory for our output to go in to.
mkdir out
We’ve got the kernel downloaded, so let’s change to that directory so we’re ready to go.
cd kernel
A bit of cleaning up before we get started.
make ARCH=arm64 O=../out mrproper
Specify that we’re building for the P9 (hisi3650 chipset).
make ARCH=arm64 O=../out p9_extracted_defconfig
And build it!
make ARCH=arm64 O=../out -j8
When this process completes, we can check the ‘../out’ directory and you should find the file arch/arm64/boot/Image. This is the kernel that you’ve just built! You can’t flash it as is though, you need to put it into a boot image first.

Change out of the kernel directory back to its parent.
cd ..
Download tools for manipulating the boot image.
git clone https://github.com/xiaolu/mkbootimg_tools.git
Download the stock boot image (actually we’re using the root ready version for convenience).
wget -O boot.img http://nigella.modaco.com/files/boot.st . 9.b136.img
Extract the boot image.
mkbootimg_tools/mkboot boot.img boot.extracted
Copy the new kernel into the extracted boot folder.
cp out/arch/arm64/boot/Image.gz boot.extracted/kernel
Build a new boot image.
mkbootimg_tools/mkboot boot.extracted boot.newkernel.img
You now have a new boot image (boot.newkernel.img). All that’s left is to flash it to your device! Reboot to bootloader (either using ‘adb reboot bootloader’ or by powering on with volume down held), flash using ‘fastboot flash boot boot.newkernel.img’ and then reboot using ‘fastboot reboot’. Job done! In the About screen of settings you should see the date of the new kernel and details of your build machine.
1

Re: Connecting Huawei P9 with Linux Mint.

Post by Hoser Rob » Wed Feb 22, 2017 1:34 pm

That’s a patched version of the 3.10 kernel. That is a rather old kernel. I use Mint 17.3 and the kernel version is the 3.19 series. I think 17 was kernel 3.13, and Mint 18 obviously uses a newer one.

You can’t just drop older or newer kernels into Linux and expect them to work. It may fix one thing but it’s just as likely to b reak 3 other things. IMO this crap of installing newer/older kernels to fix stuff is for amateurs who don’t know how to use backports. Hackers, really. I’d expect this kernel to break stuff in 18.

I’d concentrate on the ANdroid aspect of things .

Читайте также:  Linux executable file version

ninomrki Level 3
Posts: 100 Joined: Wed Jan 16, 2013 7:49 pm Location: Zagreb, Croatia Contact:

Re: Connecting Huawei P9 with Linux Mint.

Post by ninomrki » Thu Feb 23, 2017 3:40 pm

Pipeman wrote: I have a Hawei P9 smartphone.

When plugging the phone into USB, the name Huawei comes up under Devices. but I can not access any files on the phone(when clicking on it it shows an empty screen).

It also brings up CD Rom(I think Linux sees the phone as a CD Rom instead of a phone?), in the devices. This folder has four files, of which one is HiSuiteDownLoader.exe. I suspect this is an install file for the phone software, but as it has a Windows icon.

I am not sure this will work on my Linux Mint 18.1 Cinnamon 64bit.

If so, where should this file be run from. When clicking on the .exe file, it it asks me if I would like to extract files. I’m out of my depth here.

Pull down the notification area on your phone and there will be a message that says «USB connected» with two buttons below (Photos and Files). Unless you pick one of the buttons, your PC will only charge the battery on your phone. If you touch the notification, you will get more options.

Home is where the Wi-Fi is.

Registered Linux user #562302

Источник

Как заставить работать модем хуавей на линукс минт?

Втыкаем модем в usb и вводим в терминале:
lsusb
Внимательно смотрим на вывод. Если видим там строчку типа
ZTE Communications Inc.
то выдергиваем модем, аккуратно упаковываем его в фирменную коробочку и относим своему любимому ОпСоСу для замены на Huawei. Получаем после долгих препирательств модем Хуёвай и переходим к Шагу 2 (можно сразу к Варианту 2). Если вас послали в даль, то переходим к Шагу 2 Вариант 1 и надеемся на лучшее.
Дело в том, что модемы ZTE не очень хорошо себя показали как в Linux, так и в Windows.
Шаг 2
Вариант 1 — простое подключение любых usb-модемов в Ubuntu
Этот вариант подойдет почти для всех известных модемов, т. к. Ubuntu Linux прекрасно знает их все в лицо.
Запускаем Synaptic (Система — Администрирование) , набираем в поиске:
usb-modeswitch
и устанавливаем вместе с зависимостями, потом перегружаемся (вроде надо, но не уверен) . Расскажу, что произойдет:
Все эти модемы используют технологию ZeroCD, т. е. модем определяется как CD-ROM, запускает автозапуск, который проверяет наличие драйверов в системе и либо запускает специальную программу связи, либо ставит ее вместе с дровами. Само собой эта радость нифига не работает в Linux. Поэтому при определении такого стремного устройства, usb-modeswitch автоматически переводит его в нормальный режим работы. А поддержка таких модемов уже есть в ядре Ubuntu.
Теперь открывает NetworkManager (иконку сети на верхней панели) и создаем новое мобильное широкополосное соединение.
Недостатком этого метода является то, что возможны вылеты модема. Это может происходить как из-за модема, так и из-за конфигурации вашего компьютера. Поэтому рекомендую попробовать этот метод, и, если все работает правильно и стабильно, на нем остановться и не мучать больше комп.
Если же наблюдаются сбои или вы таки добыли Хуёвай модем, то переходим к Варианту 2.
Вариант 2 — эффективнно подключение usb-модемов Huawei Mobile Partner
Описанное ниже применимо к следующим модемам Huawei:
Huawei E156G,
Huawei E160G,
Huawei E169,
Huawei E172G,
Huawei E220,
Huawei E270,
Huawei K3520,
Huawei E1550
т. е. к большей части модемов, выпускаемых под марками Билайн, МТС и Мегафон. Возможно подойдет и для других Хуёвых модемов.
Для модемов марки Хуёвай сотрудниками одноеменной компании была разработана программа Mobile Partner, которую со своими логотипами поставляют некоторые компании (Мегафон, Афон и некоторые другие) , понтуясь, мол мы ее сами написали для наших клиентов (ВРУТ. ) . Если у вас ее нет, или вам не нравится версия, то скачать можно по ссылке Mobile Partner. Это версия от компании Мегафон, а тут версия от Афон, но мегафоновская свежее. Можете пошукать на сайте Huawei версию конкретно для вашего модема, но там черт ногу сломит. Ниже я расскажу, как создать свой скин для нее, а пока установим.
Распаковываем архив в удобную папку. Заходим в эту папку. В ней дожны появиться файлы:
DataCard_Verify
install
jre-1_5_0_15-linux-i586.bin
MobilePartner.tar.gz
readme.txt
SysConfig.dat
Запускаем в терминале установочный скрипт:
sudo bash install
Установщик спросит, куда установить программу. По умолчанию — это /usr/local/MegaFon_Internet, но можно задать и самому.
Теперь запускаем ее из «Приложения — Интернет»:

Читайте также:  Linux mint 20 xfce обзор

Источник

Linux Mint Forums

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Huawei Share

Post by nielo » Tue Sep 29, 2020 10:11 am

I have an interesting issue with «Huawei Share». Huawei does not say it works with Linux but does offer it in Windows and on Macs. However, my investigation showed that switching on Huawei Share on a Huawei handset (our household has three of them) creates a samba server on that handset. The name attributed to that share becomes the server name and the username and password attributed are precisely what you would expect them to be.

So, I set up a share on a Huawei P40Lite, pointed Nemo at smb://P40Lite — on my Lenovo X1 Carbon running Mint 20 Cinnamon — and nothing happened.

Hm. I then switched off the Firewall and tried again — success!

Not so fast. I could view the topmost level of the handset’s memory (internal and external SD card) but not browse their contents.

I did some more investigating and decided there was nothing to lose from installing mtp-tools, go-mtpfs and jmtpfs. I logged out, logged back in again and activated the share on the handset once more.

Bingo! Not only could I connect to smb://P40Lite but I could also browse the contents of its storage systems , copy and paste to and from them.

So, I hear you ask, what’s the problem?

Well, the moment I reactivate the Firewall it all falls over.

Does anyone have any idea on a workaround?

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Источник

Оцените статью
Adblock
detector