-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
communication to hikey via network problems #1392
Comments
@Valeri99 For 2 and 3, have you updated the kernel with the ones you built from https://github.com/OP-TEE/build/blob/master/hikey_debian.mk? Also, if you're able to connect the board to an HDMI monitor/tv, you can perhaps try to enable networking via the gui to see if it makes a difference. For dhcp, you can run |
@vchong
I.e. I would like to repeat all my statements from my previous post, in particular: Also it would be nice to know why I can not connect to machine via wi-fi allow-hotplug wlan0 Thanks a lot. |
The 96boards build are not handled by the people here. You can try to report the issue at http://bugs.96boards.org/. You can see an explanation of the difference between the reference-platform and 'linaro' builds here: https://discuss.96boards.org/t/difference-between-reference-platform-rp-and-linaro/778/2. For wi-fi with static, there's not really enough info to troubleshoot. What's your network layout, i.e. how is the network designed? What's your wi-fi router configuration? Any other relevant info regarding the network we should know? |
I am sorry. I was wrong indeed to address the topic to the OPTEE forum. |
It's ok. No need to be sorry. In any case, what kind of usb-ethernet adapter are you using? I think the 'linaro' kernel builds are configured so support more adapters (https://github.com/96boards-hikey/linux/blob/hikey-mainline-rebase/arch/arm64/configs/defconfig#L191-L196) compared to the reference-platform builds (https://github.com/96boards/linux/blob/96b/releases/2016.06/arch/arm64/configs/defconfig#L122-L123). You can try rebuilding the reference-platform kernel to include the support of your usb-ethernet adapter if it's not listed. As to wi-fi, that's still not enough info to troubleshoot. It sounds like you're trying to do this on a corporate network? If so, perhaps you can get some assistance from the IT department regarding the proper network settings. This works. This doesn't. Can you configure wlan0 to be on the 10.2.9.x network as well? |
I have deleted my today's post because it contains wrong statements. |
Thank you so much. In the meantime, I investigated the USB-Ethernet issue a little more and did interesing observations. One of adapter is of the type dm9601, In terms of kernel modules for USB-Ethernet adapters the linux images from https://builds.96boards.org/releases/reference-platform/debian/hikey/16.03/ look good (see Attachment #1 below) However, there is something suspicious in the absence of the By contrast, everything is OK about net rules files for I also copied the file /etc/udev/rules.d/70-persistent-net.rules Thanks a lot. Attachment #1: The USB_NET kernel configuration of linux images from
Attachment #2:
Attachment #3:
|
You should configure wifi to be on the local network as well to detach problems of corporate network. Thank you for the detailed analysis! Attachment 1 is showing that the drivers are built as modules. Do you see any *.ko files under /lib/modules/<kernel version, should be 4.4.0>/kernel/drivers/net/usb/? Perhaps usbnet.ko, dm9601.ko and cdc_ether.ko? If yes, after copying 70-persistent-net.rules, can you try doing 'modprobe usbnet' and 'modprobe dm9601' or 'modprobe cdc_ether' to see if it helps? If not, then you might have to try rebuilding the kernel with those configs set to 'y' instead of 'm'. Also, please submit a bug to http://bugs.96boards.org/ with the info you provided above and request that they build and release future versions with 70-persistent-net.rules created (or rather /lib/udev/write_net_rules fixed to create it) and also the usb net drivers set to 'y' instead of 'm'. Good luck! |
Thanks a lot for your advices. That is the summary: At the stage of rc.local:
My feeling about all this is that at the system start the
Maybe my experience will help others to talk to the machine Thanks a lot. |
You're welcome! For development and debugging, it really helps to have a serial interface. You can get one here: http://www.96boards.org/product/debug/ |
Hello,
Why to talk to hikey via network
is so critical for me? That is because so far I have tested three types of
UART-USB adapters (based on CP2101, PL2303HX, PL2303HXD ).
All work in some unstable manner at best.
So, now I am waiting for officially recommended one:
https://www.seeedstudio.com/96Boards-UART-p-2525.html
Good experience:
The use of the kernel and debian images from
http://builds.96boards.org/releases/hikey/linaro/debian/latest/
(i.e. of version 20153011-387)
flashed onto SD or EMMC
results in normal communication to HiKey via network if
a) I use USB-Ethernet adapters of any of two types which I typically use
for my Linux debian systems.
b) I configure the /etc/network/interfaces e.g. like
auto eth0
iface eth0 inet static
address 10.2.9.60
netmask 255.255.255.0
(to be scrupulous)
The network communications work!
Bad experience:
2) The use of kernel/debian EMMC images from
https://builds.96boards.org/releases/reference-platform/debian/hikey/16.03/
for EMMC's HiKey flashing with following
usage of mentioned above USB-Ethernet adapters (a) and network configuration (b)
does not allow to get a pingable HiKey.
I.e. HiKey is not communicable via network.
(By the way, I do not see blue leds blinking)
https://builds.96boards.org/releases/reference-platform/debian/hikey/16.06/
flashed onto EMMC or SD (the image for SD is present on the page) with following
usage of mentioned above USB-Ethernet adapters (a) and network configuration (b)
does not allow to ping HiKey.
I.e. HiKey is not communicable via network.
(Now I see blue leds blinking)
It would be very nice to get an advice how to fix images from
https://builds.96boards.org/releases/reference-platform/debian/hikey/16.03/
https://builds.96boards.org/releases/reference-platform/debian/hikey/16.06/
to make them to provide network communications via USB-Ethernet adapter
as that kindly is provided by the images from:
http://builds.96boards.org/releases/hikey/linaro/debian/latest/
(i.e. of version 20153011-387)
Any help would be very much appreciated.
I also tried to configure wi-fi using static address configuration
for all mentioned above versions but I failed to get a pingable system.
(for dhcp I do not know an address to ping)
E.g. I did that in the /etc/network/interfaces as follows:
allow-hotplug wlan0
iface wlan0 inet static
wpa-ssid "CC2 Wi-Fi"
wpa-psk "USLcksifd"nbCkjdf3000"
address 182.30.9.151
netmask 255.255.248.0
Although I see yellow led blinking (some wi-fi activity)
Thank you.
The text was updated successfully, but these errors were encountered: