1 基础环境搭建
我的实验环境:
型号:MECHREVO 机械革命
处理器:i7-7700HQ 2.8GHz 2.8GHz
内存:8G
系统:win10 64位
1.1 准备基础文件包
1.交叉编译工具链:gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux(4.8.2).tar.xz
2.SDK文件:MarsBoard-A20-Linux-SDK-V1.1.tar.bz2
1.2 安装额外包文件
$ sudo apt-get install vim
$ sudo apt-get install -y gcc-4.6-arm-linux-gnueabi
$ sudo apt-get install -y gcc-arm-linux-gnueabi
$ sudo apt-get install gcc-arm-linux-gnueabihf
$ sudo apt-get install uboot-mkimage
在安装gcc-arm-linux-gnueabi的时候,会自动安装上gcc-4.6-arm-linux-gnueabi,如下图所示:
第二个文件的安装很重要,尽管后面提示的编译错误,缺少的是arm-linux-...,但是安装这个文件还是挺好用的。
1.3 工具链与编译环境
1.3.1 配置交叉编译环境工具链
根据前面安装的一些安装包,其实本节的交叉编译工具链可以不用操作。因为已经包含了本节所做的了。
我得先将vim改一下,否则按住上下左右,会出现A,B,C,D。
sudo apt-get install vim
$ xz -d gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux\(4.8.2\).tar.xz
$ tar xvf gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux\(4.8.2\).tar
$ sudo vi /etc/profile
再/etc/profile最后一行添加内容:
$ export PATH=$PATH:/home/wityuan/Downloads/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin
然后:
$ source /etc/profile
1.4 制作镜像
这里做一些简要的说明,在网址:链接 上有一些说明,从说明中,我们可以看到我们用的sdk的架构。
build.sh 是linux的bash脚本,用来编译rootfs,linux kernel,uboot,并且把它们打包在一起的脚本。
mkbootimg (x86下linux二进制文件): 在产生一个内核文件,ramdisk镜像,最终是一个第二阶段的bootloader镜像的启动镜像。
pack文件夹
- chips文件夹: 包含configs fex, eGon (boot0.bin & boot1.bin for NAND, sdcard and spinor), eFex (一些 fex和axf文件), wboot (一些scripts and assets for bootfs)
- pack (linux bash脚本): linux固件的pack工具
- pctools folder: 包含Windows和Linux工具. (eDragonEx, gen_check_code. mod_update, fsbuild200).
1.4.1 制作nand镜像
$ source tools/scripts/envsetup.sh
选择2,server版本。
$ MarsBoard_build_nand_image
之后:
$ ls build/marsboard-a20-ubuntu-server/pack/
...
boot0_nand.bin env.cfg sunxi_mbr.fex
boot0_sdcard.fex HDMI sys_config.bin
boot1_nand.fex HY050CTP-HD & HY070CTP sys_config.fex
boot1_sdcard.fex HY070CTP-HD sys_partition.bin
bootfs HY070CTP-HD-RGB sys_partition.fex
bootfs.ini HY101CTP uEnv-mmc.txt
bootloader.fex image.cfg Vbootloader.fex
dlinfo.fex livesuit_marsboard_a20_debian.img VGA
eFex rootfs.fex Vrootfs.fex
eGon split_xxxx.fex wboot
能找到的livesuit_marsboard_a20_debian.img就是生成的镜像文件。如果要修改名字,可以:
$ ls products/marsboard-a20-ubuntu-server/configs/
...
env.cfg sys_config.fex sys_config-lcd-hy070ctp-hd.fex sys_partition.fex
image.cfg sys_config-hdmi.fex sys_config-vga.fex uEnv-mmc.txt
这里面就包含了image.cfg,找到里面的一项:
imagename = livesuit_marsboard_a20_debian.img
修改为其他的名字即可。
1.4.2 制作sdcard镜像
$ source tools/scripts/envsetup.sh
选择2,server版本。
$ MarsBoard_make_card_image
1.4.3 问题解决
1.若出现如下报错:
可以:
$ cd linux-sunxi
$ make mrproper
...
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated arch/x86/include/generated
如果出现:
但是其实这些文件都是有的,可以不妨:
sudo apt-get install ia32-libs
再次编译,则问题如下:
Dragon execute image.cfg Failed ! ArgCnt = 3, 400
仔细找编译的shell输出文件,发现是rootfs/下的gz文件找不到,这是因为我做前面的操作的时候,希望生成自己的rootfs_my.tar.gz文件。现在我重新将该文件放到rootfs/下,再次编译,我将最后的结果放在下面:
c:\linux
c:\magic.bin
find magic !!
RealLen=0x579400
CPlugin Free lib
CPlugin Free lib
/home/wityuan/Downloads/superlinux/tools/pack/pctools/linux/eDragonEx/
/home/wityuan/Downloads/superlinux/output/pack
Begin Parse sys_partion.fex
Add partion bootloader.fex BOOTLOADER_FEX00
Add partion very bootloader.fex BOOTLOADER_FEX00
FilePath: bootloader.fex
FileLength=579400 FileSizeHigh=0
Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000 FileSizeHigh=0
Add partion boot.fex BOOT_FEX00000000
Add partion very boot.fex BOOT_FEX00000000
FilePath: boot.fex
FileLength=a30000 FileSizeHigh=0
Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=5e300000 FileSizeHigh=0
BuildImg 0
Dragon execute image.cfg SUCCESS !
这样表示成功了。
下面列入生成的镜像:
wityuan@ubuntu:~/Downloads/superlinux$ ls output/pack/
boot0_nand.bin bootloader.fex livesuit_superpi3.img sys_partition.fex
boot0_sdcard.fex dlinfo.fex rootfs.fex Vboot.fex
boot1_nand.fex eFex/ split_xxxx.fex Vbootloader.fex
boot1_sdcard.fex eGon/ sunxi_mbr.fex Venv.fex
boot.fex env.cfg sys_config.bin Vrootfs.fex
bootfs/ env.fex sys_config.fex wboot/
bootfs.ini image.cfg sys_partition.bin
livesuit_superpi3.img即是。
1.5 一些说明
1.我在做上面的操作的时候,夹杂的使用了两个开发板,一个是marsboard出品的a20开发板,另外一个是风火轮出品的a20树莓派3卡片电脑,说实在的,看起来风火轮附带板子资料挺多,但是其真正写的资料可没用心做,实在不是一个榜样,在该开发板上做非核心开发,是可以的,但是做研发,还是需要做考量。
2 烧写superpi3-lubuntu-server-nand_V1.1.img
烧写成功后,打印的内容如下,作为日志信息,留作以后分析:
root@superpi3:~# reboot
Broadcast message from root@superpi3
(/dev/ttyS0) at 0:02 ...
The system is going down for reboot NOW!
root@superpi3:~# Stopping nginx: nginx.
<4>init: tty4 main process (422) killed by TERM signal
<4>init: tty5 main process (425) killed by TERM signal
<4>[DISP] layer released: 0,101
<4>init: auto-serial-console main process (427) killed by TERM signal
<4>init: tty2 main process (433) killed by TERM signal
<4>init: tty3 main process (434) killed by TERM signal
UMP<2>: Session closed
<4>init: tty6 main process (436) killed by TERM signal
<4>init: cron main process (442) killed by TERM signal
<4>init: openvt main process (571) killed by TERM signal
<4>init: plymouth-upstart-bridge main process (772) terminated with status 1
<4>init: plymouth post-start process (794) terminated with status 1
<4>init: plymouth-splash main process (803) terminated with status 1
<6>sunxi-rtc sunxi-rtc: actually set time to 2010-1-1 0:2:34
[ OK ]ing all remaining processes to terminate...
[ OK ] processes ended within 1 seconds....
<4>init: network-manager main process (463) killed by KILL signal
<4>init: Disconnected from system bus
[ OK ]ounting temporary filesystems...
[ OK ]ctivating swap...
umount: /run/lock: not mounted
umount: /run/shm: not mounted
mount: / is busy
* Will now restart
<6>[sw-ohci2]: shutdown start
[sw-ohci2]: close clock
<6>[sw-ohci2]: shutdown end
<6>[sw-ehci2]: shutdown start
[sw-ehci2]: Set USB Power OFF
[sw-ehci2]: close clock
<6>[sw-ehci2]: shutdown end
<6>[sw-ohci1]: shutdown start
[sw-ohci1]: close clock
<6>[sw-ohci1]: shutdown end
<6>[sw-ehci1]: shutdown start
[sw-ehci1]: Set USB Power OFF
[sw-ehci1]: close clock
<6>[sw-ehci1]: shutdown end
wrn: hcd is disable, need not shutdown
[NAND]shutdown
nand try to shutdown 1 time
Nand flash shutdown ok!
<0>Restarting system.
Restarting system.
<6>[hotplug]: cpu(0) try to kill cpu(1)
<3>[hotplug]: try to kill cpu:1 failed!
[hotplug]: try to kill cpu:1 failed!
HELLO! BOOT0 is starting!
boot0 version : 2.0.0
read dram para.
dram driver version: 1.15
dram size =1024MB
0xffffffff
super_standby_flag = 0
Succeed in opening nand flash.
block from 2 to 6
deal block 2
Succeed in reading Boot1 file head.
The size of Boot1 is 0x00068000.
The file stored in 0x00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
[ 0.146] boot1 version : 2.0.0
[ 0.146] script installed early ok
[ 0.147] pmu type = 3
[ 0.251] bat vol = 0 mv
[ 0.263] axi:ahb:apb=4:2:2
[ 0.263] set dcdc2=1450mv, clock=912M successed
[ 0.265] key
[ 0.278] no key found
[ 0.278] flash init start
[ 0.278] NB1 : enter NFB_Init
[ 0.281] NB1 : enter phy init
[ 0.284] [NAND] nand driver(b) version: 0x0x00000002, 0x0x00000012, data: 0x20130627
[ 0.292] get the good blk ratio from hwscan : 944
[ 0.297] NB1 : nand phy init ok
[ 1.068] _RepairLogBlkTbl start
[ 1.070] Log Block Index 0x00000000, LogicBlockNum: 0x0000005b, LogBlockType: 0x00000000
[ 1.074] log0: 0x0000038c, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.081] datablock: 0x00000060, lastusedpage: 0x00000001
[ 1.088] Log Block Index 0x00000001, LogicBlockNum: 0x0000003d, LogBlockType: 0x00000000
[ 1.095] log0: 0x00000393, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.101] datablock: 0x00000396, lastusedpage: 0x00000002
[ 1.109] Log Block Index 0x00000002, LogicBlockNum: 0x00000188, LogBlockType: 0x00000000
[ 1.115] log0: 0x00000395, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.122] datablock: 0x00000399, lastusedpage: 0x00000001
[ 1.130] Log Block Index 0x00000003, LogicBlockNum: 0x00000022, LogBlockType: 0x00000000
[ 1.136] log0: 0x0000038e, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.142] datablock: 0x0000039d, lastusedpage: 0x00000001
[ 1.150] Log Block Index 0x00000004, LogicBlockNum: 0x00000191, LogBlockType: 0x00000000
[ 1.157] log0: 0x00000391, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.163] datablock: 0x000003a0, lastusedpage: 0x00000001
[ 1.171] Log Block Index 0x00000005, LogicBlockNum: 0x00000192, LogBlockType: 0x00000000
[ 1.177] log0: 0x000003aa, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.184] datablock: 0x00000197, lastusedpage: 0x00000038
[ 1.191] Log Block Index 0x00000006, LogicBlockNum: 0x00000015, LogBlockType: 0x00000000
[ 1.198] log0: 0x000003b6, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.204] datablock: 0x000003a6, lastusedpage: 0x00000033
[ 1.212] Log Block Index 0x00000007, LogicBlockNum: 0x00000193, LogBlockType: 0x00000000
[ 1.218] log0: 0x000003a4, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.225] datablock: 0x000003cd, lastusedpage: 0x0000000e
[ 1.233] Log Block Index 0x00000008, LogicBlockNum: 0x00000043, LogBlockType: 0x00000000
[ 1.239] log0: 0x000003d1, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.246] datablock: 0x000003cc, lastusedpage: 0x00000006
[ 1.253] Log Block Index 0x00000009, LogicBlockNum: 0x00000027, LogBlockType: 0x00000000
[ 1.260] log0: 0x000003ad, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.266] datablock: 0x000003e8, lastusedpage: 0x00000053
[ 1.274] Log Block Index 0x0000000a, LogicBlockNum: 0x00000026, LogBlockType: 0x00000000
[ 1.280] log0: 0x000003b0, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.287] datablock: 0x000003e9, lastusedpage: 0x0000000c
[ 1.294] Log Block Index 0x0000000b, LogicBlockNum: 0x00000018, LogBlockType: 0x00000000
[ 1.301] log0: 0x000003a7, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.307] datablock: 0x000003f7, lastusedpage: 0x000000a6
[ 1.315] Log Block Index 0x0000000c, LogicBlockNum: 0x00000017, LogBlockType: 0x00000000
[ 1.322] log0: 0x000003b4, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.328] datablock: 0x000003f8, lastusedpage: 0x000000f9
[ 1.336] Log Block Index 0x0000000d, LogicBlockNum: 0x00000035, LogBlockType: 0x00000000
[ 1.342] log0: 0x000003fa, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.349] datablock: 0x0000039e, lastusedpage: 0x00000004
[ 1.356] Log Block Index 0x0000000e, LogicBlockNum: 0x00000014, LogBlockType: 0x00000000
[ 1.363] log0: 0x00000390, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.369] datablock: 0x000003fb, lastusedpage: 0x00000086
[ 1.377] Log Block Index 0x0000000f, LogicBlockNum: 0x00000163, LogBlockType: 0x00000000
[ 1.383] log0: 0x00000398, Log1: 0x0000ffff, WriteIndex: 0x00000000
[ 1.390] datablock: 0x000003fc, lastusedpage: 0x00000001
[ 1.396] _RepairLogBlkTbl end
[ 1.409] NB1 : init ok
[ 1.409] flash init finish
[ 1.411] fs init ok
[ 1.413] fattype FAT16
[ 1.414] fs mount ok
[ 1.418] nand good_block_ratio=944
[ 1.420] storage_type=0
[ 1.432] 0
[ 1.432] set pc
[ 1.432] usbdc_vol = 4000, usbdc_cur = 0
[ 1.434] usbpc_vol = 4200, usbpc_cur = 0
[ 1.439] init to usb pc
[ 1.441] set pc
[ 1.523] key value = 0
[ 1.524] recovery key high 40, low 4
[ 1.541] show pic finish
[ 1.541] load kernel start
[ 1.560] load kernel successed
[ 1.560] start address = 0x4a000000
[ 1.867] power exit detect
U-Boot 2011.09-rc1-00000-g50f09b6 (Oct 26 2013 - 17:49:35) Allwinner Technology
CPU: SUNXI Family
Board: A20-Cubieboard2
DRAM: 1 GiB
NAND: NB1 : enter NFB_Init
[NAND] nand driver(b) version: 0x2, 0x12, data: 20130526
[NAND] set nand_good_block_ratio 944
NB1 : nand phy init ok
NB1 : init ok
3776 MiB
Using default environment
In: serial
Out: serial
Err: serial
--------fastboot partitions--------
-total partitions:3-
-name- -start- -size-
bootloader : 8000 20000
rootfs : 28000 600000
UDISK : 628000 138000
-----------------------------------
no misc partition is found
Hit any key to stop autoboot: 0
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
reading /uEnv.txt
177 bytes read
## Warning: defaulting to text format
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
reading /script.bin
46228 bytes read
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
reading /uImage
4576640 bytes read
## Booting kernel from Legacy Image at 48000000 ...
Image Name: Linux-3.4.79
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4576576 Bytes = 4.4 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Using machid 0x10bb from environment
Starting kernel ...
<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpuset
<6>Initializing cgroup subsys cpu
<5>Linux version 3.4.79 (allen@cubietech) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 SMP PREEMPT Mon Apr 21 21:36:35 HKT 2014
CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: sun7i
<6>Memory Reserved:
<6> SYS : 0x43000000 - 0x4300ffff ( 64 kB)
<6> G2D : 0x50000000 - 0x50ffffff ( 16 MB)
<6> LCD : 0x51000000 - 0x52ffffff ( 32 MB)
<6>cma: CMA: reserved 192 MiB at 43c00000
Memory policy: ECC disabled, Data cache writealloc
<6>sunxi: Allwinner A20 (AW1651/sun7i) detected.
<7>On node 0 totalpages: 262144
<7>free_area_init_node: node 0, pgdat c08adc80, node_mem_map d3000000
<7> DMA zone: 512 pages used for memmap
<7> DMA zone: 0 pages reserved
<7> DMA zone: 65024 pages, LIFO batch:15
<7> Normal zone: 1008 pages used for memmap
<7> Normal zone: 128016 pages, LIFO batch:31
<7> HighMem zone: 528 pages used for memmap
<7> HighMem zone: 67056 pages, LIFO batch:15
<6>PERCPU: Embedded 7 pages/cpu @d3808000 s7616 r8192 d12864 u32768
<7>pcpu-alloc: s7616 r8192 d12864 u32768 alloc=8*4096<c>
<7>pcpu-alloc: <c>[0] <c>0 <c>[0] <c>1 <c>
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
<5>Kernel command line: console=tty0 root=/dev/nandb loglevel=8 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
<6>PID hash table entries: 4096 (order: 2, 16384 bytes)
<6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
<6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>allocated 2097152 bytes of page_cgroup
<6>please try 'cgroup_disable=memory' option if you don't want memory cgroups
<6>Memory: 1024MB = 1024MB total
<5>Memory: 780452k/780452k available, 268124k reserved, 270336K highmem
<5>Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0812000 (8232 kB)
.init : 0xc0812000 - 0xc0847dc0 ( 216 kB)
.data : 0xc0848000 - 0xc08b4c48 ( 436 kB)
.bss : 0xc08b4c6c - 0xc0a87158 (1866 kB)
<6>SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
<6>Preemptible hierarchical RCU implementation.
<6> RCU dyntick-idle grace-period acceleration is enabled.
<6> Additional per-CPU info printed with stalls.
<6>NR_IRQS:192
<6>Architected local timer running at 24.00MHz.
<6>sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
<2>start_kernel(): bug: interrupts were enabled early
<6>Console: colour dummy device 80x30
<6>console [tty0] enabled
<6>Calibrating delay loop... <c>1816.98 BogoMIPS (lpj=9084928)
<6>pid_max: default: 32768 minimum: 301
<6>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys memory
<6>Initializing cgroup subsys devices
<6>Initializing cgroup subsys freezer
<6>Initializing cgroup subsys blkio
<6>Initializing cgroup subsys perf_event
<6>CPU: Testing write buffer coherency: ok
<6>CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
<6>hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available
<6>Setting up static identity map for 0x405cb338 - 0x405cb390
CPU1: Booted secondary processor
<6>CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
<6>Brought up 2 CPUs
<6>SMP: Total of 2 processors activated (3640.52 BogoMIPS).
<6>devtmpfs: initialized
<6>dummy:
<6>NET: Registered protocol family 16
<6>DMA: preallocated 256 KiB pool for atomic coherent allocations
<6>hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
<6>hw-breakpoint: maximum watchpoint size is 8 bytes.
<6>[ccu-inf] aw clock manager init
<6>[ccu-inf] aw_ccu_init
<6>[ccu-inf] script config pll3 to 297MHz
<6>[ccu-inf] script config pll4 to 300MHz
<6>[ccu-inf] script config pll6 to 600MHz
<6>[ccu-inf] script config pll7 to 297MHz
<6>[ccu-inf] script config pll8 to 336MHz
<6>Init eGon pin module V2.0
<6>bio: create slab <bio-0> at 0
<6>sunxi_gpio driver init ver 1.3
<6>gpiochip_add: registered GPIOs 1 to 2 on device: A1X_GPIO
<5>SCSI subsystem initialized
<7>libata version 3.00 loaded.
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>Linux media interface: v0.10
<6>Linux video capture interface: v2.00
<6>Advanced Linux Sound Architecture Driver Version 1.0.25.
<6>cfg80211: Calling CRDA to update world regulatory domain
<6>Switching to clocksource arch_sys_counter
<5>FS-Cache: Loaded
<6>CacheFiles: Loaded
[usb_manager]: CONFIG_USB_SW_SUNXI_USB0_OTG
[sw_hcd0]: usb host driver initialize........
[sw_hcd0]: open_usb_clock
[sw_hcd0]: host_init_state = 1
[sw_hcd0]: platform is usb host
[sw_hcd0]: sw_hcd_host0: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
[sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host mode controller at f1c13000 using PIO, IRQ 70
<6>sw_hcd_host0 sw_hcd_host0: sw_hcd host driver
<6>sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned bus number 1
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
wrn: hcd is not enable, need not start hcd
[sw_hcd0]: sw_usb_host0_disable start
-------sw_hcd0_soft_disconnect---------
is_on = 0, hcd0_set_vbus_cnt = 0
[sw_hcd_host0]: Set USB Power Off
wrn: hcd is not enable, need not stop hcd
[sw_hcd0]: close_usb_clock
[sw_hcd0]: sw_usb_host0_disable end
[sw_udc]: udc_init: version 20080411
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
<6>TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
<6>TCP: Hash tables configured (established 131072 bind 65536)
<6>TCP: reno registered
<6>UDP hash table entries: 512 (order: 2, 16384 bytes)
<6>UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
<6>NET: Registered protocol family 1
<6>RPC: Registered named UNIX socket transport module.
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>RPC: Registered tcp NFSv4.1 backchannel transport module.
<6>audit: initializing netlink socket (disabled)
<5>type=2000 audit(0.600:1): initialized
highmem bounce pool size: 64 pages
<5>VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<5>NFS: Registering the id_resolver key type
<6>NTFS driver 2.1.30 [Flags: R/W].
<6>fuse init (API version 7.18)
<6>msgmni has been set to 1380
<3>alg: comp: Compression test 1 failed for lzo-generic: output len = 57
<6>alg: No test for stdrng (krng)
<6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
<6>io scheduler noop registered
<6>io scheduler deadline registered
<6>io scheduler cfq registered (default)
<6>sunxi disp driver loaded (/dev/disp api 1.0)
<6>Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
<6>[uart]: used uart info.: 0x01
<6>[uart]: serial probe 0 irq 33 mapbase 0x01c28000
<6>sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A
Booting Linux on physical CPU 0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 3.4.79 (allen@cubietech) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 SMP PREEMPT Mon Apr 21 21:36:35 HKT 2014
CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: sun7i
Memory Reserved:
SYS : 0x43000000 - 0x4300ffff ( 64 kB)
G2D : 0x50000000 - 0x50ffffff ( 16 MB)
LCD : 0x51000000 - 0x52ffffff ( 32 MB)
cma: CMA: reserved 192 MiB at 43c00000
Memory policy: ECC disabled, Data cache writealloc
sunxi: Allwinner A20 (AW1651/sun7i) detected.
On node 0 totalpages: 262144
free_area_init_node: node 0, pgdat c08adc80, node_mem_map d3000000
DMA zone: 512 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 65024 pages, LIFO batch:15
Normal zone: 1008 pages used for memmap
Normal zone: 128016 pages, LIFO batch:31
HighMem zone: 528 pages used for memmap
HighMem zone: 67056 pages, LIFO batch:15
PERCPU: Embedded 7 pages/cpu @d3808000 s7616 r8192 d12864 u32768
pcpu-alloc: s7616 r8192 d12864 u32768 alloc=8*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=tty0 root=/dev/nandb loglevel=8 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
allocated 2097152 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 1024MB = 1024MB total
Memory: 780452k/780452k available, 268124k reserved, 270336K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0812000 (8232 kB)
.init : 0xc0812000 - 0xc0847dc0 ( 216 kB)
.data : 0xc0848000 - 0xc08b4c48 ( 436 kB)
.bss : 0xc08b4c6c - 0xc0a87158 (1866 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
RCU dyntick-idle grace-period acceleration is enabled.
Additional per-CPU info printed with stalls.
NR_IRQS:192
Architected local timer running at 24.00MHz.
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
start_kernel(): bug: interrupts were enabled early
Console: colour dummy device 80x30
console [tty0] enabled
Calibrating delay loop... 1816.98 BogoMIPS (lpj=9084928)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio
Initializing cgroup subsys perf_event
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available
Setting up static identity map for 0x405cb338 - 0x405cb390
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (3640.52 BogoMIPS).
devtmpfs: initialized
dummy:
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
[ccu-inf] aw clock manager init
[ccu-inf] aw_ccu_init
[ccu-inf] script config pll3 to 297MHz
[ccu-inf] script config pll4 to 300MHz
[ccu-inf] script config pll6 to 600MHz
[ccu-inf] script config pll7 to 297MHz
[ccu-inf] script config pll8 to 336MHz
Init eGon pin module V2.0
bio: create slab <bio-0> at 0
sunxi_gpio driver init ver 1.3
gpiochip_add: registered GPIOs 1 to 2 on device: A1X_GPIO
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux media interface: v0.10
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Version 1.0.25.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource arch_sys_counter
FS-Cache: Loaded
CacheFiles: Loaded
[usb_manager]: CONFIG_USB_SW_SUNXI_USB0_OTG
[sw_hcd0]: usb host driver initialize........
[sw_hcd0]: open_usb_clock
[sw_hcd0]: host_init_state = 1
[sw_hcd0]: platform is usb host
[sw_hcd0]: sw_hcd_host0: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
[sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host mode controller at f1c13000 using PIO, IRQ 70
sw_hcd_host0 sw_hcd_host0: sw_hcd host driver
sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
wrn: hcd is not enable, need not start hcd
[sw_hcd0]: sw_usb_host0_disable start
-------sw_hcd0_soft_disconnect---------
is_on = 0, hcd0_set_vbus_cnt = 0
[sw_hcd_host0]: Set USB Power Off
wrn: hcd is not enable, need not stop hcd
[sw_hcd0]: close_usb_clock
[sw_hcd0]: sw_usb_host0_disable end
[sw_udc]: udc_init: version 20080411
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP: reno registered
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.
audit: initializing netlink socket (disabled)
type=2000 audit(0.600:1): initialized
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
NTFS driver 2.1.30 [Flags: R/W].
fuse init (API version 7.18)
msgmni has been set to 1380
alg: comp: Compression test 1 failed for lzo-generic: output len = 57
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
sunxi disp driver loaded (/dev/disp api 1.0)
Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[uart]: used uart info.: 0x01
[uart]: serial probe 0 irq 33 mapbase 0x01c28000
sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A
<6>console [ttyS0] enabled
console [ttyS0] enabled
<7>G2D: drv_g2d_init
G2D: drv_g2d_init
<6>G2D: g2dmem: g2d_start=50000000, g2d_size=1000000
G2D: g2dmem: g2d_start=50000000, g2d_size=1000000
<6>G2D: head:d0000000,tail:d1000000
G2D: head:d0000000,tail:d1000000
<6>G2D: Module initialized.major:250
G2D: Module initialized.major:250
<6>brd: module loaded
brd: module loaded
<6>loop: module loaded
loop: module loaded
[NAND] nand driver version: 0x2 0x9
[NAND] nand driver version: 0x2 0x9
<4>Dev Sunxi softw311 nand magic does not match for MBR 1: softw411
Dev Sunxi softw311 nand magic does not match for MBR 1: softw411
<4>Dev Sunxi softw311 nand magic does not match for MBR 2:
Dev Sunxi softw311 nand magic does not match for MBR 2:
<4>Dev Sunxi softw311 nand magic does not match for MBR 3:
Dev Sunxi softw311 nand magic does not match for MBR 3:
<4>Dev Sunxi softw311 nand magic does not match for MBR 4:
Dev Sunxi softw311 nand magic does not match for MBR 4:
<4>Dev Sunxi softw311 nand header bad for all MBR copies, MBR corrupted or not present.
Dev Sunxi softw311 nand header bad for all MBR copies, MBR corrupted or not present.
<4>Dev Sunxi softw411 nand: part 1, start 32768, size 131072
Dev Sunxi softw411 nand: part 1, start 32768, size 131072
<4>Dev Sunxi softw411 nand: part 2, start 163840, size 6291456
Dev Sunxi softw411 nand: part 2, start 163840, size 6291456
<4>Dev Sunxi softw411 nand: part 3, start 6455296, size 1327104
Dev Sunxi softw411 nand: part 3, start 6455296, size 1327104
<6> nand: nanda nandb nandc
nand: nanda nandb nandc
[NAND]nand driver, ok.
[NAND]nand driver, ok.
<6>sw_ahci sw_ahci.0: controller can't do PMP, turning off CAP_PMP
sw_ahci sw_ahci.0: controller can't do PMP, turning off CAP_PMP
<4>sw_ahci sw_ahci.0: forcing PORTS_IMPL to 0x1
sw_ahci sw_ahci.0: forcing PORTS_IMPL to 0x1
<6>sw_ahci sw_ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
sw_ahci sw_ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
<6>sw_ahci sw_ahci.0: flags: ncq sntf pm led clo only pio slum part ccc
sw_ahci sw_ahci.0: flags: ncq sntf pm led clo only pio slum part ccc
<6>scsi0 : sw_ahci_platform
scsi0 : sw_ahci_platform
<6>ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 88
ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 88
<6>sunxi_emac Using mii phy on PortA
sunxi_emac Using mii phy on PortA
<6>sunxi_emac Using MAC from SID: 02:c7:03:c2:44:43sunxi_emac Using MAC from SID: 02:c7:03:c2:44:43<6>PPP generic driver version 2.4.2
PPP generic driver version 2.4.2
<6>PPP BSD Compression module registered
PPP BSD Compression module registered
<6>PPP Deflate Compression module registered
PPP Deflate Compression module registered
<6>PPP MPPE Compression module registered
PPP MPPE Compression module registered
<6>NET: Registered protocol family 24
NET: Registered protocol family 24
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[sw-ehci1]: open clock
[sw-ehci1]: open clock
[sw-ehci1]: Set USB Power ON
[sw-ehci1]: Set USB Power ON
<6>sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
<6>sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 2
sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 2
<6>sw-ehci sw-ehci.1: irq 71, io mem 0x01c14000
sw-ehci sw-ehci.1: irq 71, io mem 0x01c14000
<6>sw-ehci sw-ehci.1: USB 2.0 started, EHCI 1.00
sw-ehci sw-ehci.1: USB 2.0 started, EHCI 1.00
<6>hub 2-0:1.0: USB hub found
hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
hub 2-0:1.0: 1 port detected
[sw-ohci1]: open clock
[sw-ohci1]: open clock
<6>sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
<6>sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 3
sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 3
<6>sw-ohci sw-ohci.1: irq 96, io mem 0x01c14400
sw-ohci sw-ohci.1: irq 96, io mem 0x01c14400
<6>hub 3-0:1.0: USB hub found
hub 3-0:1.0: USB hub found
<6>hub 3-0:1.0: 1 port detected
hub 3-0:1.0: 1 port detected
[sw-ehci2]: open clock
[sw-ehci2]: open clock
[sw-ehci2]: Set USB Power ON
[sw-ehci2]: Set USB Power ON
<6>sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
<6>sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 4
sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 4
<6>ata1: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
<6>sw-ehci sw-ehci.2: irq 72, io mem 0x01c1c000
sw-ehci sw-ehci.2: irq 72, io mem 0x01c1c000
<6>sw-ehci sw-ehci.2: USB 2.0 started, EHCI 1.00
sw-ehci sw-ehci.2: USB 2.0 started, EHCI 1.00
<6>hub 4-0:1.0: USB hub found
hub 4-0:1.0: USB hub found
<6>hub 4-0:1.0: 1 port detected
hub 4-0:1.0: 1 port detected
[sw-ohci2]: open clock
[sw-ohci2]: open clock
<6>sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
<6>sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 5
sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 5
<6>sw-ohci sw-ohci.2: irq 97, io mem 0x01c1c400
sw-ohci sw-ohci.2: irq 97, io mem 0x01c1c400
<6>hub 5-0:1.0: USB hub found
hub 5-0:1.0: USB hub found
<6>hub 5-0:1.0: 1 port detected
hub 5-0:1.0: 1 port detected
<6>mousedev: PS/2 mouse device common for all mice
mousedev: PS/2 mouse device common for all mice
===========================hv_keypad_init=====================
===========================hv_keypad_init=====================
========HV Inital ===================
========HV Inital ===================
<3>tkey_fetch_sysconfig_para: tkey_unused.
tkey_fetch_sysconfig_para: tkey_unused.
hv_keypad_init: after fetch_sysconfig_para: normal_i2c: 0x0. normal_i2c[1]: 0x0
hv_keypad_init: after fetch_sysconfig_para: normal_i2c: 0x0. normal_i2c[1]: 0x0
<6>sunxi-rtc sunxi-rtc: rtc core: registered rtc as rtc0
sunxi-rtc sunxi-rtc: rtc core: registered rtc as rtc0
<6>i2c /dev entries driver
i2c /dev entries driver
config i2c gpio with gpio_config api
config i2c gpio with gpio_config api
<6>axp_mfd 0-0034: AXP (CHIP ID: 0x41) detected
axp_mfd 0-0034: AXP (CHIP ID: 0x41) detected
<6>axp_mfd 0-0034: AXP internal temperature monitoring enabled
axp_mfd 0-0034: AXP internal temperature monitoring enabled
<4>i2c i2c-0: Invalid probe address 0x00
i2c i2c-0: Invalid probe address 0x00
<6>I2C: i2c-0: AW16XX I2C adapter
I2C: i2c-0: AW16XX I2C adapter
[ace_drv] start!!!
[ace_drv] start!!!
[ace_drv] init end!!!
[ace_drv] init end!!!
[pa_drv] start!!!
[pa_drv] start!!!
[pa_drv] init end!!!
[pa_drv] init end!!!
<6>axp20_ldo1: 1300 mV
axp20_ldo1: 1300 mV
<6>axp20_ldo2: 1800 <--> 3300 mV at 3000 mV
axp20_ldo2: 1800 <--> 3300 mV at 3000 mV
<6>axp20_ldo3: 700 <--> 3500 mV at 2800 mV
axp20_ldo3: 700 <--> 3500 mV at 2800 mV
<6>axp20_ldo4: 1250 <--> 3300 mV at 2800 mV
axp20_ldo4: 1250 <--> 3300 mV at 2800 mV
<6>axp20_buck2: 700 <--> 2275 mV at 1450 mV
axp20_buck2: 700 <--> 2275 mV at 1450 mV
<6>axp20_buck3: 700 <--> 3500 mV at 1300 mV
axp20_buck3: 700 <--> 3500 mV at 1300 mV
<6>axp20_ldoio0: 1800 <--> 3300 mV at 2800 mV
axp20_ldoio0: 1800 <--> 3300 mV at 2800 mV
<6>input: axp20-supplyer as /devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input0
input: axp20-supplyer as /devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input0
<4>axp20_ldo2: Failed to create debugfs directory
axp20_ldo2: Failed to create debugfs directory
<6>device-mapper: uevent: version 1.0.3
device-mapper: uevent: version 1.0.3
<6>device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
<6>device-mapper: multipath: version 1.3.0 loaded
device-mapper: multipath: version 1.3.0 loaded
<6>device-mapper: multipath round-robin: version 1.0.0 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
<6>device-mapper: multipath queue-length: version 0.1.0 loaded
device-mapper: multipath queue-length: version 0.1.0 loaded
<6>device-mapper: multipath service-time: version 0.2.0 loaded
device-mapper: multipath service-time: version 0.2.0 loaded
<6>cpuidle: using governor ladder
cpuidle: using governor ladder
<6>cpuidle: using governor menu
cpuidle: using governor menu
<6>[mmc-msg] sw_mci_init
[mmc-msg] sw_mci_init
<6>[mmc-msg] MMC host used card: 0x1, boot card: 0x0, io_card 0
[mmc-msg] MMC host used card: 0x1, boot card: 0x0, io_card 0
<6>[mmc-msg] sdc0 set round clock 400000, src 24000000
[mmc-msg] sdc0 set round clock 400000, src 24000000
<6>[mmc-msg] sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 Probe: base:0xf00de000 irq:64 sg_cpu:c3c5f000(43c5f000) ret 0.
[mmc-msg] sdc0 Probe: base:0xf00de000 irq:64 sg_cpu:c3c5f000(43c5f000) ret 0.
[mmc_pm]: failed to fetch sdio card configuration!
[mmc_pm]: failed to fetch sdio card configuration!
<6>sunxi_leds driver init
sunxi_leds driver init
<7>Registered led device: green:ph20:led1
Registered led device: green:ph20:led1
<7>Registered led device: blue:ph21:led2
Registered led device: blue:ph21:led2
<6>ledtrig-cpu: registered to indicate activity on CPUs
ledtrig-cpu: registered to indicate activity on CPUs
<6>usbcore: registered new interface driver usbhid
usbcore: registered new interface driver usbhid
<6>usbhid: USB HID core driver
usbhid: USB HID core driver
<6>ashmem: initialized
ashmem: initialized
<6>logger: created 256K log 'log_main'
logger: created 256K log 'log_main'
<6>logger: created 256K log 'log_events'
logger: created 256K log 'log_events'
<6>logger: created 256K log 'log_radio'
logger: created 256K log 'log_radio'
<6>logger: created 256K log 'log_system'
logger: created 256K log 'log_system'
<6>IPv4 over IPv4 tunneling driver
IPv4 over IPv4 tunneling driver
<6>TCP: bic registered
TCP: bic registered
<6>TCP: cubic registered
TCP: cubic registered
<6>TCP: westwood registered
TCP: westwood registered
<6>TCP: highspeed registered
TCP: highspeed registered
<6>TCP: hybla registered
TCP: hybla registered
<6>TCP: htcp registered
TCP: htcp registered
<6>TCP: vegas registered
TCP: vegas registered
<6>TCP: veno registered
TCP: veno registered
<6>TCP: scalable registered
TCP: scalable registered
<6>TCP: lp registered
TCP: lp registered
<6>TCP: yeah registered
TCP: yeah registered
<6>TCP: illinois registered
TCP: illinois registered
<6>Initializing XFRM netlink socket
Initializing XFRM netlink socket
<6>NET: Registered protocol family 10
NET: Registered protocol family 10
<6>NET: Registered protocol family 17
NET: Registered protocol family 17
<6>NET: Registered protocol family 15
NET: Registered protocol family 15
[mmc_pm]: No sdio card, please check your config !!
[mmc_pm]: No sdio card, please check your config !!
<5>Registering the dns_resolver key type
Registering the dns_resolver key type
<6>VFP support v0.3: VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
implementor 41 architecture 2 part 30 variant 7 rev 4
<5>Registering SWP/SWPB emulation handler
Registering SWP/SWPB emulation handler
<4>axp20_buck2: Failed to create debugfs directory
axp20_buck2: Failed to create debugfs directory
<6>[cpu_freq] INF:-------------------V-F Table-------------------
[cpu_freq] INF:-------------------V-F Table-------------------
<6>[cpu_freq] INF: voltage = 1450mv frequency = 1008MHz
[cpu_freq] INF: voltage = 1450mv frequency = 1008MHz
<6>[cpu_freq] INF: voltage = 1425mv frequency = 912MHz
[cpu_freq] INF: voltage = 1425mv frequency = 912MHz
<6>[cpu_freq] INF: voltage = 1350mv frequency = 864MHz
[cpu_freq] INF: voltage = 1350mv frequency = 864MHz
<6>[cpu_freq] INF: voltage = 1250mv frequency = 720MHz
[cpu_freq] INF: voltage = 1250mv frequency = 720MHz
<6>[cpu_freq] INF: voltage = 1150mv frequency = 528MHz
[cpu_freq] INF: voltage = 1150mv frequency = 528MHz
<6>[cpu_freq] INF: voltage = 1100mv frequency = 312MHz
[cpu_freq] INF: voltage = 1100mv frequency = 312MHz
<6>[cpu_freq] INF: voltage = 1050mv frequency = 144MHz
[cpu_freq] INF: voltage = 1050mv frequency = 144MHz
<6>[cpu_freq] INF: voltage = 1000mv frequency = 0MHz
[cpu_freq] INF: voltage = 1000mv frequency = 0MHz
<6>[cpu_freq] INF:-----------------------------------------------
[cpu_freq] INF:-----------------------------------------------
<6>[cpu_freq] INF:sunxi_cpufreq_initcall, get cpu frequency from sysconfig, max freq: 1008MHz, min freq: 720MHz
[cpu_freq] INF:sunxi_cpufreq_initcall, get cpu frequency from sysconfig, max freq: 1008MHz, min freq: 720MHz
<6>registered taskstats version 1
registered taskstats version 1
<6>I2C: i2c-1: HDMI I2C adapter
I2C: i2c-1: HDMI I2C adapter
<4>Timeout waiting for EDID info
Timeout waiting for EDID info
<6>disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0
disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0
<6>Console: switching to colour frame buffer device 160x45
Console: switching to colour frame buffer device 160x45
<4>axp20_buck3: incomplete constraints, leaving on
axp20_buck3: incomplete constraints, leaving on
<4>axp20_buck2: incomplete constraints, leaving on
axp20_buck2: incomplete constraints, leaving on
<4>axp20_ldo4: incomplete constraints, leaving on
axp20_ldo4: incomplete constraints, leaving on
<4>axp20_ldo3: incomplete constraints, leaving on
axp20_ldo3: incomplete constraints, leaving on
<4>axp20_ldo2: incomplete constraints, leaving on
axp20_ldo2: incomplete constraints, leaving on
<4>axp20_ldo1: incomplete constraints, leaving on
axp20_ldo1: incomplete constraints, leaving on
<6>console [netcon0] enabled
console [netcon0] enabled
<6>netconsole: network logging started
netconsole: network logging started
<6>sunxi-rtc sunxi-rtc: setting system clock to 2010-01-01 00:03:08 UTC (1262304188)
sunxi-rtc sunxi-rtc: setting system clock to 2010-01-01 00:03:08 UTC (1262304188)
<6>ALSA device list:
ALSA device list:
<6> #0: sunxi-CODEC Audio Codec
#0: sunxi-CODEC Audio Codec
<4>EXT4-fs (nandb): warning: mounting unchecked fs, running e2fsck is recommended
EXT4-fs (nandb): warning: mounting unchecked fs, running e2fsck is recommended
<6>EXT4-fs (nandb): mounted filesystem without journal. Opts: discard
EXT4-fs (nandb): mounted filesystem without journal. Opts: discard
<6>VFS: Mounted root (ext4 filesystem) on device 93:2.
VFS: Mounted root (ext4 filesystem) on device 93:2.
<6>devtmpfs: mounted
devtmpfs: mounted
<6>Freeing init memory: 212K
Freeing init memory: 212K
<4>init: plymouth main process (68) killed by SEGV signal
init: plymouth main process (68) killed by SEGV signal
<4>init: ureadahead main process (67) terminated with status 5
init: ureadahead main process (67) terminated with status 5
<4>init: plymouth-log main process (153) terminated with status 1
<30>udevd[164]: starting version 175
<4>init: plymouth-upstart-bridge main process (181) terminated with status 1
UMP<2>: Inserting UMP device driver. Compiled: Apr 21 2014, time: 21:31:28
UMP<2>: Using OS memory backend, allocation limit: 134217728
UMP: UMP device driver loaded
<6>lp: driver loaded but no devices found
Mali: permit MALI_IOC_MEM_MAP_EXT ioctl for framebuffer (paddr=0x51000000, size=33554432)
<6>ppdev: user-space parallel port driver
<6>mali: use config clk_div 1
<6>mali: clk_div 1
Mali: mali clock set completed, clock is 312000000 Hz
<6>mali: use config clk_div 1
<6>mali: clk_div 1
Mali: mali clock set completed, clock is 312000000 Hz
Mali: Mali device driver loaded
[cedar dev]: install start!!!
[cedar dev]: install end!!!
<6>usbcore: registered new interface driver usbserial
<6>usbcore: registered new interface driver usbserial_generic
<6>USB Serial support registered for generic
<6>usbserial: USB Serial Driver core
<6>usbcore: registered new interface driver pl2303
<6>USB Serial support registered for pl2303
<6>usbcore: registered new interface driver ch341
<6>USB Serial support registered for ch341-uart
<6>sunxi_emac sunxi_emac.0: eth0: link down
<6>ADDRCONF(NETDEV_UP): eth0: link is not ready
<4>init: failsafe main process (276) killed by TERM signal
Starting nginx:
Last login: Fri Jan 1 00:00:41 UTC 2010 on tty1
Welcome to Linaro 13.04 (GNU/Linux 3.4.79 armv7l)
* Documentation: https://wiki.linaro.org/
nginx.
<4>init: tty1 main process (550) killed by TERM signal
<4>Warning: this sunxi disp driver will see significant redesign.
<4>Applications using /dev/disp directly will break.
<4>For more information visit: http://linux-sunxi.org/Sunxi_disp_driver
<4>[DISP] layer allocated: 0,101
root@superpi3:~# <6>[drm] Initialized drm 1.1.0 20060810
<6>Mali DRM initialize, driver name: mali_drm, version 2.1
<6>[drm] Initialized mali_drm 2.1.1 20101111 on minor 0
<6>Mali DRM initialize, driver name: mali_drm, version 2.1
<6>[drm] Initialized mali_drm 2.1.1 20101111 on minor 1
UMP<2>: New session opened
root@superpi3:~#
root@superpi3:~#
root@superpi3:~#
root@superpi3:~# ls /etc/
ConsoleKit gtk-2.0 pam.conf
NetworkManager gtk-3.0 pam.d
UPower host.conf papersize
X11 hostname passwd
adduser.conf hosts passwd-
adjtime hosts.allow pm
alternatives hosts.deny pnm2ppa.conf
anacrontab ifplugd polkit-1
apg.conf init ppp
apm init.d profile
apparmor.d initramfs-tools profile.d
apport inputrc protocols
apt insserv pulse
asound.conf insserv.conf python
at-spi2 insserv.conf.d python2.7
avrdude.conf iproute2 python3
bash.bashrc issue python3.2
bash_completion.d issue.net rc.local
bindresvport.blacklist java-6-openjdk rc0.d
blkid.conf java-7-openjdk rc1.d
blkid.tab kbd rc2.d
ca-certificates kernel rc3.d
ca-certificates.conf ld.so.cache rc4.d
calendar ld.so.conf rc5.d
chromium-browser ld.so.conf.d rc6.d
console-setup ldap rcS.d
cron.d legal resolv.conf
cron.daily libnl-3 resolvconf
cron.hourly libpaper.d rmt
cron.monthly lightdm rpc
cron.weekly linaro rsyslog.conf
crontab locale.alias rsyslog.d
cups localtime securetty
dbus-1 logcheck security
debconf.conf login.defs services
debian_version logrotate.conf shadow
default logrotate.d shadow-
deluser.conf lsb-base shells
depmod.d lsb-base-logging.sh skel
dhcp lsb-release ssh
dictionaries-common lxdm ssl
dnsmasq.d magic sudoers
dpkg magic.mime sudoers.d
emacs mailcap sysctl.conf
emacs23 mailcap.order sysctl.d
environment manpath.config systemd
firefox menu-methods terminfo
fonts mime.types timezone
foomatic mke2fs.conf ts.conf
fstab modprobe.d ucf.conf
fstab.d modules udev
gai.conf motd udisks2
gconf mtab ufw
ghostscript nanorc update-motd.d
gnome network vdpau_wrapper.cfg
gnome-settings-daemon networks vim
groff newt vtrgb
group nginx wgetrc
group- nsswitch.conf wpa_supplicant
gshadow opt xdg
gshadow- os-release
也贴上一幅图,展示编译superlinux后出错的效果图:
[ 2.979] ERR: display driver n
U-Boot 2011.09-rc1-00002-g0336fb1-dirty (Apr 18 2013 - 14:10:42) Allwinner Technology
CPU: SUNXI Family
Board: SUN7I-EVB
DRAM: 1 GiB
NAND: [NAND] set nand_good_block_ratio 944
3776 MiB
In: serial
Out: serial
Err: serial
--------fastboot partitions--------
-total partitions:5-
-name- -start- -size-
bootloader : 8000 10000
env : 18000 8000
boot : 20000 8000
rootfs : 28000 400000
UDISK : 428000 338000
-----------------------------------
no misc partition is found
Hit any key to stop autoboot: 0
Starting kernel ...
aw_clkevt_init: sun7i_timer0_clockevent mult 6442450, max_delta_ns 170000, min_delta_ns 1000, cpumask 0xc045884c, irq 54
[ 0.000000] Ignoring unrecognised tag 0x00000000
[ 0.658437] aw_pm_init: not support super standby.
used uart info.: 0x01
[ 0.962251] ctp_fetch_sysconfig_para: ctp_unused.
[ 0.967980] rtc_hw_init(412) err: set clksrc to external losc failed! rtc time will be wrong
[ 0.976551] sunxi_rtc_gettime(34): err, losc_err_flag is 1
[ 1.009671] create_regulator: axp20_ldo2: Failed to create debugfs directory
[ 1.017648] create_regulator: axp20_buck2: Failed to create debugfs directory
[ 1.025129] create_regulator: axp20_buck3: Failed to create debugfs directory
[ 1.059831] [LCD] lcd_module_init
[ 1.168082] regulator_init_complete: axp20_buck3: incomplete constraints, leaving on
[ 1.176198] regulator_init_complete: axp20_buck2: incomplete constraints, leaving on
[ 1.184291] regulator_init_complete: axp20_ldo4: incomplete constraints, leaving on
[ 1.192297] regulator_init_complete: axp20_ldo3: incomplete constraints, leaving on
[ 1.200292] regulator_init_complete: axp20_ldo2: incomplete constraints, leaving on
[ 1.208275] regulator_init_complete: axp20_ldo1: incomplete constraints, leaving on
[ 1.216029] sunxi_rtc_gettime(34): err, losc_err_flag is 1
[ 1.221647] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[ 2.493976] init: ureadahead main process (676) terminated with status 5
嗯,对,风火轮团队提供的superlinux sdk在自己提供的开发板是跑不起来的。这确实令人郁闷,我使用MarsBoard-A20-Linux-SDK-V1.2跑起来无问题。
当然,用32位机器编译该SDK也会有问题的,如下图是所报错误:
原因如下: