页次: 1
根据错误消息来看,可能是由于内存不足导致的问题。ffmpeg在执行过程中需要大量的内存来处理视频数据,而您的系统上可能存在内存不足的情况,因此出现了"page allocation failure"和"Cannot allocate memory"的错误。
要解决这个问题,您可以尝试以下几个方法:
释放系统内存:关闭其他占用大量内存的程序或服务,以释放更多的空闲内存。可以通过查看系统中运行的进程,然后关闭不必要的进程来释放内存资源。
优化ffmpeg参数:通过调整ffmpeg的参数,减少其对内存的需求,例如减小视频处理分辨率、降低视频质量等。您可以针对具体场景和需求,适当调整ffmpeg命令的参数,以减少内存占用。
增加系统内存:如果您的系统内存确实不足,可以考虑增加内存条或更换到内存更大的设备,以提供足够的内存资源来支持ffmpeg的运行。
请注意,根据错误消息的描述,这个问题可能是由于内存不足导致的,但也可能存在其他原因。如果上述方法无法解决问题,请提供更多的上下文和详细信息,以便能够更准确地帮助您解决问题。
楼主在做视频的编解码
用的aodzip大佬的dev/ion和lib
然后配置编解码器的时候
先注册编码器 解码器就没法注册, 先注册解码器 编码器就没法注册
有做过的人遇到这个问题吗
先注册解码器后注册编码器
debug : cedarc <VeSetSpeed:1559>: *** set ve freq to 360 Mhz ***
debug : cedarc <VeInitialize:1198>: ve init ok
debug : ionAlloc <__GetIonMemOpsS:985>:*** get __GetIonMemOpsS ***
debug : ionAlloc <ion_alloc_open:134>:begin ion_alloc_open
debug : cedarc <VideoEncInit:195>: (f:VideoEncInit, l:195)
debug : cedarc <VideoEncInit:210>: (f:VideoEncInit, l:210)
error : ionAlloc <ion_alloc_palloc:335>:ION_IOC_ALLOC error
error : cedarc <BitStreamCreate:45>: pSbmBuf == NULL.
error : cedarc <H264InitMemory:904>: h264Context->pBSMamager == NULL
error : cedarc <BitStreamFreeBufferSize:180>: BitStreamManager == NULL.
error : cedarc <BitStreamFreeBufferSize:180>: BitStreamManager == NULL.
先注册编码器 后注册解码器
error :ionAlloc <ion_alloc_palloc:335>:ION_IOC_ALLOC error
error :<SbmFrameInit:259>: palloc for sbmBuf failed, size = 4 MB
error :cedarc<InitializeVideoDecoder:502>: sbm init failed
开机的情况如下
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.10.2-licheepi-zero+ (zp@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #15 SMP Sat Apr 15 21:38:23 CST 2017
[ 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] percpu: Embedded 14 pages/cpu @c3dea000 s24652 r8192 d24500 u57344
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53628K/64036K available (6144K kernel code, 213K rwdata, 1472K rodata, 1024K init, 260K bss, 10408K 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 : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a35600 ( 214 kB)
[ 0.000000] .bss : 0xc0a37000 - 0xc0a781cc ( 261 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected 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.000148] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000358] Console: colour dummy device 80x30
[ 0.000784] console [tty0] enabled
[ 0.000824] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000861] pid_max: default: 32768 minimum: 301
[ 0.001020] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001048] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001779] CPU: Testing write buffer coherency: ok
[ 0.002217] /cpus/cpu@0 missing clock-frequency property
[ 0.002261] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002673] Setting up static identity map for 0x40100000 - 0x40100058
[ 0.003475] smp: Bringing up secondary CPUs ...
[ 0.003516] smp: Brought up 1 node, 1 CPU
[ 0.003537] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003556] CPU: All CPU(s) started in SVC mode.
[ 0.004368] devtmpfs: initialized
[ 0.007118] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007457] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007513] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007689] pinctrl core: initialized pinctrl subsystem
[ 0.008700] NET: Registered protocol family 16
[ 0.009202] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.010560] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.010611] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.022001] SCSI subsystem initialized
[ 0.022325] usbcore: registered new interface driver usbfs
[ 0.022414] usbcore: registered new interface driver hub
[ 0.022526] usbcore: registered new device driver usb
[ 0.022767] pps_core: LinuxPPS API ver. 1 registered
[ 0.022793] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.022843] PTP clock support registered
[ 0.023081] Advanced Linux Sound Architecture Driver Initialized.
[ 0.024952] clocksource: Switched to clocksource arch_sys_counter
[ 0.025797] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000
[ 0.025852] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 0.032741] Console: switching to colour frame buffer device 100x30
[ 0.042569] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 0.056620] NET: Registered protocol family 2
[ 0.061045] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.065022] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.068828] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.072655] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.076446] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.080350] NET: Registered protocol family 1
[ 0.084605] RPC: Registered named UNIX socket transport module.
[ 0.088373] RPC: Registered udp transport module.
[ 0.091954] RPC: Registered tcp transport module.
[ 0.095440] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.101184] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.113803] NFS: Registering the id_resolver key type
[ 0.117457] Key type id_resolver registered
[ 0.120834] Key type id_legacy registered
[ 0.124193] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.132152] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.135901] io scheduler noop registered
[ 0.139420] io scheduler deadline registered
[ 0.143072] io scheduler cfq registered (default)
[ 0.150706] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.224321] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.231306] console [ttyS0] disabled
[ 0.255094] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[ 0.855506] console [ttyS0] enabled
[ 0.863142] [drm] Initialized
[ 0.871352] libphy: Fixed MDIO Bus: probed
[ 0.879145] usbcore: registered new interface driver r8152
[ 0.887964] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.897745] ehci-platform: EHCI generic platform driver
[ 0.906292] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.915733] ohci-platform: OHCI generic platform driver
[ 0.924295] usbcore: registered new interface driver usb-storage
[ 0.933594] usbcore: registered new interface driver ums-freecom
[ 0.943177] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 0.956137] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.966313] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.974058] i2c /dev entries driver
[ 0.982192] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[ 0.995464] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.065001] sunxi-mmc 1c0f000.mmc: base:0xc405d000 irq:23
[ 1.074852] usbcore: registered new interface driver usbhid
[ 1.083998] usbhid: USB HID core driver
[ 1.093098] NET: Registered protocol family 17
[ 1.101346] Key type dns_resolver registered
[ 1.109235] Registering SWP/SWPB emulation handler
[ 1.126260] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.137819] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.147276] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.160069] hub 1-0:1.0: USB hub found
[ 1.167622] hub 1-0:1.0: 1 port detected
[ 1.175869] using random self ethernet address
[ 1.183741] using random host ethernet address
[ 1.192485] usb0: HOST MAC 06:c7:28:e9:ca:7b
[ 1.200139] usb0: MAC 3a:f5:8c:6e:55:a9
[ 1.207258] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.218095] g_cdc gadget: g_cdc ready
[ 1.225352] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:12 UTC (12)
[ 1.237063] vcc3v0: disabling
[ 1.243370] vcc5v0: disabling
[ 1.249600] ALSA device list:
[ 1.255731] No soundcards found.
[ 1.266011] Waiting for root device /dev/mmcblk0p2...
[ 1.312320] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.326300] mmc0: new high speed SDHC card at address 5048
[ 1.335850] mmcblk0: mmc0:5048 SD32G 29.7 GiB
[ 1.346079] mmcblk0: p1 p2
[ 1.356650] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.369625] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.411377] random: fast init done
[ 1.424697] EXT4-fs (mmcblk0p2): recovery complete
[ 1.437080] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.448434] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.459280] devtmpfs: mounted
[ 1.466785] Freeing unused kernel memory: 1024K
[ 1.580319] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
内核下载来自官方的
git clone -b zero-5.2.y --depth 1 https://github.com/Lichee-Pi/linux.git
按照aodzip的步骤
将cedar放入内核中
编译配置
> Device Drivers > Staging drivers > Media staging drivers
[星] Allwinner sunXi family Video Devices
<星> Allwinner CedarX Video Engine Driver # ve驱动
<星> Allwinner CedarX Ion Driver #ion接口
> Library routines
- 星号-DMA Contiguous Memory Allocator
Default contiguous memory area size:
(32) Size in Mega Bytes
Selected region size (Use mega bytes value only) --->
按照提示修改设备树
修改sun8i-v3s.dtsi
编译后将zimage和sun8i-v3s-licheepi-zero.dtb放进第一分区
跑起来后没有/dev/ion和/dev/cedar_dev
楼主能讲解一下在v3s上安装网卡驱动的步骤吗,我安装完驱动之后,插上网卡会报错
17.094347] ------------[ cut here ]------------
[ 17.104633] WARNING: CPU: 0 PID: 265 at /home/ookk303/rtl8812au-v5.2.20/os_dep/linux/os_intfs.c:2982 rtw_os_ndevs_register+0xcc/0x118 [88XXau_wfb]
[ 17.127575] Modules linked in: 88XXau_wfb(O+)
[ 17.136712] CPU: 0 PID: 265 Comm: insmod Tainted: G W O 5.2.0-licheepi-zero+ #3
[ 17.149880] Hardware name: Allwinner sun8i Family
[ 17.159203] [<c010eb1c>] (unwind_backtrace) from [<c010b61c>] (show_stack+0x10/0x14)
[ 17.171577] [<c010b61c>] (show_stack) from [<c072c200>] (dump_stack+0x84/0x98)
[ 17.183353] [<c072c200>] (dump_stack) from [<c011d830>] (__warn+0xfc/0x114)
[ 17.194764] [<c011d830>] (__warn) from [<c011d960>] (warn_slowpath_null+0x40/0x48)
[ 17.207586] [<c011d960>] (warn_slowpath_null) from [<bf0a29a0>] (rtw_os_ndevs_register+0xcc/0x118 [88XXau_wfb])
[ 17.228057] [<bf0a29a0>] (rtw_os_ndevs_register [88XXau_wfb]) from [<bf0a2a38>] (rtw_os_ndevs_init+0x1c/0x44 [88XXau_wfb])
[ 17.249689] [<bf0a2a38>] (rtw_os_ndevs_init [88XXau_wfb]) from [<bf0a3af8>] (rtw_drv_init+0x2dc/0x394 [88XXau_wfb])
[ 17.270231] [<bf0a3af8>] (rtw_drv_init [88XXau_wfb]) from [<c049c284>] (usb_probe_interface+0xf8/0x238)
[ 17.289050] [<c049c284>] (usb_probe_interface) from [<c043388c>] (really_probe+0x1dc/0x2d8)
[ 17.302165] [<c043388c>] (really_probe) from [<c0433b00>] (driver_probe_device+0x60/0x168)
[ 17.315134] [<c0433b00>] (driver_probe_device) from [<c0433da8>] (device_driver_attach+0x58/0x60)
[ 17.328689] [<c0433da8>] (device_driver_attach) from [<c0433e30>] (__driver_attach+0x80/0xbc)
[ 17.341903] [<c0433e30>] (__driver_attach) from [<c0431c30>] (bus_for_each_dev+0x68/0xb4)
[ 17.354771] [<c0431c30>] (bus_for_each_dev) from [<c0432c28>] (bus_add_driver+0x140/0x1e8)
[ 17.367727] [<c0432c28>] (bus_add_driver) from [<c043464c>] (driver_register+0x78/0x110)
[ 17.380478] [<c043464c>] (driver_register) from [<c049aed0>] (usb_register_driver+0x70/0x134)
[ 17.394420] [<c049aed0>] (usb_register_driver) from [<bf204040>] (rtw_drv_entry+0x40/0x1000 [88XXau_wfb])
[ 17.414110] [<bf204040>] (rtw_drv_entry [88XXau_wfb]) from [<c01026fc>] (do_one_initcall+0x54/0x1b8)
[ 17.433008] [<c01026fc>] (do_one_initcall) from [<c019d2c4>] (do_init_module+0x5c/0x20c)
[ 17.446096] [<c019d2c4>] (do_init_module) from [<c019c310>] (load_module+0x1c80/0x22b8)
[ 17.459028] [<c019c310>] (load_module) from [<c019cb94>] (sys_finit_module+0xc8/0xd8)
[ 17.471819] [<c019cb94>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 17.484957] Exception stack(0xc1c35fa8 to 0xc1c35ff0)
[ 17.494922] 5fa0: b687fd00 00446cdc 00000003 0044ae80 00000000 00000002
[ 17.508082] 5fc0: b687fd00 00446cdc b6f06f10 0000017b 00000000 00446cdc 0045d000 00000000
[ 17.521202] 5fe0: be89ec30 be89ec20 004416c3 b6e81a42
[ 17.531326] ---[ end trace 44385726c32a1910 ]---
[ 17.708975] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[ 17.919663] usbcore: registered new interface driver rtl88xxau_wfb
当我insmod 完驱动
一旦接线就
17.094347] ------------[ cut here ]------------
[ 17.104633] WARNING: CPU: 0 PID: 265 at /home/ookk303/rtl8812au-v5.2.20/os_dep/linux/os_intfs.c:2982 rtw_os_ndevs_register+0xcc/0x118 [88XXau_wfb]
[ 17.127575] Modules linked in: 88XXau_wfb(O+)
[ 17.136712] CPU: 0 PID: 265 Comm: insmod Tainted: G W O 5.2.0-licheepi-zero+ #3
[ 17.149880] Hardware name: Allwinner sun8i Family
[ 17.159203] [<c010eb1c>] (unwind_backtrace) from [<c010b61c>] (show_stack+0x10/0x14)
[ 17.171577] [<c010b61c>] (show_stack) from [<c072c200>] (dump_stack+0x84/0x98)
[ 17.183353] [<c072c200>] (dump_stack) from [<c011d830>] (__warn+0xfc/0x114)
[ 17.194764] [<c011d830>] (__warn) from [<c011d960>] (warn_slowpath_null+0x40/0x48)
[ 17.207586] [<c011d960>] (warn_slowpath_null) from [<bf0a29a0>] (rtw_os_ndevs_register+0xcc/0x118 [88XXau_wfb])
[ 17.228057] [<bf0a29a0>] (rtw_os_ndevs_register [88XXau_wfb]) from [<bf0a2a38>] (rtw_os_ndevs_init+0x1c/0x44 [88XXau_wfb])
[ 17.249689] [<bf0a2a38>] (rtw_os_ndevs_init [88XXau_wfb]) from [<bf0a3af8>] (rtw_drv_init+0x2dc/0x394 [88XXau_wfb])
[ 17.270231] [<bf0a3af8>] (rtw_drv_init [88XXau_wfb]) from [<c049c284>] (usb_probe_interface+0xf8/0x238)
[ 17.289050] [<c049c284>] (usb_probe_interface) from [<c043388c>] (really_probe+0x1dc/0x2d8)
[ 17.302165] [<c043388c>] (really_probe) from [<c0433b00>] (driver_probe_device+0x60/0x168)
[ 17.315134] [<c0433b00>] (driver_probe_device) from [<c0433da8>] (device_driver_attach+0x58/0x60)
[ 17.328689] [<c0433da8>] (device_driver_attach) from [<c0433e30>] (__driver_attach+0x80/0xbc)
[ 17.341903] [<c0433e30>] (__driver_attach) from [<c0431c30>] (bus_for_each_dev+0x68/0xb4)
[ 17.354771] [<c0431c30>] (bus_for_each_dev) from [<c0432c28>] (bus_add_driver+0x140/0x1e8)
[ 17.367727] [<c0432c28>] (bus_add_driver) from [<c043464c>] (driver_register+0x78/0x110)
[ 17.380478] [<c043464c>] (driver_register) from [<c049aed0>] (usb_register_driver+0x70/0x134)
[ 17.394420] [<c049aed0>] (usb_register_driver) from [<bf204040>] (rtw_drv_entry+0x40/0x1000 [88XXau_wfb])
[ 17.414110] [<bf204040>] (rtw_drv_entry [88XXau_wfb]) from [<c01026fc>] (do_one_initcall+0x54/0x1b8)
[ 17.433008] [<c01026fc>] (do_one_initcall) from [<c019d2c4>] (do_init_module+0x5c/0x20c)
[ 17.446096] [<c019d2c4>] (do_init_module) from [<c019c310>] (load_module+0x1c80/0x22b8)
[ 17.459028] [<c019c310>] (load_module) from [<c019cb94>] (sys_finit_module+0xc8/0xd8)
[ 17.471819] [<c019cb94>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 17.484957] Exception stack(0xc1c35fa8 to 0xc1c35ff0)
[ 17.494922] 5fa0: b687fd00 00446cdc 00000003 0044ae80 00000000 00000002
[ 17.508082] 5fc0: b687fd00 00446cdc b6f06f10 0000017b 00000000 00446cdc 0045d000 00000000
[ 17.521202] 5fe0: be89ec30 be89ec20 004416c3 b6e81a42
[ 17.531326] ---[ end trace 44385726c32a1910 ]---
[ 17.708975] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[ 17.919663] usbcore: registered new interface driver rtl88xxau_wfb
有dalao知道怎么解决吗
1、下载内核(官方5.2内核)
2、menuconfig配置的decice drivers ->network device support -> wireless lan下的
IEEE 802.111 .........(..../CCMP) 这个选上
3、下载rtl8812au的驱动,把makefile里的
CONFIG_PLATFORM_I386_PC = n #(关闭pc编译)
CONFIG_PLATFORM_ARM_RPI = y # (编译平台选择arm)
ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
ARCH ?= arm #(编译环境)
CROSS_COMPILE ?= arm-linux-gnueabihf- #(编译链)
KVER ?= #(licheepi5.2内核的名字)
KSRC := #(编译内核的位置)
MODDESTDIR :=#(网卡编译位置)
4、然后编译出88xxau.ko
5、编译内核
6、把设备树和zimage 放进去卡里
直接选择安装,找不到安装包
root@LicheePi:~# apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.2.0-licheepi-zero
E: Couldn't find any package by regex 'linux-headers-5.2.0-licheepi-zero'
所以我按照https://wiki.sipeed.com/soft/Lichee/zh/Zero-Doc/application/autorun.html
把编译好的mingetty和login放入卡里
修改了/etc/inittab里之后
还是要登陆,而且连root账户也登不了了
有人知道要怎么改掉这个登陆吗:|
最后用这个解决了
https://blog.csdn.net/weixin_41594119/article/details/122682054
已经按照这个步骤改了, logintest也是在root下创建的
开机自启动
buildroot 根文件系统
修改/etc/inittab:
ttyS0::respawn:/root/logintest -L ttyS0 115200 vt100
新建logintest:
#!/bin/sh
/bin/login -f root
开机还是会显示
[ 4.131715] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 4.596826] systemd-journald[98]: Received request to flush runtime journal from PID 1
Debian GNU/Linux 8 LicheePi ttyS0
LicheePi login:
页次: 1