Skip to content

Instantly share code, notes, and snippets.

@sergev
Last active October 28, 2019 20:12
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/2d579693e499c04daebe19f291248d4b to your computer and use it in GitHub Desktop.
Save sergev/2d579693e499c04daebe19f291248d4b to your computer and use it in GitHub Desktop.
Protocol of booting Debian MIPS32 on QEMU

Let's start Debian MIPS32 on QEMU:

qemu-system-mipsel \
    -cpu    4KEc \
    -M      malta \
    -m      2048 \
    -hda    hda.qcow \
    -kernel vmlinux-4.9.0-11-4kc-malta \
    -initrd initrd.img-4.9.0-11-4kc-malta \
    -append root=/dev/sda1 \
    -nographic 

Result:

[    0.000000] Linux version 4.9.0-11-4kc-malta (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 Debian 4.9.189-3 (2019-09-02)
[    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: 00019000 (MIPS 4KEc)
[    0.000000] MIPS: machine is mti,malta
[    0.000000] Software DMA cache coherency enabled
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000]  memory: 6fffffff @ 90000000 (usable)
[    0.000000] Kernel relocated by 0x01120000
 .text @ 0x81220000
 .data @ 0x817fdefc
 .bss  @ 0x81b40000
[    0.000000] Initial ramdisk at: 0x8ede0000 (18748056 bytes)
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] Primary instruction cache 2kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 2kB, 2-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000]   Normal   [mem 0x0000000001000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: rd_start=0xffffffff8ede0000 rd_size=18748056 root=/dev/sda1 console=ttyS0,38400n8r
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 230628K/262144K available (5999K kernel code, 580K rwdata, 1332K rodata, 1424K init, 276K bss, 31516K reserved, 0K cma-reserved)
[    0.000000] NR_IRQS:256
[    0.000000] CPU frequency 200.01 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19111809987 ns
[    0.000212] sched_clock: 32 bits at 100MHz, resolution 9ns, wraps every 21473943547ns
[    0.009587] Console: colour dummy device 80x25
[    0.010836] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[    0.033951] pid_max: default: 32768 minimum: 301
[    0.035429] Security Framework initialized
[    0.035694] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.037103] AppArmor: AppArmor disabled by boot time parameter
[    0.037810] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038259] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.054506] ftrace: allocating 18670 entries in 37 pages
[    0.093900] Performance counters: No available PMU.
[    0.113511] devtmpfs: initialized
[    0.121394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.122000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.128686] NET: Registered protocol family 16
[    0.142831] clocksource: pit: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1601818034827 ns
[    0.167666] vgaarb: loaded
[    0.169248] SCSI subsystem initialized
[    0.172131] PCI host bridge to bus 0000:00
[    0.172969] pci_bus 0000:00: root bus resource [mem 0x10000000-0x17ffffff]
[    0.173405] pci_bus 0000:00: root bus resource [io  0x1000-0x1fffff]
[    0.173807] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.174204] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.176437] pci 0000:00:00.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)
[    0.176959] pci 0000:00:00.0: [Firmware Bug]: reg 0x18: invalid BAR (can't size)
[    0.177304] pci 0000:00:00.0: [Firmware Bug]: reg 0x1c: invalid BAR (can't size)
[    0.177651] pci 0000:00:00.0: [Firmware Bug]: reg 0x20: invalid BAR (can't size)
[    0.178034] pci 0000:00:00.0: [Firmware Bug]: reg 0x24: invalid BAR (can't size)
[    0.181546] pci 0000:00:0a.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.181894] pci 0000:00:0a.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.182199] pci 0000:00:0a.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.182514] pci 0000:00:0a.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.184284] pci 0000:00:0a.3: quirk: [io  0x1000-0x103f] claimed by PIIX4 ACPI
[    0.184674] pci 0000:00:0a.3: quirk: [io  0x1100-0x110f] claimed by PIIX4 SMB
[    0.186544] vgaarb: device added: PCI:0000:00:12.0,decodes=io+mem,owns=none,locks=none
[    0.188558] pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x11ffffff pref]
[    0.189128] pci 0000:00:0b.0: BAR 6: assigned [mem 0x12000000-0x1203ffff pref]
[    0.189799] pci 0000:00:12.0: BAR 6: assigned [mem 0x12040000-0x1204ffff pref]
[    0.190164] pci 0000:00:12.0: BAR 1: assigned [mem 0x12050000-0x12050fff]
[    0.190544] pci 0000:00:0a.2: BAR 4: assigned [io  0x1040-0x105f]
[    0.190852] pci 0000:00:0b.0: BAR 0: assigned [io  0x1060-0x107f]
[    0.191151] pci 0000:00:0b.0: BAR 1: assigned [mem 0x12051000-0x1205101f]
[    0.191477] pci 0000:00:0a.1: BAR 4: assigned [io  0x1080-0x108f]
[    0.201008] clocksource: Switched to clocksource MIPS
[    0.278415] VFS: Disk quotas dquot_6.6.0
[    0.278789] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.304367] NET: Registered protocol family 2
[    0.310953] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.311388] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.311816] TCP: Hash tables configured (established 2048 bind 2048)
[    0.312965] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.313394] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.315523] NET: Registered protocol family 1
[    0.316678] PCI: Enabling device 0000:00:0a.2 (0000 -> 0001)
[    0.325770] Unpacking initramfs...
[    1.032860] random: fast init done
[    1.504608] Freeing initrd memory: 18308K
[    1.509733] audit: initializing netlink subsys (disabled)
[    1.511052] audit: type=2000 audit(1572289355.488:1): initialized
[    1.514896] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    1.515760] zbud: loaded
[    1.539400] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.540439] io scheduler noop registered
[    1.540680] io scheduler deadline registered
[    1.541362] io scheduler cfq registered (default)
[    1.543093] PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
[    1.544560] cirrusfb 0000:00:12.0: Cirrus Logic chipset on PCI bus, RAM (4096 kB) at 0x10000000
[    1.786980] Console: switching to colour frame buffer device 80x30
[    1.803255] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.810580] console [ttyS0] disabled
[    1.833656] serial8250.0: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.835372] console [ttyS0] enabled
[    1.835372] console [ttyS0] enabled
[    1.835991] bootconsole [uart8250] disabled
[    1.835991] bootconsole [uart8250] disabled
[    1.859518] serial8250.0: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    1.882278] serial8250.0: ttyS2 at MMIO 0x1f000900 (irq = 20, base_baud = 230400) is a 16550A
[    1.885542] mousedev: PS/2 mouse device common for all mice
[    1.889117] rtc_cmos 70.rtc: rtc core: registered rtc_cmos as rtc0
[    1.890158] rtc_cmos 70.rtc: alarms up to one day, 242 bytes nvram
[    1.892249] ledtrig-cpu: registered to indicate activity on CPUs
[    1.893491] NET: Registered protocol family 10
[    1.900953] mip6: Mobile IPv6
[    1.901255] NET: Registered protocol family 17
[    1.901660] mpls_gso: MPLS GSO support
[    1.903526] registered taskstats version 1
[    1.904571] zswap: loaded using pool lzo/zbud
[    1.908124] ima: No TPM chip found, activating TPM-bypass!
[    1.908445] ima: Allocated hash algorithm: sha256
[    1.912759] rtc_cmos 70.rtc: setting system clock to 2019-10-28 19:02:37 UTC (1572289357)
[    1.995813] Freeing unused kernel memory: 1424K
[    1.996059] This architecture does not have kernel memory protection.
Loading, please wait...
starting version 232
[    2.722860] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.738853] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.799344] random: udevadm: uninitialized urandom read (16 bytes read)
[    3.076467] PCI: Enabling device 0000:00:0a.1 (0000 -> 0001)
[    3.083543] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
[    3.124237] usbcore: registered new interface driver usbfs
[    3.144920] usbcore: registered new interface driver hub
[    3.145604] usbcore: registered new device driver usb
[    3.153044] scsi host0: ata_piix
[    3.165243] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.167592] uhci_hcd: USB Universal Host Controller Interface driver
[    3.168230] scsi host1: ata_piix
[    3.169219] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0x1080 irq 14
[    3.169638] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0x1088 irq 15
[    3.185798] PCI: Enabling device 0000:00:0b.0 (0000 -> 0003)
[    3.187355] pcnet32: PCnet/PCI II 79C970A at 0x1060, 52:54:00:12:34:56 assigned IRQ 10
[    3.195699] pcnet32: eth0: registered as PCnet/PCI II 79C970A
[    3.205203] piix4_smbus 0000:00:0a.3: SMBus Host Controller at 0x1100, revision 0
[    3.209110] uhci_hcd 0000:00:0a.2: UHCI Host Controller
[    3.209920] uhci_hcd 0000:00:0a.2: new USB bus registered, assigned bus number 1
[    3.210837] uhci_hcd 0000:00:0a.2: detected 2 ports
[    3.211458] uhci_hcd 0000:00:0a.2: irq 11, io base 0x00001040
[    3.213223] pcnet32: 1 cards_found
[    3.255530] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    3.255964] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.256341] usb usb1: Product: UHCI Host Controller
[    3.256612] usb usb1: Manufacturer: Linux 4.9.0-11-4kc-malta uhci_hcd
[    3.257097] usb usb1: SerialNumber: 0000:00:0a.2
[    3.272888] hub 1-0:1.0: USB hub found
[    3.284054] hub 1-0:1.0: 2 ports detected
[    3.354373] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[    3.358181] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
[    3.358547] ata1.00: 16777216 sectors, multi 16: LBA48 
[    3.359489] ata2.00: configured for UDMA/33
[    3.363352] ata1.00: configured for UDMA/33
[    3.398878] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    3.416709] sd 0:0:0:0: [sda] 16777216 512-byte logical blocks: (8.59 GB/8.00 GiB)
[    3.419441] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
[    3.429263] sd 0:0:0:0: [sda] Write Protect is off
[    3.434561] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.493873]  sda: sda1 sda2 < sda5 >
[    3.574566] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.383278] pcnet32 0000:00:0b.0 enp0s11: renamed from eth0
[    4.503425] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    4.504002] 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 ... done.
[    5.227996] PM: Starting manual resume from disk
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[   37.889454] ata1: lost interrupt (Status 0x50)
[   37.891908] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[   37.893490] ata1.00: failed command: READ DMA
[   37.894484] ata1.00: cmd c8/00:08:00:08:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[   37.894484]          res 40/00:01:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[   37.896433] ata1.00: status: { DRDY }
[   37.897678] ata1: soft resetting link
[   38.059552] ata1.00: configured for UDMA/33
[   38.061739] ata1: EH complete
[/sbin/fsck.ext4 (1) -- /dev/sda1] fsck.ext4 -a -C0 /dev/sda1 
/dev/sda1: clean, 45497/499712 files, 368196/1998848 blocks
done.
[   38.381507] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   39.183942] ip_tables: (C) 2000-2006 Netfilter Core Team
[   39.274953] 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)
[   39.278692] systemd[1]: Detected architecture mips.

Welcome to Debian GNU/Linux 9 (stretch)!

[   39.286273] systemd[1]: Set hostname to <debian>.
[   39.885283] random: crng init done
[   39.885535] random: 7 urandom warning(s) missed due to ratelimiting
[   40.689803] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   40.701932] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[   40.712035] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   40.728940] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   40.737804] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[   40.746282] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[   40.753481] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Journal Socket.
         Starting Create list of required st…ce nodes for the current kernel...
[  OK  ] Reached target Slices.
         Mounting Debug File System...
[  OK  ] Listening on Journal Audit Socket.
         Starting Load Kernel Modules...
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Listening on udev Kernel Socket.
         Starting Journal Service...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Reached target Paths.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
[   42.020494] 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 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 Load/Save Random Seed.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started udev Kernel Device Manager.
[   44.485876] systemd-journald[142]: 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.
[   45.836351] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   45.857002] sr 1:0:0:0: Attached scsi generic sg1 type 5
[  OK  ] Found device /dev/ttyS0.
[   46.734730] [drm] Initialized
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Found device QEMU_HARDDISK 5.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Time Synchronized.
         Activating swap /dev/disk/by-uuid/d…375-4f4b-421b-9480-6b8438990c01...
[   50.561816] Adding 390140k swap on /dev/sda5.  Priority:-1 extents:1 across:390140k FS
[  OK  ] Activated swap /dev/disk/by-uuid/d1757375-4f4b-421b-9480-6b8438990c01.
[  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  ] 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...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
         Starting System Logging Service...
[  OK  ] Started Login Service.
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Reached target Network is Online.
         Starting Daily apt download activities...
         Starting LSB: exim Mail Transport Agent...
[  OK  ] Started System Logging Service.
[   53.659409] pcnet32 0000:00:0b.0 enp0s11: link up
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Fri Oct 25 17:34:43 PDT 2019 on ttyS0
Linux debian 4.9.0-11-4kc-malta #1 Debian 4.9.189-3 (2019-09-02) mips

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:         250360       17392      154104         720       78864      223760
Swap:        390140           0      390140

root@debian:~# df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev              115312       0    115312   0% /dev
tmpfs              25036     720     24316   3% /run
/dev/sda1        7804368 1281856   6106360  18% /
tmpfs             125180       0    125180   0% /dev/shm
tmpfs               5120       0      5120   0% /run/lock
tmpfs             125180       0    125180   0% /sys/fs/cgroup
tmpfs              25036       0     25036   0% /run/user/0

root@debian:~# cat /proc/cpuinfo
system type		: MIPS Malta
machine			: mti,malta
processor		: 0
cpu model		: MIPS 4KEc V0.0
BogoMIPS		: 989.18
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 16
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 1, address/irw mask: [0x0ff8]
isa			: mips1 mips2 mips32r1 mips32r2
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  381M  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: 32 bits
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 244MiB
     *-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-11-4kc-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=34f839f4
           *-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: 000e8777-a940-4b6c-b1de-3d355a803276
                size: 7808MiB
                capacity: 7808MiB
                capabilities: primary journaled extended_attributes large_files huge_files dir_nlink 64bit extents ext4 ext2 initialized
                configuration: created=2019-10-24 19:34:21 filesystem=ext4 lastmountpoint=/ modified=2019-10-28 12:03:13 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2019-10-25 17:34:20 state=mounted
           *-volume:1
                description: Extended partition
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                size: 381MiB
                capacity: 381MiB
                capabilities: primary extended partitioned partitioned:extended
              *-logicalvolume
                   description: Linux swap volume
                   physical id: 5
                   logical name: /dev/sda5
                   version: 1
                   serial: d1757375-4f4b-421b-9480-6b8438990c01
                   size: 381MiB
                   capacity: 381MiB
                   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-mipsel-on-qemu for details about installing Debian MIPS32 on QEMU.

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