您尚未登录。

楼主 #1 2020-04-26 10:20:14

whoam1
会员
注册时间: 2020-04-09
已发帖子: 18
积分: 18

buildroot如何只编译跟文件系统

buildroot怎么只编译根文件系统呢? 大佬们请告知下

离线

#2 2020-04-28 10:57:12

1484473210
会员
注册时间: 2020-04-23
已发帖子: 10
积分: 10

Re: buildroot如何只编译跟文件系统

入坑太浅,编译了好多次,都是错误

[    1.074011] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.084118] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.285432] random: fast init done
[    1.641564] EXT4-fs (mmcblk0p2): recovery complete
[    1.662113] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.670275] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.677501] devtmpfs: error mounting -2
[    1.682549] Freeing unused kernel memory: 1024K
[    1.687358] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.701518] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.12.0-rc1 #1
[    1.707774] Hardware name: Allwinner sun8i Family

同求编译方法。

离线

#3 2020-04-28 11:04:00

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: buildroot如何只编译跟文件系统

你的 bootargs 是什么?这个是和根文件系统系统有关的错误





离线

#4 2020-04-28 14:08:25

1484473210
会员
注册时间: 2020-04-23
已发帖子: 10
积分: 10

Re: buildroot如何只编译跟文件系统

哇酷小二 说:

你的 bootargs 是什么?这个是和根文件系统系统有关的错误

Target Architecture (ARM (little endian))  --->                                                                   
Target Binary Format (ELF)  --->                                                                                 
Target Architecture Variant (cortex-A7)  --->                                                                     
Target ABI (EABIhf)  --->                                                                                         
Floating point strategy (VFPv4)  --->                                                                           
ARM instruction set (ARM)  --->

新手请教,你指的是这个吗?

离线

#5 2020-04-28 14:30:32

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: buildroot如何只编译跟文件系统

你把linux启动的log贴全吧





离线

#6 2020-04-28 14:41:41

1484473210
会员
注册时间: 2020-04-23
已发帖子: 10
积分: 10

Re: buildroot如何只编译跟文件系统

哇酷小二 说:

你把linux启动的log贴全吧

刚我重新编译了下buildroot,错误就成这个了。
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero+ (xjm@xjm-virtual-machine) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #20 SMP Tue Apr 28 11:47:57 CST 2020
[    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 @c3f63000 s24768 r8192 d24384 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 55152K/65536K available (6144K kernel code, 199K rwdata, 1392K rodata, 1024K init, 260K bss, 10384K 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 : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 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 - 0xc0a31ec0   ( 200 kB)
[    0.000000]        .bss : 0xc0a33000 - 0xc0a7405c   ( 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.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000144] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000351] Console: colour dummy device 80x30
[    0.000387] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000403] pid_max: default: 32768 minimum: 301
[    0.000539] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000551] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001249] CPU: Testing write buffer coherency: ok
[    0.001651] /cpus/cpu@0 missing clock-frequency property
[    0.001676] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002029] Setting up static identity map for 0x40100000 - 0x40100058
[    0.002755] smp: Bringing up secondary CPUs ...
[    0.002774] smp: Brought up 1 node, 1 CPU
[    0.002783] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002790] CPU: All CPU(s) started in SVC mode.
[    0.003568] devtmpfs: initialized
[    0.006328] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006634] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006662] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006823] pinctrl core: initialized pinctrl subsystem
[    0.007809] NET: Registered protocol family 16
[    0.008242] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009463] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009483] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021069] SCSI subsystem initialized
[    0.021351] usbcore: registered new interface driver usbfs
[    0.021416] usbcore: registered new interface driver hub
[    0.021512] usbcore: registered new device driver usb
[    0.021744] pps_core: LinuxPPS API ver. 1 registered
[    0.021756] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.021779] PTP clock support registered
[    0.021999] Advanced Linux Sound Architecture Driver Initialized.
[    0.023762] clocksource: Switched to clocksource arch_sys_counter
[    0.034278] NET: Registered protocol family 2
[    0.034894] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.034926] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.034949] TCP: Hash tables configured (established 1024 bind 1024)
[    0.035034] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.035080] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.035285] NET: Registered protocol family 1
[    0.035897] RPC: Registered named UNIX socket transport module.
[    0.035918] RPC: Registered udp transport module.
[    0.035924] RPC: Registered tcp transport module.
[    0.035930] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.038081] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.047157] NFS: Registering the id_resolver key type
[    0.047215] Key type id_resolver registered
[    0.047222] Key type id_legacy registered
[    0.051139] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.051160] io scheduler noop registered
[    0.051166] io scheduler deadline registered
[    0.051362] io scheduler cfq registered (default)
[    0.055660] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.124809] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.128050] console [ttyS0] disabled
[    0.148336] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.702512] console [ttyS0] enabled
[    0.727493] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 32, base_baud = 1500000) is a U6_16550A
[    0.737187] [drm] Initialized
[    0.742006] SPI driver: fifo=64
[    0.743125] libphy: Fixed MDIO Bus: probed
[    0.750756] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.757344] ehci-platform: EHCI generic platform driver
[    0.762661] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.768894] ohci-platform: OHCI generic platform driver
[    0.774595] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.784320] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.791114] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.795748] i2c /dev entries driver
[    0.800569] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.810133] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.873802] sunxi-mmc 1c0f000.mmc: base:0xc4861000 irq:23
[    0.880131] usbcore: registered new interface driver usbhid
[    0.885796] usbhid: USB HID core driver
[    0.891366] NET: Registered protocol family 17
[    0.896047] Key type dns_resolver registered
[    0.900443] Registering SWP/SWPB emulation handler
[    0.911634] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.919596] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    0.925447] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    0.936692] hub 1-0:1.0: USB hub found
[    0.940566] hub 1-0:1.0: 1 port detected
[    0.945395] using random self ethernet address
[    0.949895] using random host ethernet address
[    0.955372] usb0: HOST MAC ea:76:4c:1a:ef:88
[    0.959740] usb0: MAC 22:da:ae:12:24:7c
[    0.963617] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    0.971197] g_cdc gadget: g_cdc ready
[    0.975206] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 02:12:21 UTC (7941)
[    0.983631] vcc3v0: disabling
[    0.986676] vcc5v0: disabling
[    0.989645] ALSA device list:
[    0.992606]   No soundcards found.
[    0.998101] Waiting for root device /dev/mmcblk0p2...
[    1.040845] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.050889] mmc0: new high speed SDHC card at address 1234
[    1.057419] mmcblk0: mmc0:1234 SA08G 7.21 GiB
[    1.063546]  mmcblk0: p1 p2
[    1.085918] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.096057] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.136764] random: fast init done
[    1.271438] EXT4-fs (mmcblk0p2): recovery complete
[    1.280186] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.288403] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.295747] devtmpfs: mounted
[    1.299891] Freeing unused kernel memory: 1024K
[    1.328860] request_module: runaway loop modprobe binfmt-0000
[    1.339143] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.363582] request_module: runaway loop modprobe binfmt-0000
[    1.374177] Starting init: /bin/sh exists but couldn't execute it (error -8)
[    1.381237] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.395387] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.15-licheepi-zero+ #20
[    1.402770] Hardware name: Allwinner sun8i Family
[    1.407510] [<c010e308>] (unwind_backtrace) from [<c010b10c>] (show_stack+0x10/0x14)
[    1.415255] [<c010b10c>] (show_stack) from [<c0333380>] (dump_stack+0x94/0xa8)
[    1.422479] [<c0333380>] (dump_stack) from [<c01a53f0>] (panic+0xdc/0x254)
[    1.429359] [<c01a53f0>] (panic) from [<c0642a4c>] (kernel_init+0x104/0x114)
[    1.436406] [<c0642a4c>] (kernel_init) from [<c0107678>] (ret_from_fork+0x14/0x3c)
[    1.443979] Rebooting in 5 seconds..

离线

页脚

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

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