CyanogenMod 13
#1
I've built CM 13 for pine64.
Here is the first bootable ROM link: https://drive.google.com/file/d/0B5NrIPX...sp=sharing
How to install:
-First you have to prepare your SDCard with PhoenixCard on Windows with offical Android image.
-Download and extract the files on Linux.
-Format system and data partitions on your SDCard as Ext4.
-Write system and boot images with dd command.

Note: Data is in first partition in SDCard. System is in 7th partition and boot is in 6th partition.

Known issues:
-Heavy graphical problems (Screen goes black very frequently)
-No wifi and bluetooth
-Drmserver crashes

Device tree sources:
https://github.com/DogukanErgun/android_...ner_common
https://github.com/DogukanErgun/android_...lip-common
https://github.com/DogukanErgun/android_...r_tulip-t1

Kernel source:
https://github.com/DogukanErgun/linux-pine64
#2
(02-02-2016, 05:43 PM)Hahaburger Wrote: I've built CM 13 for pine64. I don't have the board yet so I couldn't test it. Here are the images for those who wants to test CM on Pine:  
https://drive.google.com/file/d/0B5NrIPX...sp=sharing
I'm not sure how to install this to SD Card.
After installing the image on the wiki with Phoenix Card,
using dd to system.img on /dev/mmcblk0p7 and boot.img on /dev/mmcblk0p6 may work.

I have already send out Pine A64 developer edition board to you from Chian facility on last week, hopefully you will receive soon.
#3
(02-02-2016, 05:43 PM)Hahaburger Wrote: I've built CM 13 for pine64. I don't have the board yet so I couldn't test it. Here are the images for those who wants to test CM on Pine:  
https://drive.google.com/file/d/0B5NrIPX...sp=sharing
I'm not sure how to install this to SD Card.
After installing the image on the wiki with Phoenix Card,
using dd to system.img on /dev/mmcblk0p7 and boot.img on /dev/mmcblk0p6 may work.

I prepared a microSD card with the android_20160112.img image and then,


Code:
sudo dd if=boot.img of=/dev/sdc6 bs=16M 
sudo dd if=system.img of=/dev/sdc7 bs=16M 

Then, I boot the Pine64,


Code:
[   17.044958] Freeing unused kernel memory: 524K (ffffffc0009e4000 - ffffffc000a67000)
[   17.055741] init: init started!
[   17.060162] SELinux:  policydb version 30 does not match my version range 15-28
[   17.068327] init: SELinux:  Could not load policy:  Invalid argument
[   17.075395] init: failed to load policy: Invalid argument
[   17.081299] init: Security failure; rebooting into recovery mode...
[   17.088267] SysRq : Emergency Remount R/O
[   17.092679] Emergency Remount complete
[   17.097092] drivers/cpufreq/autohotplug.c:reboot_notifier_call: stop autohotplug done
[   17.106741] CPU1: shutdown
[   17.109704] psci: CPU1 killed.
[   17.116035] CPU2: shutdown
[   17.119001] psci: CPU2 killed.
[   17.124828] CPU3: shutdown
[   17.127794] psci: CPU3 killed.
[   17.132110] drivers/cpufreq/cpufreq.c:reboot_notifier_call: stop none boot cpus done
[   17.140572] drivers/devfreq/sunxi_dramfreq.c:sunxi_dramfreq_reboot: stop dramfreq done
[   17.149494] [alarmtimer] have no shutdown alarm! alarmtimer_shutdown 330
[   17.157308] Restarting system with command 'recovery'.

I think the issue is with SELinux ("SELinux:  policydb version 30 does not match my version range 15-28") for this image.
Thanks for providing the files to try out.
#4
(02-03-2016, 04:20 AM)taros Wrote: I prepared a microSD card with the android_20160112.img image and then,


Code:
sudo dd if=boot.img of=/dev/sdc6 bs=16M 
sudo dd if=system.img of=/dev/sdc7 bs=16M 

Then, I boot the Pine64,


Code:
[   17.044958] Freeing unused kernel memory: 524K (ffffffc0009e4000 - ffffffc000a67000)
[   17.055741] init: init started!
[   17.060162] SELinux:  policydb version 30 does not match my version range 15-28
[   17.068327] init: SELinux:  Could not load policy:  Invalid argument
[   17.075395] init: failed to load policy: Invalid argument
[   17.081299] init: Security failure; rebooting into recovery mode...
[   17.088267] SysRq : Emergency Remount R/O
[   17.092679] Emergency Remount complete
[   17.097092] drivers/cpufreq/autohotplug.c:reboot_notifier_call: stop autohotplug done
[   17.106741] CPU1: shutdown
[   17.109704] psci: CPU1 killed.
[   17.116035] CPU2: shutdown
[   17.119001] psci: CPU2 killed.
[   17.124828] CPU3: shutdown
[   17.127794] psci: CPU3 killed.
[   17.132110] drivers/cpufreq/cpufreq.c:reboot_notifier_call: stop none boot cpus done
[   17.140572] drivers/devfreq/sunxi_dramfreq.c:sunxi_dramfreq_reboot: stop dramfreq done
[   17.149494] [alarmtimer] have no shutdown alarm! alarmtimer_shutdown 330
[   17.157308] Restarting system with command 'recovery'.

I think the issue is with SELinux ("SELinux:  policydb version 30 does not match my version range 15-28") for this image.
Thanks for providing the files to try out.

Thank you for testing Smile  Here I have added SELinux patches to kernel and created new boot.img if you want to test more:
https://drive.google.com/file/d/0B5NrIPX...sp=sharing
#5
(02-03-2016, 06:56 AM)Hahaburger Wrote: Thank you for testing Smile  Here I have added SELinux patches to kernel and created new boot.img if you want to test more:
https://drive.google.com/file/d/0B5NrIPX...sp=sharing

So I tried this newer boot.img in addition to the earlier system.img on a clean android_20160112.img μSD card and here are the results.  Smile


Code:
[   18.202055] Freeing unused kernel memory: 524K (ffffffc0009e5000 - ffffffc000a68000)
[   18.212859] init: init started!
[   18.226228] SELinux: 2048 avtab hash slots, 4929 rules.
[   18.237488] SELinux: 2048 avtab hash slots, 4929 rules.
[   18.243243] SELinux:  1 users, 2 roles, 531 types, 0 bools, 1 sens, 1024 cats
[   18.251092] SELinux:  87 classes, 4929 rules
[   18.259167] SELinux:  Completing initialization.
[   18.264211] SELinux:  Setting up existing superblocks.
[   18.269866] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[   18.277670] SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
[   18.285766] SELinux: initialized (dev bdev, type bdev), not configured for labeling
[   18.294154] SELinux: initialized (dev proc, type proc), uses genfs_contexts
[   18.301784] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   18.309698] SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
[   18.318575] SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
[   18.331643] SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
[   18.339192] SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
[   18.346706] SELinux: initialized (dev anon_inodefs, type anon_inodefs), not configured for labeling
[   18.356606] SELinux: initialized (dev devpts, type devpts), uses transition SIDs
[   18.364713] SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
[   18.373344] SELinux: initialized (dev configfs, type configfs), not configured for labeling
[   18.382477] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   18.390390] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[   18.588759] type=1403 audit(1262304012.920:2): policy loaded auid=4294967295 ses=4294967295
[   18.598612] init: (Initializing SELinux enforcing took 0.39s.)
[   18.611226] init: init second stage started!
[   18.668715] init: waitpid failed: No child processes
[   18.674410] init: (Loading properties from /default.prop took 0.00s.)
[   18.683517] init: (Parsing /init.environ.rc took 0.00s.)
[   18.689637] init: (Parsing /init.usb.rc took 0.00s.)
[   18.695739] init: (Parsing init.common.rc took 0.00s.)
[   18.701574] init: (Parsing init.sun50iw1p1.usb.rc took 0.00s.)
[   18.708040] init: (Parsing init.zygote64_32.rc took 0.00s.)
[   18.714150] init: (Parsing /init.sun50iw1p1.rc took 0.02s.)
[   18.720632] init: (Parsing /init.usb.configfs.rc took 0.00s.)
[   18.726997] init: /init.zygote64_32.rc: 1: ignored duplicate definition of service 'zygote'
[   18.736144] init: /init.zygote64_32.rc: 10: ignored duplicate definition of service 'zygote_secondary'
[   18.746331] init: (Parsing /init.zygote64_32.rc took 0.02s.)
[   18.752665] init: (Parsing /init.trace.rc took 0.00s.)
[   18.758342] init: could not import file '/init.cm.rc' from '/init.rc'
[   18.765400] init: (Parsing /init.rc took 0.08s.)
[   18.770697] init: SELinux: Could not get canonical path /adb_keys restorecon: No such file or directory.
[   18.781160] init: Starting service 'ueventd'...
[   18.786505] init: Waiting for /dev/.coldboot_done...
[   18.788741] ueventd: ueventd started!
[   19.187628] ueventd: Coldboot took 0.40s.
[   19.193881] init: Waiting for /dev/.coldboot_done took 0.41s.
[   19.200255] init: /dev/hw_random not found
[   19.206500] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   19.215226] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   19.225704] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   19.239152] init: write_file: Unable to open '/proc/cpu/alignment': No such file or directory
[   19.248780] init: write_file: Unable to open '/proc/sys/kernel/sched_compat_yield': No such file or directory
[   19.261623] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   19.269955] init: write_file: Unable to write to '/dev/cpuctl/cpu.shares': Invalid argument
[   19.280937] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   19.294266] SELinux: initialized (dev pstore, type pstore), uses genfs_contexts
[   19.302593] init: write_file: Unable to open '/proc/sys/abi/swp': No such file or directory
[   19.312605] type=1400 audit(1262304013.670:3): avc:  denied  { create } for  pid=1 comm="init" name="sdcard" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0
[   19.331678] type=1400 audit(1262304013.680:4): avc:  denied  { create } for  pid=1 comm="init" name="extsd" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0
[   19.350401] type=1400 audit(1262304013.700:5): avc:  denied  { create } for  pid=1 comm="init" name="usbhost" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0
[   19.369512] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   19.377951] init: /dev/hw_random not found
[   19.400420] type=1400 audit(1262304013.750:6): avc:  denied  { sys_module } for  pid=1 comm="init" capability=16  scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=0
[   19.421677] init: Warning!  Service exec 0 (/sbin/busybox) needs a SELinux domain defined; please fix!
[   19.431873] init: Starting service 'exec 0 (/sbin/busybox)'...
[   19.438994] type=1400 audit(1262304013.790:7): avc:  denied  { execute_no_trans } for  pid=1377 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[   19.461008] init: cannot execve('/sbin/busybox'): Permission denied
[   19.468152] init: Service 'exec 0 (/sbin/busybox)' (pid 1377) exited with status 127
[   38.502062] fs_mgr: __mount(source=/dev/block/by-name/system,target=/system,type=ext4)=-1
[   38.511092] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/system at /system options: (null) error: No such file or directory
[   58.187046] fs_mgr: __mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
[   58.195889] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/cache at /cache options: nomblk_io_submit,barrier=1 error: No such file or directory
[   77.863488] fs_mgr: __mount(source=/dev/block/by-name/alog,target=/logger,type=ext4)=-1
[   77.872308] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/alog at /logger options: nomblk_io_submit,barrier=1 error: No such file or directory
[   97.540000] fs_mgr: __mount(source=/dev/block/by-name/UDISK,target=/data,type=ext4)=-1
[   97.548708] fs_mgr: fs_mgr_mount_all(): possibly an encryptable blkdev /dev/block/by-name/UDISK for mount /data type ext4 )
[   97.561118] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   97.569099] init: fs_mgr_mount_all returned an error
[   97.574853] init: fs_mgr_mount_all returned unexpected error 255
[   97.581847] init: cannot find '/system/bin/app_process64', disabling 'zygote'
[   97.589707] init: cannot find '/system/bin/app_process32', disabling 'zygote_secondary'
[   97.598510] init: cannot find '/system/bin/sh', disabling 'console'
[   97.608896] type=1400 audit(1262304093.230:8): avc:  denied  { write } for  pid=1 comm="init" name="zram0" dev="tmpfs" ino=4291 scontext=u:r:init:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
[   97.629643] fs_mgr: swapon failed for /dev/block/zram0
[   97.635383] init: cannot find '/system/bin/installd', disabling 'installd'
[   97.642985] init: cannot find '/system/bin/logd', disabling 'logd'
[   97.650762] init: SELinux: Could not set context for /cache:  Read-only file system
[   97.661029] init: SELinux: Could not set context for /logger:  Read-only file system
[   97.669772] init: (Loading properties from /system/build.prop took 0.00s.)
[   97.677375] init: (Loading properties from /vendor/build.prop took 0.00s.)
[   97.684941] init: (Loading properties from /factory/factory.prop took 0.00s.)
[   97.692959] init: /recovery not specified in fstab
[   97.699326] init: cannot find '/system/bin/logd', disabling 'logd'
[   97.706125] init: cannot find '/system/bin/vold', disabling 'vold'
[   97.713402] init: Not bootcharting.
[   97.744861] init: SELinux: Could not get canonical path /data/user/0 restorecon: No such file or directory.
[   97.755604] init: cannot find '/system/bin/tzdatacheck', disabling 'exec 1 (/system/bin/tzdatacheck)'
[   97.766452] init: cannot find '/system/bin/gatekeeperd', disabling 'gatekeeperd'
[   97.774584] init: cannot find '/system/xbin/perfprofd', disabling 'perfprofd'
[   97.782448] init: cannot find '/system/bin/sdcard', disabling 'sdcard'
[   97.789909] init: Warning!  Service bootclone needs a SELinux domain defined; please fix!
[   97.798864] init: Starting service 'bootclone'...
[   97.804756] type=1400 audit(1262304093.430:9): avc:  denied  { execute_no_trans } for  pid=1380 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[   97.804772] init: Warning!  Service precopy needs a SELinux domain defined; please fix!
[   97.804782] init: Starting service 'precopy'...
[   97.805352] init: (Loading properties from /data/local.prop took 0.00s.)
[   97.805461] type=1400 audit(1262304093.430:10): avc:  denied  { execute_no_trans } for  pid=1381 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[   97.805500] init: cannot find '/system/bin/logd', disabling 'logd'
[   97.805514] init: cannot execve('/sbin/busybox'): Permission denied
[   97.805556] init: cannot find '/system/bin/logd', disabling 'logd-reinit'
[   97.806188] init: Service 'precopy' (pid 1381) exited with status 127
[   97.811231] init: Starting service 'healthd'...
[   97.811742] init: cannot find '/system/bin/lmkd', disabling 'lmkd'
[   97.811793] init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
[   97.811863] init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
[   97.811941] init: cannot find '/system/bin/sayeye', disabling 'sayeye'
[   97.813948] binder: 1382:1382 transaction failed 29189, size 0-0
[   97.814697] init: write_file: Unable to open '/proc/bluetooth/sleep/lpm': No such file or directory
[   97.816817] init: cannot find '/system/bin/sh', disabling 'console'
[   97.816999] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[   97.817056] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[   97.817116] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[   97.817174] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[   97.817234] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[   97.817290] init: Starting service 'adbd'...
[   98.018201] init: cannot execve('/sbin/busybox'): Permission denied
[   98.025408] init: Service 'bootclone' (pid 1380) exited with status 127
[   98.798065] binder: 1382:1382 transaction failed 29189, size 0-0
[   99.788726] binder: 1382:1382 transaction failed 29189, size 0-0
[  100.779390] binder: 1382:1382 transaction failed 29189, size 0-0
[  101.770018] binder: 1382:1382 transaction failed 29189, size 0-0
[  102.760789] binder: 1382:1382 transaction failed 29189, size 0-0
[  103.751433] binder: 1382:1382 transaction failed 29189, size 0-0
...

The HDMI output shows the A64 bootlogo (it's stuck) and the console output is more encouraging.
I think the main issue is with being unable to mount the system partition.
I am still happy to try any newer image.
#6
(02-03-2016, 07:44 AM)taros Wrote: The HDMI output shows the A64 bootlogo (it's stuck) and the console output is more encouraging.
I think the main issue is with being unable to mount the system partition.
I am still happy to try any newer image.

I've set SELinux to permissive mode to at least find out if ROM boots. I'll add missing policies after ROM starts to work Smile
Here is new boot image: https://drive.google.com/file/d/0B5NrIPX...sp=sharing
#7
@Hahaburger

can u pls share how do you configure the device tree for the pine.?

Thanks! Big Grin
By. Zoidiano0!
Installed:
LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5 
Java 8 arm by oracle
Netbeans 8.1
chromium (uses way toooo much Ram)

Pine64 Head Unit Project.!
#8
(02-03-2016, 02:05 PM)Zoidiano0 Wrote: @Hahaburger

can u pls share how do you configure the device tree for the pine.?

Thanks! Big Grin
I was planning to upload device tree and kernel source on github when at least I could create a ROM which boots.
But I may upload them tomorrow if you like to look at.
#9
(02-03-2016, 10:39 AM)Hahaburger Wrote:
(02-03-2016, 07:44 AM)taros Wrote: The HDMI output shows the A64 bootlogo (it's stuck) and the console output is more encouraging.
I think the main issue is with being unable to mount the system partition.
I am still happy to try any newer image.

I've set SELinux to permissive mode to at least find out if ROM boots. I'll add missing policies after ROM starts to work Smile
Here is new boot image: https://drive.google.com/file/d/0B5NrIPX...sp=sharing

I tried out the fresh boot.img (sha256sum: c0cf4c0b137e1366ab1621ece7fdc82a41259bc7d13c37917483705ed3802874) and it hangs quite early (Cannot find kernel):


Code:
...
[     13.771]inter uboot shell
Hit any key to stop autoboot:  0 
read partition: boot or recovery
[     14.605]sunxi flash read :offset 4000000, 16918757 bytes OK
Kernel load addr 0x41080000 size 10881 KiB
Kernel command line: androidboot.selinux=permissive
RAM disk load addr 0x42000000 size 4617 KiB
[     14.956]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


Actually, here is all the information from the console:


Code:
Connected.
HELLO! BOOT0 is starting!
boot0 commit : 2fe7b0a9fb512fae2996ec1a2ba89d535e1f3c4d
 
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]: 15423 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000fc000.
sum=15bc131f
src_sum=15bc131f
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.
J9=�    Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):2fe7b0a
NOTICE:  BL3-1: Built : 10:15:37, Jan 12 2016
NOTICE:  BL3-1 commit: 2fe7b0a9fb512fae2996ec1a2ba89d535e1f3c4d

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 (Jan 12 2016 - 10:15:41) Allwinner Technology 

uboot commit : 2fe7b0a9fb512fae2996ec1a2ba89d535e1f3c4d
 
rsb: secure monitor exist
[      0.377]pmbus:   ready
[      0.380][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=0xf2
[      0.877]PMU: write AXP81X 84H=0xf6
[      0.880]PMU: AXP81X found
bat_vol=321, 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 not exist
no battery, limit to dc
run key detect
key pressed value=0x1
key pressed value=0x1
fel key not configed
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
time out
key not pressed anymore
no uart input
DRAM:  1008 MiB
fdt addr: 0x76eb70e0
Relocation Offset is: 35f09000
In:    serial
Out:   serial
Err:   serial
gic: sec monitor mode
[     12.573]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=3
boot_disp.output_type=10
fetch script data boot_disp.auto_hpd fail
disp0 device type(4) enable
attched ok, mgr0<-->device1, type=4, mode=10
[     12.945]end
workmode = 0,storage type = 1
[     12.949]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: 200(ps)
[mmc]: media type 0x0
[mmc]: Wrong media type 0x0
[mmc]: ************Try SD card 0************
[mmc]: host caps: 0x27
[mmc]: MID 1b PSN 008541f6
[mmc]: PNM 00000 -- 0x30-30-30-30-30
[mmc]: PRV 1.0
[mmc]: MDT m-12 y-2011
[mmc]: speed mode     : HSSDR52/SDR25 
[mmc]: clock          : 50000000 Hz
[mmc]: bus_width      : 4 bit
[mmc]: user capacity  : 15423 MB
[mmc]: ************SD/MMC 0 init OK!!!************
[mmc]: erase_grp_size      : 0x1WrBlk*0x200=0x200 Byte
[mmc]: secure_feature      : 0x0
[mmc]: secure_removal_type : 0x0
[     13.162]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 1
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: 241051900808142809cb
no battery exist
sunxi_bmp_logo_display
reading bootlogo.bmp
681774 bytes read in 36 ms (18.1 MiB/s)
bmp file buffer: 0x41000000, bmp_info.buffer: 47400000
fetch script data boot_disp.output_full fail
screen_id =0, screen_width =1920, screen_height =1080
frame buffer address 47400036
[     13.771]inter uboot shell
Hit any key to stop autoboot:  0 
read partition: boot or recovery
[     14.605]sunxi flash read :offset 4000000, 16918757 bytes OK
Kernel load addr 0x41080000 size 10881 KiB
Kernel command line: androidboot.selinux=permissive
RAM disk load addr 0x42000000 size 4617 KiB
[     14.956]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
#10
(02-03-2016, 03:34 PM)taros Wrote: I tried out the fresh boot.img (sha256sum: c0cf4c0b137e1366ab1621ece7fdc82a41259bc7d13c37917483705ed3802874) and it hangs quite early (Cannot find kernel):

Actually, here is all the information from the console:


Code:
Connected.
HELLO! BOOT0 is starting!
boot0 commit : 2fe7b0a9fb512fae2996ec1a2ba89d535e1f3c4d
 
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]: 15423 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000fc000.
sum=15bc131f
src_sum=15bc131f
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.
J9=�    Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):2fe7b0a
NOTICE:  BL3-1: Built : 10:15:37, Jan 12 2016
NOTICE:  BL3-1 commit: 2fe7b0a9fb512fae2996ec1a2ba89d535e1f3c4d

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 (Jan 12 2016 - 10:15:41) Allwinner Technology 

uboot commit : 2fe7b0a9fb512fae2996ec1a2ba89d535e1f3c4d
 
rsb: secure monitor exist
[      0.377]pmbus:   ready
[      0.380][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=0xf2
[      0.877]PMU: write AXP81X 84H=0xf6
[      0.880]PMU: AXP81X found
bat_vol=321, 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 not exist
no battery, limit to dc
run key detect
key pressed value=0x1
key pressed value=0x1
fel key not configed
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x2
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x2
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
key pressed value=0x1
time out
key not pressed anymore
no uart input
DRAM:  1008 MiB
fdt addr: 0x76eb70e0
Relocation Offset is: 35f09000
In:    serial
Out:   serial
Err:   serial
gic: sec monitor mode
[     12.573]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=3
boot_disp.output_type=10
fetch script data boot_disp.auto_hpd fail
disp0 device type(4) enable
attched ok, mgr0<-->device1, type=4, mode=10
[     12.945]end
workmode = 0,storage type = 1
[     12.949]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: 200(ps)
[mmc]: media type 0x0
[mmc]: Wrong media type 0x0
[mmc]: ************Try SD card 0************
[mmc]: host caps: 0x27
[mmc]: MID 1b PSN 008541f6
[mmc]: PNM 00000 -- 0x30-30-30-30-30
[mmc]: PRV 1.0
[mmc]: MDT m-12 y-2011
[mmc]: speed mode     : HSSDR52/SDR25 
[mmc]: clock          : 50000000 Hz
[mmc]: bus_width      : 4 bit
[mmc]: user capacity  : 15423 MB
[mmc]: ************SD/MMC 0 init OK!!!************
[mmc]: erase_grp_size      : 0x1WrBlk*0x200=0x200 Byte
[mmc]: secure_feature      : 0x0
[mmc]: secure_removal_type : 0x0
[     13.162]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 1
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: 241051900808142809cb
no battery exist
sunxi_bmp_logo_display
reading bootlogo.bmp
681774 bytes read in 36 ms (18.1 MiB/s)
bmp file buffer: 0x41000000, bmp_info.buffer: 47400000
fetch script data boot_disp.output_full fail
screen_id =0, screen_width =1920, screen_height =1080
frame buffer address 47400036
[     13.771]inter uboot shell
Hit any key to stop autoboot:  0 
read partition: boot or recovery
[     14.605]sunxi flash read :offset 4000000, 16918757 bytes OK
Kernel load addr 0x41080000 size 10881 KiB
Kernel command line: androidboot.selinux=permissive
RAM disk load addr 0x42000000 size 4617 KiB
[     14.956]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
Weird, I almost changed nothing on that image. I've just added one kernel parameter and some sepolicies.
I also checked your sha256sum which is the same on my PC so download is OK.
I've prepared new boot image and changed kernel parameter:
https://drive.google.com/file/d/0B5NrIPX...sp=sharing


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cyanogenmod 13 GoZone 2 4,353 03-30-2016, 06:06 AM
Last Post: g_t_j
Heart CyanogenMod Danton 12 17,920 01-30-2016, 11:35 AM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)