Skip to content

Instantly share code, notes, and snippets.

@sergev
Last active January 12, 2019 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergev/9f7b35ffffafb3c955c729b89421e9b6 to your computer and use it in GitHub Desktop.
Save sergev/9f7b35ffffafb3c955c729b89421e9b6 to your computer and use it in GitHub Desktop.
Protocol of booting Debian MIPS64 on QEMU

Let's start Debian MIPS64 on QEMU:

qemu-system-mips64el \
    -cpu    5KEf \
    -M      malta \
    -m      2048 \
    -hda    hda.qcow \
    -kernel vmlinux-4.9.0-8-5kc-malta \
    -initrd initrd.img-4.9.0-8-5kc-malta \
    -append root=/dev/sda1 nokaslr \
    -nographic 

Result:

[    0.000000] Linux version 4.9.0-8-5kc-malta (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 Debian 4.9.130-2 (2018-10-27)
[    0.000000] earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] Config serial console: console=ttyS0,38400n8r
[    0.000000] CPU0 revision is: 00018900 (MIPS 5KE)
[    0.000000] FPU revision is: 00738900
[    0.000000] Checking for the multiply/shift bug... [    0.000000] no.
[    0.000000] Checking for the daddiu bug... [    0.000000] no.
[    0.000000] MIPS: machine is mti,malta
[    0.000000] Software DMA cache coherency enabled
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0000000010000000 @ 0000000000000000 (usable)
[    0.000000]  memory: 0000000070000000 @ 0000000090000000 (usable)
[    0.000000] Initial ramdisk at: 0x9000000000b70000 (19313216 bytes)
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] Primary instruction cache 8kB, VIPT, 2-way, linesize 32 bytes.
[    0.000000] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   node   0: [mem 0x0000000090000000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000ffffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 507904
[    0.000000] Kernel command line: rd_start=0xffffffff80b70000 rd_size=19313216 root=/dev/sda1 nokaslr console=ttyS0,38400n8r
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Cache parity protection disabled
[    0.000000] Memory: 1997896K/2097152K available (6135K kernel code, 1001K rwdata, 1600K rodata, 1540K init, 360K bss, 99256K reserved, 0K cma-reserved)
[    0.000000] NR_IRQS:256
[    0.000000] CPU frequency 200.00 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112403403 ns
[    0.000140] sched_clock: 32 bits at 100MHz, resolution 9ns, wraps every 21474610171ns
[    0.005986] Console: colour dummy device 80x25
[    0.006790] Calibrating delay loop... 1007.61 BogoMIPS (lpj=2015232)
[    0.081663] pid_max: default: 32768 minimum: 301
[    0.082839] Security Framework initialized
[    0.083035] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.083940] AppArmor: AppArmor disabled by boot time parameter
[    0.084684] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.084957] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.095028] Checking for the daddi bug... [    0.095284] no.
[    0.095500] ftrace: allocating 19173 entries in 75 pages
[    0.151051] Performance counters: Either hardware does not support performance counters, or not yet implemented.
[    0.163845] devtmpfs: initialized
[    0.169505] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.169935] futex hash table entries: 256 (order: 0, 6144 bytes)
[    0.174494] NET: Registered protocol family 16
[    0.188079] clocksource: pit: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1601818034827 ns
[    0.202688] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.208645] vgaarb: loaded
[    0.209737] SCSI subsystem initialized
[    0.211777] PCI host bridge to bus 0000:00
[    0.212402] pci_bus 0000:00: root bus resource [mem 0x10000000-0x17ffffff]
[    0.212688] pci_bus 0000:00: root bus resource [io  0x1000-0x1fffff]
[    0.212963] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.213234] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.214571] pci 0000:00:00.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)
[    0.214829] pci 0000:00:00.0: [Firmware Bug]: reg 0x18: invalid BAR (can't size)
[    0.215077] pci 0000:00:00.0: [Firmware Bug]: reg 0x1c: invalid BAR (can't size)
[    0.215348] pci 0000:00:00.0: [Firmware Bug]: reg 0x20: invalid BAR (can't size)
[    0.215644] pci 0000:00:00.0: [Firmware Bug]: reg 0x24: invalid BAR (can't size)
[    0.218166] pci 0000:00:0a.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.218431] pci 0000:00:0a.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.218678] pci 0000:00:0a.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.218927] pci 0000:00:0a.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.220656] pci 0000:00:0a.3: quirk: [io  0x1000-0x103f] claimed by PIIX4 ACPI
[    0.220932] pci 0000:00:0a.3: quirk: [io  0x1100-0x110f] claimed by PIIX4 SMB
[    0.222551] vgaarb: device added: PCI:0000:00:12.0,decodes=io+mem,owns=none,locks=none
[    0.223853] pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x11ffffff pref]
[    0.224249] pci 0000:00:0b.0: BAR 6: assigned [mem 0x12000000-0x1203ffff pref]
[    0.224628] pci 0000:00:12.0: BAR 6: assigned [mem 0x12040000-0x1204ffff pref]
[    0.224910] pci 0000:00:12.0: BAR 1: assigned [mem 0x12050000-0x12050fff]
[    0.225173] pci 0000:00:0a.2: BAR 4: assigned [io  0x1040-0x105f]
[    0.225401] pci 0000:00:0b.0: BAR 0: assigned [io  0x1060-0x107f]
[    0.225618] pci 0000:00:0b.0: BAR 1: assigned [mem 0x12051000-0x1205101f]
[    0.225856] pci 0000:00:0a.1: BAR 4: assigned [io  0x1080-0x108f]
[    0.231687] clocksource: Switched to clocksource MIPS
[    0.310657] VFS: Disk quotas dquot_6.6.0
[    0.310953] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.334198] NET: Registered protocol family 2
[    0.338626] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.339090] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[    0.339542] TCP: Hash tables configured (established 16384 bind 16384)
[    0.340889] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.341206] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.342761] NET: Registered protocol family 1
[    0.343488] PCI: Enabling device 0000:00:0a.2 (0000 -> 0001)
[    0.348113] Unpacking initramfs...
[    1.023656] random: fast init done
[    1.608326] Freeing initrd memory: 18860K
[    1.611751] audit: initializing netlink subsys (disabled)
[    1.612581] audit: type=2000 audit(1547268210.599:1): initialized
[    1.615117] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    1.615775] zbud: loaded
[    1.632630] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.633372] io scheduler noop registered
[    1.633552] io scheduler deadline registered
[    1.633872] io scheduler cfq registered (default)
[    1.635047] PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
[    1.636188] cirrusfb 0000:00:12.0: Cirrus Logic chipset on PCI bus, RAM (4096 kB) at 0x10000000
[    1.864142] Console: switching to colour frame buffer device 80x30
[    1.883863] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.888950] console [ttyS0] disabled
[    1.911899] serial8250.0: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.912939] console [ttyS0] enabled
[    1.912939] console [ttyS0] enabled
[    1.913336] bootconsole [uart8250] disabled
[    1.913336] bootconsole [uart8250] disabled
[    1.935165] serial8250.0: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    1.957723] serial8250.0: ttyS2 at MMIO 0x1f000900 (irq = 20, base_baud = 230400) is a 16550A
[    1.960483] mousedev: PS/2 mouse device common for all mice
[    1.962772] rtc_cmos 70.rtc: rtc core: registered rtc_cmos as rtc0
[    1.963500] rtc_cmos 70.rtc: alarms up to one day, 242 bytes nvram
[    1.965064] ledtrig-cpu: registered to indicate activity on CPUs
[    1.966097] NET: Registered protocol family 10
[    1.971033] mip6: Mobile IPv6
[    1.971225] NET: Registered protocol family 17
[    1.971478] mpls_gso: MPLS GSO support
[    1.973385] registered taskstats version 1
[    1.974051] zswap: loaded using pool lzo/zbud
[    1.976298] ima: No TPM chip found, activating TPM-bypass!
[    1.976541] ima: Allocated hash algorithm: sha256
[    1.979153] rtc_cmos 70.rtc: setting system clock to 2019-01-12 04:43:32 UTC (1547268212)
[    1.999179] Freeing unused kernel memory: 1540K
[    1.999367] This architecture does not have kernel memory protection.
Loading, please wait...
starting version 232
[    2.578328] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.587314] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.592356] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.861906] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
[    2.862330] PCI: Enabling device 0000:00:0b.0 (0000 -> 0003)
[    2.863589] pcnet32: PCnet/PCI II 79C970A at 0x1060, 52:54:00:12:34:56 assigned IRQ 10
[    2.889959] pcnet32: eth0: registered as PCnet/PCI II 79C970A
[    2.900210] PCI: Enabling device 0000:00:0a.1 (0000 -> 0001)
[    2.903976] pcnet32: 1 cards_found
[    2.919164] usbcore: registered new interface driver usbfs
[    2.919567] usbcore: registered new interface driver hub
[    2.940397] usbcore: registered new device driver usb
[    2.943556] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.947987] scsi host0: ata_piix
[    2.956066] scsi host1: ata_piix
[    2.956837] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0x1080 irq 14
[    2.957121] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0x1088 irq 15
[    2.957950] piix4_smbus 0000:00:0a.3: SMBus Host Controller at 0x1100, revision 0
[    2.973949] uhci_hcd: USB Universal Host Controller Interface driver
[    2.975346] uhci_hcd 0000:00:0a.2: UHCI Host Controller
[    2.996645] uhci_hcd 0000:00:0a.2: new USB bus registered, assigned bus number 1
[    2.997264] uhci_hcd 0000:00:0a.2: detected 2 ports
[    2.997712] uhci_hcd 0000:00:0a.2: irq 11, io base 0x00001040
[    3.022624] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    3.022892] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.023188] usb usb1: Product: UHCI Host Controller
[    3.023374] usb usb1: Manufacturer: Linux 4.9.0-8-5kc-malta uhci_hcd
[    3.023628] usb usb1: SerialNumber: 0000:00:0a.2
[    3.035524] hub 1-0:1.0: USB hub found
[    3.045645] hub 1-0:1.0: 2 ports detected
[    3.131278] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
[    3.131517] ata1.00: 16777216 sectors, multi 16: LBA48 
[    3.133149] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[    3.133930] ata2.00: configured for UDMA/33
[    3.144034] ata1.00: configured for UDMA/33
[    3.166098] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    3.183497] sd 0:0:0:0: [sda] 16777216 512-byte logical blocks: (8.59 GB/8.00 GiB)
[    3.185361] sd 0:0:0:0: [sda] Write Protect is off
[    3.185945] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.195274] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
[    3.225129]  sda: sda1 sda2 < sda5 >
[    3.252191] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.408864] pcnet32 0000:00:0b.0 enp0s11: renamed from eth0
[    3.499215] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    3.499839] cdrom: Uniform CD-ROM driver Revision: 3.20
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [    4.104988] PM: Starting manual resume from disk
done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1 
/dev/sda1: clean, 28028/495808 files, 267830/1981440 blocks
done.
[    4.668067] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[    5.378610] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.425731] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    5.427786] systemd[1]: Detected architecture mips64.

Welcome to Debian GNU/Linux 9 (stretch)!

[    5.456667] systemd[1]: Set hostname to <debian>.
[    6.474215] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    6.478708] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    6.480600] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    6.482375] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    6.484313] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    6.485551] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    6.487486] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Created slice System Slice.
[  OK  ] Reached target Slices.
         Starting Load Kernel Modules...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Mounting Huge Pages File System...
         Starting Remount Root and Kernel File Systems...
         Starting Journal Service...
         Mounting Debug File System...
         Starting Create list of required st…ce nodes for the current kernel...
[    6.809954] random: crng init done
[    6.810139] random: 7 urandom warning(s) missed due to ratelimiting
         Mounting POSIX Message Queue File System...
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
[    7.607204] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started udev Kernel Device Manager.
[    9.734316] systemd-journald[138]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started udev Coldplug all Devices.
[   10.528058] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   10.528640] sr 1:0:0:0: Attached scsi generic sg1 type 5
[  OK  ] Found device /dev/ttyS0.
[   11.220807] [drm] Initialized
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Found device QEMU_HARDDISK 5.
         Activating swap /dev/disk/by-uuid/f…97f-caf2-4eeb-8935-834a6ec5e6cc...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[   14.436377] Adding 459772k swap on /dev/sda5.  Priority:-1 extents:1 across:459772k FS
[  OK  ] Activated swap /dev/disk/by-uuid/f7fa997f-caf2-4eeb-8935-834a6ec5e6cc.
[  OK  ] Found device 79c970 [PCnet32 LANCE].
[  OK  ] Started ifup for enp0s11.
[  OK  ] Reached target Swap.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
         Starting Login Service...
         Starting System Logging Service...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started System Logging Service.
         Starting Cleanup of Temporary Directories...
[  OK  ] Started Login Service.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Cleanup of Temporary Directories.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[   18.328380] pcnet32 0000:00:0b.0 enp0s11: link up
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Fri Jan 11 20:24:34 PST 2019 on ttyS0
Linux debian 4.9.0-8-5kc-malta #1 Debian 4.9.130-2 (2018-10-27) mips64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# free
              total        used        free      shared  buff/cache   available
Mem:        2018296       23768     1944084        2724       50444     1900356
Swap:        459772           0      459772
root@debian:~# df
Filesystem     1K-blocks   Used Available Use% Mounted on
udev              998948      0    998948   0% /dev
tmpfs             201832   2724    199108   2% /run
/dev/sda1        7735712 881372   6441668  13% /
tmpfs            1009148      0   1009148   0% /dev/shm
tmpfs               5120      0      5120   0% /run/lock
tmpfs            1009148      0   1009148   0% /sys/fs/cgroup
tmpfs             201828      0    201828   0% /run/user/0
root@debian:~# cat /proc/cpuinfo
system type		: MIPS Malta
machine			: mti,malta
processor		: 0
cpu model		: MIPS 5KE V0.0  FPU V0.0
BogoMIPS		: 1007.61
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 32
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 1, address/irw mask: [0x0ff8]
isa			: mips1 mips2 mips3 mips4 mips5 mips32r1 mips32r2 mips64r1 mips64r2
ASEs implemented	:
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

root@debian:~# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0    8G  0 disk 
├─sda1   8:1    0  7.6G  0 part /
├─sda2   8:2    0    1K  0 part 
└─sda5   8:5    0  449M  0 part [SWAP]
sr0     11:0    1 1024M  0 rom 
root@debian:~# lspci
00:00.0 Host bridge: Marvell Technology Group Ltd. GT-64120/64120A/64121A System Controller (rev 10)
00:0a.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA
00:0a.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE
00:0a.2 USB controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:0a.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:0b.0 Ethernet controller: Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] (rev 10)
00:12.0 VGA compatible controller: Cirrus Logic GD 5446
root@debian:~# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@debian:~# lshw
debian                      
    description: Computer
    width: 64 bits
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 1970MiB
     *-cpu
          physical id: 1
          bus info: cpu@0
     *-pci
          description: Host bridge
          product: GT-64120/64120A/64121A System Controller
          vendor: Marvell Technology Group Ltd.
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 10
          width: 32 bits
          clock: 33MHz
        *-isa
             description: ISA bridge
             product: 82371AB/EB/MB PIIX4 ISA
             vendor: Intel Corporation
             physical id: a
             bus info: pci@0000:00:0a.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: isa
             configuration: latency=0
        *-ide
             description: IDE interface
             product: 82371AB/EB/MB PIIX4 IDE
             vendor: Intel Corporation
             physical id: a.1
             bus info: pci@0000:00:0a.1
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: ide bus_master
             configuration: driver=ata_piix latency=0
             resources: irq:0 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:1080(size=16)
        *-usb
             description: USB controller
             product: 82371AB/EB/MB PIIX4 USB
             vendor: Intel Corporation
             physical id: a.2
             bus info: pci@0000:00:0a.2
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0
             resources: irq:11 ioport:1040(size=32)
           *-usbhost
                product: UHCI Host Controller
                vendor: Linux 4.9.0-8-5kc-malta uhci_hcd
                physical id: 1
                bus info: usb@1
                logical name: usb1
                version: 4.09
                capabilities: usb-1.10
                configuration: driver=hub slots=2 speed=12Mbit/s
        *-bridge
             description: Bridge
             product: 82371AB/EB/MB PIIX4 ACPI
             vendor: Intel Corporation
             physical id: a.3
             bus info: pci@0000:00:0a.3
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: bridge
             configuration: driver=piix4_smbus latency=0
             resources: irq:0
        *-network
             description: Ethernet interface
             product: 79c970 [PCnet32 LANCE]
             vendor: Advanced Micro Devices, Inc. [AMD]
             physical id: b
             bus info: pci@0000:00:0b.0
             logical name: enp0s11
             version: 10
             serial: 52:54:00:12:34:56
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master rom ethernet physical
             configuration: broadcast=yes driver=pcnet32 driverversion=1.35 ip=10.0.2.15 latency=0 link=yes maxlatency=255 mingnt=6 multicast=yes
             resources: irq:10 ioport:1060(size=32) memory:12051000-1205101f memory:12000000-1203ffff
        *-display
             description: VGA compatible controller
             product: GD 5446
             vendor: Cirrus Logic
             physical id: 12
             bus info: pci@0000:00:12.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: vga_controller rom
             configuration: driver=cirrusfb latency=0
             resources: irq:0 memory:10000000-11ffffff memory:12050000-12050fff memory:12040000-1204ffff
     *-scsi:0
          physical id: 2
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: QEMU HARDDISK
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: 2.5+
             serial: QM00001
             size: 8GiB (8589MB)
             capabilities: partitioned partitioned:dos
             configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=1d0e6b3d
           *-volume:0
                description: EXT4 volume
                vendor: Linux
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                logical name: /
                version: 1.0
                serial: cb277e21-541d-435c-8c8a-0676b3863231
                size: 7740MiB
                capacity: 7740MiB
                capabilities: primary journaled extended_attributes large_files huge_files dir_nlink 64bit extents ext4 ext2 initialized
                configuration: created=2019-01-11 17:47:12 filesystem=ext4 lastmountpoint=/mnt modified=2019-01-11 20:43:35 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2019-01-11 20:21:16 state=mounted
           *-volume:1
                description: Extended partition
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                size: 449MiB
                capacity: 449MiB
                capabilities: primary extended partitioned partitioned:extended
              *-logicalvolume
                   description: Linux swap volume
                   physical id: 5
                   logical name: /dev/sda5
                   version: 1
                   serial: f7fa997f-caf2-4eeb-8935-834a6ec5e6cc
                   size: 449MiB
                   capacity: 449MiB
                   capabilities: nofs swap initialized
                   configuration: filesystem=swap pagesize=4096
     *-scsi:1
          physical id: 3
          logical name: scsi1
          capabilities: emulated
        *-cdrom
             description: DVD reader
             product: QEMU DVD-ROM
             vendor: QEMU
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/dvd
             logical name: /dev/sr0
             version: 2.5+
             capabilities: removable audio dvd
             configuration: ansiversion=5 status=nodisc
root@debian:~# 

See debian-mips64el-on-qemu for details about installing Debian MIPS64 on QEMU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment