Author Topic: Has anyone managed to get it to recognise the ethernet in their hub like it does in Android?  (Read 9754 times)

Sunyavadin

  • Newbie
  • *
  • Posts: 36
    • View Profile
Trying to hook my gemini up to my LAN (I don't have wifi at home, it's a short story involving my walls being concrete and rebar faraday cages) but I cannot even get the terminal to respond to ifconfig commands. Any help? First time on Debian, so used to having the handy graphical interface for network config of Ubuntu, any equivalents to that here that I am missing?

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Sorry, but Adam (dev for the DebianTP image) said in other thread in this forum section, said ethernet not supported yet. Probably will be supported in an upcoming updated image file.

Remember, the 'TP' in 'DebianTP' stands for 'Technical Preview'. So, the Debian file is like alpha stage.

Check out development status and notes at:

DebianTP

HTH,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
I was kind of hoping someone else would figure it out, I'm still focusing on Mobile Data/Calls/SMS just now, as more devices are out in the hands of folk Ethernet struck me as a nice easy task for someone to pick up.

Current builds are using cmst (a connman UI) for connectivity setup, it would show the Ethernet connection and probably auto-connect nicely and all that if the right USB drivers were being loaded.

The driver source is in the kernel tree: https://github.com/gemian/gemini-linux-kern...net/usb/r8152.c so just needs a kernel built with CONFIG_USB_RTL8152.
« Last Edit: May 20, 2018, 08:45:49 am by Adam Boardman »

Sunyavadin

  • Newbie
  • *
  • Posts: 36
    • View Profile
Awesome, looking forward to it when it's done. Should make it easier to switch over to using it over Android more. Already transferred all my WIP documents and the like onto it from my laptop to edit in libreoffice on the go, just need reliable internet access in Debian and I'm sorted.

Atrom

  • Newbie
  • *
  • Posts: 3
    • View Profile
Just for my understanding/clarification..does the hub only work with android OS?

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Quote from: speculatrix
the generic usb hub with ether and card reader worked fine on my G with android. didn't have to do anything.

I was able to connect usb-c to usb adapter + my usb to ethernet adapter ( from my mac ) and the ethernet cable with success in my gemini.
The problem is that this kernel provided  has no module support.
See my posts about how  to compile kernel with modules support ( in my mac with linux )  . When I plugged my ethetnet cable to gemini it  loaded some of the  modules that I have compiled ( asix, usbnet, libphy and mii in this case ).The modules were compiled inside gemini. Only modules, because the kernel gave a lot of errors when compiled inside gemini. Asix is the module of the ethernet adapter.
It was a very hard work , but it is worthy ( you will have to select the configuration inside menuconfig ). I also compiled the drivers to my usb tv card and it works like a charm.In one of my previous  posts,  I posted a link in youtube showing this.( usb tv card  ). To facilitate, the link is  below :

https://www.youtube.com/watch?v=6ohN_9FOLRA...eature=youtu.be

I will attach a photo . ( ethernet working ).
Unfortunately, I am very busy and I cannot put the instructions here.
I also installed all the firmware available in debian repository ( free , non-free ). Install aptitude  so you can search the packages ( aptitude search " package name " ).
Please see my posts and you will get all the necessary information.
Click on the photo to enlarge it.

I hope Brazil wins the World cup !
« Last Edit: June 16, 2018, 06:48:38 pm by galodoido »

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Quote from: galodoido
I also compiled the drivers to my usb tv card and it works like a charm.In one of my previous  posts,  I posted a link in youtube showing this.( usb tv card  ). To facilitate, the link is  below :

I love it, live TV on a Gemini.

this kind of innovative use of a Gemini is exactly what I was hoping for.
« Last Edit: June 17, 2018, 06:03:59 am by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Quote from: speculatrix
Quote from: galodoido
I also compiled the drivers to my usb tv card and it works like a charm.In one of my previous  posts,  I posted a link in youtube showing this.( usb tv card  ). To facilitate, the link is  below :

I love it, live TV on a Gemini.

this kind of innovative use of a Gemini is exactly what I was hoping for.

It is really a nice device.

In android is easy to install  a live TV USB device . Some USB or wifi devices already have native support and software.

In linux , you will also have to compile VLC ( change some links of libraries  and install all dependencies ). Because the VLC provided in the debian repository doesn't work.
When compiling, a depency error may appear, so install the needed files. Also with the links of libraries not found. You will also have to  generate a channels.conf file .

On android , I've installed an old game ( WOLFENSTEIN 3D ) . Old,  but good times ( MS DOS ). Runs really well.
The keyboard makes a difference.

This device has a lot of possibilities.

I am really enjoying it.
« Last Edit: June 17, 2018, 06:40:46 am by galodoido »

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
I have two USB combo hub + memory card reader + ethernet devices.

Neither give me a working ethernet device

"ifconfig -a" shows nothing. didn't see anything useful


The older one has a USB-A connector, so I connected it to the G with a generic USB-C to A socket. It claims to be USB 3, has two USB ports, a microSDHC card slot, a full sized USB card and a gigabit ethernet port with LEDs. The LEDs come on when connected. The USB ports and the micro memory card slot works. The ethernet port shows LEDs, but nothing happens on the G. It will only work on the left hand USB port.
Code: [Select]
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 002 Device 004: ID 05e3:0743 Genesys Logic, Inc. SDXC and microSDXC CardReader
Bus 002 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The newer one has a USB-C connector. It claims to be USB 3, has two USB ports, a microSDHC card slot, a full sized USB card and a gigabit ethernet port without LEDs (I didn't realise the lack of LEDs when I ordered it). It works on both USB ports on the G.
Code: [Select]
Bus 001 Device 007: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 001 Device 006: ID 1908:0226 GEMBIRD
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub


When I connect a hub, I see this in /var/log/syslog
Code: [Select]
Jun 24 11:12:10 localhost systemd-udevd[4254]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/soc/11270000.usb3_xhci/usb2/2-1/2-1.1 2 4': No such file or directory
Jun 24 11:12:10 localhost systemd-udevd[4257]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/soc/11270000.usb3_xhci/usb2/2-1/2-1.3 2 5': No such file or directory
Jun 24 11:12:11 localhost systemd-udevd[4263]: could not open moddep file '/lib/modules/3.18.41+/modules.dep.bin'
« Last Edit: June 24, 2018, 07:17:44 am by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Sunyavadin

  • Newbie
  • *
  • Posts: 36
    • View Profile
Just checking in to see if we ever got an update on this, since what Speculatrix described was pretty much exactly my experience, any USB hub I hook up, everything works except ethernet. Which is problematic as my place is a faraday cage which kills wifi signals stone dead, so any effort to grab any packages I need's only possible by wiring it up to one of the dozens of cables I have running to every corner of my flat.

Sunyavadin

  • Newbie
  • *
  • Posts: 36
    • View Profile
Although ofc a lot of this is moot until I can get it to actually *do* anything with the commands I try and type into the terminal, not just give me a new line.

Can't get linux to do what you want if you can't get it to recognise a sudo apt-get install command....

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
I've not re-read this thread to understand exactly what its asking, but if your asking for the Planet supplied ethernet+usb hub to work, then the latest kernel for gemian does indeed have this working.

You'd need to:
Code: [Select]
sudo apt install gemini-kernel-image-3.18Then the appropriate 'dd' to write it to your chosen boot partition & reboot.

As a side note I didn't get the modules based kernel build to work on the build machine, though it would be nice someday to figure that out. In the mean time if there are other kernel modules that people want added then let me know. Also the ramdisk used is the old one so the stowaways booting kernel is not yet usable, you just get the root linux flavour.

https://github.com/gemian/gemini-linux-kern...9d256d11cafR401

Eric BF

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Quote from: Adam Boardman
Then the appropriate 'dd' to write it to your chosen boot partition & reboot.
The instructions from the TP2 site say to "install the kernel to the relevant partition (boot/boot2/boot3)" but that it is not possible to know which has been used.  Do these three partitions correspond to the sequence defined by the partition/flashing tool?  I.e. does "boot" mean the default OS (booted up with ESC until vibration only), etc.?

I have Debian as my default OS.  It would be good to have confirmation as to which partition to dd the new kernel image to.

Thanks,
eric
Gemini 4G Debian
OpenPandora with Debian

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
The boot/boot2/boot3 refer to the partition labels as defined in the scatter file you flashed the device with, you can see which key combination will boot from which partition: https://github.com/gemian/gemini-keyboard-a...wiki/Bootloader

Eric BF

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Quote from: Adam Boardman
The boot/boot2/boot3 refer to the partition labels as defined in the scatter file you flashed the device with, you can see which key combination will boot from which partition: https://github.com/gemian/gemini-keyboard-a...wiki/Bootloader
Thanks. So "boot" it is. Interesting that the numbering of partitions is off by one when comparing the NN in /dev/mmcblk0pNN (linked to by the .../boot* entries) and the Multi_Boot file from the flashing tool.
I think I'll wait until tomorrow to try the new kernel.
Gemini 4G Debian
OpenPandora with Debian