December 8, 2016

Orange Pi Plus

Like the Orange Pi PC, but with onboard eMMC (and Wifi). Based on the Allwinner H3 chip.

There is also a "Plus 2" with 2G of ram, wireless and 1000 Mhz ethernet

I ordered two boards for $20 each, they arrived 12-12-2016 (taking less than 2 weeks!). I downloaded the Armbian image for them (290M)
Armbian_5.20_Orangepipcplus_Debian_jessie_3.4.112.7z
I unpack this and use dd to copy the image to an 8G flash card.

The image boots nicely. I login as root, with password "1234" and setup a user "tom" and answer various questions. ifconfig -a shows that it has done DHCP and set up a network connection properly. All good.

uname -a
Linux orangepipcplus 3.4.112-sun8i #14 SMP PREEMPT Wed Sep 14 20:29:31 CEST 2016 armv7l GNU/Linux
root@orangepipcplus:~# fdisk -l

Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3f31f47d

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       2048 15213343 15211296  7.3G 83 Linux

Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device          Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk1p1  *    4923392 15335423 10412032    5G  b W95 FAT32
/dev/mmcblk1p2         73728   106495    32768   16M  6 FAT16
/dev/mmcblk1p3             1  4816896  4816896  2.3G  5 Extended
/dev/mmcblk1p5        106496   139263    32768   16M 83 Linux
/dev/mmcblk1p6        139264   172031    32768   16M 83 Linux
/dev/mmcblk1p7        172032  1744895  1572864  768M 83 Linux
/dev/mmcblk1p8       1744896  1777663    32768   16M 83 Linux
/dev/mmcblk1p9       1777664  1843199    65536   32M 83 Linux
/dev/mmcblk1p10      1843200  3416063  1572864  768M 83 Linux
/dev/mmcblk1p11      3416064  3448831    32768   16M 83 Linux
/dev/mmcblk1p12      3448832  3481599    32768   16M 83 Linux
/dev/mmcblk1p13      3481600  3514367    32768   16M 83 Linux
/dev/mmcblk1p14      3514368  3579903    65536   32M 83 Linux
/dev/mmcblk1p15      3579904  3612671    32768   16M 83 Linux
/dev/mmcblk1p16      3612672  4923391  1310720  640M 83 Linux
root@orangepipcplus:~# mount /dev/mmcblk1p1 /mnt
root@orangepipcplus:~# ls /mnt
app	     backup	   dontpanic   media	       security		   user
app-asec     bugreports    drm	       mediadrm        ssh
app-lib      camera	   HWML        misc	       system
app-private  dalvik-cache  local       property        system.notfirstrun
audio	     data	   lost+found  resource-cache  tmp
This is interesting! It looks like the onboard eMMC has stuff on it. Indeed, if I remove the SD card and apply power, I get:
HELLO! BOOT0 is starting!
boot0 version : 4.2.0
boot0 commit : c8c201b51b7ea1baa94590a1887313124d9a5879
 
fel_flag = 0x00000000
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
rtc[6] value = 0x00000000
rtc[7] value = 0x00000000
DRAM DRIVE INFO: V1.4
the chip id is 0x00000081
the chip id is 0x00000081
the chip id is 0x00000081
the chip id is 0x00000081
the chip id is 0x00000081
NOT GATE MODE 
READ DQS LCDL = 00201f20
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 672 MHz
DRAM zq value: 003b3bfb
DRAM dram para1: 10f40400
DRAM dram para2: 00000000
DRAM workmode1: 000009f4
DRAM SIZE =1024 M
odt delay 
dram size =1024
card boot number = 2
card no is 2
sdcard 2 line count 8
[mmc]: mmc driver ver 2015-04-13 16:07:39
[mmc]: ***Try SD card 2***
[mmc]: mmc 2 cmd 8 err 00000100
[mmc]: mmc 2 cmd 8 err 00000100
[mmc]: mmc 2 send if cond failed
[mmc]: mmc 2 cmd 55 err 00000100
[mmc]: mmc 2 cmd 55 err 00000100
[mmc]: mmc 2 send app cmd failed
[mmc]: ***Try MMC card 2***
[mmc]: mmc re-update_phase
[mmc]: mmc re-update_phase
[mmc]: 8bit ddr!!! 
[mmc]: mmc re-update_phase
[mmc]: MMC ver 5.0
[mmc]: SD/MMC Card: 8bit, capacity: 7456MB
[mmc]: vendor: Man 00150100 Snr 00aa0353
[mmc]: product: 8WPD3
[mmc]: revision: 5.2
[mmc]: ***SD/MMC 2 init OK!!!***
sdcard 2 init ok
The size of uboot is 000e4000.
sum=2d658581
src_sum=2d658581
set_mmc_para,sdly 50M 0
set_mmc_para,sdly 25M 0
Succeed in loading uboot from sdmmc flash.
Ready to disable icache.
Jump to secend Boot.
SUNXI_NORMAL_MODE   
[      0.274]e mode

U-Boot 2011.09-rc1-00024-gdbed064 (Nov 30 2015 - 20:18:20) Allwinner Technology 

[      0.283]version: 1.1.0
[      0.286]uboot commit : dbed064f3b1a936e4e374a6284944f4e4e30e9ae
 
not using multi config
normal mode
[      0.299]pmbus:   ready
not set main pmu id
axp_probe error
[board_vendor] vid_used not used
[      0.317]PMU: pll1 1008 Mhz,PLL6=600 Mhz
AXI=336 Mhz,AHB=200 Mhz, APB1=100 Mhz 
sid read already 
fel key new mode
run key detect
no key found
no key input
dram_para_set start
dram_para_set end
normal mode
[      0.348]DRAM:  1 GiB
relocation Offset is: 35af1000
[box standby] read rtc = 0x0
[box_start_os] mag be start_type no use
user_gpio config
user_gpio ok
gic: normal or no secure os mode
workmode = 0
MMC:	 2
[      0.426][mmc]: mmc driver ver 2015-06-1 20:01:00
[      0.431][mmc]: get sdc_phy_wipe fail.
[      0.435][mmc]: get sdc0 sdc_erase fail.
[      0.439][mmc]: get sdc_2xmode ok, val = 1
[      0.443][mmc]: get sdc_ddrmode ok, val = 1
[      0.447][mmc]: get sdc_f_max fail,use default  50000000Hz
[      0.453][mmc]: get card_line ok, card_line = 8
[      0.457][mmc]: get sdc_ex_dly_used fail,use default
[      0.462][mmc]: SUNXI SD/MMC: 2
[      0.476][mmc]: *Try SD card 2*
[      0.479][mmc]: mmc 2 cmd 8 err 100
[      0.485][mmc]: mmc send if cond failed
[      0.489][mmc]: mmc 2 cmd 55 err 100
[      0.494][mmc]: send app cmd failed
[      0.497][mmc]: *Try MMC card 2*
[      0.537][mmc]: mmc re-update_phase
[      0.542][mmc]: mmc re-update_phase
[      0.547][mmc]: mmc re-update_phase
[      0.552][mmc]: ddr8 
[      0.554][mmc]: mmc re-update_phase
[      0.571][mmc]: CID 0x15010038 0x57504433 0x5200aa03 0x53146327
[      0.576][mmc]: MMC ver 5.0
[      0.579][mmc]: mmc clk 50000000
[      0.582][mmc]: SD/MMC Card: 8bit, capacity: 7456MB
[      0.587][mmc]: boot0 capacity: 4000KB,boot1 capacity: 4000KB
[      0.593][mmc]: ***SD/MMC 2 init OK!!!***
[      0.598][mmc]: erase_grp_size:0x400WrBlk * 0x200 = 0x80000 Byte
[      0.603][mmc]: secure_feature 0x55
[      0.607][mmc]: secure_removal_type  0x9
[      0.611]sunxi flash init ok
script config pll_de to 864 Mhz
Not Found clk pll_video1 in script 
script config pll_video to 297 Mhz
script config pll_periph0 to 600 Mhz
[boot]disp_init_tv
[DISP_TV] disp_init_tv enter g_tv_used
screen 0 do not support TV TYPE!
[BOOOT_DISP_TV] disp tv device_registered
unable to find regulator vcc-hdmi-18 from [pmu1_regu] or [pmu2_regu] 
enable power vcc-hdmi-18, ret=-1
DRV_DISP_Init end
read byte = 11
read byte = 10
[get_display_resolution] = 404
read byte = 10
[get_display_resolution] = 20b
boot_disp.auto_hpd=1
auto hpd check has 100 times!
auto check no any connected, the output_type is 4
[      1.987]finally, output_type=0x4, output_mode=0x4, screen_id=0x0, disp_para=0x0
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:14-
-name-        -start-       -size-      
bootloader  : 1000000       1000000     
env         : 2000000       1000000     
boot        : 3000000       1000000     
system      : 4000000       30000000    
misc        : 34000000      1000000     
recovery    : 35000000      2000000     
sysrecovery : 37000000      30000000    
private     : 67000000      1000000     
Reserve0    : 68000000      1000000     
klog        : 69000000      1000000     
Reserve1    : 6a000000      2000000     
Reserve2    : 6c000000      1000000     
cache       : 6d000000      28000000    
UDISK       : 95000000      0           
-----------------------------------
base bootcmd=run setargs_nand boot_normal
bootcmd set setargs_mmc
key 0
cant find rcvy value
cant find fstbt value
misc partition found
to be run cmd=run setargs_mmc boot_normal
read item0 copy0
Item0 (Map) magic is bad
the secure storage item0 copy0 is bad
read item0 copy1
Item0 (Map) magic is bad
the secure storage item0 copy0 == copy1, the data is good
Item0 (Map) magic is bad
the secure storage map is empty
no item name mac in the map
sunxi storage read fail
no item name wifi_mac in the map
sunxi storage read fail
no item name bt_mac in the map
sunxi storage read fail
no item name specialstr in the map
sunxi storage read fail
no item name serialno in the map
sunxi storage read fail
check user data form private
the user data'magic is bad
WORK_MODE_BOOT
adver not need show
sunxi_bmp_logo_display
f_read btr over hd12896
read byte = 3686456
[      2.209]screen_id =0, screen_width =0, screen_height =0
[      2.214]frame buffer address 46400036
[      2.218]Hit any key to stop autoboot:  0 
read boot or recovery all
[      2.379]sunxi flash read :offset 3000000, 13363516 bytes OK
[      2.387]ready to boot
board_display_setenv:  disp_para=0 init_disp=20b0404 tv_vdid=36743000
[      2.396][mmc]: mmc exit start
[      2.410][mmc]: mmc 2 cmd 8 err 100
[      2.415][mmc]: mmc send if cond failed
[      2.419][mmc]: mmc 2 cmd 55 err 100
[      2.424][mmc]: send app cmd failed
[      2.436][mmc]: get sdc_phy_wipe fail.
[      2.440][mmc]: get sdc0 sdc_erase fail.
[      2.444][mmc]: get sdc_2xmode ok, val = 1
[      2.448][mmc]: get sdc_ddrmode ok, val = 1
[      2.452][mmc]: get sdc_f_max fail,use default  50000000Hz
[      2.457][mmc]: get card_line ok, card_line = 8
[      2.462][mmc]: get sdc_ex_dly_used fail,use default
[      2.467][mmc]: mmc 2 exit ok
[      2.470]
Starting kernel ...
This ends up at a root prompt. It looks like some form of android. Lots of stuff is in /system/bin (which is not on the path).
ifconfig eth0
eth0: ip 192.168.0.54 mask 255.255.255.0 flags [up broadcast running multicast]
root@dolphin-fvd-p1:/system/bin # 
So it has a network configured. There is no halt that I can find. I use "reboot" and pull the plug when I see Uboot starting up.


Have any comments? Questions? Drop me a line!

Tom's electronics pages / tom@mmto.org