On 14/04/2020 21:24, Alexandre Bencz wrote: > Mark, > I changed the command line to "-net nic -net user" whiout the hostfwd > here the dmesg... there is nothing about the NIC > > [ 0.001447] PROMLIB: Sun IEEE Boot Prom 'OBP 3.10.24 1999/01/01 01:01' > [ 0.003493] PROMLIB: Root node compatible: sun4u > [ 0.005191] Linux version 4.15.0-2-sparc64 > ([email protected]) (gcc > version 7.3.0 (Debian 7.3.0-12)) #1 Debian 4.15.11-1 (2018-03-20) > [ 0.021870] bootconsole [earlyprom0] enabled > [ 0.024231] ARCH: SUN4U > [ 0.032589] Ethernet address: 52:54:00:12:34:56 > [ 0.034967] MM: PAGE_OFFSET is 0xfffff80000000000 (max_phys_bits == 40) > [ 0.038101] MM: VMALLOC [0x0000000100000000 --> 0x0000060000000000] > [ 0.040150] MM: VMEMMAP [0x0000060000000000 --> 0x00000c0000000000] > [ 0.088554] Kernel: Using 3 locked TLB entries for main kernel image. > [ 0.093414] Remapping the kernel... > [ 0.109053] done. > [ 2.849032] OF stdout device is: /pci@1fe,0/pci@1,1/ebus@1/su > [ 2.850630] PROM: Built device tree with 56384 bytes of memory. > [ 2.854049] Top of RAM: 0x7fe80000, Total RAM: 0x7fe80000 > [ 2.855712] Memory hole size: 0MB > [ 2.975120] Allocated 16384 bytes for kernel page tables. > [ 2.978987] Zone ranges: > [ 2.980641] Normal [mem 0x0000000000000000-0x000000007fe7ffff] > [ 2.983197] Movable zone start for each node > [ 2.984708] Early memory node ranges > [ 2.986372] node 0: [mem 0x0000000000000000-0x000000007fe7ffff] > [ 2.988889] Initmem setup node 0 [mem > 0x0000000000000000-0x000000007fe7ffff] > [ 2.991256] On node 0 totalpages: 261952 > [ 2.991504] Normal zone: 2303 pages used for memmap > [ 2.991559] Normal zone: 0 pages reserved > [ 2.991740] Normal zone: 261952 pages, LIFO batch:15 > [ 3.012142] Booting Linux... > [ 3.013686] CPU CAPS: [flush,stbar,swap,muldiv,v9,mul32,div32,v8plus] > [ 3.016474] CPU CAPS: [vis] > [ 3.022835] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 > [ 3.022995] pcpu-alloc: [0] 0 > [ 3.026486] Built 1 zonelists, mobility grouping on. Total pages: 259649 > [ 3.029319] Kernel command line: root=/dev/sda2 ro > [ 3.047232] Dentry cache hash table entries: 262144 (order: 8, 2097152 > bytes) > [ 3.050985] Inode-cache hash table entries: 131072 (order: 7, 1048576 > bytes) > [ 3.053018] Sorting __ex_table... > [ 3.076805] Memory: 2039968K/2095616K available (6122K kernel code, 758K > rwdata, > 1704K rodata, 472K init, 394K bss, 55648K reserved, 0K cma-reserved) > [ 3.080476] random: get_random_u64 called from > __kmem_cache_create+0x24/0x4c0 with > crng_init=0 > [ 3.092191] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 > [ 3.096469] ftrace: allocating 21340 entries in 42 pages > [ 3.247320] NR_IRQS: 2048, nr_irqs: 2048, preallocated irqs: 1 > [ 3.252588] clocksource: tick: mask: 0xffffffffffffffff max_cycles: > 0x171024e7e0, > max_idle_ns: 440795205315 ns > [ 3.255093] clocksource: mult[a000000] shift[24] > [ 3.256727] clockevent: mult[1999999a] shift[32] > [ 3.263015] Console: colour dummy device 80x25 > [ 3.269686] console [tty0] enabled > [ 3.271740] bootconsole [earlyprom0] disabled > [ 3.378153] calibrate_delay_direct() dropping max bogoMips estimate 0 = > 561245 > [ 3.378452] Calibrating delay using timer specific routine.. 246.72 > BogoMIPS > (lpj=493455) > [ 3.378665] pid_max: default: 32768 minimum: 301 > [ 3.380354] Security Framework initialized > [ 3.380736] Yama: disabled by default; enable with sysctl kernel.yama.* > [ 3.384964] AppArmor: AppArmor initialized > [ 3.385956] Mount-cache hash table entries: 4096 (order: 2, 32768 bytes) > [ 3.386056] Mountpoint-cache hash table entries: 4096 (order: 2, 32768 > bytes) > [ 3.447840] devtmpfs: initialized > [ 3.462942] Performance events: No support for PMU type 'ultra12' > [ 3.467830] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, > max_idle_ns: 7645041785100000 ns > [ 3.468495] futex hash table entries: 256 (order: -1, 6144 bytes) > [ 3.479842] NET: Registered protocol family 16 > [ 3.506219] audit: initializing netlink subsys (disabled) > [ 3.513375] audit: type=2000 audit(0.184:1): state=initialized > audit_enabled=0 res=1 > [ 3.521635] /pci@1f,0: PCI IO[1fe02000000] MEM[1ff00000000] > > [ 3.522094] /pci@1f,0: SABRE PCI Bus Module ver[0:0] > [ 3.522228] PCI: Scanning PBM /pci@1f,0 > [ 3.524465] sabre ffe2e3e0: PCI host bridge to bus 0000:00 > [ 3.525314] pci_bus 0000:00: root bus resource [io > 0x1fe02000000-0x1fe02ffffff] > (bus address [0x0000-0xffffff]) > [ 3.525676] pci_bus 0000:00: root bus resource [mem > 0x1ff00000000-0x1ffefffffff] > (bus address [0x00000000-0xefffffff]) > [ 3.526144] pci_bus 0000:00: root bus resource [bus 00-02] > [ 3.562046] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages > [ 3.562171] HugeTLB registered 8.00 MiB page size, pre-allocated 0 pages > [ 3.562243] HugeTLB registered 256 MiB page size, pre-allocated 0 pages > [ 3.562289] HugeTLB registered 2.00 GiB page size, pre-allocated 0 pages > [ 3.575822] pci 0000:01:02.0: vgaarb: VGA device added: > decodes=io+mem,owns=none,locks=none > [ 3.576128] pci 0000:01:02.0: vgaarb: bridge control possible > [ 3.576270] pci 0000:01:02.0: vgaarb: setting as boot device (VGA legacy > resources > not available) > [ 3.576422] vgaarb: loaded > [ 3.592873] /pci@1f,0/pci@1,1/ebus@1/eeprom@14,2000: Mostek regs at > 0x1fe02002000 > [ 3.596061] clocksource: Switched to clocksource tick > [ 3.786948] VFS: Disk quotas dquot_6.6.0 > [ 3.787297] VFS: Dquot-cache hash table entries: 1024 (order 0, 8192 bytes) > [ 3.795476] AppArmor: AppArmor Filesystem Enabled > [ 3.835214] NET: Registered protocol family 2 > [ 3.845653] TCP established hash table entries: 16384 (order: 4, 131072 > bytes) > [ 3.846008] TCP bind hash table entries: 16384 (order: 4, 131072 bytes) > [ 3.846339] TCP: Hash tables configured (established 16384 bind 16384) > [ 3.848727] UDP hash table entries: 1024 (order: 2, 32768 bytes) > [ 3.849440] UDP-Lite hash table entries: 1024 (order: 2, 32768 bytes) > [ 3.852444] NET: Registered protocol family 1 > [ 3.853315] PCI: CLS 0 bytes, default 64 > [ 3.860374] Unpacking initramfs... > [ 5.393376] Freeing initrd memory: 17968K > [ 5.394337] power: Control reg at 1fe02007240 > [ 5.405240] Initialise system trusted keyrings > [ 5.407069] workingset: timestamp_bits=46 max_order=18 bucket_order=0 > [ 5.434862] zbud: loaded > [ 7.299522] random: fast init done > [ 7.325170] Key type asymmetric registered > [ 7.325372] Asymmetric key parser 'x509' registered > [ 7.326326] Block layer SCSI generic (bsg) driver version 0.4 loaded > (major 251) > [ 7.327481] io scheduler noop registered > [ 7.327696] io scheduler deadline registered > [ 7.329105] io scheduler cfq registered (default) > [ 7.329218] io scheduler mq-deadline registered > [ 7.339018] ffe30aa8: ttyS0 at MMIO 0x1fe020003f8 (irq = 5, base_baud = > 115387) is > a 16550A > [ 7.339384] Console: ttyS0 (SU) > [ 7.417416] console [ttyS0] enabled > [ 7.429852] mousedev: PS/2 mouse device common for all mice > [ 7.441095] rtc-m48t59 rtc-m48t59.0: rtc core: registered m48t59 as rtc0 > [ 7.443018] ledtrig-cpu: registered to indicate activity on CPUs > [ 7.453333] NET: Registered protocol family 10 > [ 7.860571] Segment Routing with IPv6 > [ 7.861971] mip6: Mobile IPv6 > [ 7.862711] NET: Registered protocol family 17 > [ 7.863479] mpls_gso: MPLS GSO support > [ 7.867514] registered taskstats version 1 > [ 7.868321] Loading compiled-in X.509 certificates > [ 8.285579] Loaded X.509 cert 'Debian Project: Ben Hutchings: > 008a018dca80932630' > [ 8.288343] zswap: loaded using pool lzo/zbud > [ 8.291186] AppArmor: AppArmor sha1 policy hashing enabled > [ 8.292416] ima: No TPM chip found, activating TPM-bypass! (rc=-19) > [ 8.298566] rtc-m48t59 rtc-m48t59.0: setting system clock to 2020-04-14 > 20:12:15 > UTC (1586895135) > [ 8.373487] This architecture does not have kernel memory protection. > [ 12.165744] sunhme.c:v3.10 August 26, 2008 David S. Miller > ([email protected]) > [ 12.196194] SCSI subsystem initialized > [ 12.244468] eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet
^^^^ this is the NIC right here > [ 12.244837] 52:54:00:12:34:56 > [ 12.334796] libata version 3.00 loaded. > [ 12.423747] scsi host0: pata_cmd64x > [ 12.457917] scsi host1: pata_cmd64x > [ 12.459985] ata1: PATA max UDMA/33 cmd 0x1fe02008000 ctl 0x1fe02008080 > bmdma > 0x1fe02008200 irq 8 > [ 12.461168] ata2: PATA max UDMA/33 cmd 0x1fe02008100 ctl 0x1fe02008180 > bmdma > 0x1fe02008208 irq 8 > [ 12.467397] pata_cmd64x: active 10 recovery 10 setup 3. > [ 12.467759] pata_cmd64x: active 10 recovery 10 setup 3. > [ 12.637152] ata1.01: NODEV after polling detection > [ 12.640099] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100 > [ 12.641036] ata1.00: 167772160 sectors, multi 16: LBA48 > [ 12.643185] pata_cmd64x: active 3 recovery 1 setup 1. > [ 12.658906] ata1.00: configured for UDMA/33 > [ 12.707129] scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 2.5+ PQ: > 0 ANSI: 5 > [ 12.759249] pata_cmd64x: active 10 recovery 10 setup 3. > [ 12.759298] pata_cmd64x: active 10 recovery 10 setup 3. > [ 12.918424] ata2.01: NODEV after polling detection > [ 12.919157] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100 > [ 12.920070] pata_cmd64x: active 4 recovery 2 setup 1. > [ 12.920610] ata2.00: configured for UDMA/33 > [ 12.935887] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.5+ PQ: > 0 ANSI: 5 > [ 13.580082] hme 0000:01:01.1 enp1s1f1: renamed from eth0 > [ 13.708960] sd 0:0:0:0: [sda] 167772160 512-byte logical blocks: (85.9 > GB/80.0 GiB) > [ 13.716925] sd 0:0:0:0: [sda] Write Protect is off > [ 13.717933] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 > [ 13.734092] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, > doesn't > support DPO or FUA > [ 13.791195] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray > [ 13.792500] cdrom: Uniform CD-ROM driver Revision: 3.20 > [ 13.821776] sda: sda1 sda2 sda3 sda4 > [ 13.854755] sr 1:0:0:0: Attached scsi CD-ROM sr0 > [ 13.914211] sd 0:0:0:0: [sda] Attached SCSI disk > [ 14.151076] ata_id[99]: unable to open '/dev/sr0' > [ 14.727108] ata_id[102]: unable to open '/dev/sr0' > [ 15.428256] PM: Starting manual resume from disk > [ 15.431465] PM: Image not found (code -22) > [ 15.721100] aes_sparc64: sparc64 aes opcodes not available. > [ 15.786195] crc32c_sparc64: sparc64 crc32c opcode not available. > [ 16.674394] EXT4-fs (sda2): mounted filesystem with ordered data mode. > Opts: (null) > [ 18.280187] ip_tables: (C) 2000-2006 Netfilter Core Team > [ 18.461305] 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) > [ 18.471309] systemd[1]: Detected architecture sparc64. > [ 18.532472] systemd[1]: Set hostname to <debian-sparc64>. > [ 20.478374] random: crng init done > [ 22.422746] systemd[1]: Created slice system-getty.slice. > [ 22.441102] systemd[1]: Started Dispatch Password Requests to Console > Directory > Watch. > [ 22.462108] systemd[1]: Set up automount Arbitrary Executable File Formats > File > System Automount Point. > [ 22.477856] systemd[1]: Listening on Journal Socket (/dev/log). > [ 22.485189] systemd[1]: Reached target Slices. > [ 22.490790] systemd[1]: Reached target Remote File Systems. > [ 22.501753] systemd[1]: Listening on udev Control Socket. > [ 23.563742] systemd[1]: Starting Set the console keyboard layout... > [ 23.902822] systemd[1]: Starting Journal Service... > [ 24.010556] systemd[1]: Created slice system-serial\x2dgetty.slice. > [ 24.281586] systemd[1]: Starting Create list of required static device > nodes for > the current kernel... > [ 24.532000] systemd[1]: Starting udev Coldplug all Devices... > [ 24.578893] systemd[1]: Reached target Local Encrypted Volumes. > [ 24.647347] systemd[1]: Reached target Sockets. > [ 24.945816] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro > [ 25.138873] systemd[1]: Mounted Kernel Debug File System. > [ 25.306024] systemd[1]: Started Load Kernel Modules. > [ 25.450254] systemd[1]: Started Remount Root and Kernel File Systems. > [ 28.653036] systemd[1]: Started Apply Kernel Variables. > [ 28.842165] systemd[1]: Started Create System Users. > [ 28.890496] systemd[1]: Started Journal Service. > [ 30.978617] systemd-journald[162]: Received request to flush runtime > journal from > PID 1 > [ 39.417453] sd 0:0:0:0: Attached scsi generic sg0 type 0 > [ 39.437258] sr 1:0:0:0: Attached scsi generic sg1 type 5 > [ 40.386562] [drm] Found bochs VGA, ID 0xb0c5. > [ 40.387412] [drm] Framebuffer size 16384 kB @ 0x1ff22000000, mmio @ > 0x1ff23000000. > [ 40.442754] [TTM] Zone kernel: Available graphics memory: 1029204 kiB > [ 40.443725] [TTM] Initializing pool allocator > [ 40.902101] Console: switching to colour frame buffer device 128x48 > [ 41.049130] bochs-drm 0000:01:02.0: fb0: bochsdrmfb frame buffer device > [ 41.051584] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:01:02.0 on > minor 0 > [ 46.598016] Adding 2008112k swap on /dev/sda4. Priority:-2 extents:1 > across:2008112k FS > [ 49.507129] EXT4-fs (sda1): mounting ext2 file system using the ext4 > subsystem > [ 49.546455] EXT4-fs (sda1): mounted filesystem without journal. Opts: > (null) > > The ip addr show result: > > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group > default > qlen 1000 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > valid_lft forever preferred_lft forever > inet6 ::1/128 scope host > valid_lft forever preferred_lft forever > 2: enp1s1f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group > default qlen > 1000 > link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff > > I have more two QEmu VMs, one with Debian pp64 and another one with Debian > s390x, > this two vms has network.. only the sparc ones that don't have I just tried booting the Debian ports installer CDROM here with "-net nic -net user" and I was able to configure a working network by hand: ~ # ip addr add 10.0.2.15/24 dev enp1s1f1 ~ # ip link set enp1s1f1 up ~ # ip route add default via 10.0.2.2 dev enp1s1f1 ~ # ping 10.0.2.2 PING 10.0.2.2 (10.0.2.2): 56 data bytes 64 bytes from 10.0.2.2: seq=0 ttl=255 time=18.387 ms 64 bytes from 10.0.2.2: seq=1 ttl=255 time=11.896 ms ^C --- 10.0.2.2 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 11.896/15.141/18.387 ms ~ # echo "nameserver 8.8.8.8" > /etc/resolv.conf ~ # nc www.google.com 80 GET / HTTP/1.0 (lots of HTTP content) This suggests that the emulation and connectivity are working, and it's something to do with the network configuration in your installed OS. ATB, Mark.

