pluton Posted April 12, 2017 Posted April 12, 2017 Hello everyone, First of all, sorry for my bad English. Quick description of my problem: I recently buy three Orange Pi Plus 2E with official case and official AC adapter. On this three cards I want to use Armbian, I use the last version of Armbianfound here: https://www.armbian.com/orange-pi-plus-2e/ Write on SD card with Win32DiskImager. For information, I use a Samsung EVO 16G SD Card, same HDMI cable, same screen and official A/C adapter. For two cards, no problem, boot on Armbian on SD card and install on emmc in 10 minutes, but the last one have some problem... The last card won't boot on SD card with Armbian: black screen, no keyboard reaction and green led on the card. I test some other image I found on internet (forum orangepi) and the result is very strange: desktop image work perfectly (Ethernet controller,usb, screen, writeemmcworks) but server image not! Only one Debian server image works but not the ethernet controller... I have some knowledge in Linux (I'm a Java Dev) but here I don't understand what happens with this card... If anyone has an idea I'm interrested! Thanks in advance.
zador.blood.stained Posted April 12, 2017 Posted April 12, 2017 Impossible to say for sure without a log from the serial console. But this would be my first guess.
pluton Posted April 12, 2017 Author Posted April 12, 2017 Thanks for your response, I will verify your idea tonight.
pluton Posted April 13, 2017 Author Posted April 13, 2017 Hi, Thanks for your response!! I think this is the problem, i move the switch and armbian boot one time but freeze after There is a another solution to install to emmc armbian from a another linux system (with img file or usb stick flashed)?
zador.blood.stained Posted April 13, 2017 Posted April 13, 2017 Just now, pluton said: There is a another solution to install to emmc armbian from a another linux system (with img file or usb stick flashed)? This: https://github.com/zador-blood-stained/fel-mass-storage (discussion and details here). Alternatively you can load the u-boot via FEL mode, boot Armbian from USB and then install/write to eMMC.
pluton Posted April 13, 2017 Author Posted April 13, 2017 Thanks, I tested like this: Flash SD Card with image on Github Plug usb to card and PC Windows detect card as Unknow Device 1 Install WinUSB with Zadig Then, nothing I Can see SD or EMMC from "My PC", did i miss anything? Ok i miss this page: https://linux-sunxi.org/FEL/USBBoot work on it EDIT; So i use the sunxi-fel.exe and command "sunxi-fel.exe version" give me that: AWUSBFEX soc=00001680(H3) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000 Next, I use "sunxi-fel.exe uboot u-boot-sunxi-with-spl.bin" with u-boot-sunxi-with-spl.bin from your repo, after somes try i got in console: starting -boot... but nothing append. I miss anything?
zador.blood.stained Posted April 14, 2017 Posted April 14, 2017 12 hours ago, pluton said: I miss anything? Yes, you missed running start.bat on Windows or start.sh on Linux, after "sunxi-fel ver" displays that device is correctly recognized.
pluton Posted April 14, 2017 Author Posted April 14, 2017 Yep I don't see it, thanks We are agree, I need to plug flash usb stick on card?
pluton Posted April 14, 2017 Author Posted April 14, 2017 Ok, i execute start.bat (i use Win10 x64), this is the result (after some tries, I hava a lot of timeout): \fel-mass-storage-master>start.bat "Connect device in FEL mode and press <Enter>" Appuyez sur une touche pour continuer... Stack pointers: sp_irq=0x00002000, sp=0x00005E08 MMU is not enabled by BROM Generating the new MMU translation table at 0x00008000 => Executing the SPL... done. Setting write-combine mapping for DRAM. Setting cached mapping for BROM. Writing back the MMU translation table. Enabling I-cache, MMU and branch prediction... done. Writing image "U-Boot 2016.09-armbian-fel-mass-", 247509 bytes @ 0x4A000000. 100% [================================================] 4575 kB, 940.7 kB/s 100% [================================================] 21 kB, 984.9 kB/s 100% [================================================] 2230 kB, 935.3 kB/s 100% [================================================] 0 kB, 82.6 kB/s Passing boot info via sunxi SPL: script address = 0x43100000 Starting U-Boot (0x4A000000). Appuyez sur une touche pour continuer... After that i see emmc in partition manager. i flash it with win32 and etcher but nothing boot after flash. :'( I did something wrong ?
pluton Posted April 15, 2017 Author Posted April 15, 2017 @zador.blood.stained I test again today, this is how i do it: - Plug SD card and micro sd cable in Orange Pi - Card is detected by sunxi-fel.exe. - Use script start.bat (I must do a lot of tries, i have a lot of timeout) - Card disconnect and reconnect as a windows storage - Remove all partitions and formate it (i can acess from explorer) - Flash the last Armbian with win32diskimage or etcher - Disconnect and boot without sd - Same result with a sd card: black screen... Do you know what i did wrong in this steps? Do you have uboot file to boot with usb with a orange pi plus 2e? Thanks for all your help with my problem...
zador.blood.stained Posted April 15, 2017 Posted April 15, 2017 58 minutes ago, pluton said: - Use script start.bat (I must do a lot of tries, i have a lot of timeout) Not a good sign. Possibly powering issues or bad USB cable 59 minutes ago, pluton said: - Same result with a sd card: black screen... Serial log please 59 minutes ago, pluton said: Do you have uboot file to boot with usb with a orange pi plus 2e? You can extract it (u-boot-sunxi-with-spl.bin) from here (assuming you are using a legacy kernel based image): http://beta.armbian.com/pool/main/l/linux-u-boot-orangepiplus2e-default/
pluton Posted April 15, 2017 Author Posted April 15, 2017 3 hours ago, zador.blood.stained said: Not a good sign. Possibly powering issues or bad USB cable Serial log please You can extract it (u-boot-sunxi-with-spl.bin) from here (assuming you are using a legacy kernel based image): http://beta.armbian.com/pool/main/l/linux-u-boot-orangepiplus2e-default/ Thanks for your help really @zador.blood.stained. For information, I open a mediation with aliexpress, this card have some problems i think... In fact, I need to push the upgrade key on the board for writing with sunxi-fel and it's work 2 on 3 times. How can give you serial log? I extract it, I nee to use only this file to write on board or bin + other file in your repo?
pluton Posted April 18, 2017 Author Posted April 18, 2017 I search for give you serial console @zador.blood.stained but I don't have any cable for that... Do you think I can write to emmc the .img file from a other OS? Or do you have any solution to use the old u-boot with Armbian? Now, I'm totally lost and Aliexpress won't refund me...
pluton Posted April 21, 2017 Author Posted April 21, 2017 I repost i know, but anyone know if i can compile my own image with an old U-Boot which works with a broken sd-card reader? :/
zador.blood.stained Posted April 21, 2017 Posted April 21, 2017 Armbian does not support the legacy u-boot, and u-boot is only a part of the problem, script.bin (for the kernel) has to be changed too. You also may try booting other non-Armbian images and if they expose eMMC node (/dev/mmcblk1 or /dev/mmcblk2) it may be possible to flash Armbian image to eMMC from a running OS (i.e. using dd).
pluton Posted April 21, 2017 Author Posted April 21, 2017 HI @zador.blood.stained ty for your attention of my problem. I already test this solution with a version of ubuntu, I tested again tonight According to this: https://bananapi.gitbooks.io/bpi-m3/zh/howtoburnlinuximagetoemmc.html I use the same command, but with img name of Armbian Debian OrangePi + 2E, result of copy seem to be ok. After unplug SD and reboot, same result: black screen, no keyboard reaction. I think i will buy a ttl cable because I can't understant why this **** card won't working with armbian...
zador.blood.stained Posted April 22, 2017 Posted April 22, 2017 8 hours ago, pluton said: I think i will buy a ttl cable because I can't understant why this **** card won't working with armbian... I can't understand it either without a log from the serial console.
martinayotte Posted April 22, 2017 Posted April 22, 2017 Not having a USB-TTL to do debugging is like a carpenter not having any hammer ... 1
pluton Posted April 25, 2017 Author Posted April 25, 2017 I'm baaaack with a TTL Cable! So this is how I process: 1: test with a flash sd card with armbian. TTL information in sdBoot.txt @zador.blood.stained I think it's a sd card switch broken like you said.. 2: Boot in FEL mode, flash EMMC with Disk32Imager. FEL Boot information in felBoot.txt. 3: Boot with only TTL cable + A/C Log in bootxMMC.txt. Sometimes, boot stuck from at "Trying to boot from MMC2", I ned to plug and unplug A/C (cf boot3EMMC.txt). I don't understand what happens on this card... @zador.blood.stained these logs help you to understand? boot1MMC.txt boot2MMC.txt boot3MMC.txt felBoot.txt sdBoot.txt
zador.blood.stained Posted April 25, 2017 Posted April 25, 2017 Well, sdBoot.txt looks like abroken card detect switch. Other logs, however, looks like eMMC issue or powering issue, but if you got errors writing image from FEL mode it can be related to bad eMMC contents. So your best option is trying to bend/fix the SD switch first, if you can't make it work - then may be solder a piece of wire between SD card detect pin and ground to bypass the switch and boot from SD or prepare to recompile u-boot to skip the SD detection check.
pluton Posted April 25, 2017 Author Posted April 25, 2017 I try again tonight to fix the SD switch, then I got this log with a sd card in sd card reader: U-Boot 2017.01-armbian (Feb 02 2017 - 03:03:34 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi Plus 2E I2C: ready DRAM: 2 GiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface7 eth0: ethernet@1c30000 Hit any key to stop autoboot: 0 6944 bytes read in 155 ms (43 KiB/s) switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 2652 bytes read in 191 ms (12.7 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 123 bytes read in 132 ms (0 Bytes/s) ** ext4fs_devread read error - block The last line show a mmc error, no? If it's possible to recompile uboot to bypass this SDCard verification, do you think it's a better alternative for all Orange Pi's images? I'm not the first with this problem, as I can see in this forum... Can you tell me where I can found some documentations about that?
zador.blood.stained Posted April 25, 2017 Posted April 25, 2017 Please try another SD card and power supply first. This message U-boot loaded from SD means that u-boot was loaded correctly from SD and boot script was loaded correctly too, so SD card detection may be considered fixed.
pluton Posted April 25, 2017 Author Posted April 25, 2017 Ok I test with 2 others sd card and a second A/C adapter. Same result for the first SD card, tested with the two alimentations. The second, after som tries (because I get block at : Trying to boot from MMC1), give me that: U-Boot 2017.01-armbian (Feb 02 2017 - 03:03:34 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi Plus 2E I2C: ready DRAM: 2 GiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface7 eth0: ethernet@1c30000 Hit any key to stop autoboot: 0 6944 bytes read in 158 ms (42 KiB/s) switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 2652 bytes read in 194 ms (12.7 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 123 bytes read in 134 ms (0 Bytes/s) Unknown command '▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒data abort pc : [<bdf714d4>] lr : [<bdf67930>] reloc pc : [<4a0184d4>] lr : [<4a00e930>] sp : b9f33c50 ip : bdfb0250 fp : 00000018 r10: b9f641a8 r9 : b9f38ee0 r8 : 00000000 r7 : 00000000 r6 : b9f643d8 r5 : b9f67426 r4 : 00000001 r3 : b9f67428 r2 : 00000000 r1 : fffffffe r0 : b9f67430 Flags: nZCv IRQs off FIQs off Mode SVC_32 Resetting CPU ... resetting ... U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:03:34) DRAM: 2048 MiB Trying to boot from MMC1
pluton Posted April 25, 2017 Author Posted April 25, 2017 I try again and again and same result... I think the last option is to recompile uboot... Do you have any documentation to help me in that task please @zador.blood.stained?
zador.blood.stained Posted April 26, 2017 Posted April 26, 2017 11 hours ago, pluton said: I think the last option is to recompile uboot... No. The SD detection issue, as I said, is fixed. Now: - All recent Armbian images come with SHA256 checksum. Please use it to verify your downloaded image - Please make sure that you used Etcher for writing the image to the SD card and that it was verified successfully. - If after these steps you still have similar errors I can only assume hardware issues that cannot be diagnosed or fixed without replacing the board (assuming SD and power supply are of good enough quality.
pluton Posted April 26, 2017 Author Posted April 26, 2017 Hi @zador.blood.stained Ok I download again the Armbian_5.25_Orangepiplus2e_Debian_jessie_default_3.4.113.img and verify checksum, it's ok. I use Etcher with my Samsung Evo 16Go it's ok too. I use power supply from Orange Pi's seller (work with my two other boards). And it's not work again... I plug and unplug a lot of times, and boot stuck everytimes. I can't understand why other image boot correctly (on SD and EMMC) but not armbian. There is nothing to do to patch armbian for this problem? EDIT: I found a trick: push the upgrade bouton a armbian boot corectly 2 on 3 times from SD. But when i release the button, Armbian crash... I give you a log, when Armbian start and last line of this log it when the button is release. Maybe a issue ? upgradeButton.txt
zador.blood.stained Posted April 26, 2017 Posted April 26, 2017 19 minutes ago, pluton said: There is nothing to do to patch armbian for this problem? No since it is an unknown hardware related issue. Well, there are different things to try like lima-memtester with different DRAM frequencies, measuring voltages on the test points, changing DVFS operating points, ... but it is a lot of work and requires some time even to explain this.
pluton Posted April 26, 2017 Author Posted April 26, 2017 Well, i will use a other image on this board I think... :/ Last info, I can boot Armbian with Upgrade button pushed. On the board, green led stick and red led flash. I can interact in console, log in root but when I want to change the password, got: Authentication token manipulation error And when i release the upgrade key, Armbian crashe and print this: 1212[ 80.401270] Unable to handle kernel paging request at virtual address 00100104 [ 80.410019] pgd = c0004000 [ 80.410019] [00100104] *pgd=00000000 [ 80.410019] sunxi oops: enable sdcard JTAG interface [ 80.410019] sunxi oops: cpu frequency: 480 MHz [ 80.410019] sunxi oops: ddr frequency: 624 MHz [ 80.410019] sunxi oops: gpu frequency: 105 MHz [ 80.410019] sunxi oops: cpu temperature: 10 [ 80.410019] Internal error: Oops: 805 [#1] PREEMPT SMP ARM [ 80.410019] Modules linked in: ir_lirc_codec lirc_dev ir_mce_kbd_decoder ir_sanyo_decoder ir_sony_decoder ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder ir_nec_decoder If this change anything, tell me I you want test an other solution. Or else, stop waste your time with tis, I will use a other image. Finally, thanks for all your help with this problem! I will be back on Armbian on other card one day
Recommended Posts