Skip to content

Fresh image – Booting

Michel Stempin edited this page Mar 12, 2018 · 5 revisions

Once the SD card is burned, you can insert it into your LicheePi Zero board, and power it up.

Your new system should come up now and start a console on the UART0 serial port with the following output:

U-Boot SPL 2017.01-rc2 (Mar 11 2018 - 19:51:49)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (Mar 11 2018 - 19:51:49 +0100) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2 (Mar 11 2018 - 19:51:49 +0100) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
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
323 bytes read in 14 ms (22.5 KiB/s)
## Executing script at 41900000
reading zImage
4021528 bytes read in 203 ms (18.9 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11904 bytes read in 29 ms (400.4 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe7f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.14-licheepi-zero (mstempin@Mikeul) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 SMP Sun Mar 11 19:52:44 CET 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: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5f000 s33740 r8192 d23604 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait fbcon=map:10 fbcon=font:VGA8x8 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: 55016K/65536K available (6144K kernel code, 284K rwdata, 1480K rodata, 1024K init, 263K bss, 10520K 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 - 0xc0a473a0   ( 285 kB)
[    0.000000]        .bss : 0xc0a4e6dc - 0xc0a902e4   ( 264 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: 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.000180] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000434] Console: colour dummy device 80x30
[    0.000781] console [tty0] enabled
[    0.000818] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000845] pid_max: default: 32768 minimum: 301
[    0.000982] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001005] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001655] CPU: Testing write buffer coherency: ok
[    0.002057] /cpus/cpu@0 missing clock-frequency property
[    0.002098] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002580] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002780] Hierarchical SRCU implementation.
[    0.003311] smp: Bringing up secondary CPUs ...
[    0.003336] smp: Brought up 1 node, 1 CPU
[    0.003352] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003366] CPU: All CPU(s) started in SVC mode.
[    0.004166] devtmpfs: initialized
[    0.007337] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007684] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007729] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007915] pinctrl core: initialized pinctrl subsystem
[    0.008935] NET: Registered protocol family 16
[    0.009424] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010640] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010682] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022564] SCSI subsystem initialized
[    0.022822] usbcore: registered new interface driver usbfs
[    0.022909] usbcore: registered new interface driver hub
[    0.023015] usbcore: registered new device driver usb
[    0.023259] pps_core: LinuxPPS API ver. 1 registered
[    0.023278] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023311] PTP clock support registered
[    0.023509] Advanced Linux Sound Architecture Driver Initialized.
[    0.025200] clocksource: Switched to clocksource arch_sys_counter
[    0.034523] NET: Registered protocol family 2
[    0.035153] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.035280] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.035312] TCP: Hash tables configured (established 1024 bind 1024)
[    0.035462] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.035518] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.035748] NET: Registered protocol family 1
[    0.036449] RPC: Registered named UNIX socket transport module.
[    0.036492] RPC: Registered udp transport module.
[    0.036505] RPC: Registered tcp transport module.
[    0.036518] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.038413] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.044209] NFS: Registering the id_resolver key type
[    0.044285] Key type id_resolver registered
[    0.044300] Key type id_legacy registered
[    0.048461] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.048509] io scheduler noop registered
[    0.048523] io scheduler deadline registered
[    0.048840] io scheduler cfq registered (default)
[    0.048866] io scheduler mq-deadline registered
[    0.048879] io scheduler kyber registered
[    0.049434] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.052661] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.115073] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.118200] console [ttyS0] disabled
[    0.138488] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.718521] console [ttyS0] enabled
[    0.725425] libphy: Fixed MDIO Bus: probed
[    0.730021] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.735919] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.741655] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.747867] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.753543] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.760803] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.766480] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.773703] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.778681] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.785655] libphy: stmmac: probed
[    0.790849] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.797536] ehci-platform: EHCI generic platform driver
[    0.803060] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.808761] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.816763] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.845215] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.852312] hub 1-0:1.0: USB hub found
[    0.856275] hub 1-0:1.0: 1 port detected
[    0.860816] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.867141] ohci-platform: OHCI generic platform driver
[    0.872689] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.879428] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.887402] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.960211] hub 2-0:1.0: USB hub found
[    0.964065] hub 2-0:1.0: 1 port detected
[    0.971659] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.981201] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.990199] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.997126] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.001705] i2c /dev entries driver
[    1.006625] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.015622] IR NEC protocol handler initialized
[    1.020174] IR RC5(x/sz) protocol handler initialized
[    1.025317] IR RC6 protocol handler initialized
[    1.029850] IR JVC protocol handler initialized
[    1.034379] IR Sony protocol handler initialized
[    1.039021] IR SANYO protocol handler initialized
[    1.043726] IR Sharp protocol handler initialized
[    1.048443] IR MCE Keyboard/mouse protocol handler initialized
[    1.054274] IR XMP protocol handler initialized
[    1.059474] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.125235] sunxi-mmc 1c0f000.mmc: base:0xc4981000 irq:23
[    1.185232] sunxi-mmc 1c10000.mmc: base:0xc4985000 irq:24
[    1.191633] usbcore: registered new interface driver usbhid
[    1.197310] usbhid: USB HID core driver
[    1.201660] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.211003] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.219105] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.225678] mmc0: new high speed SDHC card at address aaaa
[    1.233120] mmcblk0: mmc0:aaaa SL16G 14.8 GiB 
[    1.241574] NET: Registered protocol family 17
[    1.246344] Key type dns_resolver registered
[    1.250793] Registering SWP/SWPB emulation handler
[    1.256149]  mmcblk0: p1 p2
[    1.265461] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.276873] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.282657] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.291805] hub 3-0:1.0: USB hub found
[    1.295815] hub 3-0:1.0: 1 port detected
[    1.300842] using random self ethernet address
[    1.305442] using random host ethernet address
[    1.310811] usb0: HOST MAC 8a:59:b0:1b:1e:fc
[    1.315151] usb0: MAC 9e:b7:35:49:8a:a9
[    1.319142] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.326666] g_cdc gadget: g_cdc ready
[    1.332896] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.341560] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:05 UTC (5)
[    1.349833] vcc5v0: disabling
[    1.352823] ALSA device list:
[    1.355845]   #0: V3s Audio Codec
[    1.363665] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.373457] mmc1: new high speed SDIO card at address 0001
[    1.379608] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.421002] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.429276] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.438774] devtmpfs: mounted
[    1.442949] Freeing unused kernel memory: 1024K
[    1.552909] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    1.911455] Generic PHY stmmac-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    1.923623] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    1.931407] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW

Welcome to Buildroot for the LicheePi Zero
licheepi-zero login: [    2.745605] g_cdc gadget: high-speed config #1: CDC Composite (ECM + ACM)
[   11.477261] random: crng init done

You can log in as a "root" user with the default password "licheepi".

In order to have a fully working system, you may need to perform several steps in order:

  1. Expand the root partition and filesystem
  2. Create a swap file to expand the virtual memory size
  3. Turn on the Wi-Fi