Skip to content

Instantly share code, notes, and snippets.

@apritzel
Created January 19, 2016 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apritzel/c92b38b069a645094bf8 to your computer and use it in GitHub Desktop.
Save apritzel/c92b38b069a645094bf8 to your computer and use it in GitHub Desktop.
HELLO! BOOT0 is starting!
boot0 commit : 045061a8bb2580cb3fa02e301f52a015040c158f
boot0 version : 4.0.0
set pll start
set pll end
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
DRAM driver version: V1.1
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1500 mv
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM clk = 672 MHz
DRAM zq value: 003b3bbb
DRAM single rank full DQ OK
DRAM size = 1024 MB
DRAM init ok
dram size =1024
card boot number = 0, boot0 copy = 0
card no is 0
sdcard 0 line count 4
[mmc]: mmc driver ver 2015-05-08 20:06
[mmc]: sdc0 spd mode error, 2
[mmc]: Wrong media type 0x00000000
[mmc]: ***Try SD card 0***
[mmc]: HSSDR52/SDR25 4 bit
[mmc]: 50000000 Hz
[mmc]: 30207 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000fc000.
sum=7a0e465f
src_sum=7a0e465f
Succeed in loading uboot from sdmmc flash.
boot0: start load other image
boot0: Loading BL3-1
Loading file 0 at address 0x40000000,size 0x0000b400 success
boot0: Loading scp
Loading file 2 at address 0x00040000,size 0x00019c00 success
set arisc reset to de-assert state
Ready to disable icache.
Jump to secend Boot.%9=� Configuring SPC Controller
NOTICE: BL3-1: v1.0(debug):045061a
NOTICE: BL3-1: Built : 14:30:28, Dec 3 2015
NOTICE: BL3-1 commit: 045061a8bb2580cb3fa02e301f52a015040c158f
INFO: BL3-1: Initializing runtime services
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x4a000000
INFO: BL3-1: Next image spsr = 0x1d3
U-Boot 2014.07 (Dec 03 2015 - 14:30:33) Allwinner Technology
uboot commit : 045061a8bb2580cb3fa02e301f52a015040c158f
rsb: secure monitor exist
[ 0.376]pmbus: ready
[ 0.379][ARISC] :arisc initialize
[ 0.710][ARISC] :arisc_dvfs_cfg_vf_table: support only one vf_table
[SCP] :sunxi-arisc driver begin startup 2
[SCP] :arisc_para size:1a8
[SCP] :arisc version: [v0.1.76]
[SCP] :sunxi-arisc driver v1.10 is starting
[ 0.838][ARISC] :sunxi-arisc driver startup succeeded
[ 0.871]PMU: AXP81X
[ 0.873]PMU: read AXP81X 84H=0xf6
[ 0.876]PMU: write AXP81X 84H=0xf6
[ 0.880]PMU: AXP81X found
bat_vol=0, ratio=100
[ 0.887]PMU: dcdc2 1100
[ 0.890]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz AHB2=300Mhz MBus=400Mhz
device_type = 3253, onoff=1
dcdc1_vol = 3300, onoff=1
dcdc2_vol = 1100, onoff=1
dcdc6_vol = 1100, onoff=1
aldo1_vol = 2800, onoff=0
aldo2_vol = 1800, onoff=1
aldo3_vol = 3000, onoff=1
dldo1_vol = 3300, onoff=0
dldo2_vol = 3300, onoff=0
dldo3_vol = 2800, onoff=0
dldo4_vol = 3300, onoff=1
eldo1_vol = 1800, onoff=1
eldo2_vol = 1800, onoff=0
eldo3_vol = 1800, onoff=0
fldo1_vol = 1200, onoff=0
fldo2_vol = 1100, onoff=1
gpio0_vol = 3100, onoff=0
vbus exist
no battery, limit to dc
run key detect
no key found
no uart input
DRAM: 1008 MiB
fdt addr: 0x76eb70e0
Relocation Offset is: 35f09000
In: serial
Out: serial
Err: serial
gic: sec monitor mode
[ 1.199]start
drv_disp_init
init_clocks: finish init_clocks.
enable power vcc-hdmi-33, ret=0
drv_disp_init finish
boot_disp.output_disp=0
boot_disp.output_type=1
boot_disp.output_type=4
fetch script data boot_disp.auto_hpd fail
disp0 device type(1) enable
[ 1.529]end
workmode = 0,storage type = 1
[ 1.533]MMC: 0
[mmc]: mmc driver ver 2015-07-29 14:10:00
SUNXI SD/MMC: 0
[mmc]: start mmc_calibrate_delay_unit, don't access device...
[mmc]: delay chain cal done, sample: 192(ps)
[mmc]: media type 0x0
[mmc]: Wrong media type 0x0
[mmc]: ************Try SD card 0************
[mmc]: host caps: 0x27
[mmc]: MID 74 PSN f950036e
[mmc]: PNM USD -- 0x55-53-44-20-20
[mmc]: PRV 0.2
[mmc]: MDT m-7 y-2013
[mmc]: speed mode : HSSDR52/SDR25
[mmc]: clock : 50000000 Hz
[mmc]: bus_width : 4 bit
[mmc]: user capacity : 30207 MB
[mmc]: ************SD/MMC 0 init OK!!!************
[mmc]: erase_grp_size : 0x1WrBlk*0x200=0x200 Byte
[mmc]: secure_feature : 0x0
[mmc]: secure_removal_type : 0x0
[ 1.745]sunxi flash init ok
--------fastboot partitions--------
-total partitions:11-
-name- -start- -size-
bootloader : 1000000 2000000
env : 3000000 1000000
boot : 4000000 1000000
system : 5000000 60000000
misc : 65000000 1000000
recovery : 66000000 2000000
cache : 68000000 30000000
metadata : 98000000 1000000
private : 99000000 1000000
alog : 9a000000 5000000
UDISK : 9f000000 0
-----------------------------------
base bootcmd=run setargs_nand boot_normal
bootcmd set setargs_mmc
key 0
recovery key high 12, low 10
fastboot key high 6, low 4
misc partition found
to be run cmd=run setargs_mmc boot_normal
update dtb dram start
update dtb dram end
** Unrecognized filesystem type **
load file(sn.txt) error
serial is: 240051900808141709cb
no battery exist
sunxi_bmp_logo_display
reading bootlogo.bmp
4096056 bytes read in 183 ms (21.3 MiB/s)
bmp file buffer: 0x41000000, bmp_info.buffer: 47400000
fetch script data boot_disp.output_full fail
screen_id =0, screen_width =0, screen_height =0
frame buffer address 47400036
[ 3.272]inter uboot shell
Hit any key to stop autoboot: 1  0
sunxi#sunxi_flash read 4107f800 misc
[ 16.700]sunxi flash read :offset 65000000, 16777216 bytes OK
sunxi#setenv bootargs "console=ttyS0,115200n8 ro root=/dev/mmcblk0p10 earlycon=uart,mmio32,0x01c28000 rootwait"
sunxi#boota 4107f800
Android's image name: Pine64
Kernel load addr 0x41080000 size 11747 KiB
[ 106.365]ready to boot
prepare for kernel
[mmc]: MMC Device 2 not found
[mmc]: mmc 2 not find, so not exit
Starting kernel ...
INFO: BL3-1: Next image address = 0x41080000
INFO: BL3-1: Next image spsr = 0x3c5
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Linux version 4.4.0-rc8 (aprzywara@slackpad) (gcc version 4.9.3 (GCC) ) #20 SMP PREEMPT Mon Jan 18 01:05:25 GMT 2016
Boot CPU: AArch64 Processor [410fd034]
earlycon: Early serial console at MMIO32 0x1c28000 (options '')
bootconsole [uart0] enabled
efi: Getting EFI parameters from FDT:
efi: UEFI not found.
cma: Reserved 16 MiB at 0x000000007f000000
kasan: KernelAddressSanitizer initialized
psci: probing for conduit method from DT.
psci: PSCIv0.2 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: Trusted OS migration not required
PERCPU: Embedded 15 pages/cpu @ffffffc03dfaf000 s24576 r8192 d28672 u61440
Detected VIPT I-cache on CPU0
CPU features: enabling workaround for ARM erratum 845719
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 254016
Kernel command line: console=ttyS0,115200n8 ro root=/dev/mmcblk0p10 earlycon=uart,mmio32,0x01c28000 rootwait androidboot.serialno=240051900808141709cb androidboot.hardware=sun50iw1p1
log_buf_len individual max cpu contribution: 4096 bytes
log_buf_len total cpu_extra contributions: 12288 bytes
log_buf_len min size: 16384 bytes
log_buf_len: 32768 bytes
early log buf free: 14512(88%)
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
software IO TLB [mem 0x71c00000-0x75c00000] (64MB) mapped at [ffffffc030c00000-ffffffc034bfffff]
Memory: 786364K/1032192K available (8098K kernel code, 522K rwdata, 2400K rodata, 632K init, 221K bss, 229444K reserved, 16384K cma-reserved)
Virtual kernel memory layout:
kasan : 0xffffff8000000000 - 0xffffff9000000000 ( 64 GB)
vmalloc : 0xffffff9000010000 - 0xffffffbdbfff0000 ( 182 GB)
vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
0xffffffbdc1040000 - 0xffffffbdc2000000 ( 15 MB actual)
fixed : 0xffffffbffa7fd000 - 0xffffffbffac00000 ( 4108 KB)
PCI I/O : 0xffffffbffae00000 - 0xffffffbffbe00000 ( 16 MB)
modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
memory : 0xffffffc000000000 - 0xffffffc03f000000 ( 1008 MB)
.init : 0xffffffc000ac3000 - 0xffffffc000b61000 ( 632 KB)
.text : 0xffffffc000080000 - 0xffffffc000ac2b34 ( 10507 KB)
.data : 0xffffffc000b76000 - 0xffffffc000bf8a00 ( 523 KB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 64.
RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
NR_IRQS:64 nr_irqs:64 0
of_fixed_factor_clk_setup Fixed factor clock <pll6d2> must have a clock-div property
Architected cp15 timer(s) running at 24.00MHz (virt).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
Initializing cgroup subsys memory
Initializing cgroup subsys hugetlb
EFI services will not be available.
ASID allocator initialised with 65536 entries
Detected VIPT I-cache on CPU1
CPU1: Booted secondary processor [410fd034]
Detected VIPT I-cache on CPU2
CPU2: Booted secondary processor [410fd034]
Detected VIPT I-cache on CPU3
CPU3: Booted secondary processor [410fd034]
Brought up 4 CPUs
SMP: Total of 4 processors activated.
CPU: All CPU(s) started at EL1
alternatives: patching kernel code
devtmpfs: initialized
DMI not present or invalid.
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
cpuidle: using governor ladder
cpuidle: using governor menu
vdso: 2 pages (1 code @ ffffffc000b7d000, 1 data @ ffffffc000b7c000)
hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
DMA: preallocated 256 KiB pool for atomic allocations
Serial: AMBA PL011 UART driver
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
dmi: Firmware registration failed.
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Unpacking initramfs...
kvm [1]: HYP mode not available
futex hash table entries: 1024 (order: 5, 131072 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.428:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
fuse init (API version 7.23)
9p: Installing v9fs 9p2000 file system support
io scheduler noop registered
io scheduler cfq registered (default)
a64-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
1c28000.uart0: ttyS0 at MMIO 0x1c28000 (irq = 11, base_baud = 1500000) is a U6_16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [uart0] disabled
bootconsole [uart0] disabled
msm_serial: driver initialized
Unable to detect cache hierarchy from DT for CPU 0
loop: module loaded
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
sky2: driver version 1.30
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-platform: OHCI generic platform driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
sun6i-rtc 1f00000.rtc: RTC enabled
/cpus/cpu@0: could not find phandle
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sunxi-mmc 1c0f000.mmc0: No vqmmc regulator found
sunxi-mmc 1c0f000.mmc0: Got CD GPIO
sunxi-mmc 1c0f000.mmc0: base:0xffffff9000064000 irq:10
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
9pnet: Installing 9P2000 support
Key type dns_resolver registered
registered taskstats version 1
sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01 00:06:48 UTC (408)
Waiting for root device /dev/mmcblk0p10...
mmc0: host does not support reading read-only switch, assuming write-enable
mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4 USD 29.4 GiB
mmcblk0: p1 p2 p3 < p5 p6 p7 p8 p9 p10 p11 p12 p13 >
EXT4-fs (mmcblk0p10): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 179:10.
devtmpfs: mounted
Freeing unused kernel memory: 632K (ffffffc000ac3000 - ffffffc000b61000)
Freeing alternatives memory: 60K (ffffffc000b61000 - ffffffc000b70000)
Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory
random: init urandom read with 6 bits of entropy available
init: plymouth-upstart-bridge main process (811) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (822) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (825) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (827) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (831) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (833) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (835) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: ureadahead main process (814) terminated with status 5
* Starting Read required files in advance[fail]
* Stopping Send an event to indicate plymouth is up[ OK ]
* Starting Mount filesystems on boot[ OK ]
* Starting Populate /dev filesystem[ OK ]
* Stopping Populate /dev filesystem[ OK ]
* Starting Populate and link to /run filesystem[ OK ]
* Stopping Populate and link to /run filesystem[ OK ]
* Stopping Track if upstart is running in a container[ OK ]
* Starting Initialize or finalize resolvconf[ OK ]
* Starting set console keymap[ OK ]
* Starting Signal sysvinit that virtual filesystems are mounted[ OK ]
* Starting Signal sysvinit that virtual filesystems are mounted[ OK ]
* Starting Bridge udev events into upstart[ OK ]
* Starting Signal sysvinit that remote filesystems are mounted[ OK ]
* Stopping set console keymap[ OK ]
* Starting device node and kernel event manager[ OK ]
* Starting load modules from /etc/modules[ OK ]
* Starting cold plug devices[ OK ]
* Starting log initial device creation[ OK ]
* Stopping load modules from /etc/modules[ OK ]
* Starting configure network device security[ OK ]
* Starting Mount network filesystems[ OK ]
* Stopping Mount network filesystems[ OK ]
* Starting Bridge socket events into upstart[ OK ]
* Stopping cold plug devices[ OK ]
* Starting configure network device[ OK ]
* Stopping log initial device creation[ OK ]
* Starting load fallback graphics devices[ OK ]
* Stopping load fallback graphics devices[ OK ]
* Starting set console font[ OK ]
* Stopping set console font[ OK ]
* Starting userspace bootsplash[ OK ]
* Starting Signal sysvinit that the rootfs is mounted[ OK ]
* Stopping userspace bootsplash[ OK ]
* Starting Send an event to indicate plymouth is up[ OK ]
* Stopping Send an event to indicate plymouth is up[ OK ]
* Starting Clean /tmp directory[ OK ]
* Stopping Clean /tmp directory[ OK ]
* Starting Signal sysvinit that local filesystems are mounted[ OK ]
* Starting configure network device security[ OK ]
* Starting flush early job output to logs[ OK ]
* Stopping Failsafe Boot Delay[ OK ]
* Stopping Mount filesystems on boot[ OK ]
* Starting System V initialisation compatibility[ OK ]
* Stopping flush early job output to logs[ OK ]
* Starting configure virtual network devices[ OK ]
* Starting Bridge file events into upstart[ OK ]
* Stopping System V initialisation compatibility[ OK ]
* Starting system logging daemon[ OK ]
* Starting System V runlevel compatibility[ OK ]
* Starting save kernel messages[ OK ]
* Starting regular background program processing daemon[ OK ]
* Stopping System V runlevel compatibility[ OK ]
* Stopping save kernel messages[ OK ]
Ubuntu 14.04.3 LTS localhost.localdomain ttyS0
localhost login: root
Last login: Thu Jan 1 01:37:09 UTC 1970 on ttyS0
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 4.4.0-rc8 aarch64)
* Documentation: https://help.ubuntu.com/
root@localhost:~# uname -a
Linux localhost.localdomain 4.4.0-rc8 #20 SMP PREEMPT Mon Jan 18 01:05:25 GMT 2016 aarch64 aarch64 aarch64 GNU/Linux
root@localhost:~# grep . /proc/device-tree/{model,compatible}
/proc/device-tree/model:Pine64+
/proc/device-tree/compatible:pine64,pine64_plusallwinner,a64
root@localhost:~# head /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
root@localhost:~# free
total used free shared buffers cached
Mem: 803440 37248 766192 132 2660 13844
-/+ buffers/cache: 20744 782696
Swap: 0 0 0
root@localhost:~# grep -c ^processor /proc/cpuinfo
4
root@localhost:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment