GameShell

如何編譯一個最小的系統


步驟如下:

$ cd ~/downloads/
$ wget https://buildroot.org/downloads/buildroot-2018.05.2.tar.gz
$ tar vxf buildroot-2018.05.2.tar.gz
$ cd buildroot-2018.05.2
$ make menuconfig


$ make -j4

P.S. output/images/rootfs.tar.gz

格式化成ext3


接著將rootfs.tar.gz解壓縮到ext3磁區並開機(baudrate 115200bps)

U-Boot SPL 2018.01-rc1-00116-g214ced3654 (Jun 08 2018 - 16:32:06)
DRAM: 512 MiB
Trying to boot from MMC1


U-Boot 2018.01-rc1-00116-g214ced3654 (Jun 08 2018 - 16:32:06 +0800) Allwinner Technology

CPU:   Allwinner A33 (SUN8I 1667)
Model: clockworkpi CPI3
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Card did not respond to voltage select!
mmc_init: -95, time 22
*** Warning - MMC init failed, using default environment

Setting up a 320x240 lcd console (overscan 0x0)
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
348 bytes read in 18 ms (18.6 KiB/s)
## Executing script at 43100000
reading uImage
2847968 bytes read in 187 ms (14.5 MiB/s)
reading sun8i-r16-clockworkpi-cpi3.dtb
23379 bytes read in 31 ms (736.3 KiB/s)
## Booting kernel from Legacy Image at 48000000 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2847904 Bytes = 2.7 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 49000000
   Booting using the fdt blob at 0x49000000
   Loading Kernel Image ... OK
   Loading Device Tree to 49ff7000, end 49fffb52 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.2-clockworkpi-cpi3-gc1e827d-dirty (steward@debian) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #18 SMP Thu Aug 30 11:03:26 CST 2018
[    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: Clockwork CPI3
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 14 pages/cpu @dff61000 s28044 r8192 d21108 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129973
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk no_console_suspend root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/sbin/init noinitrd panic=10
[    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: 511372K/523988K available (4096K kernel code, 320K rwdata, 1080K rodata, 1024K init, 231K bss, 12616K 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 : 0xe0000000 - 0xff800000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdffb5000   ( 511 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0500000   (5088 kB)
[    0.000000]       .init : 0xc0700000 - 0xc0800000   (1024 kB)
[    0.000000]       .data : 0xc0800000 - 0xc0850180   ( 321 kB)
[    0.000000]        .bss : 0xc085441c - 0xc088e02c   ( 232 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: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000016] Switching to timer-based delay loop, resolution 41ns
[    0.000172] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000518] Console: colour dummy device 80x30
[    0.000549] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000562] pid_max: default: 32768 minimum: 301
[    0.000672] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000683] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001195] CPU: Testing write buffer coherency: ok
[    0.001479] /cpus/cpu@0 missing clock-frequency property
[    0.001494] /cpus/cpu@1 missing clock-frequency property
[    0.001506] /cpus/cpu@2 missing clock-frequency property
[    0.001519] /cpus/cpu@3 missing clock-frequency property
[    0.001529] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001827] Setting up static identity map for 0x40100000 - 0x40100060
[    0.001919] Hierarchical SRCU implementation.
[    0.002374] smp: Bringing up secondary CPUs ...
[    0.003002] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.003702] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.004351] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.004417] smp: Brought up 1 node, 4 CPUs
[    0.004435] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.004441] CPU: All CPU(s) started in HYP mode.
[    0.004445] CPU: Virtualization extensions available.
[    0.005141] devtmpfs: initialized
[    0.009781] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.010084] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010110] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.010359] pinctrl core: initialized pinctrl subsystem
[    0.010939] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011678] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011687] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.020752] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/usb1_vbus_pin@0, deferring probe
[    0.021405] usbcore: registered new interface driver usbfs
[    0.021445] usbcore: registered new interface driver hub
[    0.021515] usbcore: registered new device driver usb
[    0.021815] Advanced Linux Sound Architecture Driver Initialized.
[    0.022118] clocksource: Switched to clocksource arch_sys_counter
[    0.022590] simple-framebuffer 5ffb5000.framebuffer: framebuffer at 0x5ffb5000, 0x4b000 bytes, mapped to 0xe0080000
[    0.022604] simple-framebuffer 5ffb5000.framebuffer: format=x8r8g8b8, mode=320x240x32, linelength=1280
[    0.024268] Console: switching to colour frame buffer device 40x30
[    0.025666] simple-framebuffer 5ffb5000.framebuffer: fb0: simplefb registered!
[    0.033208] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.039997] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.040013] io scheduler noop registered
[    0.040020] io scheduler deadline registered
[    0.040217] io scheduler cfq registered (default)
[    0.040225] io scheduler mq-deadline registered
[    0.040231] io scheduler kyber registered
[    0.040482] sunxi-rsb 1f03400.rsb: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/r_rsb, deferring probe
[    0.040660] sun4i-usb-phy 1c19400.phy: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/usb0_id_detect_pin@0, deferring probe
[    0.041410] sun8i-a23-r-pinctrl 1f02c00.pinctrl: Reset controller missing
[    0.043717] sun8i-a33-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.091851] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.094050] console [ttyS0] disabled
[    0.114206] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.714311] console [ttyS0] enabled
[    0.720847] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.727409] ehci-platform: EHCI generic platform driver
[    0.732835] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.739005] ohci-platform: OHCI generic platform driver
[    0.744719] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[    0.753751] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.760533] sun6i-rtc 1f00000.rtc: RTC enabled
[    0.765069] i2c /dev entries driver
[    0.769631] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.778725] sunxi-mmc 1c10000.mmc: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/wifi_reset_pin@0, deferring probe
[    0.791131] sun4i-ss 1c15000.crypto-engine: Die ID 5
[    0.796972] usbcore: registered new interface driver usbhid
[    0.802556] usbhid: USB HID core driver
[    0.807649] sun8i-codec-analog sun8i-codec-analog.0: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/speaker_amplifier_pin@0, deferring probe
[    0.821959] Registering SWP/SWPB emulation handler
[    0.827203] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/usb1_vbus_pin@0, deferring probe
[    0.839662] sunxi-rsb 1f03400.rsb: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/r_rsb, deferring probe
[    0.850730] sun4i-usb-phy 1c19400.phy: could not find pctldev for node /soc@01c00000/pinctrl@01f02c00/usb0_id_detect_pin@0, deferring probe
[    0.864638] sun8i-a23-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.873650] asoc-simple-card sound: ASoC: /soc@01c00000/prcm@01f01400/codec-analog not registered
[    1.352603] sunxi-rsb 1f03400.rsb: RSB running at 3000000 Hz
[    1.358609] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP223 found
[    1.366779] input: axp20x-pek as /devices/platform/soc@01c00000/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/input/input0
[    1.378274] dcdc1: supplied by regulator-dummy
[    1.382934] dcdc2: supplied by regulator-dummy
[    1.387522] dcdc3: supplied by regulator-dummy
[    1.392090] dcdc4: supplied by regulator-dummy
[    1.396702] dcdc5: supplied by regulator-dummy
[    1.401302] dc1sw: supplied by vcc-3v0
[    1.405307] dc5ldo: supplied by vcc-dram
[    1.409453] aldo1: supplied by regulator-dummy
[    1.414147] aldo2: supplied by regulator-dummy
[    1.418811] aldo3: supplied by regulator-dummy
[    1.423541] eldo1: supplied by regulator-dummy
[    1.428027] vcc-1v2-hsic: Bringing 700000uV into 1200000-1200000uV
[    1.434553] eldo2: supplied by regulator-dummy
[    1.439028] vcc-dsp: Bringing 700000uV into 3000000-3000000uV
[    1.444943] eldo3: supplied by regulator-dummy
[    1.449418] eldo3: Bringing 700000uV into 3000000-3000000uV
[    1.455147] dldo1: supplied by regulator-dummy
[    1.459621] vcc-wifi0: Bringing 700000uV into 3300000-3300000uV
[    1.465732] dldo2: supplied by regulator-dummy
[    1.470207] vcc-wifi1: Bringing 700000uV into 3300000-3300000uV
[    1.476312] dldo3: supplied by regulator-dummy
[    1.480786] vcc-3v0-csi: Bringing 700000uV into 3000000-3000000uV
[    1.487032] dldo4: supplied by regulator-dummy
[    1.491631] rtc_ldo: supplied by regulator-dummy
[    1.496385] ldo_io0: supplied by regulator-dummy
[    1.501166] ldo_io1: supplied by regulator-dummy
[    1.506035] drivevbus: supplied by vcc5v0
[    1.511499] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[    1.517930] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.523557] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.531397] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    1.562137] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.568875] hub 1-0:1.0: USB hub found
[    1.572667] hub 1-0:1.0: 1 port detected
[    1.577162] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.583805] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.591608] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    1.666704] hub 2-0:1.0: USB hub found
[    1.670479] hub 2-0:1.0: 1 port detected
[    1.675033] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.686011] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.691754] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.700130] hub 3-0:1.0: USB hub found
[    1.703930] hub 3-0:1.0: 1 port detected
[    1.708609] zero gadget: Gadget Zero, version: Cinco de Mayo 2008
[    1.714716] zero gadget: zero ready
[    1.719034] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.782292] sunxi-mmc 1c0f000.mmc: base:0xe00ce000 irq:24
[    1.788412] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[    1.841290] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.852128] sunxi-mmc 1c10000.mmc: base:0xe00d2000 irq:25
[    1.858613] asoc-simple-card sound: sun8i <-> 1c22c00.dai mapping ok
[    1.865475] mmc0: new high speed SDHC card at address aaaa
[    1.871314] mmcblk0: mmc0:aaaa SL08G 7.40 GiB 
[    1.877382]  mmcblk0: p1 p2
[    1.881544] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01 00:47:22 UTC (2842)
[    1.890005] vcc3v0: disabling
[    1.893000] vcc3v3: disabling
[    1.895965] vcc5v0: disabling
[    1.898941] dc1sw: disabling
[    1.902176] ALSA device list:
[    1.905143]   #0: sun8i-a33-audio
[    1.914342] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.921348] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.927654] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.928359] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.931040] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.934320] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[    1.952247] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.961294] devtmpfs: mounted
[    1.965356] Freeing unused kernel memory: 1024K
[    2.017489] mmc1: new high speed SDIO card at address 0001
[    2.094784] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    2.139652] zero gadget: high-speed config #3: source/sink
Starting logging: OK
Initializing random number generator... done.
Starting network: ip: socket: Function not implemented
ip: socket: Function not implemented
FAIL

Welcome to Buildroot
buildroot login: root
login[114]: root login on 'ttyS0'
# 


返回上一頁