stamasd Posted March 24, 2016 Posted March 24, 2016 So I've gone ahead and got an Orange Pi PC. I've already been using a few Raspberry Pi boards, as well as the Odroid C2. I wanted to see what the Orange looks like in comparison. It fails to boot properly. I've read a few things around the web, tried the official as well as a few of the Loboris images, including the Raspbian, Jessie and Slackware ones; used the newer script.bin and uImages, etc. But still no go. The board isn't dead, the power LED and the other 2 LEDs near the ethernet port light up. I get activity through the debug serial port, but that's about it. No image through the HDMI, no DHCP request to my router (I connected it through a wired connection, so I eliminate any wifi variables). Here's what I get through the serial port: HELLO! BOOT0 is starting! boot0 version : 4.0.0 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: V0.8 DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3) DRAM CLK = 672 MHz DRAM zq value: 003b3bfb READ DQS LCDL = 001e1e1e DRAM SIZE =1024 M odt delay dram size =1024 card boot number = 0 card no is 0 sdcard 0 line count 4 [mmc]: mmc driver ver 2014-12-10 21:20:39 [mmc]: ***Try SD card 0*** [mmc]: SD/MMC Card: 4bit, capacity: 15193MB [mmc]: vendor: Man 00035344 Snr 53a94a68 [mmc]: product: SL16G [mmc]: revision: 8.0 [mmc]: ***SD/MMC 0 init OK!!!*** sdcard 0 init ok The size of uboot is 000dc000. sum=ede66ee7 src_sum=ede66ee7 Succeed in loading uboot from sdmmc flash. Ready to disable icache. Jump to secend Boot. SUNXI_NORMAL_MODE [ 0.358]e mode U-Boot 2011.09-rc1 (Jun 21 2015 - 19:33:17) Allwinner Technology [ 0.366]version: 1.1.0 normal mode [ 0.373]pmbus: ready not set main pmu id axp_probe error [ 0.388]PMU: pll1 1200 Mhz,PLL6=600 Mhz AXI=400 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.418]DRAM: 1 GiB relocation Offset is: 35af9000 [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: 0 [ 0.493][mmc]: mmc driver ver 2014-12-10 9:23:00 [ 0.498][mmc]: get sdc_phy_wipe fail. [ 0.502][mmc]: get sdc0 sdc_erase fail. [ 0.506][mmc]: get sdc_f_max fail,use default 50000000Hz [ 0.511][mmc]: get sdc_ex_dly_used fail,use default dly [ 0.517][mmc]: SUNXI SD/MMC: 0 [ 0.530][mmc]: *Try SD card 0* [ 0.574][mmc]: CID 0x3534453 0x4c313647 0x8053a94a 0x6800fbe1 [ 0.579][mmc]: mmc clk 50000000 [ 0.583][mmc]: SD/MMC Card: 4bit, capacity: 15193MB [ 0.588][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB [ 0.593][mmc]: ***SD/MMC 0 init OK!!!*** [ 0.602][mmc]: erase_grp_size:0x1WrBlk * 0x200 = 0x200 Byte [ 0.607][mmc]: secure_feature 0x0 [ 0.611][mmc]: secure_removal_type 0x0 [ 0.615]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 [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 boot_disp.auto_hpd=1 auto hpd check has 100 times! auto check no any connected, the output_type is 4 [disk_read_fs] no the partition error: open disp_rsl.fex, maybe it is not exist not support this mode[4], use inline mode[4] attched ok, mgr0<-->device0, type=4, mode=4---- ready to set mode [ 1.998]finally, output_type=0x4, output_mode=0x4, screen_id=0x0, disp_para=0x0 fail to find part named env Using default environment In: serial Out: serial Err: serial --------fastboot partitions-------- mbr not exist base bootcmd=run setargs_mmc boot_normal bootcmd set setargs_mmc key 0 cant find rcvy value cant find fstbt value no misc partition is found to be run cmd=run setargs_mmc boot_normal [ 2.035][mmc]: MMC Device 2 not found [ 2.039][mmc]: Can not find mmc dev [ 2.042][mmc]: read first backup failed in fun sdmmc_secure_storage_read line 1849 sunxi_secstorage_read fail get secure storage map err the private part isn't exist WORK_MODE_BOOT adver not need show sunxi_bmp_logo_display [disk_read_fs] no the partition error: open bootlogo.bmp, maybe it is not exist sunxi bmp info error : unable to open logo file bootlogo.bmp [ 2.075]Hit any key to stop autoboot: 0 ## Booting kernel from Legacy Image at 40007800 ... Image Name: Linux-3.4.39 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 10915552 Bytes = 10.4 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK [ 5.983][mmc]: MMC Device 2 not found [ 5.987][mmc]: mmc not find,so not exit [ 5.991] Starting kernel ... [sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 1024MB ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1 ion_reserve_common: ion reserve: [0x70000000, 0x80000000]! [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.4.39 (boris@UbuntuMate) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #1 SMP PREEMPT Mon Oct 12 12:02:29 CEST 2015 [ 0.000000] Ignoring tag cmdline (using the default kernel command line) [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] cma: CMA: reserved 256 MiB at 70000000 [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] On node 0 totalpages: 262144 Then nothing. That BTW is with the Loboris Raspbian image and new uImage and script.bin; the OPi is attached to a router, but from the router side I see no DHCP request. The microSD card is a class-10 16GB G.Skill brand, and it was used before with both R.Pi and Odroid C2 with no problems. Just to be sure before writing the image I formatted it fresh, then did a thorough check with h2testw and no problems were found. For writing the image I used first w32diskimager in win7, then dd in Linux, but in either case the result is the same. Any ideas about what to do next?
tkaiser Posted March 25, 2016 Posted March 25, 2016 So you tried out nearly everything but Armbian and are asking now in an Armbian forum what to do next? Really? One of the many differences between Armbian and everything you already tried out is that our OS images use sane/safe DRAM and sane/safe CPU clockspeeds. In case you bought a lemon board that might make the difference. 1
stamasd Posted March 25, 2016 Author Posted March 25, 2016 I managed to boot this board using Armbian (the server image http://mirror.igorpecovnik.com/Armbian_5.05_Orangepih3_Debian_jessie_3.4.110.zip),but only once. I was able to login via serial, change root password, make a new user, upgrade some packages then rebooted - but it never came back up completely. On subsequent attempts to boot it stalls part way through booting the kernel. Besides, this board has some crazy power requirements. It will not boot if powered from its adapter, from a number of 5V USB adapters, or even from the 5V rail of an ATX power supply. The one and only time it booted was when powered from the USB port of my laptop (with a USB-to-barrel adapter cable).
tkaiser Posted March 25, 2016 Posted March 25, 2016 Sounds a bit that you're 'just' suffering from a hardware issue. Did you know that you can power the board (reliably!) through the GPIO pins? See http://linux-sunxi.org/Orange_Pi_PC#Tips.2C_Tricks.2C_Caveatsand the image below: What you're telling really sounds a bit strange since when you neither connect a HDMI display nor USB peripherals then OPi PC is happy with any voltage between 4.5V and 5.5V (tested by myself) and unless you use crazy overclocker OS images needed consumption is pretty low.
stamasd Posted March 25, 2016 Author Posted March 25, 2016 Sounds a bit that you're 'just' suffering from a hardware issue. Did you know that you can power the board (reliably!) through the GPIO pins? See http://linux-sunxi.org/Orange_Pi_PC#Tips.2C_Tricks.2C_Caveatsand the image below: I've done that with other boards, haven't tried with the OPiPC (yet). Usually I would power them from the USB/serial adapter. Worked very well with Raspberry Pi One. That would not be a long-term solution though, I need to find an external power supply that works as my plan is to have this board eventually function as a standalone headless server.
martinayotte Posted March 25, 2016 Posted March 25, 2016 All my OPi-PCs are powered with simple 5V 2A wall adaptors. http://www.ebay.ca/itm/AC-100V-240V-Converter-Adapter-DC-5V-2A-Power-Supply-US-plug-4-0mm-x-1-7mm-New-/351351652056
stamasd Posted March 25, 2016 Author Posted March 25, 2016 All my OPi-PCs are powered with simple 5V 2A wall adaptors. http://www.ebay.ca/itm/AC-100V-240V-Converter-Adapter-DC-5V-2A-Power-Supply-US-plug-4-0mm-x-1-7mm-New-/351351652056 I have a similar one (came with the board in a kit). The board doesn't boot completely when powered from it. U-Boot SPL 2016.03-rc2-armbian (Mar 08 2016 - 20:18:51) DRAM: 1024 MiB Trying to boot from MMC U-Boot 2016.03-rc2-armbian (Mar 08 2016 - 20:18:51 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I) I2C: ready DRAM: 1 GiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: No ethernet found. starting USB... No controllers found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 2193 bytes read in 192 ms (10.7 KiB/s) ## Executing script at 43100000 gpio: pin PA15 (gpio 15) value is 1 gpio: pin PG11 (gpio 203) value is 1 ** File not found /boot/.verbose ** ** File not found /boot/.next ** ** Unrecognized filesystem type ** ** File not found .next ** 35916 bytes read in 577 ms (60.5 KiB/s) 4866320 bytes read in 4867 ms (975.6 KiB/s) Kernel image @ 0x48000000 [ 0x000000 - 0x4a4110 ] Using machid 0x1029 from environment Starting kernel ... [sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 1024MB ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1 ion_reserve_common: ion reserve: [0x70000000, 0x80000000]!...then hangs there indefinitely.
stamasd Posted March 25, 2016 Author Posted March 25, 2016 I've reimaged the card with the same image, and this time I'm able to boot repeatedly from it while the board is powered from the USB port on my laptop. Login through serial, change password, make new user, update packages, reboot all worked, and the board came up again after the reboot and let me login again. All done headlessly through serial. But only one of the 3 USB ports on this laptop that it can power through reliably (if I use one of the other two for power, it hangs). And if I attach a wifi dongle, it won't boot again. It's fine if I boot it without the dongle then plug the wifi card in, but if it's attached at boot time it hangs at the same point as above. Grr.
tkaiser Posted March 25, 2016 Posted March 25, 2016 Sorry, but you can't build houses on quicksand and you can't operate any electrical device reliably with an insufficient power supply. So unless you're able to fix this all that will further happen is more frustration on top (damaged filesystem on the SD card and from then on mysterious errors)
stamasd Posted March 25, 2016 Author Posted March 25, 2016 Sorry, but you can't build houses on quicksand and you can't operate any electrical device reliably with an insufficient power supply. So unless you're able to fix this all that will further happen is more frustration on top (damaged filesystem on the SD card and from then on mysterious errors) At this point I don't know what an adequate power supply is for this board. An ATX power supply that gives 5.02V (measured) on the 5V rail and is rated at up to 13A on the same rail failed to power this board correctly.
tkaiser Posted March 25, 2016 Posted March 25, 2016 Ok, one last time: Did you already try to power the board through GPIO pins 2 and 6 as shown in the image above (BTW: This is not like on Raspberry Pi where you can power the board the same way but have less protection compared to powering the RPi through the Micro USB port. On Orange Pi it doesn't make any difference) So since you experience problems with each and every power supply that normally works ok the first thing I would check is a problem with the barrel connector used for DC-IN.
stamasd Posted March 25, 2016 Author Posted March 25, 2016 Right now I'm powering it from 2 sources simultaneously: 1. Through the barrel connector via a USB-barrel cable from an USB port 2. Through pin 2 on the GPIO connector from the USB-serial converter which is also connected to GND at the serial port When using this dual supply scheme it seems to boot reliably even with the wifi dongle attached. When using only one of the supplies, it doesn't. It's very dodgy but it works. I'll have to figure out why beefier power supplies don't work with it. Thanks for your help!
tkaiser Posted March 25, 2016 Posted March 25, 2016 I'll have to figure out why beefier power supplies don't work with it. It's still the same. You suffer from a problem with the barrel connector and should try to supply a sufficient amount of amperage through the GPIO pins (and feeding DC-IN through two different sources isn't nothing I would call 'working' but somewhat dangerous instead). That might then look like this for example:
stamasd Posted March 26, 2016 Author Posted March 26, 2016 Well, so far it seems stable. I have checked the barrel connector and solder joints seem good, no play and very little resistance across. I have found a dual USB charger (one of the ports is high-current, 2A). I'm feeding the current from the 2A plug through the barrel connector, and the other port (1A) through the GPIO. Works well so far, but for some reason if I use just one or the other it doesn't boot correctly. It definitely doesn't use nowhere near as much current as the charger is rated for, and it does heavy tasks (compiling a whole game) without crashing.
Recommended Posts