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 0xfffff80000000000 (max_phys_bits == 40)
[ 0.028425] MM: VMALLOC [0x0000000100000000 --> 0x0000060000000000]
[ 0.030000] MM: VMEMMAP [0x0000060000000000 --> 0x00000c0000000000]
[ 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: 0x7fe80000, Total RAM: 0x7fe80000
[ 2.584662] Memory hole size: 0MB
[ 2.696656] Allocated 16384 bytes for kernel page tables.
[ 2.700270] Zone ranges:
[ 2.701635] Normal [mem 0x0000000000000000-0x000000007fe7ffff]
[ 2.703483] Movable zone start for each node
[ 2.704869] Early memory node ranges
[ 2.706171] node 0: [mem 0x0000000000000000-0x000000007fe7ffff]
[ 2.708063] Initmem setup node 0 [mem
0x0000000000000000-0x000000007fe7ffff]
[ 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: 0xffffffffffffffff max_cycles:
0x171024e7e0, max_idle_ns: 440795205315 ns
[ 2.958770] clocksource: mult[a000000] shift[24]
[ 2.960518] clockevent: mult[1999999a] 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: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 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[1fe02000000] MEM[1ff00000000]
[ 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 0000:00
[ 3.216204] pci_bus 0000:00: root bus resource [io
0x1fe02000000-0x1fe02ffffff] (bus address [0x0000-0xffffff])
[ 3.216363] pci_bus 0000:00: root bus resource [mem
0x1ff00000000-0x1ffefffffff] (bus address [0x00000000-0xefffffff])
[ 3.216719] pci_bus 0000:00: root bus resource [bus 00-02]
[ 3.250201] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 3.250438] HugeTLB registered 8.00 MiB page size, pre-allocated 0 pages
[ 3.250520] HugeTLB registered 256 MiB page size, pre-allocated 0 pages
[ 3.250567] HugeTLB registered 2.00 GiB page size, pre-allocated 0 pages
[ 3.263718] pci 0000:01:02.0: vgaarb: VGA device added:
decodes=io+mem,owns=none,locks=none
[ 3.263884] pci 0000:01:02.0: vgaarb: bridge control possible
[ 3.264013] pci 0000:01:02.0: vgaarb: setting as boot device (VGA
legacy resources not available)
[ 3.264175] vgaarb: loaded
[ 3.281171] /pci@1f,0/pci@1,1/ebus@1/eeprom@14,2000: Mostek regs at
0x1fe02002000
[ 3.284534] clocksource: Switched to clocksource tick
[ 3.449782] VFS: Disk quotas dquot_6.6.0
[ 3.450131] VFS: Dquot-cache hash table entries: 1024 (order 0, 8192
bytes)
[ 3.458051] AppArmor: AppArmor Filesystem Enabled
[ 3.490609] NET: Registered protocol family 2
[ 3.507244] TCP established hash table entries: 16384 (order: 4,
131072 bytes)
[ 3.507612] TCP bind hash table entries: 16384 (order: 4, 131072 bytes)
[ 3.507932] TCP: Hash tables configured (established 16384 bind 16384)
[ 3.510110] UDP hash table entries: 1024 (order: 2, 32768 bytes)
[ 3.510391] UDP-Lite hash table entries: 1024 (order: 2, 32768 bytes)
[ 3.513532] NET: Registered protocol family 1
[ 3.514334] PCI: CLS 0 bytes, default 64
[ 3.521136] Unpacking initramfs...
[ 4.964185] Freeing initrd memory: 17968K
[ 4.965209] power: Control reg at 1fe02007240
[ 4.975481] Initialise system trusted keyrings
[ 4.977734] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 5.002411] zbud: loaded
[ 6.816889] random: fast init done
[ 6.843232] Key type asymmetric registered
[ 6.843471] Asymmetric key parser 'x509' registered
[ 6.844468] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 251)
[ 6.845722] io scheduler noop registered
[ 6.845871] io scheduler deadline registered
[ 6.847056] io scheduler cfq registered (default)
[ 6.847167] io scheduler mq-deadline registered
[ 6.856972] ffe30aa8: ttyS0 at MMIO 0x1fe020003f8 (irq = 5, base_baud
= 115387) is a 16550A
[ 6.857415] Console: ttyS0 (SU)
[ 6.934989] console [ttyS0] enabled
[ 6.945555] mousedev: PS/2 mouse device common for all mice
[ 6.963331] rtc-m48t59 rtc-m48t59.0: rtc core: registered m48t59 as rtc0
[ 6.965139] ledtrig-cpu: registered to indicate activity on CPUs
[ 6.971099] NET: Registered protocol family 10
[ 7.303221] Segment Routing with IPv6
[ 7.304521] mip6: Mobile IPv6
[ 7.305458] NET: Registered protocol family 17
[ 7.307428] mpls_gso: MPLS GSO support
[ 7.311603] registered taskstats version 1
[ 7.312418] Loading compiled-in X.509 certificates
[ 7.617957] Loaded X.509 cert 'Debian Project: Ben Hutchings:
008a018dca80932630'
[ 7.620763] zswap: loaded using pool lzo/zbud
[ 7.623705] AppArmor: AppArmor sha1 policy hashing enabled
[ 7.625024] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 7.631226] rtc-m48t59 rtc-m48t59.0: setting system clock to
2020-03-05 13:55:48 UTC (1583416548)
[ 7.703732] This architecture does not have kernel memory protection.
[ 11.300463] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
[ 11.353718] SCSI subsystem initialized
[ 11.403802] ne2k-pci 0000:02:00.0 eth0: RealTek RTL-8029 found at
0x1fe02800000, IRQ 8, 52:54:00:12:34:56.
[ 11.486477] libata version 3.00 loaded.
[ 11.573443] scsi host0: pata_cmd64x
[ 11.594137] scsi host1: pata_cmd64x
[ 11.596495] ata1: PATA max UDMA/33 cmd 0x1fe02008000 ctl
0x1fe02008080 bmdma 0x1fe02008200 irq 7
[ 11.597735] ata2: PATA max UDMA/33 cmd 0x1fe02008100 ctl
0x1fe02008180 bmdma 0x1fe02008208 irq 7
[ 11.603874] pata_cmd64x: active 10 recovery 10 setup 3.
[ 11.604113] pata_cmd64x: active 10 recovery 10 setup 3.
[ 11.777430] ata1.01: NODEV after polling detection
[ 11.780263] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
[ 11.781167] ata1.00: 167772160 sectors, multi 16: LBA48
[ 11.783378] pata_cmd64x: active 3 recovery 1 setup 1.
[ 11.799010] ata1.00: configured for UDMA/33
[ 11.862009] scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 2.5+
PQ: 0 ANSI: 5
[ 11.899508] pata_cmd64x: active 10 recovery 10 setup 3.
[ 11.899560] pata_cmd64x: active 10 recovery 10 setup 3.
[ 12.057535] ata2.01: NODEV after polling detection
[ 12.058255] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[ 12.059237] pata_cmd64x: active 4 recovery 2 setup 1.
[ 12.062503] ata2.00: configured for UDMA/33
[ 12.070411] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM
2.5+ PQ: 0 ANSI: 5
[ 12.636822] ne2k-pci 0000:02:00.0 enp2s0: renamed from eth0
[ 12.823284] sd 0:0:0:0: [sda] 167772160 512-byte logical blocks:
(85.9 GB/80.0 GiB)
[ 12.833605] sd 0:0:0:0: [sda] Write Protect is off
[ 12.835181] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 12.858258] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 12.878201] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[ 12.880715] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 12.941812] sda: sda1 sda2 sda3 sda4
[ 12.950654] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 13.041490] sd 0:0:0:0: [sda] Attached SCSI disk
[ 13.247302] ata_id[95]: unable to open '/dev/sr0'
[ 13.840368] ata_id[98]: unable to open '/dev/sr0'
[ 14.578004] PM: Starting manual resume from disk
[ 14.581494] PM: Image not found (code -22)
[ 14.834067] aes_sparc64: sparc64 aes opcodes not available.
[ 14.898065] crc32c_sparc64: sparc64 crc32c opcode not available.
[ 15.746947] EXT4-fs (sda2): mounted filesystem with ordered data
mode. Opts: (null)
[ 17.417050] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 17.600797] systemd[1]: systemd 238 running in system mode. (+PAM
+AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN
-PCRE2 default-hierarchy=hybrid)
[ 17.607981] systemd[1]: Detected architecture sparc64.
[ 17.668718] systemd[1]: Set hostname to <debian-sparc64>.
[ 19.505918] random: crng init done
[ 21.275928] systemd[1]: Listening on Syslog Socket.
[ 21.297283] systemd[1]: Listening on udev Kernel Socket.
[ 21.333928] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 21.357139] systemd[1]: Created slice system-getty.slice.
[ 21.368499] systemd[1]: Listening on Journal Socket.
[ 21.425123] systemd[1]: Starting Set the console keyboard layout...
[ 21.547552] systemd[1]: Starting Load Kernel Modules...
[ 22.651330] systemd[1]: Mounting Huge Pages File System...
[ 22.674864] systemd[1]: Reached target Paths.
[ 22.875282] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 22.916129] systemd[1]: Listening on Journal Audit Socket.
[ 22.946831] systemd[1]: Reached target Sockets.
[ 23.240250] systemd[1]: Starting Journal Service...
[ 23.315123] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 23.497497] systemd[1]: Mounting POSIX Message Queue File System...
[ 24.019650] systemd[1]: Started Load Kernel Modules.
[ 24.333520] systemd[1]: Started Create list of required static device
nodes for the current kernel.
[ 24.606678] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ 29.497752] systemd-journald[168]: Received request to flush runtime
journal from PID 1
[ 35.201201] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 35.226228] sr 1:0:0:0: Attached scsi generic sg1 type 5
[ 36.231191] [drm] Found bochs VGA, ID 0xb0c5.
[ 36.232508] [drm] Framebuffer size 16384 kB @ 0x1ff21000000, mmio @
0x1ff22000000.
[ 36.298846] [TTM] Zone kernel: Available graphics memory: 1029204 kiB
[ 36.299833] [TTM] Initializing pool allocator
[ 36.792399] Console: switching to colour frame buffer device 128x48
[ 37.009315] bochs-drm 0000:01:02.0: fb0: bochsdrmfb frame buffer device
[ 37.011509] [drm] Initialized bochs-drm 1.0.0 20130925 for
0000:01:02.0 on minor 0
[ 43.505415] Adding 2008112k swap on /dev/sda4. Priority:-2 extents:1
across:2008112k FS
[ 45.717964] EXT4-fs (sda1): mounting ext2 file system using the ext4
subsystem
[ 45.758231] EXT4-fs (sda1): mounted filesystem without journal. Opts:
(null)
I ran the modprobe command, I didn't get some effect
Alexandre S. Bencz
+55 {15} 991-707-384
On 05/03/2020 10:53, Anatoly Pugachev wrote:
On Thu, Mar 5, 2020 at 4:09 PM Alexandre Bencz <alebe...@gmail.com> 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::2222-:22 -monitor telnet::4440,server,nowait -serial
mon:telnet::3333,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.