页次: 1
按照楼主的步骤能正常启动,我这里外接了RTL8201F-VB-CG用来接有线网络,但网口启动失败,下面是启动日志
[I] AWBoot r6165 starting...
[I] SMHC: sdhci0 controller v50310 initialized
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: init failed, trying SPI
[I] SPI-NAND: W25N01GV detected
[I] SPI-NAND: read dt blob of size 23611 at 43.00MB/S
[I] SPI-NAND: read Image of size 5424472 at 49.00MB/S
[I] booting linux...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.1.0-rc3 (root@ubuntu) (arm-none-linux-gnueabihf-gcc (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205, GNU ld (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 2.39.0.20221210) #8 SMP Mon Jul 3 17:03:36 CST 2023
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: MangoPi MQ-Dual
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0x47000000
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000040000000-0x0000000047ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x0000000041ffffff]
[ 0.000000] node 0: [mem 0x0000000042000000-0x00000000420fffff]
[ 0.000000] node 0: [mem 0x0000000042100000-0x0000000047ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[ 0.000000] percpu: Embedded 11 pages/cpu s15764 r8192 d21100 u45056
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: mem=128M ubi.mtd=3 rootfstype=ubifs noinitrd root=ubi0:rootfs rw rootwait console=ttyS5,115200
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Memory: 98776K/131072K available (8192K kernel code, 952K rwdata, 2188K rodata, 1024K init, 270K bss, 15912K reserved, 16384K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000012] Switching to timer-based delay loop, resolution 41ns
[ 0.000192] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000678] Console: colour dummy device 80x30
[ 0.000721] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000736] pid_max: default: 32768 minimum: 301
[ 0.000892] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000908] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001435] CPU: Testing write buffer coherency: ok
[ 0.001741] CPU0: update cpu_capacity 1024
[ 0.001756] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002509] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002646] rcu: Hierarchical SRCU implementation.
[ 0.002651] rcu: Max phase no-delay instances is 1000.
[ 0.003171] smp: Bringing up secondary CPUs ...
[ 0.003867] CPU1: update cpu_capacity 1024
[ 0.003880] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.003993] smp: Brought up 1 node, 2 CPUs
[ 0.004002] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.004010] CPU: All CPU(s) started in SVC mode.
[ 0.004528] devtmpfs: initialized
[ 0.008812] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.009010] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.009034] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.009660] pinctrl core: initialized pinctrl subsystem
[ 0.011030] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.012086] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.012878] thermal_sys: Registered thermal governor 'step_wise'
[ 0.013051] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.013062] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.021740] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[ 0.021807] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[ 0.022071] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 0.022425] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5604000.tv-encoder
[ 0.022479] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 0.023425] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[ 0.032894] SCSI subsystem initialized
[ 0.033370] usbcore: registered new interface driver usbfs
[ 0.033405] usbcore: registered new interface driver hub
[ 0.033441] usbcore: registered new device driver usb
[ 0.033633] mc: Linux media interface: v0.10
[ 0.033684] videodev: Linux video capture interface: v2.00
[ 0.033754] pps_core: LinuxPPS API ver. 1 registered
[ 0.033760] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.033775] PTP clock support registered
[ 0.034183] Advanced Linux Sound Architecture Driver Initialized.
[ 0.035039] clocksource: Switched to clocksource arch_sys_counter
[ 0.042219] NET: Registered PF_INET protocol family
[ 0.042422] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.042956] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.042981] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.042993] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.043009] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.043043] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.043128] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.043162] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.043315] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.043971] RPC: Registered named UNIX socket transport module.
[ 0.043983] RPC: Registered udp transport module.
[ 0.043987] RPC: Registered tcp transport module.
[ 0.043990] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.045344] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.050287] NFS: Registering the id_resolver key type
[ 0.050340] Key type id_resolver registered
[ 0.050345] Key type id_legacy registered
[ 0.050507] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.050515] io scheduler mq-deadline registered
[ 0.050520] io scheduler kyber registered
[ 0.110557] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.121591] CAN device driver interface
[ 0.124929] sun6i-rtc 7090000.rtc: registered as rtc0
[ 0.125093] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:02:07 UTC (86527)
[ 0.125253] sun6i-rtc 7090000.rtc: RTC enabled
[ 0.125616] i2c_dev: i2c /dev entries driver
[ 0.127581] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.128714] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz)
[ 0.129078] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129414] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129616] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129790] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129935] sun8i-ce 3040000.crypto: Register cbc(aes)
[ 0.129961] sun8i-ce 3040000.crypto: Register ecb(aes)
[ 0.129972] sun8i-ce 3040000.crypto: Register cbc(des3_ede)
[ 0.129981] sun8i-ce 3040000.crypto: Register ecb(des3_ede)
[ 0.130009] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0
[ 0.130867] usbcore: registered new interface driver usbhid
[ 0.130877] usbhid: USB HID core driver
[ 0.133601] NET: Registered PF_PACKET protocol family
[ 0.133614] can: controller area network core
[ 0.133680] NET: Registered PF_CAN protocol family
[ 0.133688] can: raw protocol
[ 0.133695] can: broadcast manager protocol
[ 0.133703] can: netlink gateway - max_hops=1
[ 0.133815] Key type dns_resolver registered
[ 0.133906] Registering SWP/SWPB emulation handler
[ 0.154404] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[ 0.176102] 2500400.serial: ttyS1 at MMIO 0x2500400 (irq = 231, base_baud = 1500000) is a 16550A
[ 0.197797] 2501400.serial: ttyS5 at MMIO 0x2501400 (irq = 232, base_baud = 1500000) is a 16550A
[ 1.020025] printk: console [ttyS5] enabled
[ 1.027804] sun4i-drm display-engine: bound 5100000.mixer (ops 0xc0954cd4)
[ 1.036292] sun4i-drm display-engine: bound 5200000.mixer (ops 0xc0954cd4)
[ 1.043175] sun4i-drm display-engine: bound 5460000.tcon-top (ops 0xc09591a4)
[ 1.050821] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[ 1.058736] sun4i-drm display-engine: bound 5461000.lcd-controller (ops 0xc0950a84)
[ 1.066706] sun4i-drm display-engine: bound 5470000.lcd-controller (ops 0xc0950a84)
[ 1.074477] sun4i-drm display-engine: bound 5604000.tv-encoder (ops 0xc0951aa4)
[ 1.082600] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.092358] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.097745] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.106581] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.112950] Creating 4 MTD partitions on "spi0.0":
[ 1.117781] 0x000000000000-0x000000040000 : "awboot"
[ 1.123581] 0x000000040000-0x000000080000 : "dtb"
[ 1.129061] 0x000000080000-0x000000800000 : "kernel"
[ 1.143529] 0x000000800000-0x000008000000 : "rootfs"
[ 1.298436] dwmac-sun8i 4500000.ethernet: IRQ eth_wake_irq not found
[ 1.304804] dwmac-sun8i 4500000.ethernet: IRQ eth_lpi not found
[ 1.311075] dwmac-sun8i 4500000.ethernet: PTP uses main clock
[ 1.316874] dwmac-sun8i 4500000.ethernet: Current syscon value is not the default 58000 (expect 0)
[ 1.326093] dwmac-sun8i 4500000.ethernet: No HW DMA feature register supported
[ 1.333321] dwmac-sun8i 4500000.ethernet: RX Checksum Offload Engine supported
[ 1.340567] dwmac-sun8i 4500000.ethernet: COE Type 2
[ 1.345549] dwmac-sun8i 4500000.ethernet: TX Checksum insertion supported
[ 1.352332] dwmac-sun8i 4500000.ethernet: Normal descriptors
[ 1.357995] dwmac-sun8i 4500000.ethernet: Chain mode enabled
[ 1.363657] dwmac-sun8i 4500000.ethernet: device MAC address fa:a4:b2:e5:5a:c2
[ 1.473067] dwmac-sun8i 4500000.ethernet: EMAC reset timeout
[ 1.478768] dwmac-sun8i 4500000.ethernet eth0: stmmac_dvr_remove: removing driver
[ 1.525592] dwmac-sun8i: probe of 4500000.ethernet failed with error -110
[ 1.534473] phy phy-4100400.phy.0: Changing dr_mode to 1
[ 1.535693] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[ 1.539859] ehci-platform 4101000.usb: EHCI Host Controller
[ 1.549562] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[ 1.554625] ehci-platform 4101000.usb: new USB bus registered, assigned bus number 1
[ 1.560383] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 2
[ 1.569066] ehci-platform 4200000.usb: EHCI Host Controller
[ 1.576708] hub 2-0:1.0: USB hub found
[ 1.583395] ohci-platform 4200400.usb: Generic Platform OHCI controller
[ 1.585414] hub 2-0:1.0: 1 port detected
[ 1.596048] ehci-platform 4101000.usb: irq 237, io mem 0x04101000
[ 1.602180] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 3
[ 1.605067] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 4
[ 1.619551] ehci-platform 4200000.usb: irq 239, io mem 0x04200000
[ 1.620540] sun8i-thermal 2009400.temperature-sensor: supply vref not found, using dummy regulator
[ 1.625775] ehci-platform 4101000.usb: USB 2.0 started, EHCI 1.00
[ 1.640995] ohci-platform 4200400.usb: irq 241, io mem 0x04200400
[ 1.647577] hub 1-0:1.0: USB hub found
[ 1.651567] ubi0: attaching mtd3
[ 1.651618] hub 1-0:1.0: 1 port detected
[ 1.659037] sunxi-mmc 4020000.mmc: Got CD GPIO
[ 1.665078] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[ 1.672471] hub 3-0:1.0: USB hub found
[ 1.676581] hub 3-0:1.0: 1 port detected
[ 1.689134] sunxi-mmc 4020000.mmc: initialized, max. request size: 2047 KB, uses new timings mode
[ 1.719798] hub 4-0:1.0: USB hub found
[ 1.723602] hub 4-0:1.0: 1 port detected
[ 1.785141] ohci-platform 4101400.usb: Generic Platform OHCI controller
[ 1.791804] ohci-platform 4101400.usb: new USB bus registered, assigned bus number 5
[ 1.799857] ohci-platform 4101400.usb: irq 240, io mem 0x04101400
[ 1.879906] hub 5-0:1.0: USB hub found
[ 1.883741] hub 5-0:1.0: 1 port detected
[ 1.945072] random: crng init done
[ 2.460898] ubi0: scanning is finished
[ 2.475131] ubi0: attached mtd3 (name "rootfs", size 120 MiB)
[ 2.480896] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.487789] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.494571] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.501543] ubi0: good PEBs: 960, bad PEBs: 0, corrupted PEBs: 0
[ 2.507555] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.514769] ubi0: max/mean erase counter: 3/0, WL threshold: 4096, image sequence number: 1216836970
[ 2.523901] ubi0: available PEBs: 0, total reserved PEBs: 960, PEBs reserved for bad PEB handling: 20
[ 2.533133] ubi0: background thread "ubi_bgt0d" started, PID 89
[ 2.533490] ALSA device list:
[ 2.542041] No soundcards found.
[ 2.547265] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.553129] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 90
[ 2.609741] UBIFS (ubi0:0): recovery needed
[ 2.752872] UBIFS (ubi0:0): recovery completed
[ 2.757462] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.764859] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.774788] UBIFS (ubi0:0): FS size: 117452800 bytes (112 MiB, 925 LEBs), max 1024 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.786705] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 2.792533] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 183F60BC-DAD4-4499-9B3F-30E882B5FDFB, small LPT model
[ 2.805650] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 2.813012] devtmpfs: mounted
[ 2.817167] Freeing unused kernel image (initmem) memory: 1024K
[ 2.823253] Run /sbin/init as init process
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: OK
Starting network: OK
Welcome to Buildroot
buildroot login: [ 12.006173] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[I] AWBoot r6165 starting...
[I] SMHC: sdhci0 controller v50310 initialized
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: init failed, trying SPI
[I] SPI-NAND: W25N01GV detected
[I] SPI-NAND: read dt blob of size 23607 at 43.00MB/S
[I] SPI-NAND: read Image of size 5424472 at 49.00MB/S
[I] booting linux...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.1.0-rc3 (root@ubuntu) (arm-none-linux-gnueabihf-gcc (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205, GNU ld (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 2.39.0.20221210) #8 SMP Mon Jul 3 17:03:36 CST 2023
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: MangoPi MQ-Dual
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0x47000000
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000040000000-0x0000000047ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x0000000041ffffff]
[ 0.000000] node 0: [mem 0x0000000042000000-0x00000000420fffff]
[ 0.000000] node 0: [mem 0x0000000042100000-0x0000000047ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[ 0.000000] percpu: Embedded 11 pages/cpu s15764 r8192 d21100 u45056
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: mem=128M ubi.mtd=3 rootfstype=ubifs noinitrd root=ubi0:rootfs rw rootwait console=ttyS5,115200
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Memory: 98776K/131072K available (8192K kernel code, 952K rwdata, 2188K rodata, 1024K init, 270K bss, 15912K reserved, 16384K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000012] Switching to timer-based delay loop, resolution 41ns
[ 0.000192] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000681] Console: colour dummy device 80x30
[ 0.000724] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000739] pid_max: default: 32768 minimum: 301
[ 0.000895] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000911] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001444] CPU: Testing write buffer coherency: ok
[ 0.001749] CPU0: update cpu_capacity 1024
[ 0.001764] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002509] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002645] rcu: Hierarchical SRCU implementation.
[ 0.002650] rcu: Max phase no-delay instances is 1000.
[ 0.003161] smp: Bringing up secondary CPUs ...
[ 0.003849] CPU1: update cpu_capacity 1024
[ 0.003862] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.003978] smp: Brought up 1 node, 2 CPUs
[ 0.003988] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.003995] CPU: All CPU(s) started in SVC mode.
[ 0.004512] devtmpfs: initialized
[ 0.008791] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.008990] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.009016] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.009645] pinctrl core: initialized pinctrl subsystem
[ 0.011008] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.012064] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.012861] thermal_sys: Registered thermal governor 'step_wise'
[ 0.013032] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.013044] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.021750] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[ 0.021818] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[ 0.022082] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 0.022443] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5604000.tv-encoder
[ 0.022496] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[ 0.023432] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[ 0.032882] SCSI subsystem initialized
[ 0.033354] usbcore: registered new interface driver usbfs
[ 0.033390] usbcore: registered new interface driver hub
[ 0.033427] usbcore: registered new device driver usb
[ 0.033622] mc: Linux media interface: v0.10
[ 0.033675] videodev: Linux video capture interface: v2.00
[ 0.033745] pps_core: LinuxPPS API ver. 1 registered
[ 0.033749] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.033763] PTP clock support registered
[ 0.034171] Advanced Linux Sound Architecture Driver Initialized.
[ 0.035027] clocksource: Switched to clocksource arch_sys_counter
[ 0.042212] NET: Registered PF_INET protocol family
[ 0.042416] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.042955] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.042981] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.042994] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.043011] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.043045] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.043128] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.043160] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.043311] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.043970] RPC: Registered named UNIX socket transport module.
[ 0.043983] RPC: Registered udp transport module.
[ 0.043987] RPC: Registered tcp transport module.
[ 0.043990] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.045327] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.050267] NFS: Registering the id_resolver key type
[ 0.050365] Key type id_resolver registered
[ 0.050369] Key type id_legacy registered
[ 0.050533] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.050542] io scheduler mq-deadline registered
[ 0.050547] io scheduler kyber registered
[ 0.110252] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.121313] CAN device driver interface
[ 0.124648] sun6i-rtc 7090000.rtc: registered as rtc0
[ 0.124770] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:09:53 UTC (86993)
[ 0.124923] sun6i-rtc 7090000.rtc: RTC enabled
[ 0.125330] i2c_dev: i2c /dev entries driver
[ 0.127284] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.128419] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz)
[ 0.128784] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129125] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129319] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129497] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[ 0.129639] sun8i-ce 3040000.crypto: Register cbc(aes)
[ 0.129665] sun8i-ce 3040000.crypto: Register ecb(aes)
[ 0.129675] sun8i-ce 3040000.crypto: Register cbc(des3_ede)
[ 0.129685] sun8i-ce 3040000.crypto: Register ecb(des3_ede)
[ 0.129713] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0
[ 0.130577] usbcore: registered new interface driver usbhid
[ 0.130588] usbhid: USB HID core driver
[ 0.133295] NET: Registered PF_PACKET protocol family
[ 0.133309] can: controller area network core
[ 0.133374] NET: Registered PF_CAN protocol family
[ 0.133382] can: raw protocol
[ 0.133389] can: broadcast manager protocol
[ 0.133398] can: netlink gateway - max_hops=1
[ 0.133526] Key type dns_resolver registered
[ 0.133614] Registering SWP/SWPB emulation handler
[ 0.154153] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[ 0.175824] 2500400.serial: ttyS1 at MMIO 0x2500400 (irq = 231, base_baud = 1500000) is a 16550A
[ 0.197519] 2501400.serial: ttyS5 at MMIO 0x2501400 (irq = 232, base_baud = 1500000) is a 16550A
[ 1.019747] printk: console [ttyS5] enabled
[ 1.027527] sun4i-drm display-engine: bound 5100000.mixer (ops 0xc0954cd4)
[ 1.036014] sun4i-drm display-engine: bound 5200000.mixer (ops 0xc0954cd4)
[ 1.042896] sun4i-drm display-engine: bound 5460000.tcon-top (ops 0xc09591a4)
[ 1.050540] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[ 1.058450] sun4i-drm display-engine: bound 5461000.lcd-controller (ops 0xc0950a84)
[ 1.066428] sun4i-drm display-engine: bound 5470000.lcd-controller (ops 0xc0950a84)
[ 1.074198] sun4i-drm display-engine: bound 5604000.tv-encoder (ops 0xc0951aa4)
[ 1.082322] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.092110] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.097490] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.106323] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.112693] Creating 4 MTD partitions on "spi0.0":
[ 1.117533] 0x000000000000-0x000000040000 : "awboot"
[ 1.123328] 0x000000040000-0x000000080000 : "dtb"
[ 1.128803] 0x000000080000-0x000000800000 : "kernel"
[ 1.143291] 0x000000800000-0x000008000000 : "rootfs"
[ 1.298280] dwmac-sun8i 4500000.ethernet: IRQ eth_wake_irq not found
[ 1.304648] dwmac-sun8i 4500000.ethernet: IRQ eth_lpi not found
[ 1.310911] dwmac-sun8i 4500000.ethernet: PTP uses main clock
[ 1.316713] dwmac-sun8i 4500000.ethernet: Current syscon value is not the default 58000 (expect 0)
[ 1.325927] dwmac-sun8i 4500000.ethernet: No HW DMA feature register supported
[ 1.333155] dwmac-sun8i 4500000.ethernet: RX Checksum Offload Engine supported
[ 1.340404] dwmac-sun8i 4500000.ethernet: COE Type 2
[ 1.345378] dwmac-sun8i 4500000.ethernet: TX Checksum insertion supported
[ 1.352160] dwmac-sun8i 4500000.ethernet: Normal descriptors
[ 1.357829] dwmac-sun8i 4500000.ethernet: Chain mode enabled
[ 1.363491] dwmac-sun8i 4500000.ethernet: device MAC address 6a:4c:9f:b1:5f:1b
[ 1.472880] dwmac-sun8i 4500000.ethernet: EMAC reset timeout
[ 1.478579] dwmac-sun8i 4500000.ethernet eth0: stmmac_dvr_remove: removing driver
[ 1.525572] dwmac-sun8i: probe of 4500000.ethernet failed with error -110
[ 1.534464] phy phy-4100400.phy.0: Changing dr_mode to 1
[ 1.535685] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[ 1.539848] ehci-platform 4101000.usb: EHCI Host Controller
[ 1.549546] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[ 1.554617] ehci-platform 4101000.usb: new USB bus registered, assigned bus number 1
[ 1.560375] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 2
[ 1.569058] ehci-platform 4200000.usb: EHCI Host Controller
[ 1.576693] hub 2-0:1.0: USB hub found
[ 1.583380] ohci-platform 4200400.usb: Generic Platform OHCI controller
[ 1.585401] hub 2-0:1.0: 1 port detected
[ 1.596042] ehci-platform 4101000.usb: irq 237, io mem 0x04101000
[ 1.602174] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 3
[ 1.605062] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 4
[ 1.619548] ehci-platform 4200000.usb: irq 239, io mem 0x04200000
[ 1.620547] sun8i-thermal 2009400.temperature-sensor: supply vref not found, using dummy regulator
[ 1.625753] ehci-platform 4101000.usb: USB 2.0 started, EHCI 1.00
[ 1.641068] ohci-platform 4200400.usb: irq 241, io mem 0x04200400
[ 1.647618] hub 1-0:1.0: USB hub found
[ 1.649010] ubi0: attaching mtd3
[ 1.651600] hub 1-0:1.0: 1 port detected
[ 1.659804] sunxi-mmc 4020000.mmc: Got CD GPIO
[ 1.665066] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[ 1.672069] hub 3-0:1.0: USB hub found
[ 1.675913] hub 3-0:1.0: 1 port detected
[ 1.686518] sunxi-mmc 4020000.mmc: initialized, max. request size: 2047 KB, uses new timings mode
[ 1.719792] hub 4-0:1.0: USB hub found
[ 1.723595] hub 4-0:1.0: 1 port detected
[ 1.785140] ohci-platform 4101400.usb: Generic Platform OHCI controller
[ 1.791801] ohci-platform 4101400.usb: new USB bus registered, assigned bus number 5
[ 1.799897] ohci-platform 4101400.usb: irq 240, io mem 0x04101400
[ 1.879907] hub 5-0:1.0: USB hub found
[ 1.883744] hub 5-0:1.0: 1 port detected
[ 1.955066] random: crng init done
[ 2.474496] ubi0: scanning is finished
[ 2.488732] ubi0: attached mtd3 (name "rootfs", size 120 MiB)
[ 2.494496] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.501408] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.508204] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.515168] ubi0: good PEBs: 960, bad PEBs: 0, corrupted PEBs: 0
[ 2.521169] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.528393] ubi0: max/mean erase counter: 3/0, WL threshold: 4096, image sequence number: 1216836970
[ 2.537525] ubi0: available PEBs: 0, total reserved PEBs: 960, PEBs reserved for bad PEB handling: 20
[ 2.547119] ALSA device list:
[ 2.550094] No soundcards found.
[ 2.553835] ubi0: background thread "ubi_bgt0d" started, PID 90
[ 2.561231] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.567307] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 91
[ 2.623816] UBIFS (ubi0:0): recovery needed
[ 2.768583] UBIFS (ubi0:0): recovery completed
[ 2.773124] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.780552] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.790474] UBIFS (ubi0:0): FS size: 117452800 bytes (112 MiB, 925 LEBs), max 1024 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.802388] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 2.808226] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 183F60BC-DAD4-4499-9B3F-30E882B5FDFB, small LPT model
[ 2.821315] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 2.828704] devtmpfs: mounted
[ 2.832833] Freeing unused kernel image (initmem) memory: 1024K
[ 2.838952] Run /sbin/init as init process
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: OK
Starting network: OK
Welcome to Buildroot
buildroot login: [ 12.006177] cedrus 1c0e000.video-codec: Device registered as /dev/video0
看别人正常日志是没有dwmac-sun8i 4500000.ethernet: EMAC reset timeout这个日志的,现在我也不清楚到底是软件问题还是硬件连接问题
sun8i-t113.dtsi文件根据硬件原理图只改了rmii的引脚配置:
rmii_pe_pins: rmii-pe-pins {
pins = "PG0", "PG1", "PG2", "PG3", "PG4",
"PG5", "PG12", "PG13", "PG14", "PG15";
function = "emac";
};
sun8i-t113-mangopi-dual.dts文件内容如下:
// SPDX-License-Identifier: (GPL-2.0+ or MIT)
// Copyright (C) 2022 Samuel Holland <samuel@sholland.org>
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include "sun8i-t113.dtsi"
/ {
model = "MangoPi MQ-Dual";
compatible = "allwinner,sun20i-d1", "allwinner,sun8i";
aliases {
mmc0 = &mmc0;
ethernet0 = &emac;
serial1 = &uart1;
serial5 = &uart5;
};
chosen {
stdout-path = "serial5:115200n8";
bootargs = "mem=128M ubi.mtd=3 rootfstype=ubifs noinitrd root=ubi0:rootfs rw rootwait console=ttyS5,115200";
};
reg_vcc: vcc {
compatible = "regulator-fixed";
regulator-name = "vcc";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};
reg_usbvbus: usbvbus {
compatible = "regulator-fixed";
regulator-name = "usbvbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <®_vcc>;
};
reg_vcc_3v3: vcc-3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc-3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <®_vcc>;
};
reg_avdd2v8: avdd2v8 {
compatible = "regulator-fixed";
regulator-name = "avdd2v8";
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
vin-supply = <®_vcc_3v3>;
};
reg_vdd_cpu: vdd-cpu {
compatible = "regulator-fixed";
regulator-name = "vdd-cpu";
regulator-min-microvolt = <900000>;
regulator-max-microvolt = <900000>;
vin-supply = <®_vcc>;
};
};
&cpu0 {
cpu-supply = <®_vdd_cpu>;
};
&cpu1 {
cpu-supply = <®_vdd_cpu>;
};
&wdt {
status = "okay";
};
&de {
status = "okay";
};
&dsi {
pinctrl-0 = <&dsi_4lane_pins>;
pinctrl-names = "default";
status = "disabled";
panel: panel@0 {
reg = <0>;
compatible = "lg,lh500wx1-sd03";
pinctrl-names = "default";
/*
pinctrl-0 = <&panel_pin>;
port {
panel_in: endpoint {
remote-endpoint = <&dsi0_out>;
};
};
*/
};
};
&pio {
vcc-pb-supply = <®_vcc_3v3>;
vcc-pc-supply = <®_vcc_3v3>;
vcc-pd-supply = <®_vcc_3v3>;
vcc-pe-supply = <®_avdd2v8>;
vcc-pf-supply = <®_vcc_3v3>;
vcc-pg-supply = <®_vcc_3v3>;
can0_pins_a: can0_pins@0 {
pins = "PB2", "PB3";
function = "can0";
drive-strength = <10>;
bias-pull-up;
};
can1_pins_a: can1_pins@0 {
pins = "PB4", "PB5";
function = "can1";
drive-strength = <10>;
bias-pull-up;
};
uart5_pb4_pins: uart5-pb4-pins {
pins = "PB4", "PB5";
function = "uart5";
};
clk_pg11_pin: clk-pg11-pin {
pins = "PG11";
function = "clk";
};
};
&uart1 {
uart-has-rtscts;
pinctrl-0 = <&uart1_pg6_pins>, <&uart1_pg8_rts_cts_pins>;
pinctrl-names = "default";
status = "okay";
/* XR829 bluetooth is connected here */
};
&uart5 {
pinctrl-0 = <&uart5_pb4_pins>;
pinctrl-names = "default";
status = "okay";
};
&i2c2 {
pinctrl-0 = <&i2c2_pe12_pins>;
pinctrl-names = "default";
status = "okay";
gt911: touchscreen@28 {
compatible = "goodix,gt911";
reg = <0x28>;
interrupt-parent = <&pio>;
interrupts = <2 3 IRQ_TYPE_EDGE_FALLING>;
irq-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>;
reset-gpios = <&pio 2 2 GPIO_ACTIVE_HIGH>;
touchscreen-swapped-x-y;
};
};
&spi0 {
pinctrl-0 = <&spi0_pins>;
pinctrl-names = "default";
status = "okay";
spi_nand: spi_nand@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "spi-nand";
reg = <0>;
partition@0 {
label = "awboot";
reg = <0x0 0x40000>; /* 256K */
read-only;
};
partition@40000 {
label = "dtb";
reg = <0x40000 0x40000>; /* 256k */
read-only;
};
partition@80000 {
label = "kernel";
reg = <0x80000 0x780000>; /* 7.5MB */
read-only;
};
partition@800000 {
label = "rootfs";
reg = <0x800000 0x7800000>;
};
};
};
&mmc0 {
bus-width = <4>;
cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW)>;
disable-wp;
vmmc-supply = <®_vcc_3v3>;
vqmmc-supply = <®_vcc_3v3>;
pinctrl-0 = <&mmc0_pins>;
pinctrl-names = "default";
status = "okay";
};
&usb_otg {
dr_mode = "otg";
status = "okay";
};
&ehci0 {
status = "okay";
};
&ehci1 {
status = "okay";
};
&ohci0 {
status = "okay";
};
&ohci1 {
status = "okay";
};
&ths {
status = "okay";
/* vref-supply = <®_aldo>; */
};
&usbphy {
usb0_vbus-supply = <®_usbvbus>;
usb1_vbus-supply = <®_usbvbus>;
status = "okay";
};
&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
&emac {
pinctrl-0 = <&rmii_pe_pins>;
pinctrl-names = "default";
phy-handle = <&ext_rgmii_phy>;
phy-mode = "rmii";
phy-supply = <®_vcc_3v3>;
status = "okay";
};
下面是RTL8201F原理图
RTL8201F的21脚虽然画了一个连接,其实并没有接到T113的任何脚,我不知道要接哪个脚,T113的RMII接口好像也没有PHYRST脚
页次: 1