buildroot编译和qemu运行生成的文件系统

        Buildroot 是一个重要的linux工具,它简化了为嵌入式系统构建完整 Linux 系统的过程。Buildroot 能够为目标主板生成交叉编译工具链、引导加载程序、Linux 内 核映像和根文件系统。Buildroot 可以独立使用这些选项的任何组合(例如,您可以使用现有的交叉编译工具链,并仅使用 Buildroot 构建根文件系统)。

        Buildroot 支持众多处理器,包括PowerPC 处理器、MIPS 处理器、ARM 处理器,RISV等,它还为几种现成的开发板提供了默认配置。除此之外,还有许多第三方项目是基于 Buildroot开发的,总之,对于嵌入式Linux开发的人员来说,学会使用buildroot的开发非常重要。

buildroot下载

buildroot下载目录:Buildroot - Making Embedded Linux Easyhttps://buildroot.org/download.html

[qemu]$wget  https://buildroot.org/downloads/buildroot-2024.02.10.tar.gz
--2025-02-21 15:20:02--  https://buildroot.org/downloads/buildroot-2024.02.10.tar.gz
Resolving buildroot.org (buildroot.org)... 138.201.205.61
Connecting to buildroot.org (buildroot.org)|138.201.205.61|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7481398 (7.1M) [application/x-gtar-compressed]
Saving to: ‘buildroot-2024.02.10.tar.gz’

buildroot-2024.02.10.tar   8%[=>                               ] 612.00K  93.8KB/s    eta 67s

buildroot配置

解压完成以后,configs目录下包含多种配置

[buildroot-2024.02.10]$ls configs/
aarch64_efi_defconfig                           olimex_a13_olinuxino_defconfig
acmesystems_acqua_a5_256mb_defconfig            olimex_a20_olinuxino_lime2_defconfig
acmesystems_acqua_a5_512mb_defconfig            olimex_a20_olinuxino_lime_defconfig
acmesystems_aria_g25_128mb_defconfig            olimex_a20_olinuxino_micro_defconfig
acmesystems_aria_g25_256mb_defconfig            olimex_a33_olinuxino_defconfig
acmesystems_arietta_g25_128mb_defconfig         olimex_a64_olinuxino_defconfig
acmesystems_arietta_g25_256mb_defconfig         olimex_imx233_olinuxino_defconfig
am574x_idk_defconfig                            olimex_stmp157_olinuxino_lime_defconfig
amarula_vyasa_rk3288_defconfig                  olpc_xo175_defconfig
andes_ae350_45_defconfig                        olpc_xo1_defconfig
arcturus_ucls1012a_defconfig                    openblocks_a6_defconfig
arcturus_ucp1020_defconfig                      orangepi_lite2_defconfig
armadeus_apf27_defconfig                        orangepi_lite_defconfig
armadeus_apf28_defconfig                        orangepi_one_defconfig
armadeus_apf51_defconfig                        orangepi_one_plus_defconfig
arm_foundationv8_defconfig                      orangepi_pc2_defconfig
aspeed_ast2500evb_defconfig                     orangepi_pc_defconfig
aspeed_ast2600evb_defconfig                     orangepi_pc_plus_defconfig
asus_tinker_rk3288_defconfig                    orangepi_r1_defconfig
asus_tinker-s_rk3288_defconfig                  orangepi_zero3_defconfig
at91sam9260eknf_defconfig                       orangepi_zero_defconfig
at91sam9g20dfc_defconfig                        orangepi_zero_plus2_defconfig
at91sam9g45m10ek_defconfig                      orangepi_zero_plus_defconfig
at91sam9rlek_defconfig                          pandaboard_defconfig
at91sam9x5ek_defconfig                          pcengines_apu2_defconfig
at91sam9x5ek_dev_defconfig                      pc_x86_64_bios_defconfig
at91sam9x5ek_mmc_defconfig                      pc_x86_64_efi_defconfig
at91sam9x5ek_mmc_dev_defconfig                  pine64_defconfig
atmel_sama5d27_som1_ek_mmc_dev_defconfig        pine64_pinecube_defconfig
atmel_sama5d2_xplained_mmc_defconfig            pine64_sopine_defconfig
atmel_sama5d2_xplained_mmc_dev_defconfig        qemu_aarch64_ebbr_defconfig
atmel_sama5d3xek_defconfig                      qemu_aarch64_sbsa_defconfig
atmel_sama5d3_xplained_defconfig                qemu_aarch64_virt_defconfig
atmel_sama5d3_xplained_dev_defconfig            qemu_arm_ebbr_defconfig
atmel_sama5d3_xplained_mmc_defconfig            qemu_arm_versatile_defconfig
atmel_sama5d3_xplained_mmc_dev_defconfig        qemu_arm_vexpress_defconfig
atmel_sama5d4_xplained_defconfig                qemu_arm_vexpress_tz_defconfig
atmel_sama5d4_xplained_dev_defconfig            qemu_m68k_mcf5208_defconfig

由于是虚拟机运行,我们使用默认生成的配置,然后根据需要手动修改

buildroot-2024.02.10]$make defconfig
#
# configuration written to /home/xxx/qemu/buildroot-2024.02.10/.config
#

执行命令,修改默认配置

make menuconfig

进入 Target options --->, qemu运行的虚拟配置vexpress,是cortex-a9架构。CPU配置如下

     Target Architecture (ARM (little endian))  --->                                     │ │
  │ │                     Target Architecture Variant (cortex-A9)  --->                                       │ │
  │ │                 [ ] Enable NEON SIMD extension support                                                  │ │
  │ │                 [*] Enable VFP extension support                                                        │ │
  │ │                     Target ABI (EABIhf)  --->                                                           │ │
  │ │                     Floating point strategy (VFPv3)  --->                                               │ │
  │ │                     ARM instruction set (ARM)  --->                                                     │ │
  │ │                     Target Binary Format (ELF)  --->                                                    │ │
  │ │                                                             

进入 Toolchain --->,工具链配置如下,我们使用已经安装的交叉编译工具链.

    Toolchain type (External toolchain)  --->                                           │ │
  │ │                     *** Toolchain External Options ***                                                  │ │
  │ │                     Toolchain (Custom toolchain)  --->                                                  │ │
  │ │                     Toolchain origin (Pre-installed toolchain)  --->                                    │ │
  │ │                 (/opt/nova-linux/x86-arm/arm-ca9-linux-gnueabihf-6.5/) Toolchain path                   │ │
  │ │                 (arm-ca9-linux-gnueabihf) Toolchain prefix                                              │ │
  │ │                     External toolchain gcc version (6.x)  --->                                          │ │
  │ │                     External toolchain kernel headers series (4.9.x)  --->                              │ │
  │ │                     External toolchain C library (glibc)  --->                                          │ │
  │ │                 [*] Toolchain has SSP support?                                                          │ │
  │ │                 [*]   Toolchain has SSP strong support?                                                 │ │
  │ │                 [*] Toolchain has RPC support?                                                          │ │
  │ │                 [*] Toolchain has C++ support?                                                          │ │
  │ │                 [ ] Toolchain has D support?                                                            │ │
  │ │                 [ ] Toolchain has Fortran support?                                                      │ │
  │ │                 [ ] Toolchain has OpenMP support?                                                       │ |

External toolchain kernel headers series的需要参考外部工具链的文件文件头。计算方式使用如下链接。

Buildroot 外部工具链内核头文件版本号计算_external toolchain kernel headers series-CSDN博客https://blog.csdn.net/weixin_47711503/article/details/138277217

进入System configuration --->,使能Enable root login with password ,输入默认密码。

    Root FS skeleton (default target skeleton)  --->                                    │ │
  │ │                 (buildroot) System hostname                                                             │ │
  │ │                 (Welcome to Buildroot) System banner                                                    │ │
  │ │                     Passwords encoding (sha-256)  --->                                                  │ │
  │ │                     Init system (BusyBox)  --->                                                         │ │
  │ │                     /dev management (Static using device table)  --->                                   │ │
  │ │                 (system/device_table.txt) Path to the permission tables                                 │ │
  │ │                 (system/device_table_dev.txt) Path to the device tables                                 │ │
  │ │                 [ ] support extended attributes in device tables                                        │ │
  │ │                 [ ] Use symlinks to /usr for /bin, /sbin and /lib                                       │ │
  │ │                 [*] Enable root login with password                                                     │ │
  │ │                 (123456) Root password                                                                  │ │
  │ │                     /bin/sh (busybox' default shell)  --->                                              │ │
  │ │                 [*] Run a getty (login prompt) after boot  --->                                         │ │
  │ │                 [*] remount root filesystem read-write during boot                                      │ │
  │ │                 ()  Network interface to configure through DHCP                                         │ │
  │ └─────────────────↓(+)─────────────────────────────────────────────────────────

进入Filesystem images --->,选择文件系统的打包方式为ext4

                 [*] ext2/3/4 root filesystem                                                            │ │
  │ │                       ext2/3/4 variant (ext4)  --->                                                     │ │
  │ │                 (rootfs) filesystem label                                                               │ │
  │ │                 (60M) exact size                                                                        │ │
  │ │                 (0)   exact number of inodes (leave at 0 for auto calculation)                          │ │
  │ │                 (256) inode size                                                                        │ │
  │ │                 (5)   reserved blocks percentage                                                        │ │
  │ │                 (-O ^64bit) additional mke2fs options                                                   │ │
  │ │                       Compression method (no compression)  --->                                         │

buildroot编译和输出

接下来可以根据各自的情况选择一下其他的软件安装包。然后执行编译命令。编译过程中会自动联网下载需要的软件包。编译的时间与主机性能与网络情况有关。

make

编译完成后,中间文件和最终的可执行文件保存在output/image文件夹下面

[buildroot-2024.02.10]$ls output/
build  host  images  staging  target
[buildroot-2024.02.10]$ls output/images/
rootfs.ext2  rootfs.ext4  rootfs.tar

qemu使用buildroot生成的文件系统运行

需要修改内核,添加大于2G硬盘设备的支持,进入Enable the block layer --->

将所有相关的文件复制到一个文件夹下面。执行如下指令

qemu-system-arm \
    -M vexpress-a9 \
    -m 512M \
    -kernel ./zImage \
    -dtb ./vexpress-v2p-ca9.dtb \
    -append "console=ttyAMA0 root=/dev/mmcblk0 rw init=linuxrc" \
    -sd ./rootfs.ext4 \
    -nographic

以下是执行输出

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.1 (xxxxx@qrs) (gcc version 6.5.0 (Buildroot 2019.05.2)) #2 SMP Mon Feb 24 17:47:08 CST 2025
[    0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: V2P-CA9
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] percpu: Embedded 16 pages/cpu @dfbae000 s36428 r8192 d20916 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyAMA0 root=/dev/mmcblk0 rw init=linuxrc
[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] log_buf_len total cpu_extra contributions: 12288 bytes
[    0.000000] log_buf_len min size: 16384 bytes
[    0.000000] log_buf_len: 32768 bytes
[    0.000000] early log buf free: 15016(91%)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 509428K/524288K available (6144K kernel code, 513K rwdata, 1448K rodata, 1024K init, 183K bss, 14860K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a80428   ( 514 kB)
[    0.000000]        .bss : 0xc0a882f4 - 0xc0ab6094   ( 184 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] L2C: platform modifies aux control register: 0x02020000 -> 0x02420000
[    0.000000] L2C: DT/platform modifies aux control register: 0x02020000 -> 0x02420000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
[    0.000000] L2C-310 cache controller enabled, 8 ways, 128 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46420001
[    0.000000] smp_twd: clock not found -2
[    0.000177] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.002209] clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.002827] Failed to initialize '/smb@4000000/motherboard/iofpga@7,00000000/timer@12000': -22
[    0.005305] Console: colour dummy device 80x30
[    0.005604] Calibrating local timer... 95.43MHz.
[    0.062357] Calibrating delay loop... 1042.02 BogoMIPS (lpj=5210112)
[    0.138749] pid_max: default: 32768 minimum: 301
[    0.139483] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.139513] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.146323] CPU: Testing write buffer coherency: ok
[    0.152104] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.154844] Setting up static identity map for 0x60100000 - 0x60100060
[    0.155703] Hierarchical SRCU implementation.
[    0.158692] smp: Bringing up secondary CPUs ...
[    0.162125] smp: Brought up 1 node, 1 CPU
[    0.162191] SMP: Total of 1 processors activated (1042.02 BogoMIPS).
[    0.162239] CPU: All CPU(s) started in SVC mode.
[    0.185437] devtmpfs: initialized
[    0.191739] random: get_random_u32 called from bucket_table_alloc+0xf4/0x248 with crng_init=0
[    0.192991] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
[    0.203781] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.204339] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.227713] random: fast init done
[    0.233683] NET: Registered protocol family 16
[    0.236285] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.365520] cpuidle: using governor ladder
[    0.367028] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.369174] Serial: AMBA PL011 UART driver
[    0.387255] OF: amba_device_add() failed (-19) for /memory-controller@100e0000
[    0.388370] OF: amba_device_add() failed (-19) for /memory-controller@100e1000
[    0.388892] OF: amba_device_add() failed (-19) for /watchdog@100e5000
[    0.390541] irq: type mismatch, failed to map hwirq-75 for /interrupt-controller@1e001000!
[    0.400204] 10009000.uart: ttyAMA0 at MMIO 0x10009000 (irq = 38, base_baud = 0) is a PL011 rev1
[    0.418866] console [ttyAMA0] enabled
[    0.420245] 1000a000.uart: ttyAMA1 at MMIO 0x1000a000 (irq = 39, base_baud = 0) is a PL011 rev1
[    0.421493] 1000b000.uart: ttyAMA2 at MMIO 0x1000b000 (irq = 40, base_baud = 0) is a PL011 rev1
[    0.422631] 1000c000.uart: ttyAMA3 at MMIO 0x1000c000 (irq = 41, base_baud = 0) is a PL011 rev1
[    0.423661] OF: amba_device_add() failed (-19) for /smb@4000000/motherboard/iofpga@7,00000000/wdt@f000
[    0.458624] SCSI subsystem initialized
[    0.460444] usbcore: registered new interface driver usbfs
[    0.460786] usbcore: registered new interface driver hub
[    0.461059] usbcore: registered new device driver usb
[    0.464774] Advanced Linux Sound Architecture Driver Initialized.
[    0.475288] clocksource: Switched to clocksource arm,sp804
[    0.549977] NET: Registered protocol family 2
[    0.553317] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.553587] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.553846] TCP: Hash tables configured (established 4096 bind 4096)
[    0.555273] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.555535] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.556416] NET: Registered protocol family 1
[    0.559529] RPC: Registered named UNIX socket transport module.
[    0.559694] RPC: Registered udp transport module.
[    0.559797] RPC: Registered tcp transport module.
[    0.559943] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.566353] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 5 counters available
[    0.570919] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.582477] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.584152] NFS: Registering the id_resolver key type
[    0.584942] Key type id_resolver registered
[    0.585051] Key type id_legacy registered
[    0.585223] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.586750] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.588027] 9p: Installing v9fs 9p2000 file system support
[    0.594291] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    0.594641] io scheduler noop registered (default)
[    0.594768] io scheduler mq-deadline registered
[    0.594897] io scheduler kyber registered
[    0.597442] clcd-pl11x 10020000.clcd: PL111 designer 41 rev2 at 0x10020000
[    0.602855] clcd-pl11x 10020000.clcd: /clcd@10020000 hardware, 1024x768@59 display
[    0.691590] Console: switching to colour frame buffer device 128x48
[    0.695536] clcd-pl11x 1001f000.clcd: PL111 designer 41 rev2 at 0x1001f000
[    0.696267] clcd-pl11x 1001f000.clcd: /smb@4000000/motherboard/iofpga@7,00000000/clcd@1f000 hardware, 640x480@59 display
[    1.011592] 40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
[    1.012382] Intel/Sharp Extended Query Table at 0x0031
[    1.013111] Using buffer write method
[    1.014910] 40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
[    1.015221] Intel/Sharp Extended Query Table at 0x0031
[    1.015681] Using buffer write method
[    1.015885] Concatenating MTD devices:
[    1.016022] (0): "40000000.flash"
[    1.016147] (1): "40000000.flash"
[    1.016258] into device "40000000.flash"
[    1.028398] libphy: Fixed MDIO Bus: probed
[    1.085774] libphy: smsc911x-mdio: probed
[    1.087551] smsc911x 4e000000.ethernet eth0: MAC Address: 52:54:00:12:34:56
[    1.199495] isp1760 4f000000.usb: bus width: 32, oc: digital
[    1.201600] isp1760 4f000000.usb: NXP ISP1760 USB Host Controller
[    1.202840] isp1760 4f000000.usb: new USB bus registered, assigned bus number 1
[    1.205491] isp1760 4f000000.usb: Scratch test failed.
[    1.206291] isp1760 4f000000.usb: can't setup: -19
[    1.207965] isp1760 4f000000.usb: USB bus 1 deregistered
[    1.215199] usbcore: registered new interface driver usb-storage
[    1.236897] rtc-pl031 10017000.rtc: rtc core: registered pl031 as rtc0
[    1.238845] IR NEC protocol handler initialized
[    1.239166] IR RC5(x/sz) protocol handler initialized
[    1.239495] IR RC6 protocol handler initialized
[    1.239760] IR JVC protocol handler initialized
[    1.240008] IR Sony protocol handler initialized
[    1.240257] IR SANYO protocol handler initialized
[    1.240509] IR Sharp protocol handler initialized
[    1.240776] IR MCE Keyboard/mouse protocol handler initialized
[    1.241079] IR XMP protocol handler initialized
[    1.247927] mmci-pl18x 10005000.mmci: Got CD GPIO
[    1.248276] mmci-pl18x 10005000.mmci: Got WP GPIO
[    1.250071] mmci-pl18x 10005000.mmci: mmc0: PL181 manf 41 rev0 at 0x10005000 irq 34,35 (pio)
[    1.324311] ledtrig-cpu: registered to indicate activity on CPUs
[    1.327092] usbcore: registered new interface driver usbhid
[    1.327330] usbhid: USB HID core driver
[    1.334147] input: AT Raw Set 2 keyboard as /devices/platform/smb@4000000/smb@4000000:motherboard/smb@4000000:motherboard:iofpga@7,00000000/10006000.kmi/serio0/input/input0
[    1.347502] mmc0: new SD card at address 4567
[    1.361133] mmcblk0: mmc0:4567 QEMU! 60.0 MiB
[    1.375973] aaci-pl041 10004000.aaci: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 33
[    1.376266] aaci-pl041 10004000.aaci: FIFO 512 entries
[    1.376906] oprofile: using arm/armv7-ca9
[    1.377616] NET: Registered protocol family 17
[    1.378415] 9pnet: Installing 9P2000 support
[    1.378706] Key type dns_resolver registered
[    1.378978] Registering SWP/SWPB emulation handler
[    1.385588] rtc-pl031 10017000.rtc: setting system clock to 2025-02-25 01:26:41 UTC (1740446801)
[    1.386413] ALSA device list:
[    1.386494]   #0: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 33
[    1.948901] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/smb@4000000/smb@4000000:motherboard/smb@4000000:motherboard:iofpga@7,00000000/10007000.kmi/serio1/input/input2
[    1.954531] EXT4-fs (mmcblk0): couldn't mount as ext3 due to feature incompatibilities
[    1.973560] EXT4-fs (mmcblk0): mounted filesystem with ordered data mode. Opts: (null)
[    1.974633] VFS: Mounted root (ext4 filesystem) on device 179:0.
[    1.999107] Freeing unused kernel memory: 1024K
[    2.156059] random: crng init done
[    2.521693] EXT4-fs (mmcblk0): re-mounted. Opts: data=ordered
Seeding 2048 bits and crediting
Saving 2048 bits of creditable seed for next boot
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting rpcbind: OK
Starting network: OK
Starting dhcpcd...
dhcpcd-10.0.8 starting
sandbox unavailable: seccomp
DUID 00:01:00:01:2f:4f:01:57:52:54:00:12:34:56
sandbox unavailable: seccomp
no interfaces have a carrier
[    4.902289] Generic PHY 4e000000.ethernet-ffffffff:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=4e000000.ethernet-ffffffff:01, irq=POLL)
[    4.905442] smsc911x 4e000000.ethernet eth0: SMSC911x/921x identified at 0xe1290000, IRQ: 31
Starting NFS statd: OK
Starting NFS services: OK
Starting NFS daemon: [    5.904034] NFSD: starting 90-second grace period (net c0a6ec40)
OK
Starting NFS mountd: rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
OK

Welcome to Buildroot
buildroot login: root
Password:

输入我们设置的用户名root和密码123456就可以正常登入系统。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值