您尚未登录。

#1 Re: 全志 SOC » 在wsl下开发T113的主线linux(最新gcc+awboot+最新kernel+最新buildroot) » 2023-07-13 17:46:23

楼主,这是啥情况,有遇到过吗?

[I] AWBoot r8 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: GD5F1GQ5UExxG detected
[I] SPI-NAND: read dt blob of size 25333 at 25.00MB/S
[I] SPI-NAND: read Image of size 5425512 at 26.00MB/S
[I] booting linux...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.0-rc3-443875-gb466df90d48f-dirty (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) #3 SMP Thu Jul 13 12:16:34 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 root=ubi0:rootfs rw rootwait console=ttyS3,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: 98768K/131072K available (8192K kernel code, 953K rwdata, 2188K rodata, 1024K init, 270K bss, 15920K 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.000191] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000700] Console: colour dummy device 80x30
[    0.000744] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000760] pid_max: default: 32768 minimum: 301
[    0.000916] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000931] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001463] CPU: Testing write buffer coherency: ok
[    0.001770] CPU0: update cpu_capacity 1024
[    0.001784] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002535] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002679] rcu: Hierarchical SRCU implementation.
[    0.002684] rcu:     Max phase no-delay instances is 1000.
[    0.003206] smp: Bringing up secondary CPUs ...
[    0.003897] CPU1: update cpu_capacity 1024
[    0.003910] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004026] smp: Brought up 1 node, 2 CPUs
[    0.004035] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.004043] CPU: All CPU(s) started in SVC mode.
[    0.004555] devtmpfs: initialized
[    0.009110] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009298] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009325] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.010049] pinctrl core: initialized pinctrl subsystem
[    0.011334] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.012378] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013157] thermal_sys: Registered thermal governor 'step_wise'
[    0.013329] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.013342] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022541] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[    0.022610] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[    0.022875] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.023228] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5604000.tv-encoder
[    0.023286] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.024287] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[    0.034533] SCSI subsystem initialized
[    0.035003] usbcore: registered new interface driver usbfs
[    0.035037] usbcore: registered new interface driver hub
[    0.035072] usbcore: registered new device driver usb
[    0.035293] mc: Linux media interface: v0.10
[    0.035339] videodev: Linux video capture interface: v2.00
[    0.035407] pps_core: LinuxPPS API ver. 1 registered
[    0.035412] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.035427] PTP clock support registered
[    0.035846] Advanced Linux Sound Architecture Driver Initialized.
[    0.036679] clocksource: Switched to clocksource arch_sys_counter
[    0.043819] NET: Registered PF_INET protocol family
[    0.044027] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.044574] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.044603] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.044620] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.044638] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.044672] TCP: Hash tables configured (established 1024 bind 1024)
[    0.044755] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.044789] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.044942] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.045598] RPC: Registered named UNIX socket transport module.
[    0.045611] RPC: Registered udp transport module.
[    0.045615] RPC: Registered tcp transport module.
[    0.045618] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.047007] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.051934] NFS: Registering the id_resolver key type
[    0.051997] Key type id_resolver registered
[    0.052002] Key type id_legacy registered
[    0.052169] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.052179] io scheduler mq-deadline registered
[    0.052184] io scheduler kyber registered
[    0.111059] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.122487] CAN device driver interface
[    0.126095] sun6i-rtc 7090000.rtc: registered as rtc0
[    0.126220] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T01:43:03 UTC (92583)
[    0.126347] sun6i-rtc 7090000.rtc: RTC enabled
[    0.126773] i2c_dev: i2c /dev entries driver
[    0.128700] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.129895] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz)
[    0.130263] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.130584] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.130772] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.130973] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.131115] sun8i-ce 3040000.crypto: Register cbc(aes)
[    0.131141] sun8i-ce 3040000.crypto: Register ecb(aes)
[    0.131150] sun8i-ce 3040000.crypto: Register cbc(des3_ede)
[    0.131160] sun8i-ce 3040000.crypto: Register ecb(des3_ede)
[    0.131186] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0
[    0.132069] usbcore: registered new interface driver usbhid
[    0.132080] usbhid: USB HID core driver
[    0.134945] NET: Registered PF_PACKET protocol family
[    0.134960] can: controller area network core
[    0.135033] NET: Registered PF_CAN protocol family
[    0.135040] can: raw protocol
[    0.135048] can: broadcast manager protocol
[    0.135056] can: netlink gateway - max_hops=1
[    0.135155] Key type dns_resolver registered
[    0.135242] Registering SWP/SWPB emulation handler
[    0.155866] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.177489] 2500400.serial: ttyS1 at MMIO 0x2500400 (irq = 231, base_baud = 1500000) is a 16550A
[    0.199146] 2500c00.serial: ttyS3 at MMIO 0x2500c00 (irq = 232, base_baud = 1500000) is a 16550A
[    1.022604] printk: console [ttyS3] enabled
[    1.048357] 2501400.serial: ttyS0 at MMIO 0x2501400 (irq = 233, base_baud = 1500000) is a 16550A
[    1.060708] sun4i-drm display-engine: bound 5100000.mixer (ops 0xc0954d14)
[    1.069242] sun4i-drm display-engine: bound 5200000.mixer (ops 0xc0954d14)
[    1.076128] sun4i-drm display-engine: bound 5460000.tcon-top (ops 0xc09591e4)
[    1.083780] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    1.091657] sun4i-drm display-engine: bound 5461000.lcd-controller (ops 0xc0950ac4)
[    1.099610] sun4i-drm display-engine: bound 5470000.lcd-controller (ops 0xc0950ac4)
[    1.107400] sun4i-drm display-engine: bound 5604000.tv-encoder (ops 0xc0951ae4)
[    1.115529] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.125349] spi-nand spi0.0: GigaDevice SPI NAND was found.
[    1.130982] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    1.139829] 4 fixed-partitions partitions found on MTD device spi0.0
[    1.146204] Creating 4 MTD partitions on "spi0.0":
[    1.151035] 0x000000000000-0x000000040000 : "awboot"
[    1.156309] ------------[ cut here ]------------
[    1.160932] kernel BUG at drivers/dma/dmaengine.h:54!
[    1.165979] Internal error: Oops - BUG: 0 [#1] SMP ARM
[    1.171113] Modules linked in:
[    1.174171] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.0-rc3-443875-gb466df90d48f-dirty #3
[    1.182687] Hardware name: Generic DT based system
[    1.187470] PC is at sun6i_dma_interrupt+0x1a8/0x1ac
[    1.192448] LR is at sun6i_dma_interrupt+0xec/0x1ac
[    1.197328] pc : [<c04a362c>]    lr : [<c04a3570>]    psr: 60000193
[    1.203587] sp : c0d01d50  ip : 0626c000  fp : 00000000
[    1.208805] r10: 00000000  r9 : 00000010  r8 : c11ff440
[    1.214022] r7 : 00000000  r6 : c122810c  r5 : c11ff640  r4 : 00000007
[    1.220541] r3 : c122810c  r2 : c1b30b80  r1 : 00000000  r0 : c1228168
[    1.227061] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.234275] Control: 10c5387d  Table: 4000406a  DAC: 00000051
[    1.240012] Register r0 information: non-slab/vmalloc memory
[    1.245669] Register r1 information: NULL pointer
[    1.250369] Register r2 information: slab kmalloc-128 start c1b30b80 pointer offset 0 size 128
[    1.256684] spi_master spi0: spi0.0: timeout transferring 1 bytes@100000000Hz for 110(100)ms
[    1.258985] Register r3 information: non-slab/vmalloc memory
[    1.267425] spi-nand spi0.0: SPI transfer failed: -110
[    1.273052] Register r4 information: non-paged memory
[    1.278193] spi_master spi0: failed to transfer one message from queue
[    1.283220] Register r5 information: slab kmalloc-512 start c11ff600 pointer offset 64 size 512
[    1.290244] 0x000000040000-0x000000080000 : "dtb"
[    1.298426] Register r6 information: non-slab/vmalloc memory
[    1.298432] Register r7 information: NULL pointer
[    1.298438] Register r8 information: slab kmalloc-512 start c11ff400 pointer offset 64 size 512
[    1.298453] Register r9 information: zero-size pointer
[    1.298459] Register r10 information: NULL pointer
[    1.332084] Register r11 information: NULL pointer
[    1.336871] Register r12 information: non-paged memory
[    1.342004] Process swapper/0 (pid: 0, stack limit = 0x(ptrval))
[    1.348004] Stack: (0xc0d01d50 to 0xc0d02000)
[    1.352359] 1d40:                                     c04a3484 c113b080 c092766c 00000000
[    1.360528] 1d60: 0000001e c12ed000 c0d01dc0 00000018 40000006 c016a854 c1b24500 00000001
[    1.368697] 1d80: c12ed000 c092766c c12ed06c c0c5d208 c880a00c c016a9ac c12ed000 c092766c
[    1.376865] 1da0: c880a000 c016f1e4 c0d052fc c0d7a978 c880a000 c016a108 c0d052fc c046c77c
[    1.385034] 1dc0: c0c5ddfc c0d01df0 00000000 c0d01e24 c0d01e48 c0d08100 00000018 c08b8a08
[    1.393203] 1de0: c049fee4 20000113 ffffffff c0100ba8 c1228168 00000000 00000000 c0d08100
[    1.401371] 1e00: c122814c c11ff53c c1228150 c6ec7328 c0d01e48 00000040 00000018 40000006
[    1.406682] spi_master spi0: spi0.0: timeout transferring 1 bytes@100000000Hz for 110(100)ms
[    1.409540] 1e20: 0000000c c0d01e40 c0121cd8 c049fee4 20000113 ffffffff 00000051 c0d01ee8
[    1.417975] spi-nand spi0.0: SPI transfer failed: -110
[    1.426122] 1e40: c0d01e7c c0146658 00000122 c018b9ac c0d03d40 14fa0c4b 00000000 00000000
[    1.431259] spi_master spi0: failed to transfer one message from queue
[    1.439409] 1e60: 00000000 14fa0c4b 00000000 c122814c c11ff53c c1228150 c6ec7328 c0c5de40
[    1.439418] 1e80: 00000040 00000018 40000006 c0121cd8 00000000 c0d03098 00000100 c0d08100
[    1.462251] 1ea0: c0d01eb0 c0d03080 00000018 c0101384 c880a00c c0d01ee8 c0d03080 c0c5b3b0
[    1.470420] 1ec0: 0000000a c0c5de40 c0c5b324 ffff8b43 c0d03d40 04200002 c880a000 c016a108
[    1.478588] 1ee0: c0d052fc c0d08100 60000013 ffffffff c0d01f4c 00000056 c0d08100 c0c44a68
[    1.486757] 1f00: 00000000 c01221e0 c0107464 c01222a0 c0107464 c0100ba8 00000005 00000000
[    1.494926] 1f20: 00000d79 c01160c0 00000000 c0d04f0c c0d08100 c0d04f54 00000056 00000000
[    1.503094] 1f40: c0c44a68 00000000 c0d03d80 c0d01f68 c0107460 c0107464 60000013 ffffffff
[    1.511263] 1f60: 00000051 c0d04f0c 00000000 c08bfb9c 00000000 c01555b4 000000ec c0d04ec0
[    1.519432] 1f80: 10c0387d c0e1a678 00000056 c01558e8 c0d0c244 c08b8e34 c0def040 c0c00a98
[    1.527600] 1fa0: c0def040 c0c010cc ffffffff ffffffff 00000000 c0c006ec c0d08100 00000000
[    1.535769] 1fc0: 00000000 c0c44a68 14fc0d4b 00000000 00000000 c0c00420 00000051 10c0387d
[    1.543938] 1fe0: ffffffff 44000000 410fc075 10c5387d 00000000 00000000 00000000 00000000
[    1.546676] spi_master spi0: spi0.0: timeout transferring 1 bytes@100000000Hz for 110(100)ms
[    1.552111]  sun6i_dma_interrupt from __handle_irq_event_percpu+0x44/0x118
[    1.560540] spi-nand spi0.0: SPI transfer failed: -110
[    1.567388]  __handle_irq_event_percpu from handle_irq_event+0x44/0x8c
[    1.572533] spi_master spi0: failed to transfer one message from queue
[    1.579044]  handle_irq_event from handle_fasteoi_irq+0x98/0x18c
[    1.579061]  handle_fasteoi_irq from generic_handle_domain_irq+0x28/0x38
[    1.585985] 0x000000080000-0x000000800000 : "kernel"
[    1.591568]  generic_handle_domain_irq from gic_handle_irq+0x74/0x88
[    1.591587]  gic_handle_irq from generic_handle_arch_irq+0x34/0x44
[    1.591603]  generic_handle_arch_irq from __irq_svc+0x88/0xb0
[    1.621480] Exception stack(0xc0d01df0 to 0xc0d01e38)
[    1.626528] 1de0:                                     c1228168 00000000 00000000 c0d08100
[    1.634697] 1e00: c122814c c11ff53c c1228150 c6ec7328 c0d01e48 00000040 00000018 40000006
[    1.642864] 1e20: 0000000c c0d01e40 c0121cd8 c049fee4 20000113 ffffffff
[    1.649472]  __irq_svc from vchan_complete+0x30/0x21c
[    1.654532]  vchan_complete from tasklet_action_common.constprop.0+0xe0/0x108
[    1.661674]  tasklet_action_common.constprop.0 from __do_softirq+0x104/0x27c
[    1.668725]  __do_softirq from __irq_exit_rcu+0xa4/0xc8
[    1.673955]  __irq_exit_rcu from irq_exit+0x8/0x10
[    1.678751]  irq_exit from __irq_svc+0x88/0xb0
[    1.683199] Exception stack(0xc0d01f18 to 0xc0d01f60)
[    1.688245] 1f00:                                                       00000005 00000000
[    1.696414] 1f20: 00000d79 c01160c0 00000000 c0d04f0c c0d08100 c0d04f54 00000056 00000000
[    1.704582] 1f40: c0c44a68 00000000 c0d03d80 c0d01f68 c0107460 c0107464 60000013 ffffffff
[    1.706680] spi_master spi0: spi0.0: timeout transferring 1 bytes@100000000Hz for 110(100)ms
[    1.712747]  __irq_svc from arch_cpu_idle+0x38/0x3c
[    1.721188] spi-nand spi0.0: SPI transfer failed: -110
[    1.726037]  arch_cpu_idle from default_idle_call+0x24/0x34
[    1.731178] spi_master spi0: failed to transfer one message from queue
[    1.736725]  default_idle_call from do_idle+0xa4/0x120
[    1.748376]  do_idle from cpu_startup_entry+0x18/0x1c
[    1.753427]  cpu_startup_entry from rest_init+0xa8/0xac
[    1.758653]  rest_init from arch_post_acpi_subsys_init+0x0/0x8
[    1.764499] Code: e28800fc 1afffff2 ebf1f9c1 eafffff0 (e7f001f2)
[    1.770586] ---[ end trace 0000000000000000 ]---
[    1.775198] Kernel panic - not syncing: Fatal exception in interrupt
[    1.781546] CPU1: stopping
[    1.784256] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D            6.1.0-rc3-443875-gb466df90d48f-dirty #3
[    1.794245] Hardware name: Generic DT based system
[    1.799031]  unwind_backtrace from show_stack+0x10/0x14
[    1.804264]  show_stack from dump_stack_lvl+0x40/0x4c
[    1.809316]  dump_stack_lvl from do_handle_IPI+0xec/0x124
[    1.814716]  do_handle_IPI from ipi_handler+0x18/0x20
[    1.819768]  ipi_handler from handle_percpu_devid_irq+0x78/0x134
[    1.825775]  handle_percpu_devid_irq from generic_handle_domain_irq+0x28/0x38
[    1.832912]  generic_handle_domain_irq from gic_handle_irq+0x74/0x88
[    1.839269]  gic_handle_irq from generic_handle_arch_irq+0x34/0x44
[    1.845449]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    1.851722]  call_with_stack from __irq_svc+0x98/0xb0
[    1.856777] Exception stack(0xc8849f68 to 0xc8849fb0)
[    1.861825] 9f60:                   00000005 00000000 000012a9 c01160c0 00000001 c0d04f0c
[    1.869993] 9f80: c104ee80 c0d04f54 4000406a 410fc075 00000000 00000000 c0d03d80 c8849fb8
[    1.878160] 9fa0: c0107460 c0107464 60000013 ffffffff
[    1.883204]  __irq_svc from arch_cpu_idle+0x38/0x3c
[    1.888087]  arch_cpu_idle from default_idle_call+0x24/0x34
[    1.893666]  default_idle_call from do_idle+0xa4/0x120
[    1.898807]  do_idle from cpu_startup_entry+0x18/0x1c
[    1.903858]  cpu_startup_entry from secondary_start_kernel+0x118/0x120
[    1.910376]  secondary_start_kernel from 0x401015a0
[    1.915261] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

#2 Re: 全志 SOC » 在wsl下开发T113的主线linux(最新gcc+awboot+最新kernel+最新buildroot) » 2023-07-13 09:52:20

插个眼:经过验证,当前的补丁存在一个问题,d1s_t113_can_bus.patch打不成功,需要手动添加代码(估计是补丁有更改)。打完之后会报错,说RST_BUS_CAN0和RST_BUS_CAN1没定义。需要自行再linux\include\dt-bindings\reset\sun20i-d1-ccu.h 末尾添加这两个定义。不然编译不过内核,并且设备树也是编译不过的。改完重新编译即可。

#3 Re: 全志 SOC » 在wsl下开发T113的主线linux(最新gcc+awboot+最新kernel+最新buildroot) » 2023-07-11 15:34:57

大佬,这个设备树编译有问题。

root@ubuntu:/home/t113-s3_master/linux# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- dtbs
  DTC     arch/arm/boot/dts/sun8i-t113-mangopi-dual.dtb
Error: arch/arm/boot/dts/sun8i-t113.dtsi:1333.19-20 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:406: recipe for target 'arch/arm/boot/dts/sun8i-t113-mangopi-dual.dtb' failed
make[1]: *** [arch/arm/boot/dts/sun8i-t113-mangopi-dual.dtb] Error 1
Makefile:1459: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2

#4 Re: 全志 SOC » 荔枝派nano,全志f1c100s的板子rootfs挂不起来。 » 2021-10-20 12:38:33

我发现了一个问题,不管不怎么改变参数,编译出来的uboot始终没有变过,这是怎么回事?有两个参数,分别是:
#define CONFIG_BOOTCOMMAND   "sf probe 0 50000000; "                           \
                             "sf read 0x80C00000 0x100000 0x4000; "  \
                             "sf read 0x80008000 0x110000 0x400000; " \
                             "bootz 0x80008000 - 0x80C00000"

#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait " \
                 " mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) " \
                 " root=/dev/mtdblock3 rw rootfstype=jffs2 "

有一个是可以传递的,有一个不行,但是我改变里面的"sf probe 0 50000000; "  为"sf probe 0 60000000; "  ,编译烧录进去,打印参数信息printenv,还是"sf probe 0 50000000; "  ,所以也就是说,不管怎么编译uboot,我添加进去的东西根本没有编译,原因是什么具体分析不出来。

#6 Re: 全志 SOC » 荔枝派nano,全志f1c100s的板子rootfs挂不起来。 » 2021-10-20 11:05:37

我就是再make menuconfig里面配置的,版本是nano-v2018.01

#8 Re: 全志 SOC » 荔枝派nano,全志f1c100s的板子rootfs挂不起来。 » 2021-10-20 09:46:06

现在唯一的办法就是uboot启动之后,自动添加参数:setenv bootargs 'console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2'
然后保存到uboot,这样子很麻烦。不能再烧录之前写死。

#9 Re: 全志 SOC » 荔枝派nano,全志f1c100s的板子rootfs挂不起来。 » 2021-10-20 09:42:23

赋值了,不起效果,我再uboot的make menuconfig里面配置了console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2    同时关闭了默认配置,打开手动设置,设置成了上面这个console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2 
但是不起效果,已经重新编译烧录,uboot命令行下打印参数信息,没有这个参数。然后我有换了一种方式,在uboot源码目录下 进入 ./include/configs/,修改 suniv.h ,添加了:
#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait " \
                  " mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) " \
                  " root=/dev/mtdblock3 rw rootfstype=jffs2 "

还是不行。一样,大佬知道怎么回事吗?

#10 全志 SOC » 荔枝派nano,全志f1c100s的板子rootfs挂不起来。 » 2021-10-19 16:32:11

shzn
回复: 10

请问各位大佬,又遇到过内核起来之后,挂在不了跟文件系统的问题吗?


*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected xt25f128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fb000, end 816fff2e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (root@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #6 Mon Oct 18 22:44:05 PDT 2021
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22684K/32768K available (6144K kernel code, 236K rwdata, 1388K rodata, 1024K init, 244K bss, 10084K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 237 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 245 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000110] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000631] Console: colour dummy device 80x30
[    0.001475] console [tty0] enabled
[    0.001574] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070285] pid_max: default: 32768 minimum: 301
[    0.070621] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070711] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072273] CPU: Testing write buffer coherency: ok
[    0.073972] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076347] devtmpfs: initialized
[    0.082161] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082332] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.082627] pinctrl core: initialized pinctrl subsystem
[    0.084484] random: get_random_u32 called from bucket_table_alloc+0x80/0x1a4 with crng_init=0
[    0.084820] NET: Registered protocol family 16
[    0.085882] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087701] cpuidle: using governor menu
[    0.112387] SCSI subsystem initialized
[    0.112814] usbcore: registered new interface driver usbfs
[    0.113031] usbcore: registered new interface driver hub
[    0.113274] usbcore: registered new device driver usb
[    0.113738] pps_core: LinuxPPS API ver. 1 registered
[    0.113820] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.113943] PTP clock support registered
[    0.114451] Advanced Linux Sound Architecture Driver Initialized.
[    0.115639] clocksource: Switched to clocksource timer
[    0.141466] NET: Registered protocol family 2
[    0.142921] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.143072] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.143158] TCP: Hash tables configured (established 1024 bind 1024)
[    0.143459] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.143564] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.144078] NET: Registered protocol family 1
[    0.145318] RPC: Registered named UNIX socket transport module.
[    0.145428] RPC: Registered udp transport module.
[    0.145477] RPC: Registered tcp transport module.
[    0.145521] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.147461] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.149287] Initialise system trusted keyrings
[    0.149898] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.167158] NFS: Registering the id_resolver key type
[    0.167314] Key type id_resolver registered
[    0.167370] Key type id_legacy registered
[    0.170155] random: fast init done
[    0.180863] Key type asymmetric registered
[    0.180974] Asymmetric key parser 'x509' registered
[    0.181208] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.181307] io scheduler noop registered
[    0.181353] io scheduler deadline registered
[    0.182117] io scheduler cfq registered (default)
[    0.182211] io scheduler mq-deadline registered
[    0.182265] io scheduler kyber registered
[    0.183405] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.192966] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.359252] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.386037] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.855257] console [ttyS0] enabled
[    0.865773] panel-simple panel: panel supply power not found, using dummy regulator
[    0.875112] SCSI Media Changer driver v0.25
[    0.882868] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[    0.888999] 4 ofpart partitions found on MTD device spi0.0
[    0.894567] Creating 4 MTD partitions on "spi0.0":
[    0.899523] 0x000000000000-0x000000100000 : "u-boot"
[    0.905747] 0x000000100000-0x000000110000 : "dtb"
[    0.911597] 0x000000110000-0x000000510000 : "kernel"
[    0.917740] 0x000000510000-0x000001000000 : "rootfs"
[    0.924271] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.930995] ehci-platform: EHCI generic platform driver
[    0.936631] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.942910] ohci-platform: OHCI generic platform driver
[    0.948668] usbcore: registered new interface driver usb-storage
[    0.955758] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.964796] i2c /dev entries driver
[    1.025756] sunxi-mmc 1c0f000.mmc: base:0x(ptrval) irq:19
[    1.033257] usbcore: registered new interface driver usbhid
[    1.039026] usbhid: USB HID core driver
[    1.060617] NET: Registered protocol family 17
[    1.065404] Key type dns_resolver registered
[    1.071700] Loading compiled-in X.509 certificates
[    1.086966] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0739498)
[    1.095958] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073877c)
[    1.103738] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.110488] [drm] No driver support for vblank timestamp query.
[    1.164529] Console: switching to colour frame buffer device 60x34
[    1.188212] sun4i-drm display-engine: fb0:  frame buffer device
[    1.195780] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.216766] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.246463] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.264522] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.287521] hub 1-0:1.0: USB hub found
[    1.298126] hub 1-0:1.0: 1 port detected
[    1.310221] using random self ethernet address
[    1.321191] using random host ethernet address
[    1.333788] usb0: HOST MAC 1a:c6:90:5a:b5:eb
[    1.344568] usb0: MAC 82:6b:a6:6a:17:fd
[    1.354746] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.374448] g_cdc gadget: g_cdc ready
[    1.385209] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.414886] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.434171] vcc3v3: disabling
[    1.443452] ALSA device list:
[    1.452633]   #0: Loopback 1
[    1.462416] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.483126] cfg80211: failed to load regulatory.db
[    1.495258] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.514820] Please append a correct "root=" boot option; here are the available partitions:
[    1.535250] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.555447] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-rc8-licheepi-nano+ #6
[    1.574686] Hardware name: Allwinner suniv Family
[    1.585451] [<c010e550>] (unwind_backtrace) from [<c010b6a8>] (show_stack+0x10/0x14)
[    1.605015] [<c010b6a8>] (show_stack) from [<c0116878>] (panic+0xb8/0x230)
[    1.623686] [<c0116878>] (panic) from [<c0901190>] (mount_block_root+0x170/0x250)
[    1.643048] [<c0901190>] (mount_block_root) from [<c0901364>] (mount_root+0xf4/0x120)
[    1.663120] [<c0901364>] (mount_root) from [<c09014b8>] (prepare_namespace+0x128/0x188)
[    1.683828] [<c09014b8>] (prepare_namespace) from [<c0900dc0>] (kernel_init_freeable+0x174/0x1b8)
[    1.705760] [<c0900dc0>] (kernel_init_freeable) from [<c064faf0>] (kernel_init+0x8/0x10c)
[    1.727077] [<c064faf0>] (kernel_init) from [<c0107dc0>] (ret_from_fork+0x14/0x34)
[    1.747851] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[  128.485753] random: crng init done

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn