[PATCH v10 00/15] staging: mt7621-pci: avoid custom pci config read and writes
Sergio Paracuellos
sergio.paracuellos at gmail.com
Mon Aug 6 05:34:38 UTC 2018
On Mon, Aug 6, 2018 at 2:21 AM, NeilBrown <neil at brown.name> wrote:
> On Fri, Aug 03 2018, Sergio Paracuellos wrote:
>
>> This patch series include an attempt to avoid the use of custom
>> read and writes in driver code and use PCI subsystem common ones.
>>
>> In order to do this 'map_bus' callback is implemented and also
>> data structures for driver are included. The regs base address
>> ranges and data is being readed from device tree and the driver
>> gets clean a lot of code.
>>
>> This patchet also removes all legacy PCI code using now PCI_DRIVERS_GENERIC
>> kernel api.
>>
>> Changes in v10:
>> - PATCH 1: Do 'ioremap' directly using 'ranges.cpu_addr' from the
>> io resource and add it directly as a resource to the resources list
>> like mips pci-legacy code do for this. We cannot do anything else since
>> using new kernel pci generic apis (call to 'devm_of_pci_get_host_bridge_resources')
>> we get bad io resource getting 'OF_BAD_ADDR' because of the fact that the
>> io resource for this platform starts in 0x1e160000 which is higher than
>> IO_SPACE_LIMIT (0xFFFF). Because of this io resource is not added to the resources
>> list and system gets into a not working state.
>> - Other patches rebased and adapted to this changes.
>
> And...... we have a winner !!!
>
> Tested-by: NeilBrown <neil at brown.name>
>
> I haven't actually looked at the code - just compiled, booted, saw that
> the SATA drive appears to work.
Thanks Neil, this would not have been possible without your effort and help.
>
> Thanks,
> NeilBrown
Best regards,
Sergio Paracuellos
>
>
> Starting kernel ...
>
> [ 0.000000] Linux version 4.18.0-rc7+ (neilb at noble) (gcc version 7.2.0 (GCC)) #279 SMP Mon Aug 6 10:17:08 AEST 2018
> [ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
> [ 0.000000] bootconsole [early0] enabled
> [ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
> [ 0.000000] MIPS: machine is GB-PC1
> [ 0.000000] Determined physical RAM map:
> [ 0.000000] memory: 1c000000 @ 00000000 (usable)
> [ 0.000000] memory: 04000000 @ 20000000 (usable)
> [ 0.000000] Initrd not found or empty - disabling initrd
> [ 0.000000] VPE topology {2,2} total 4
> [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [ 0.000000] Zone ranges:
> [ 0.000000] Normal [mem 0x0000000000000000-0x000000001fffffff]
> [ 0.000000] HighMem [mem 0x0000000020000000-0x0000000023ffffff]
> [ 0.000000] Movable zone start for each node
> [ 0.000000] Early memory node ranges
> [ 0.000000] node 0: [mem 0x0000000000000000-0x000000001bffffff]
> [ 0.000000] node 0: [mem 0x0000000020000000-0x0000000023ffffff]
> [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
> [ 0.000000] random: get_random_bytes called from start_kernel+0xb4/0x4ec with crng_init=0
> [ 0.000000] percpu: Embedded 15 pages/cpu @(ptrval) s30480 r8192 d22768 u61440
> [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
> [ 0.000000] Kernel command line: console=ttyS0,57600
> [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> [ 0.000000] Writing ErrCtl register=000108a2
> [ 0.000000] Readback ErrCtl register=000108a2
> [ 0.000000] Memory: 504788K/524288K available (6135K kernel code, 228K rwdata, 1052K rodata, 6524K init, 241K bss, 19500K reserved, 0K cma-reserved, 65536K highmem)
> [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> [ 0.000000] Hierarchical RCU implementation.
> [ 0.000000] NR_IRQS: 256
> [ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcf914c9718, max_idle_ns: 440795231327 ns
> [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
> [ 0.010000] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
> [ 0.070000] pid_max: default: 32768 minimum: 301
> [ 0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [ 0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [ 0.100000] Hierarchical SRCU implementation.
> [ 0.110000] smp: Bringing up secondary CPUs ...
> [ 0.120000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [ 0.120000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [ 0.120000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [ 0.120000] CPU1 revision is: 0001992f (MIPS 1004Kc)
> [ 0.180000] Synchronize counters for CPU 1: done.
> [ 0.220000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [ 0.220000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [ 0.220000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [ 0.220000] CPU2 revision is: 0001992f (MIPS 1004Kc)
> [ 0.280000] Synchronize counters for CPU 2: done.
> [ 0.320000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
> [ 0.320000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
> [ 0.320000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
> [ 0.320000] CPU3 revision is: 0001992f (MIPS 1004Kc)
> [ 0.380000] Synchronize counters for CPU 3: done.
> [ 0.420000] smp: Brought up 1 node, 4 CPUs
> [ 0.430000] devtmpfs: initialized
> [ 0.480000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [ 0.490000] futex hash table entries: 1024 (order: 3, 32768 bytes)
> [ 0.500000] pinctrl core: initialized pinctrl subsystem
> [ 0.510000] NET: Registered protocol family 16
> [ 0.870000] ***** Xtal 40MHz *****
> [ 0.880000] Port 0 N_FTS = 1b102800
> [ 0.880000] Port 1 N_FTS = 1b102800
> [ 0.890000] Port 2 N_FTS = 1b102800
> [ 1.950000] PCIE0 enabled
> [ 1.950000] PCIE1 enabled
> [ 1.960000] PCIE2 enabled
> [ 1.960000] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
> [ 1.980000] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
> [ 1.990000] pci_bus 0000:00: root bus resource [io 0xffffffff]
> [ 2.000000] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
> [ 2.020000] pci_bus 0000:00: root bus resource [bus 00-ff]
> [ 2.030000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [ 2.050000] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [ 2.060000] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
> [ 2.080000] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
> [ 2.100000] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
> [ 2.110000] pci 0000:00:02.0: PCI bridge to [bus 03-ff]
> [ 2.120000] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
> [ 2.130000] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
> [ 2.150000] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
> [ 2.160000] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
> [ 2.170000] pci 0000:00:02.0: BAR 0: no space for [mem size 0x80000000]
> [ 2.190000] pci 0000:00:02.0: BAR 0: failed to assign [mem size 0x80000000]
> [ 2.200000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
> [ 2.210000] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
> [ 2.230000] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
> [ 2.240000] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
> [ 2.250000] pci 0000:00:02.0: BAR 8: assigned [mem 0x60400000-0x604fffff]
> [ 2.270000] pci 0000:00:02.0: BAR 9: assigned [mem 0x60500000-0x605fffff pref]
> [ 2.280000] pci 0000:00:00.0: BAR 1: assigned [mem 0x60600000-0x6060ffff]
> [ 2.290000] pci 0000:00:01.0: BAR 1: assigned [mem 0x60610000-0x6061ffff]
> [ 2.310000] pci 0000:00:02.0: BAR 1: assigned [mem 0x60620000-0x6062ffff]
> [ 2.320000] pci 0000:00:00.0: BAR 7: no space for [io size 0x1000]
> [ 2.330000] pci 0000:00:00.0: BAR 7: failed to assign [io size 0x1000]
> [ 2.350000] pci 0000:00:01.0: BAR 7: no space for [io size 0x1000]
> [ 2.360000] pci 0000:00:01.0: BAR 7: failed to assign [io size 0x1000]
> [ 2.370000] pci 0000:00:02.0: BAR 7: no space for [io size 0x1000]
> [ 2.380000] pci 0000:00:02.0: BAR 7: failed to assign [io size 0x1000]
> [ 2.400000] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff]
> [ 2.410000] pci 0000:01:00.0: BAR 4: no space for [io size 0x0010]
> [ 2.420000] pci 0000:01:00.0: BAR 4: failed to assign [io size 0x0010]
> [ 2.440000] pci 0000:01:00.0: BAR 0: no space for [io size 0x0008]
> [ 2.450000] pci 0000:01:00.0: BAR 0: failed to assign [io size 0x0008]
> [ 2.460000] pci 0000:01:00.0: BAR 2: no space for [io size 0x0008]
> [ 2.470000] pci 0000:01:00.0: BAR 2: failed to assign [io size 0x0008]
> [ 2.490000] pci 0000:01:00.0: BAR 1: no space for [io size 0x0004]
> [ 2.500000] pci 0000:01:00.0: BAR 1: failed to assign [io size 0x0004]
> [ 2.510000] pci 0000:01:00.0: BAR 3: no space for [io size 0x0004]
> [ 2.520000] pci 0000:01:00.0: BAR 3: failed to assign [io size 0x0004]
> [ 2.540000] pci 0000:00:00.0: PCI bridge to [bus 01]
> [ 2.550000] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
> [ 2.560000] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
> [ 2.570000] pci 0000:02:00.0: BAR 5: assigned [mem 0x60200000-0x602001ff]
> [ 2.590000] pci 0000:02:00.0: BAR 4: no space for [io size 0x0010]
> [ 2.600000] pci 0000:02:00.0: BAR 4: failed to assign [io size 0x0010]
> [ 2.610000] pci 0000:02:00.0: BAR 0: no space for [io size 0x0008]
> [ 2.620000] pci 0000:02:00.0: BAR 0: failed to assign [io size 0x0008]
> [ 2.640000] pci 0000:02:00.0: BAR 2: no space for [io size 0x0008]
> [ 2.650000] pci 0000:02:00.0: BAR 2: failed to assign [io size 0x0008]
> [ 2.660000] pci 0000:02:00.0: BAR 1: no space for [io size 0x0004]
> [ 2.670000] pci 0000:02:00.0: BAR 1: failed to assign [io size 0x0004]
> [ 2.690000] pci 0000:02:00.0: BAR 3: no space for [io size 0x0004]
> [ 2.700000] pci 0000:02:00.0: BAR 3: failed to assign [io size 0x0004]
> [ 2.710000] pci 0000:00:01.0: PCI bridge to [bus 02]
> [ 2.720000] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
> [ 2.740000] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref]
> [ 2.750000] pci 0000:03:00.0: BAR 5: assigned [mem 0x60400000-0x604001ff]
> [ 2.760000] pci 0000:03:00.0: BAR 4: no space for [io size 0x0010]
> [ 2.780000] pci 0000:03:00.0: BAR 4: failed to assign [io size 0x0010]
> [ 2.790000] pci 0000:03:00.0: BAR 0: no space for [io size 0x0008]
> [ 2.800000] pci 0000:03:00.0: BAR 0: failed to assign [io size 0x0008]
> [ 2.810000] pci 0000:03:00.0: BAR 2: no space for [io size 0x0008]
> [ 2.830000] pci 0000:03:00.0: BAR 2: failed to assign [io size 0x0008]
> [ 2.840000] pci 0000:03:00.0: BAR 1: no space for [io size 0x0004]
> [ 2.850000] pci 0000:03:00.0: BAR 1: failed to assign [io size 0x0004]
> [ 2.860000] pci 0000:03:00.0: BAR 3: no space for [io size 0x0004]
> [ 2.880000] pci 0000:03:00.0: BAR 3: failed to assign [io size 0x0004]
> [ 2.890000] pci 0000:00:02.0: PCI bridge to [bus 03]
> [ 2.900000] pci 0000:00:02.0: bridge window [mem 0x60400000-0x604fffff]
> [ 2.910000] pci 0000:00:02.0: bridge window [mem 0x60500000-0x605fffff pref]
> [ 3.000000] SCSI subsystem initialized
> [ 3.010000] random: fast init done
> [ 3.020000] clocksource: Switched to clocksource GIC
> [ 3.050000] NET: Registered protocol family 2
> [ 3.060000] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
> [ 3.070000] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
> [ 3.090000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
> [ 3.100000] TCP: Hash tables configured (established 4096 bind 4096)
> [ 3.110000] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [ 3.130000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [ 3.140000] NET: Registered protocol family 1
> [ 8.130000] Initialise system trusted keyrings
> [ 8.140000] workingset: timestamp_bits=30 max_order=17 bucket_order=0
> [ 8.270000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [ 8.280000] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
> [ 8.310000] SGI XFS with security attributes, no debug enabled
> [ 8.360000] Key type asymmetric registered
> [ 8.370000] Asymmetric key parser 'x509' registered
> [ 8.380000] bounce: pool size: 64 pages
> [ 8.380000] io scheduler noop registered
> [ 8.390000] io scheduler deadline registered (default)
> [ 8.400000] io scheduler mq-deadline registered (default)
> [ 8.410000] io scheduler kyber registered
> [ 8.430000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
> [ 8.450000] console [ttyS0] disabled
> [ 8.460000] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
> [ 8.480000] console [ttyS0] enabled
> [ 8.480000] console [ttyS0] enabled
> [ 8.490000] bootconsole [early0] disabled
> [ 8.490000] bootconsole [early0] disabled
> [ 8.510000] cacheinfo: Failed to find cpu0 device node
> [ 8.520000] cacheinfo: Unable to detect cache hierarchy for CPU 0
> [ 8.610000] loop: module loaded
> [ 8.620000] pci 0000:00:00.0: enabling device (0004 -> 0006)
> [ 8.630000] ahci 0000:01:00.0: enabling device (0000 -> 0002)
> [ 8.640000] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
> [ 8.650000] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode
> [ 8.670000] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
> [ 8.700000] scsi host0: ahci
> [ 8.710000] scsi host1: ahci
> [ 8.710000] ata1: SATA max UDMA/133 abar m512 at 0x60000000 port 0x60000100 irq 23
> [ 8.730000] ata2: SATA max UDMA/133 abar m512 at 0x60000000 port 0x60000180 irq 23
> [ 8.740000] pci 0000:00:01.0: enabling device (0004 -> 0006)
> [ 8.750000] ahci 0000:02:00.0: enabling device (0000 -> 0002)
> [ 8.770000] ahci 0000:02:00.0: SSS flag set, parallel bus scan disabled
> [ 8.780000] ahci 0000:02:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode
> [ 8.800000] ahci 0000:02:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
> [ 8.820000] scsi host2: ahci
> [ 8.830000] scsi host3: ahci
> [ 8.840000] ata3: SATA max UDMA/133 abar m512 at 0x60200000 port 0x60200100 irq 24
> [ 8.850000] ata4: SATA max UDMA/133 abar m512 at 0x60200000 port 0x60200180 irq 24
> [ 8.870000] pci 0000:00:02.0: enabling device (0004 -> 0006)
> [ 8.880000] ahci 0000:03:00.0: enabling device (0000 -> 0002)
> [ 8.890000] ahci 0000:03:00.0: SSS flag set, parallel bus scan disabled
> [ 8.900000] ahci 0000:03:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode
> [ 8.920000] ahci 0000:03:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
> [ 8.950000] scsi host4: ahci
> [ 8.950000] scsi host5: ahci
> [ 8.960000] ata5: SATA max UDMA/133 abar m512 at 0x60400000 port 0x60400100 irq 25
> [ 8.980000] ata6: SATA max UDMA/133 abar m512 at 0x60400000 port 0x60400180 irq 25
> [ 9.000000] libphy: Fixed MDIO Bus: probed
> [ 9.000000] tun: Universal TUN/TAP device driver, 1.6
> [ 9.020000] sdhci: Secure Digital Host Controller Interface driver
> [ 9.030000] sdhci: Copyright(c) Pierre Ossman
> [ 9.040000] spi-mt7621 1e000b00.spi: sys_freq: 225000000
> [ 9.060000] m25p80 spi0.0: w25q256 (32768 Kbytes)
> [ 9.070000] ata1: SATA link down (SStatus 0 SControl 300)
> [ 9.080000] 4 fixed-partitions partitions found on MTD device spi0.0
> [ 9.090000] Creating 4 MTD partitions on "spi0.0":
> [ 9.100000] 0x000000000000-0x000000030000 : "u-boot"
> [ 9.120000] 0x000000030000-0x000000040000 : "u-boot-env"
> [ 9.140000] 0x000000040000-0x000000050000 : "factory"
> [ 9.150000] 0x000000050000-0x000002000000 : "firmware"
> [ 9.200000] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [ 9.210000] ata3.00: ATA-8: Hitachi HDS721010CLA332, JP4OA3EA, max UDMA/133
> [ 9.230000] ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA
> [ 9.230000] libphy: mdio: probed
> [ 9.240000] ata3.00: configured for UDMA/133
> [ 9.280000] mtk_soc_eth 1e100000.ethernet: generated random MAC address 4e:9f:18:be:e2:38
> [ 9.310000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
> [ 9.320000] ata5: SATA link down (SStatus 0 SControl 300)
> [ 9.340000] NET: Registered protocol family 10
> [ 9.360000] Segment Routing with IPv6
> [ 9.370000] NET: Registered protocol family 17
> [ 9.380000] 8021q: 802.1Q VLAN Support v1.8
> [ 9.390000] Loading compiled-in X.509 certificates
> [ 9.400000] ata2: SATA link down (SStatus 0 SControl 300)
> [ 9.410000] hctosys: unable to open rtc device (rtc0)
> [ 9.410000] scsi 2:0:0:0: Direct-Access ATA Hitachi HDS72101 A3EA PQ: 0 ANSI: 5
> [ 9.440000] sd 2:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
> [ 9.460000] mmc0: new high speed SD card at address 0002
> [ 9.470000] sd 2:0:0:0: [sda] Write Protect is off
> [ 9.470000] mmcblk0: mmc0:0002 00000 1.88 GiB
> [ 9.490000] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [ 9.530000] sda: sda1 sda2 sda3 sda4
> [ 9.540000] sd 2:0:0:0: [sda] Attached SCSI disk
> [ 9.770000] ata4: SATA link down (SStatus 0 SControl 300)
> [ 10.120000] ata6: SATA link down (SStatus 0 SControl 300)
> [ 10.150000] Freeing unused kernel memory: 6524K
> [ 10.160000] This architecture does not have kernel memory protection.
> [ 10.380000] usbcore: registered new interface driver usbfs
> [ 10.400000] usbcore: registered new interface driver hub
> [ 10.420000] usbcore: registered new device driver usb
> [ 10.530000] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
> [ 10.540000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
> [ 10.570000] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
> [ 10.590000] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
> [ 10.630000] hub 1-0:1.0: USB hub found
> [ 10.640000] hub 1-0:1.0: 2 ports detected
> [ 10.660000] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
> [ 10.670000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
> [ 10.690000] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
> [ 10.700000] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
> [ 10.740000] hub 2-0:1.0: USB hub found
> [ 10.750000] hub 2-0:1.0: 1 port detected
> [ 10.810000] usbcore: registered new interface driver usb-storage
> [ 11.180000] usb 1-2: new high-speed USB device number 2 using xhci-mtk
> [ 11.250000] Waiting disk spinup and searching for partition GNUBEE-ROOT...
> [ 11.390000] hub 1-2:1.0: USB hub found
> [ 11.420000] hub 1-2:1.0: 4 ports detected
> [ 11.660000] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
> [ 14.260000] done.
> mdadm: No arrays found in config file or automatically
> findfs: unable to resolve 'PARTLABEL=GNUBEE-CRYPT-ROOT'
> [ 16.120000] EXT4-fs (mmcblk0): INFO: recovery required on readonly filesystem
> [ 16.140000] EXT4-fs (mmcblk0): write access will be enabled during recovery
> [ 16.240000] msdc0 -> TUNE_BREAD<PASS> dcrc<0x0> DATRDDLY0/1<0x10101010><0x0> dsmpl<0x0> <- msdc_tune_bread() : L<1342> PID<kworker/1:0H><0x12>
> [ 18.260000] random: crng init done
> [ 19.810000] EXT4-fs (mmcblk0): recovery complete
> [ 19.830000] EXT4-fs (mmcblk0): mounted filesystem with ordered data mode. Opts: (null)
> [ 19.860000] Partition GNUBEE-ROOT found. Starting...
> [ 21.320000] systemd[1]: System time before build time, advancing clock.
> [ 21.490000] 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)
> [ 21.530000] systemd[1]: Detected architecture mips.
>
> Welcome to Debian GNU/Linux 9 (stretch)!
>
> [ 21.590000] systemd[1]: Set hostname to <gnubeaver.brown>.
> [ 22.490000] systemd[1]: Listening on udev Control Socket.
> [ OK ] Listening on udev Control Socket.
> [ 22.560000] systemd[1]: Listening on Syslog Socket.
> [ OK ] Listening on Syslog Socket.
> [ 22.610000] systemd[1]: Reached target Remote File Systems.
> [ OK ] Reached target Remote File Systems.
> [ 22.670000] systemd[1]: Listening on fsck to fsckd communication Socket.
> [ OK ] Listening on fsck to fsckd communication Socket.
> [ 22.720000] systemd[1]: Listening on Journal Socket (/dev/log).
> [ OK ] Listening on Journal Socket (/dev/log).
> [ 22.770000] systemd[1]: Created slice User and Session Slice.
> [ OK ] Created slice User and Session Slice.
> [ 22.820000] systemd[1]: Created slice System Slice.
> [ OK ] Created slice System Slice.
> [ OK ] Created slice system-serial\x2dgetty.slice.
> [ OK ] Created slice system-getty.slice.
> [ OK ] Reached target Slices.
> [ OK ] Reached target Swap.
> [ OK ] Listening on udev Kernel Socket.
> [ OK ] Started Dispatch Password Requests to Console Directory Watch.
> [ OK ] Listening on Journal Socket.
> Starting Create list of required st…ce nodes for the current kernel...
> Starting Journal Service...
> Starting File System Check on Root Device...
> Starting Load Kernel Modules...
> Mounting Debug File System...
> [ OK ] Started Forward Password Requests to Wall Directory Watch.
> [ OK ] Reached target Encrypted Volumes.
> Starting Set the console keyboard layout...
> [ OK ] Reached target Paths.
> [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
> [ OK ] Mounted Debug File System.
> [ OK ] Started Create list of required sta…vice nodes for the current kernel.
> [ OK ] Started File System Check on Root Device.
> [ OK ] Started Load Kernel Modules.
> [ OK ] Started File System Check Daemon to report status.
> Starting Apply Kernel Variables...
> Starting Remount Root and Kernel File Systems...
> Starting Create Static Device Nodes in /dev...
> [ OK ] Started Journal Service.
> [ OK ] Started Apply Kernel Variables.
> [ OK ] Started Set the console keyboard layout.
> [ OK ] Started Create Static Device Nodes in /dev.
> Starting udev Kernel Device Manager...
> [ OK ] Started udev Kernel Device Manager.
> [ 24.840000] EXT4-fs (mmcblk0): re-mounted. Opts: errors=remount-ro
> [ OK ] Started Remount Root and Kernel File Systems.
> Starting Load/Save Random Seed...
> Starting Flush Journal to Persistent Storage...
> Starting udev Coldplug all Devices...
> [ OK ] Reached target Local File Systems (Pre).
> [ OK ] Reached target Local File Systems.
> Starting Set console font and keymap...
> Starting Raise network interfaces...
> [ OK ] Started Load/Save Random Seed.
> [ OK ] Started Set console font and keymap.
> [ 25.550000] systemd-journald[666]: Received request to flush runtime journal from PID 1
> [ OK ] Started Flush Journal to Persistent Storage.
> Starting Create Volatile Files and Directories...
> [ OK ] Started Create Volatile Files and Directories.
> Starting Network Time Synchronization...
> Starting Update UTMP about System Boot/Shutdown...
> [ OK ] Started Update UTMP about System Boot/Shutdown.
> [ OK ] Started udev Coldplug all Devices.
> [ OK ] Found device /dev/ttyS0.
> [ OK ] Started Network Time Synchronization.
> [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
> [ OK ] Reached target System Time Synchronized.
> [ OK ] Reached target System Initialization.
> [ OK ] Listening on D-Bus System Message Bus Socket.
> [ OK ] Reached target Sockets.
> [ OK ] Reached target Basic System.
> Starting LSB: Execute the kexec -e command to reboot system...
> [ OK ] Started Regular background program processing daemon.
> [ OK ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
> [ OK ] Started D-Bus System Message Bus.
> [ 27.830000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [ 27.840000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [ OK ] Started Daily Cleanup of Temporary Directories.
> Starting LSB: Mount debugfs on /sys/kernel/debug...
> Starting Login Service...
> [ OK ] Started Daily apt download activities.
> [ OK ] Started Daily apt upgrade and clean activities.
> [ OK ] Reached target Timers.
> Starting System Logging Service...
> [ OK ] Started System Logging Service.
> [ OK ] Started LSB: Execute the kexec -e command to reboot system.
> Starting LSB: Load kernel image with kexec...
> [ OK ] Started Login Service.
> [ OK ] Started LSB: Mount debugfs on /sys/kernel/debug.
> [ OK ] Started LSB: Load kernel image with kexec.
> [FAILED] Failed to start Raise network interfaces.
> See 'systemctl status networking.service' for details.
> [ OK ] Reached target Network.
> [ OK ] Started BIND Domain Name Server.
> [ OK ] Reached target Host and Network Name Lookups.
> Starting The Apache HTTP Server...
> Starting OpenBSD Secure Shell server...
> [ OK ] Reached target Network is Online.
> Starting /etc/rc.local Compatibility...
> Starting LSB: DHCP server...
> Starting LSB: Advanced IEEE 802.11 management daemon...
> Starting LSB: exim Mail Transport Agent...
> Starting Permit User Sessions...
> [ OK ] Started LSB: Advanced IEEE 802.11 management daemon.
> [ OK ] Started Permit User Sessions.
> [ OK ] Started OpenBSD Secure Shell server.
> [ OK ] Started The Apache HTTP Server.
> [FAILED] Failed to start LSB: DHCP server.
> See 'systemctl status isc-dhcp-server.service' for details.
> [ OK ] Started LSB: exim Mail Transport Agent.
> [ 43.880834] rc.local[972]: 6 Aug 10:18:29 ntpdate[975]: step time server 203.23.237.200 offset 184607.643324 sec
> Starting Daily apt download activities...
> [ OK ] Started /etc/rc.local Compatibility.
> [ OK ] Started Serial Getty on ttyS0.
> [ OK ] Reached target Login Prompts.
> [ 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 gnubeaver.brown ttyS0
>
> rooteaver login:
> Password:
> Last login: Fri Aug 3 14:32:22 AEST 2018 on ttyS0
> Linux gnubeaver.brown 4.18.0-rc7+ #279 SMP Mon Aug 6 10:17:08 AEST 2018 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 at gnubeaver:~#
> root at gnubeaver:~# lspci
> 00:00.0 PCI bridge: Device 0e8d:0801 (rev 01)
> 00:01.0 PCI bridge: Device 0e8d:0801 (rev 01)
> 00:02.0 PCI bridge: Device 0e8d:0801 (rev 01)
> 01:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
> 02:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
> 03:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)
> root at gnubeaver:~#
> root at gnubeaver:~# cat /proc/partitions
> major minor #blocks name
>
> 31 0 192 mtdblock0
> 31 1 64 mtdblock1
> 31 2 64 mtdblock2
> 31 3 32448 mtdblock3
> 179 0 1974272 mmcblk0
> 8 0 976762584 sda
> 8 1 194288 sda1
> 8 2 9765624 sda2
> 8 3 912261120 sda3
> 8 4 53558912 sda4
> root at gnubeaver:~#
More information about the devel
mailing list