1 |
2017-07-06 18:39 GMT-03:00 R0b0t1 <r030t1@×××××.com>: |
2 |
|
3 |
> On Thu, Jul 6, 2017 at 2:44 PM, Francisco Ares <frares@×××××.com> wrote: |
4 |
> > |
5 |
> > |
6 |
> > 2017-07-06 13:07 GMT-03:00 R0b0t1 <r030t1@×××××.com>: |
7 |
> >> |
8 |
> >> On Thu, Jul 6, 2017 at 10:51 AM, Francisco Ares <frares@×××××.com> |
9 |
> wrote: |
10 |
> >> > Hi, All. |
11 |
> >> > |
12 |
> >> > This is a bit odd, because of a non conventional hardware platform: |
13 |
> >> > Odroid |
14 |
> >> > (Hardkernel). |
15 |
> >> > |
16 |
> >> > But I guess overall rules apply to all. |
17 |
> >> > |
18 |
> >> > I need a second network interface, the original and single one present |
19 |
> >> > on |
20 |
> >> > the board is to be connected to a GigE camera, so I use a USB/ethernet |
21 |
> >> > adapter to have SSH remote access. |
22 |
> >> > |
23 |
> >> > I have set up the boot manager so that network interfaces would be |
24 |
> named |
25 |
> >> > according to the predictable names rules. If not, the USB/eth adapter |
26 |
> >> > gets |
27 |
> >> > "eth0" if the device is present at boot, otherwise, it is "eth1". |
28 |
> >> > |
29 |
> >> > But if I disconnect the USB/ethernet adapter to leave the system |
30 |
> alone, |
31 |
> >> > and |
32 |
> >> > after a while I need to take a look on what's going on and plug back |
33 |
> the |
34 |
> >> > USB/ethernet adapter, it comes up as "eth0" again. |
35 |
> >> > |
36 |
> >> > Anyone could give me a hint on where to look at it? Why the new |
37 |
> >> > interface |
38 |
> >> > is named in a way during boot and another during normal use? |
39 |
> >> > |
40 |
> >> > Thank you! |
41 |
> >> |
42 |
> >> Your question doesn't seem to involve any mixing of the naming schemes |
43 |
> >> at all, and it looks like the kernel you are using simply uses the old |
44 |
> >> style names. Can you compile your own kernel which supports the new |
45 |
> >> naming convention, remove net.ifnames=0 from the kernel command line |
46 |
> >> if it is present, or check for udev rules that perform naming that |
47 |
> >> overrides the default? You may wish to refer to |
48 |
> >> |
49 |
> >> https://wiki.gentoo.org/wiki/Handbook:X86/Networking/ |
50 |
> Advanced#Network_interface_naming |
51 |
> >> though it is not very information dense. |
52 |
> >> |
53 |
> >> Unfortunately my experience with hardkernel devices is that the |
54 |
> >> developers put most of their effort behind the Android release and |
55 |
> >> will make an Ubuntu release, if it exists, barely work. I would |
56 |
> >> strongly recommend not buying their devices. They barely support them |
57 |
> >> and without their help the devices are unsupportable. |
58 |
> >> |
59 |
> >> R0b0t1. |
60 |
> >> |
61 |
> > |
62 |
> > |
63 |
> > Thanks for the tip. I've checked in /etc/udev files and directories, and |
64 |
> > there is no rule for naming interfaces. |
65 |
> > |
66 |
> > Instead of removing "net.ifnames=0" from the kernel command line, I have |
67 |
> > altered it to "net.ifnames=1". Gonna try removing it at once. |
68 |
> > |
69 |
> |
70 |
> I would expect that to work as you did, are you using their kernel? If |
71 |
> you are I believe there is an option to force the old-style naming by |
72 |
> effectively removing the code which does the new-style naming. That's |
73 |
> why I asked. |
74 |
> |
75 |
> > But, imho, Odroid is a good hardware, and I have learned a lot about |
76 |
> Linux - |
77 |
> > not Android - in their Odroid magazine. And their Ubuntu image works very |
78 |
> > good. And, as always, there are a lot of guys in the community. |
79 |
> > |
80 |
> |
81 |
> It is some of the best available hardware, but the support its |
82 |
> manufacturer provides isn't amazing. It's the bare minimum to get it |
83 |
> to work. Admittedly they did have a bit more customer involvement than |
84 |
> I've seen elsewhere at first (e.g. signing user-provided code with |
85 |
> Samsung keys to enable ARM TrustZone for QEMU) but they are still |
86 |
> focused on making money, and sell whatever it is they can as quickly |
87 |
> as possible and then move on to the next thing and avoid supporting |
88 |
> past products. |
89 |
> |
90 |
> R0b0t1. |
91 |
> |
92 |
> |
93 |
I have cloned their git kernel repository, and built a new kernel (not yet |
94 |
the initrd) as from here: |
95 |
|
96 |
https://wiki.gentoo.org/wiki/Xu4#Installing_Gentoo_on_an_Odroid-XU4 |
97 |
(already updated a few details here, too) |
98 |
|
99 |
The "boot.ini" configuration for the boot loader did present a |
100 |
"net.ifnames=0". Now I have removed it, but still could not reboot, I'm in |
101 |
the middle of a "emerge -e world", as many files got corrupted because of a |
102 |
power failure during a move operation from a media to another. Now building |
103 |
also binary packages to keep them safe in another device. And using a UPS |
104 |
;-) |
105 |
|
106 |
On that article about net interfaces naming, I found a workaround using |
107 |
udev rules just for this period of implementation. |
108 |
|
109 |
Thanks for your point of view about hardkernel, I'll keep an eye on them. |
110 |
|
111 |
Thank you, again, |
112 |
Francisco |