Re: Network not detected

2020-03-05 Thread Anatoly Pugachev
On Thu, Mar 5, 2020 at 5:03 PM Alexandre Bencz  wrote:
>
> Inside /etc/network/interfaces
>
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> source /etc/network/interfaces.d/*
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> allow-hotplug enp2s0
> iface enp2s0 inet dhcp
>
> The dmesg log:
>
> $ dmesg
> [0.001496] PROMLIB: Sun IEEE Boot Prom 'OBP 3.10.24 1999/01/01 01:01'
...
> [   11.300463] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
> [   11.403802] ne2k-pci :02:00.0 eth0: RealTek RTL-8029 found at 
> 0x1fe0280, IRQ 8, 52:54:00:12:34:56.
> [   12.636822] ne2k-pci :02:00.0 enp2s0: renamed from eth0

First, dmesg shows that driver for network card is loaded, you could
check with "ip link show" to see is there enp2s0 available.

Second, check with "ip addr show" does your enp2s0 gets an IP address...



Re: Network not detected

2020-03-05 Thread Alexandre Bencz

Inside /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp2s0
iface enp2s0 inet dhcp

The dmesg log:

$ dmesg
[    0.001496] PROMLIB: Sun IEEE Boot Prom 'OBP 3.10.24 1999/01/01 01:01'
[    0.004034] PROMLIB: Root node compatible: sun4u
[    0.005707] Linux version 4.15.0-2-sparc64 
(debian-ker...@lists.debian.org) (gcc version 7.3.0 (Debian 7.3.0-12)) 
#1 Debian 4.15.11-1 (2018-03-20)

[    0.017506] bootconsole [earlyprom0] enabled
[    0.019000] ARCH: SUN4U
[    0.024661] Ethernet address: 52:54:00:12:34:57
[    0.026847] MM: PAGE_OFFSET is 0xf800 (max_phys_bits == 40)
[    0.028425] MM: VMALLOC [0x0001 --> 0x0600]
[    0.03] MM: VMEMMAP [0x0600 --> 0x0c00]
[    0.071671] Kernel: Using 3 locked TLB entries for main kernel image.
[    0.073925] Remapping the kernel...
[    0.084381] done.
[    2.578254] OF stdout device is: /pci@1fe,0/pci@1,1/ebus@1/su
[    2.579899] PROM: Built device tree with 56559 bytes of memory.
[    2.583171] Top of RAM: 0x7fe8, Total RAM: 0x7fe8
[    2.584662] Memory hole size: 0MB
[    2.696656] Allocated 16384 bytes for kernel page tables.
[    2.700270] Zone ranges:
[    2.701635]   Normal   [mem 0x-0x7fe7]
[    2.703483] Movable zone start for each node
[    2.704869] Early memory node ranges
[    2.706171]   node   0: [mem 0x-0x7fe7]
[    2.708063] Initmem setup node 0 [mem 
0x-0x7fe7]

[    2.710645] On node 0 totalpages: 261952
[    2.710898]   Normal zone: 2303 pages used for memmap
[    2.710953]   Normal zone: 0 pages reserved
[    2.711137]   Normal zone: 261952 pages, LIFO batch:15
[    2.732272] Booting Linux...
[    2.733815] CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus]
[    2.735649] CPU CAPS: [vis]
[    2.741894] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    2.742030] pcpu-alloc: [0] 0
[    2.746414] Built 1 zonelists, mobility grouping on. Total pages: 259649
[    2.748360] Kernel command line: root=/dev/sda2 ro
[    2.763425] Dentry cache hash table entries: 262144 (order: 8, 
2097152 bytes)
[    2.765873] Inode-cache hash table entries: 131072 (order: 7, 1048576 
bytes)

[    2.767659] Sorting __ex_table...
[    2.791104] Memory: 2039968K/2095616K available (6122K kernel code, 
758K rwdata, 1704K rodata, 472K init, 394K bss, 55648K reserved, 0K 
cma-reserved)
[    2.795468] random: get_random_u64 called from 
__kmem_cache_create+0x24/0x4c0 with crng_init=0

[    2.806149] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    2.810687] ftrace: allocating 21340 entries in 42 pages
[    2.951720] NR_IRQS: 2048, nr_irqs: 2048, preallocated irqs: 1
[    2.956348] clocksource: tick: mask: 0x max_cycles: 
0x171024e7e0, max_idle_ns: 440795205315 ns

[    2.958770] clocksource: mult[a00] shift[24]
[    2.960518] clockevent: mult[199a] shift[32]
[    2.966763] Console: colour dummy device 80x25
[    2.971746] console [tty0] enabled
[    2.974094] bootconsole [earlyprom0] disabled
[    3.079495] calibrate_delay_direct() dropping min bogoMips estimate 1 
= 451855
[    3.079792] Calibrating delay using timer specific routine.. 264.29 
BogoMIPS (lpj=528583)

[    3.080010] pid_max: default: 32768 minimum: 301
[    3.081621] Security Framework initialized
[    3.082017] Yama: disabled by default; enable with sysctl kernel.yama.*
[    3.085464] AppArmor: AppArmor initialized
[    3.086404] Mount-cache hash table entries: 4096 (order: 2, 32768 bytes)
[    3.086504] Mountpoint-cache hash table entries: 4096 (order: 2, 
32768 bytes)

[    3.145619] devtmpfs: initialized
[    3.158268] Performance events: No support for PMU type 'ultra12'
[    3.162516] clocksource: jiffies: mask: 0x max_cycles: 
0x, max_idle_ns: 764504178510 ns

[    3.162792] futex hash table entries: 256 (order: -1, 6144 bytes)
[    3.173873] NET: Registered protocol family 16
[    3.197939] audit: initializing netlink subsys (disabled)
[    3.208141] audit: type=2000 audit(0.176:1): state=initialized 
audit_enabled=0 res=1

[    3.212723] /pci@1f,0: PCI IO[1fe0200] MEM[1ff]

[    3.213153] /pci@1f,0: SABRE PCI Bus Module ver[0:0]
[    3.213287] PCI: Scanning PBM /pci@1f,0
[    3.215562] sabre ffe2e3e0: PCI host bridge to bus :00
[    3.216204] pci_bus :00: root bus resource [io 
0x1fe0200-0x1fe02ff] (bus address [0x-0xff])
[    3.216363] pci_bus :00: root bus resource [mem 
0x1ff-0x1ffefff] (bus address [0x-0xefff])

[    3.216719] pci_bus :00: root bus resource [bus 00-02]
[    3.250201] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    

Re: Network not detected

2020-03-05 Thread Anatoly Pugachev
On Thu, Mar 5, 2020 at 4:09 PM Alexandre Bencz  wrote:
>
> Hi
> I just installed Debian on a QEMU virtual machine, during the installation, 
> the internet connection was detected and etc, but after starting the system, 
> the connection does not exist
>
> Ps: I'm using Windows
>
> My QEMU command line is:
> qemu-system-sparc64.exe -machine sun4u,accel=tcg,usb=off -m 2048 -nographic 
> -hda debian_sparc64.qcow2 -net nic,model=ne2k_pci -net 
> user,hostfwd=tcp::-:22 -monitor telnet::4440,server,nowait -serial 
> mon:telnet::,server,wait

Alexandre,

what is in your /etc/network/interfaces file ? or do you use systemd-networkd ?
do you have dmesg log from this machine ?
have you tried to do "modprobe ne2k-pci" after machine boots?
what is "ip link show" output?

Thanks.



Network not detected

2020-03-05 Thread Alexandre Bencz

Hi
I just installed Debian on a QEMU virtual machine, during the 
installation, the internet connection was detected and etc, but after 
starting the system, the connection does not exist


Ps: I'm using Windows

My QEMU command line is:
qemu-system-sparc64.exe -machine sun4u,accel=tcg,usb=off -m 2048 
-nographic -hda debian_sparc64.qcow2 -net nic,model=ne2k_pci -net 
user,hostfwd=tcp::-:22 -monitor telnet::4440,server,nowait -serial 
mon:telnet::,server,wait


--
Alexandre S. Bencz
+55 {15} 991-707-384