页次: 1
拷贝 rtl8723bs_nic.bin 到根文件系统的 /lib/firmware/rtlwifi/ 目录下.
这个文件链接现在下不了了,能帮忙发一下最新的下载链接么?
你试一试荔枝派github.com仓库里面的5.2.y
貌似可以了,谢谢大神指点。我后面贴一下自己的摸坑之路,,
你试一试荔枝派github.com仓库里面的5.2.y
好的,我晚上回去试试
能否稍微指导一下,从哪里开始查起?
也是偶然中发现了这么个宝藏之地,之前买的荔枝派Zero一直处于吃灰的状态,网上的资料也不是很多,所以就一直处于吃灰的状态。最近按照论坛上的教程,已经成功bringup了最小系统,相关文档也在整理中,等整理完了再放出来大家共享。
现在遇到一点问题,V3S的有限网卡无法使用,硬件是荔枝派Zero,二代一体开发板。
先贴一下编译的相关信息吧:
kernel:https://cdn.kernel.org/pub/linux/kernel/v5.x/ #我这里使用的是5.3.6的版本
buildroot:https://buildroot.org/download.html #我这里使用的是最新版本buildroot-2021.02.1.tar.bz2
按照https://www.kancloud.cn/lichee/lpi0/327886上面的指引,对dtb文件进行了调整,
这里贴一下我改过之后的文件,使用的是sun8i-v3s-licheepi-zero.dtb
dts & config file.zip
启动之后遇到了死机的情况。
如果不改dts文件的话,linux启动是正常的,但是无法使用ethernet的功能。在dts文件中搜索,也没有发现emac或者ethernet的字眼,可能默认没有配置。
还希望哪位大神给看下咋回事,谢谢=。=
启动日志:
U-Boot SPL 2017.01-rc2-00057-g32ab1804cd (May 20 2021 - 16:47:33)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2-00057-g32ab1804cd (May 20 2021 - 16:47:33 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2-00057-g32ab1804cd (May 20 2021 - 16:47:33 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zimage
4249480 bytes read in 224 ms (18.1 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
9460 bytes read in 26 ms (354.5 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dff4f3 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.3.6 (enterprisez@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #2 SMP Fri May 21 20:02:31 PDT 2021
[ 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: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0x43000000
[ 0.000000] percpu: Embedded 15 pages/cpu s30412 r8192 d22836 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p2 init=/linuxrc rootwait panic=10
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 38524K/65536K available (6144K kernel code, 434K rwdata, 1664K rodata, 1024K init, 243K bss, 10628K reserved, 16384K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 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=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x300/0x490 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000220] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000453] Console: colour dummy device 80x30
[ 0.000514] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000529] pid_max: default: 32768 minimum: 301
[ 0.000691] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000709] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001569] CPU: Testing write buffer coherency: ok
[ 0.002092] /cpus/cpu@0 missing clock-frequency property
[ 0.002119] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002891] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003128] rcu: Hierarchical SRCU implementation.
[ 0.003610] smp: Bringing up secondary CPUs ...
[ 0.003628] smp: Brought up 1 node, 1 CPU
[ 0.003638] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003646] CPU: All CPU(s) started in SVC mode.
[ 0.004477] devtmpfs: initialized
[ 0.007412] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007726] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007756] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.008587] pinctrl core: initialized pinctrl subsystem
[ 0.009810] NET: Registered protocol family 16
[ 0.011112] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.012371] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.012390] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.027643] SCSI subsystem initialized
[ 0.028338] usbcore: registered new interface driver usbfs
[ 0.028415] usbcore: registered new interface driver hub
[ 0.028505] usbcore: registered new device driver usb
[ 0.028764] pps_core: LinuxPPS API ver. 1 registered
[ 0.028777] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.028797] PTP clock support registered
[ 0.029049] Advanced Linux Sound Architecture Driver Initialized.
[ 0.030396] clocksource: Switched to clocksource arch_sys_counter
[ 0.041422] thermal_sys: Registered thermal governor 'step_wise'
[ 0.041770] NET: Registered protocol family 2
[ 0.042404] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.042442] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.042468] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.042491] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.042639] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.042694] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.042930] NET: Registered protocol family 1
[ 0.043904] RPC: Registered named UNIX socket transport module.
[ 0.043927] RPC: Registered udp transport module.
[ 0.043934] RPC: Registered tcp transport module.
[ 0.043939] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.045930] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.054327] NFS: Registering the id_resolver key type
[ 0.054393] Key type id_resolver registered
[ 0.054402] Key type id_legacy registered
[ 0.054535] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.054548] io scheduler mq-deadline registered
[ 0.054555] io scheduler kyber registered
[ 0.055474] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.059289] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.126419] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.128844] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.129971] printk: console [ttyS0] disabled
[ 0.150275] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 0.693272] printk: console [ttyS0] enabled
[ 0.721109] libphy: Fixed MDIO Bus: probed
[ 0.725221] CAN device driver interface
[ 0.729628] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.735519] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.741738] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 38000 (expect 58000)
[ 0.751132] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.758350] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.765587] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.770561] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.777342] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.783005] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.796015] libphy: stmmac: probed
[ 0.800104] dwmac-sun8i 1c30000.ethernet: Cannot get mdio-mux node
[ 0.806457] ------------[ cut here ]------------
[ 0.811081] kernel BUG at net/core/dev.c:9252!
[ 0.815518] Internal error: Oops - BUG: 0 [#1] SMP ARM
[ 0.820651] Modules linked in:
[ 0.823710] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.3.6 #2
[ 0.829533] Hardware name: Allwinner sun8i Family
[ 0.834249] PC is at free_netdev+0xe0/0xe4
[ 0.838342] LR is at free_netdev+0x9c/0xe4
[ 0.842432] pc : [<c05d40c0>] lr : [<c05d407c>] psr: 80000013
[ 0.848688] sp : c2839df0 ip : fffff9ec fp : 00000000
[ 0.853904] r10: c28b03a8 r9 : c2b17800 r8 : c2839e04
[ 0.859121] r7 : c0a04c48 r6 : c2b1c038 r5 : c2b1c000 r4 : c2b1bf88
[ 0.865629] r3 : 00000001 r2 : 00000000 r1 : a0000013 r0 : c0a93f4c
[ 0.872148] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 0.879272] Control: 10c5387d Table: 4000406a DAC: 00000051
[ 0.885012] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[ 0.891011] Stack: (0xc2839df0 to 0xc283a000)
[ 0.895365] 9de0: c2b17880 0000000c c28b0210 c045ca94
[ 0.903533] 9e00: c0a4ef70 c2b17400 c298e9c0 b4b1091a 00000000 c0aa232c c28b0210 c0aa2330
[ 0.911701] 9e20: 00000000 ffffffed c0a4ef70 00000000 c2fffe80 c0458ba0 c28b0210 c0a4ef70
[ 0.919869] 9e40: c0a4ef70 c0a04c48 00000000 00000007 c093a83c c0458f18 c0aa41c4 c075cbd8
[ 0.928037] 9e60: a0000013 c28b0210 00000000 c0a4ef70 c0a04c48 00000000 00000007 c093a83c
[ 0.936205] 9e80: c2fffe80 c04591c0 00000000 c0a4ef70 c28b0210 c0459248 00000000 c0a4ef70
[ 0.944373] 9ea0: c04591c8 c0457068 00000007 c2808f58 c2892ab4 b4b1091a c0a4c770 c0a4ef70
[ 0.952541] 9ec0: c2b17380 c0a4c770 00000000 c0457ff8 c0830658 ffffe000 c0a4ef70 c0a4ef70
[ 0.960709] 9ee0: c0a04c48 ffffe000 c091eb4c c0459a70 c0a6cb00 c0a04c48 ffffe000 c01026fc
[ 0.968877] 9f00: c089e6bc 000000cb 00000006 c013b300 c089e644 00000000 c0900608 00000000
[ 0.977045] 9f20: 00000006 00000006 c07fc250 c07f1fa8 c07f201c c0a04c48 00000000 c2fffece
[ 0.985213] 9f40: c2fffed4 b4b1091a 00000000 b4b1091a c0a6cb00 c0a6cb00 c094eb38 c093a834
[ 0.993381] 9f60: 000000cb c093a83c c2fffe80 c0900f18 00000006 00000006 00000000 c0900608
[ 1.001549] 9f80: 00000000 00000000 c06c3d2c 00000000 00000000 00000000 00000000 00000000
[ 1.009716] 9fa0: 00000000 c06c3d34 00000000 c01010e8 00000000 00000000 00000000 00000000
[ 1.017883] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.026051] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 1.034238] [<c05d40c0>] (free_netdev) from [<c045ca94>] (release_nodes+0x178/0x1fc)
[ 1.041981] [<c045ca94>] (release_nodes) from [<c0458ba0>] (really_probe+0xd0/0x2c8)
[ 1.049718] [<c0458ba0>] (really_probe) from [<c0458f18>] (driver_probe_device+0x60/0x160)
[ 1.057974] [<c0458f18>] (driver_probe_device) from [<c04591c0>] (device_driver_attach+0x58/0x60)
[ 1.066837] [<c04591c0>] (device_driver_attach) from [<c0459248>] (__driver_attach+0x80/0xbc)
[ 1.075352] [<c0459248>] (__driver_attach) from [<c0457068>] (bus_for_each_dev+0x68/0xb4)
[ 1.083522] [<c0457068>] (bus_for_each_dev) from [<c0457ff8>] (bus_add_driver+0xec/0x1e0)
[ 1.091692] [<c0457ff8>] (bus_add_driver) from [<c0459a70>] (driver_register+0x78/0x10c)
[ 1.099778] [<c0459a70>] (driver_register) from [<c01026fc>] (do_one_initcall+0x54/0x1b4)
[ 1.107956] [<c01026fc>] (do_one_initcall) from [<c0900f18>] (kernel_init_freeable+0x13c/0x1d8)
[ 1.116650] [<c0900f18>] (kernel_init_freeable) from [<c06c3d34>] (kernel_init+0x8/0x10c)
[ 1.124821] [<c06c3d34>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[ 1.132378] Exception stack(0xc2839fb0 to 0xc2839ff8)
[ 1.137423] 9fa0: 00000000 00000000 00000000 00000000
[ 1.145590] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.153756] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.160366] Code: e19500b3 e0450000 e8bd4070 eaeff552 (e7f001f2)
[ 1.166464] ---[ end trace 52619e75a2b14469 ]---
[ 1.171238] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 1.178901] Rebooting in 10 seconds..
[ 12.182812] Reboot failed -- System halted
页次: 1