All of lore.kernel.org
 help / color / mirror / Atom feed
* How to make the image to get the IP (over DHCP) and listen for ssh connections?
@ 2020-01-22 19:17 yuri
  2020-01-22 19:41 ` [poky] " Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: yuri @ 2020-01-22 19:17 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

I've built the image for Altera cyclone5 based De10-Nano board. But it doesn't get the IP address, and is also very small, only 43MB.

Is it documented how to enable networking/DHCP/ssh?

Thanks,
Yuri

[-- Attachment #2: Type: text/html, Size: 233 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [poky] How to make the image to get the IP (over DHCP) and listen for ssh connections?
  2020-01-22 19:17 How to make the image to get the IP (over DHCP) and listen for ssh connections? yuri
@ 2020-01-22 19:41 ` Khem Raj
  2020-01-23  5:07   ` Yuri
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-01-22 19:41 UTC (permalink / raw)
  To: yuri; +Cc: poky

On Wed, Jan 22, 2020 at 11:17 AM <yuri@rawbw.com> wrote:
>
> I've built the image for Altera cyclone5 based De10-Nano board. But it doesn't get the IP address, and is also very small, only 43MB.
>
> Is it documented how to enable networking/DHCP/ssh?
>

which image have you built ? and also check

ifconfig -a

and see if it shows the network interface you are expecting. It could
be that the device itself is not initialized due to
perhaps driver issues or some such.

>
> Thanks,
> Yuri 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [poky] How to make the image to get the IP (over DHCP) and listen for ssh connections?
  2020-01-22 19:41 ` [poky] " Khem Raj
@ 2020-01-23  5:07   ` Yuri
  2020-01-23  6:16     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Yuri @ 2020-01-23  5:07 UTC (permalink / raw)
  To: Khem Raj; +Cc: poky

On 2020-01-22 11:41, Khem Raj wrote:
> which image have you built ? and also check


MACHINE=cyclone5

kernel linux-altera

UBOOT_CONFIG="de0-nano-soc"

Linux cyclone5 5.4.0-altera #1 SMP Wed Jan 22 03:07:47 UTC 2020 armv7l 
GNU/Linux


> ifconfig -a
>
> and see if it shows the network interface you are expecting. It could
> be that the device itself is not initialized due to
> perhaps driver issues or some such.


# ifconfig -a
can0      Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
           NOARP  MTU:16  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:10
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
           Interrupt:28

eth0      Link encap:Ethernet  HWaddr 7A:A5:58:54:1E:3C
           inet addr:192.168.5.110  Bcast:192.168.5.255 Mask:255.255.255.0
           inet6 addr: fe80::78a5:58ff:fe54:2e3e/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:1184 errors:0 dropped:0 overruns:0 frame:0
           TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:88695 (86.6 KiB)  TX bytes:45370 (44.3 KiB)
           Interrupt:33 Base address:0xe000

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:65536  Metric:1
           RX packets:16 errors:0 dropped:0 overruns:0 frame:0
           TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:1576 (1.5 KiB)  TX bytes:1576 (1.5 KiB)

sit0      Link encap:IPv6-in-IPv4
           NOARP  MTU:1480  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Routing table:

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.5.0     0.0.0.0         255.255.255.0   U     0 0        0 eth0


No kernel modules.


But pings don't go through. wireshark on the ping's target machine on 
LAN doesn't register ping packets. TCP connections also aren't 
established: No route to host

Something is wrong with the network interface.


Another problem: how to increase the disk size in the image so that a 
larger portion of the sdcard is available? Currently the root device is 
only 18MB.

Also how to install opkg?


Yuri



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [poky] How to make the image to get the IP (over DHCP) and listen for ssh connections?
  2020-01-23  5:07   ` Yuri
@ 2020-01-23  6:16     ` Khem Raj
  2020-01-23  6:59       ` Yuri
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-01-23  6:16 UTC (permalink / raw)
  To: Yuri; +Cc: poky

On Wed, Jan 22, 2020 at 9:07 PM Yuri <yuri@rawbw.com> wrote:
>
> On 2020-01-22 11:41, Khem Raj wrote:
> > which image have you built ? and also check
>
>
> MACHINE=cyclone5
>
> kernel linux-altera
>
> UBOOT_CONFIG="de0-nano-soc"
>
> Linux cyclone5 5.4.0-altera #1 SMP Wed Jan 22 03:07:47 UTC 2020 armv7l
> GNU/Linux
>
>
> > ifconfig -a
> >
> > and see if it shows the network interface you are expecting. It could
> > be that the device itself is not initialized due to
> > perhaps driver issues or some such.
>
>
> # ifconfig -a
> can0      Link encap:UNSPEC  HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>            NOARP  MTU:16  Metric:1
>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:10
>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>            Interrupt:28
>
> eth0      Link encap:Ethernet  HWaddr 7A:A5:58:54:1E:3C
>            inet addr:192.168.5.110  Bcast:192.168.5.255 Mask:255.255.255.0
>            inet6 addr: fe80::78a5:58ff:fe54:2e3e/64 Scope:Link
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            RX packets:1184 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:88695 (86.6 KiB)  TX bytes:45370 (44.3 KiB)
>            Interrupt:33 Base address:0xe000
>
> lo        Link encap:Local Loopback
>            inet addr:127.0.0.1  Mask:255.0.0.0
>            inet6 addr: ::1/128 Scope:Host
>            UP LOOPBACK RUNNING  MTU:65536  Metric:1
>            RX packets:16 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:1576 (1.5 KiB)  TX bytes:1576 (1.5 KiB)
>
> sit0      Link encap:IPv6-in-IPv4
>            NOARP  MTU:1480  Metric:1
>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
>
> Routing table:
>
> # route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.5.0     0.0.0.0         255.255.255.0   U     0 0        0 eth0
>
>
> No kernel modules.
>
>
> But pings don't go through. wireshark on the ping's target machine on
> LAN doesn't register ping packets. TCP connections also aren't
> established: No route to host
>
> Something is wrong with the network interface.
>

what happens if you run udhcpc -ietth0

>
> Another problem: how to increase the disk size in the image so that a
> larger portion of the sdcard is available? Currently the root device is
> only 18MB.
>
> Also how to install opkg?
>
>
> Yuri
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [poky] How to make the image to get the IP (over DHCP) and listen for ssh connections?
  2020-01-23  6:16     ` Khem Raj
@ 2020-01-23  6:59       ` Yuri
  0 siblings, 0 replies; 5+ messages in thread
From: Yuri @ 2020-01-23  6:59 UTC (permalink / raw)
  To: Khem Raj; +Cc: poky

On 2020-01-22 22:16, Khem Raj wrote:
> what happens if you run udhcpc -ietth0


It fails:

# udhcpc -ieth0
udhcpc: started, v1.31.0
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover

Wireshark doesn't sense any DHCP packets.


ping says that it sent packets, but wireshark doesn't sense any ARP or 
ICMP packets.


# dmesg | grep eth0
[    3.047724] socfpga-dwmac ff702000.ethernet eth0: PHY [stmmac-0:01] 
driver [Micrel KSZ9031 Gigabit PHY]
[    3.064284] socfpga-dwmac ff702000.ethernet eth0: No Safety Features 
support found
[    3.072053] socfpga-dwmac ff702000.ethernet eth0: registered PTP clock
[    3.078583] socfpga-dwmac ff702000.ethernet eth0: configuring for 
phy/rgmii link mode
[    7.285624] socfpga-dwmac ff702000.ethernet eth0: Link is Up - 
1Gbps/Full - flow control rx/tx
[    7.294215] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


Yuri



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-23  6:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 19:17 How to make the image to get the IP (over DHCP) and listen for ssh connections? yuri
2020-01-22 19:41 ` [poky] " Khem Raj
2020-01-23  5:07   ` Yuri
2020-01-23  6:16     ` Khem Raj
2020-01-23  6:59       ` Yuri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.