当前位置:   article > 正文

Buildroot开发篇 | Ubuntu构建与体验Buildroot(2020.02版本)_ubuntu22编译bulidroot

ubuntu22编译bulidroot

一、建立buildroot编译环境

  1. $ sudo apt install gcc build-essential bison flex gettext tcl sharutils libncurses-dev zlib1g-dev \
  2. exuberant-ctags g++ texinfo patch vim libtool bc git python3

安装qemu工具:

$ sudo apt install qemu-system-arm

到buildroot.org官网下载相应的压缩包:buildroot-2020.02.6.tar.gz 。

解压源码包:

$ tar xzvf buildroot-2017.05.2.tar.gz

也可以用git抓取:

$ git clone https://git.buildroot.net/buildroot

二、编译buildroot

(1)选择虚拟qemu配置(详细配置查看configs目录):

  1. book@bc7c3ac008b2:~/buildroot-2020.02.6$ make qemu_arm_vexpress_defconfig
  2. mkdir -p /home/buildroot-2020.02.6/output/build/buildroot-config/lxdialog
  3. PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
  4. obj=/home/buildroot-2020.02.6/output/build/buildroot-config -C support/kconfig -f Makefile.br conf
  5. make[1]: Entering directory '/home/buildroot-2020.02.6/support/kconfig'
  6. /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/buildroot-2020.02.6/output/build/buildroot-config -DCONFIG_=\"\" -MM *.c > /home/buildroot-2020.02.6/output/build/buildroot-config/.depend 2>/dev/null || :
  7. /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/buildroot-2020.02.6/output/build/buildroot-config -DCONFIG_=\"\" -c conf.c -o /home/buildroot-2020.02.6/output/build/buildroot-config/conf.o
  8. /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/buildroot-2020.02.6/output/build/buildroot-config -DCONFIG_=\"\" -I. -c /home/buildroot-2020.02.6/output/build/buildroot-config/zconf.tab.c -o /home/buildroot-2020.02.6/output/build/buildroot-config/zconf.tab.o
  9. /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -I/home/buildroot-2020.02.6/output/build/buildroot-config -DCONFIG_=\"\" /home/buildroot-2020.02.6/output/build/buildroot-config/conf.o /home/buildroot-2020.02.6/output/build/buildroot-config/zconf.tab.o -o /home/buildroot-2020.02.6/output/build/buildroot-config/conf
  10. rm /home/buildroot-2020.02.6/output/build/buildroot-config/zconf.tab.c
  11. make[1]: Leaving directory '/home/buildroot-2020.02.6/support/kconfig'
  12. #
  13. # configuration written to /home/buildroot-2020.02.6/.config
  14. #

(2)开始编译:

book@bc7c3ac008b2:~/buildroot-2020.02.6$ make 

(3)编译完成:

  1. Creating regular file /home/book/buildroot-2020.02.6/output/images/rootfs.ext2
  2. Creating filesystem with 61440 1k blocks and 15360 inodes
  3. Filesystem UUID: 7d89a22b-8f0a-47dc-93d0-fb818e671192
  4. Superblock backups stored on blocks:
  5. 8193, 24577, 40961, 57345
  6. Allocating group tables: done
  7. Writing inode tables: done
  8. Copying files into the device: done
  9. Writing superblocks and filesystem accounting information: done
  10. ln -snf /home/book/buildroot-2020.02.6/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot /home/book/buildroot-2020.02.6/output/staging

编译结果在output/images下生成zImage、vexpress-v2p-ca9.dtb、rootfs.ext2三个文件,分别是内核、DeviceTree文件和文件系统: 

  1. book@bc7c3ac008b2:~/buildroot-2020.02.6/output/images$ ls -al
  2. total 7896
  3. drwxr-xr-x 2 book book 4096 Oct 4 15:00 .
  4. drwxrwxr-x 6 book book 4096 Oct 4 15:00 ..
  5. -rw-r--r-- 1 book book 62914560 Oct 4 15:00 rootfs.ext2
  6. -rw-r--r-- 1 book book 14430 Oct 4 15:00 vexpress-v2p-ca9.dtb
  7. -rw-r--r-- 1 book book 4149024 Oct 4 15:00 zImage

(4)启动buildroot: 

执行如下命令:

  1. $ qemu-system-arm -M vexpress-a9 -smp 4 -m 1024M -kernel output/images/zImage -append "root=/dev/mmcblk0 \
  2. console=ttyAMA0 loglevel=8" -dtb output/images/vexpress-v2p-ca9.dtb -sd output/images/rootfs.ext2 -nographic

以下是启动过程的打印信息:

  1. book@bc7c3ac008b2:~/buildroot-2020.02.6$ qemu-system-arm -M vexpress-a9 -smp 4 -m 1024M -kernel output/images/zImage -append "root=/dev/mmcblk0 console=ttyAMA0 loglevel=8" -dtb output/images/vexpress-v2p-ca9.dtb -sd output/images/rootfs.ext2 -nographic
  2. WARNING: Image format was not specified for 'output/images/rootfs.ext2' and probing guessed raw.
  3. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
  4. Specify the 'raw' format explicitly to remove the restrictions.
  5. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  6. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  7. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  8. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  9. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  10. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  11. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  12. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  13. alsa: Could not initialize DAC
  14. alsa: Failed to open `default':
  15. alsa: Reason: No such file or directory
  16. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  17. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  18. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  19. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  20. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  21. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  22. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  23. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  24. alsa: Could not initialize DAC
  25. alsa: Failed to open `default':
  26. alsa: Reason: No such file or directory
  27. audio: Failed to create voice `lm4549.out'
  28. Booting Linux on physical CPU 0x0
  29. Linux version 4.19.91 (book@bc7c3ac008b2) (gcc version 8.4.0 (Buildroot 2020.02.6)) #1 SMP Sun Oct 4 14:49:19 +09 2020
  30. CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
  31. CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
  32. OF: fdt: Machine model: V2P-CA9
  33. Memory policy: Data cache writealloc
  34. On node 0 totalpages: 262144
  35. Normal zone: 2048 pages used for memmap
  36. Normal zone: 0 pages reserved
  37. Normal zone: 262144 pages, LIFO batch:63
  38. random: get_random_bytes called from start_kernel+0x98/0x470 with crng_init=0
  39. percpu: Embedded 16 pages/cpu s32780 r8192 d24564 u65536
  40. pcpu-alloc: s32780 r8192 d24564 u65536 alloc=16*4096
  41. pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
  42. Built 1 zonelists, mobility grouping on. Total pages: 260096
  43. Kernel command line: root=/dev/mmcblk0 console=ttyAMA0 loglevel=8
  44. log_buf_len individual max cpu contribution: 4096 bytes
  45. log_buf_len total cpu_extra contributions: 12288 bytes
  46. log_buf_len min size: 16384 bytes
  47. log_buf_len: 32768 bytes
  48. early log buf free: 15064(91%)
  49. Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
  50. Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
  51. Memory: 1029432K/1048576K available (6144K kernel code, 397K rwdata, 1400K rodata, 1024K init, 156K bss, 19144K reserved, 0K cma-reserved)
  52. Virtual kernel memory layout:
  53. vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  54. fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
  55. vmalloc : 0xc0800000 - 0xff800000 (1008 MB)
  56. lowmem : 0x80000000 - 0xc0000000 (1024 MB)
  57. modules : 0x7f000000 - 0x80000000 ( 16 MB)
  58. .text : 0x(ptrval) - 0x(ptrval) (7136 kB)
  59. .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
  60. .data : 0x(ptrval) - 0x(ptrval) ( 398 kB)
  61. .bss : 0x(ptrval) - 0x(ptrval) ( 157 kB)
  62. SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  63. rcu: Hierarchical RCU implementation.
  64. rcu: RCU event tracing is enabled.
  65. rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
  66. rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
  67. NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
  68. L2C: platform modifies aux control register: 0x02020000 -> 0x02420000
  69. L2C: DT/platform modifies aux control register: 0x02020000 -> 0x02420000
  70. L2C-310 enabling early BRESP for Cortex-A9
  71. L2C-310 full line of zeros enabled for Cortex-A9
  72. L2C-310 dynamic clock gating disabled, standby mode disabled
  73. L2C-310 cache controller enabled, 8 ways, 128 kB
  74. L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46420001
  75. sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
  76. clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
  77. Failed to initialize '/smb@4000000/motherboard/iofpga@7,00000000/timer@12000': -22
  78. smp_twd: clock not found -2
  79. Console: colour dummy device 80x30
  80. Calibrating local timer... 89.61MHz.
  81. Calibrating delay loop... 511.18 BogoMIPS (lpj=2555904)
  82. pid_max: default: 32768 minimum: 301
  83. Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
  84. Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
  85. CPU: Testing write buffer coherency: ok
  86. CPU0: Spectre v2: using BPIALL workaround
  87. CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  88. Setting up static identity map for 0x60100000 - 0x60100060
  89. rcu: Hierarchical SRCU implementation.
  90. smp: Bringing up secondary CPUs ...
  91. CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
  92. CPU1: Spectre v2: using BPIALL workaround
  93. CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
  94. CPU2: Spectre v2: using BPIALL workaround
  95. CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
  96. CPU3: Spectre v2: using BPIALL workaround
  97. smp: Brought up 1 node, 4 CPUs
  98. SMP: Total of 4 processors activated (1430.06 BogoMIPS).
  99. CPU: All CPU(s) started in SVC mode.
  100. devtmpfs: initialized
  101. VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
  102. clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  103. futex hash table entries: 1024 (order: 4, 65536 bytes)
  104. NET: Registered protocol family 16
  105. DMA: preallocated 256 KiB pool for atomic coherent allocations
  106. cpuidle: using governor ladder
  107. hw-breakpoint: debug architecture 0x4 unsupported.
  108. Serial: AMBA PL011 UART driver
  109. 10009000.uart: ttyAMA0 at MMIO 0x10009000 (irq = 29, base_baud = 0) is a PL011 rev1
  110. console [ttyAMA0] enabled
  111. 1000a000.uart: ttyAMA1 at MMIO 0x1000a000 (irq = 30, base_baud = 0) is a PL011 rev1
  112. 1000b000.uart: ttyAMA2 at MMIO 0x1000b000 (irq = 31, base_baud = 0) is a PL011 rev1
  113. 1000c000.uart: ttyAMA3 at MMIO 0x1000c000 (irq = 32, base_baud = 0) is a PL011 rev1
  114. OF: amba_device_add() failed (-19) for /smb@4000000/motherboard/iofpga@7,00000000/wdt@f000
  115. OF: amba_device_add() failed (-19) for /memory-controller@100e0000
  116. OF: amba_device_add() failed (-19) for /memory-controller@100e1000
  117. OF: amba_device_add() failed (-19) for /watchdog@100e5000
  118. irq: type mismatch, failed to map hwirq-75 for interrupt-controller@1e001000!
  119. SCSI subsystem initialized
  120. libata version 3.00 loaded.
  121. usbcore: registered new interface driver usbfs
  122. usbcore: registered new interface driver hub
  123. usbcore: registered new device driver usb
  124. Advanced Linux Sound Architecture Driver Initialized.
  125. clocksource: Switched to clocksource arm,sp804
  126. NET: Registered protocol family 2
  127. tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
  128. TCP established hash table entries: 8192 (order: 3, 32768 bytes)
  129. TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
  130. TCP: Hash tables configured (established 8192 bind 8192)
  131. UDP hash table entries: 512 (order: 2, 16384 bytes)
  132. UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
  133. NET: Registered protocol family 1
  134. RPC: Registered named UNIX socket transport module.
  135. RPC: Registered udp transport module.
  136. RPC: Registered tcp transport module.
  137. RPC: Registered tcp NFSv4.1 backchannel transport module.
  138. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 5 counters available
  139. workingset: timestamp_bits=30 max_order=18 bucket_order=0
  140. squashfs: version 4.0 (2009/01/31) Phillip Lougher
  141. jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
  142. 9p: Installing v9fs 9p2000 file system support
  143. io scheduler noop registered (default)
  144. io scheduler mq-deadline registered
  145. io scheduler kyber registered
  146. clcd-pl11x 1001f000.clcd: PL111 designer 41 rev2 at 0x1001f000
  147. clcd-pl11x 1001f000.clcd: clcd@1f000 hardware, 640x480@59 display
  148. Console: switching to colour frame buffer device 80x30
  149. clcd-pl11x 10020000.clcd: PL111 designer 41 rev2 at 0x10020000
  150. clcd-pl11x 10020000.clcd: clcd@10020000 hardware, 1024x768@59 display
  151. 40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
  152. Intel/Sharp Extended Query Table at 0x0031
  153. Using buffer write method
  154. erase region 0: offset=0x0,size=0x40000,blocks=256
  155. 40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
  156. Intel/Sharp Extended Query Table at 0x0031
  157. Using buffer write method
  158. erase region 0: offset=0x0,size=0x40000,blocks=256
  159. Concatenating MTD devices:
  160. (0): "40000000.flash"
  161. (1): "40000000.flash"
  162. into device "40000000.flash"
  163. libphy: Fixed MDIO Bus: probed
  164. smsc911x 4e000000.ethernet: Linked as a consumer to regulator.1
  165. libphy: smsc911x-mdio: probed
  166. smsc911x 4e000000.ethernet eth0: MAC Address: 52:54:00:12:34:56
  167. isp1760 4f000000.usb: bus width: 32, oc: digital
  168. isp1760 4f000000.usb: NXP ISP1760 USB Host Controller
  169. isp1760 4f000000.usb: new USB bus registered, assigned bus number 1
  170. isp1760 4f000000.usb: Scratch test failed.
  171. isp1760 4f000000.usb: can't setup: -19
  172. isp1760 4f000000.usb: USB bus 1 deregistered
  173. usbcore: registered new interface driver usb-storage
  174. rtc-pl031 10017000.rtc: rtc core: registered pl031 as rtc0
  175. mmci-pl18x 10005000.mmci: Got CD GPIO
  176. mmci-pl18x 10005000.mmci: Got WP GPIO
  177. mmci-pl18x 10005000.mmci: Linked as a consumer to regulator.1
  178. mmci-pl18x 10005000.mmci: mmc0: PL181 manf 41 rev0 at 0x10005000 irq 25,26 (pio)
  179. ledtrig-cpu: registered to indicate activity on CPUs
  180. usbcore: registered new interface driver usbhid
  181. usbhid: USB HID core driver
  182. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  183. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  184. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  185. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  186. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  187. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  188. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  189. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  190. alsa: Could not initialize DAC
  191. alsa: Failed to open `default':
  192. alsa: Reason: No such file or directory
  193. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  194. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  195. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  196. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  197. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  198. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  199. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  200. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  201. alsa: Could not initialize DAC
  202. alsa: Failed to open `default':
  203. alsa: Reason: No such file or directory
  204. audio: Failed to create voice `lm4549.out'
  205. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  206. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  207. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  208. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  209. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  210. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  211. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  212. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  213. alsa: Could not initialize DAC
  214. alsa: Failed to open `default':
  215. alsa: Reason: No such file or directory
  216. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  217. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  218. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  219. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  220. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  221. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  222. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  223. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  224. alsa: Could not initialize DAC
  225. alsa: Failed to open `default':
  226. alsa: Reason: No such file or directory
  227. audio: Failed to create voice `lm4549.out'
  228. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  229. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  230. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  231. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  232. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  233. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  234. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  235. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  236. alsa: Could not initialize DAC
  237. alsa: Failed to open `default':
  238. alsa: Reason: No such file or directory
  239. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  240. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  241. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  242. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  243. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  244. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  245. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  246. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  247. alsa: Could not initialize DAC
  248. alsa: Failed to open `default':
  249. alsa: Reason: No such file or directory
  250. audio: Failed to create voice `lm4549.out'
  251. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  252. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  253. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  254. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  255. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  256. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  257. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  258. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  259. alsa: Could not initialize DAC
  260. alsa: Failed to open `default':
  261. alsa: Reason: No such file or directory
  262. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  263. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  264. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  265. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  266. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  267. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  268. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  269. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  270. alsa: Could not initialize DAC
  271. alsa: Failed to open `default':
  272. alsa: Reason: No such file or directory
  273. audio: Failed to create voice `lm4549.out'
  274. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  275. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  276. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  277. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  278. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  279. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  280. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  281. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  282. alsa: Could not initialize DAC
  283. alsa: Failed to open `default':
  284. alsa: Reason: No such file or directory
  285. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  286. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  287. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  288. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  289. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  290. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  291. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  292. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  293. alsa: Could not initialize DAC
  294. alsa: Failed to open `default':
  295. alsa: Reason: No such file or directory
  296. audio: Failed to create voice `lm4549.out'
  297. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  298. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  299. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  300. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  301. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  302. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  303. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  304. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  305. alsa: Could not initialize DAC
  306. alsa: Failed to open `default':
  307. alsa: Reason: No such file or directory
  308. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  309. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  310. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  311. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  312. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  313. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  314. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  315. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  316. alsa: Could not initialize DAC
  317. alsa: Failed to open `default':
  318. alsa: Reason: No such file or directory
  319. audio: Failed to create voice `lm4549.out'
  320. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  321. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  322. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  323. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  324. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  325. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  326. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  327. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  328. alsa: Could not initialize DAC
  329. alsa: Failed to open `default':
  330. alsa: Reason: No such file or directory
  331. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  332. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  333. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  334. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  335. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  336. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  337. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  338. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  339. alsa: Could not initialize DAC
  340. alsa: Failed to open `default':
  341. alsa: Reason: No such file or directory
  342. audio: Failed to create voice `lm4549.out'
  343. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  344. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  345. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  346. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  347. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  348. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  349. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  350. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  351. alsa: Could not initialize DAC
  352. alsa: Failed to open `default':
  353. alsa: Reason: No such file or directory
  354. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  355. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  356. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  357. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  358. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  359. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  360. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  361. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  362. alsa: Could not initialize DAC
  363. alsa: Failed to open `default':
  364. alsa: Reason: No such file or directory
  365. audio: Failed to create voice `lm4549.out'
  366. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  367. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  368. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  369. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  370. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  371. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  372. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  373. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  374. alsa: Could not initialize DAC
  375. alsa: Failed to open `default':
  376. alsa: Reason: No such file or directory
  377. ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  378. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  379. ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  380. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  381. ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  382. ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  383. ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
  384. ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
  385. alsa: Could not initialize DAC
  386. alsa: Failed to open `default':
  387. alsa: Reason: No such file or directory
  388. audio: Failed to create voice `lm4549.out'
  389. 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
  390. aaci-pl041 10004000.aaci: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 24
  391. aaci-pl041 10004000.aaci: FIFO 512 entries
  392. oprofile: using arm/armv7-ca9
  393. NET: Registered protocol family 17
  394. 9pnet: Installing 9P2000 support
  395. Registering SWP/SWPB emulation handler
  396. mmc0: new SD card at address 4567
  397. mmcblk0: mmc0:4567 QEMU! 60.0 MiB
  398. rtc-pl031 10017000.rtc: setting system clock to 2020-10-04 14:21:32 UTC (1601821292)
  399. ALSA device list:
  400. #0: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 24
  401. 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
  402. random: fast init done
  403. EXT4-fs (mmcblk0): mounted filesystem without journal. Opts: (null)
  404. VFS: Mounted root (ext4 filesystem) readonly on device 179:0.
  405. devtmpfs: mounted
  406. Freeing unused kernel memory: 1024K
  407. Run /sbin/init as init process
  408. random: crng init done
  409. EXT4-fs (mmcblk0): re-mounted. Opts: (null)
  410. Starting syslogd: OK
  411. Starting klogd: OK
  412. Running sysctl: OK
  413. Saving random seed: OK
  414. Starting network: Generic PHY 4e000000.ethernet-ffffffff:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=4e000000.ethernet-ffffffff:01, irq=POLL)
  415. smsc911x 4e000000.ethernet eth0: SMSC911x/921x identified at 0xc1290000, IRQ: 22
  416. udhcpc: started, v1.31.1
  417. udhcpc: sending discover
  418. udhcpc: sending discover
  419. udhcpc: sending select for 10.0.2.15
  420. udhcpc: lease of 10.0.2.15 obtained, lease time 86400
  421. deleting routers
  422. adding dns 10.0.2.3
  423. OK
  424. Welcome to Buildroot
  425. buildroot login:

(5)输入root进入系统并打印目录:

  1. buildroot login: root
  2. # cd /
  3. # ls
  4. bin lib lost+found opt run tmp
  5. dev lib32 media proc sbin usr
  6. etc linuxrc mnt root sys var

(6)停止qemu执行如下命令:

$ killall qemu-system-arm

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/634480
推荐阅读
相关标签
  

闽ICP备14008679号