EMMC not booting while SD does. - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: General Discussion on ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=99) +--- Thread: EMMC not booting while SD does. (/showthread.php?tid=6372) |
RE: EMMC not booting while SD does. - dukla2000 - 09-15-2018 OK, methinks this is something to do with the "weird" setup of eMMC (at least to me). My eMMC (from Pine) has 4 hard "partitions" Code: ~$ lsblk Note the mmcblk1boot0, mmcblk1boot1 & mmcblk1rpmb partitions/things are all on the eMMC with mmcblk1p1. I suspect you all do not have this structure. And, I think, lacking the boot1 is why you cant boot from your eMMC. And, I think, the common denominator is you all got your eMMC from Ameridroid? And, I suspect, you may be able to get this structure by flashing an Android image onto the eMMC first? <I stopped booting from my eMMC way back as the NVMe is faster. I was trying to reformat my eMMC as a single partition to use for data or something and noticed these damn "carbuncles" that I cant get rid of.> RE: EMMC not booting while SD does. - _fs - 09-15-2018 Yes, I did get my equipment from ameridoid. Just checked, I also have the 4 blocks you posted for the mmc: Code: rock64@rockpro64:~$ lsblk | grep mmcblk1 RE: EMMC not booting while SD does. - Takenover83 - 09-15-2018 Code: root@DietPi:~# lsblk | grep mmcblk1 RE: EMMC not booting while SD does. - dukla2000 - 09-16-2018 OK - bad assumption on my part (that you would be missing mmcblk1boot0 etc). But, to stop my machine trying to boot from my eMMC it wasn't sufficient to clear mmcblk1p1-p7, I also had to clear mmcblk1boot0 and mmcblk1boot1. To do that I had to disable the Read-Only bit: su (or login as root - sudo did not work for me) echo 0 > /sys/block/mmcblk1boot0/force_ro I then did a dd if=/dev/zero there: you have to do the reverse probably dd a u-boot there. (Note the ro bit resets after a reboot so no need to revert it) This page seems to be dealing with a similar challenge. PPS - just discovered mmc-utils - have installed and busy playing with it to try fully clean my eMMC. Would imagine you can add uboot with it? PPPs - cant find major use for mmc-utils except removing ro bit, guess you folks will still need to figure manual dd of uboot? RE: EMMC not booting while SD does. - Apokalypz - 09-19-2018 It is most likely NOT the emmc card or an ameridroid specific issue. I had sent that emmc card back to ameridroid where he tested it with a working rockpro64 and the emmc worked for him. So it is likely a hardware failure on the board. I have a replacement rockpro64 being shipped to me after sending the bad one back and he said he couldnt get it to boot emmc either. He told me they are going to send it back to Pine. Hopefully they can find the issue and fix it for future production. The strange thing is how it is seen perfectly once the kernel loads and puts the card in high-speed mode. It makes me think something is attenuating the signal at low frequencies. Or it's unable to switch to a higher voltage mode when running at the slower boot clock. My test showed the clock was 1.86V peak to peak at 24MHz at boot. I'm not sure if that is spec or not. Either way, I get the replacement on Friday, so I'll test it out, see if it boots, and report back. EDIT: I forgot to reply to the weird situation where a thumbdrive will "boot" the emmc image. This kinda happened to me while having an SD card in along with the eMMC (both have the same ayufan image). I think what happens is the bootloader loads the kernel off the non-emmc device (in this case a flashdrive) which then ends up loading the root filesystem off of the eMMC (which is now visible because the kernel is loaded.) because the partitions are loaded by their label not unique identifiers (which are all the same anyway if you use the same image on both the USB/SD and the eMMC.) I found that I could boot the kernel off the SD while loading the rootfs off the eMMC by changing the uuid of the root partition on the eMMC and changing the SD's kernel command line to load root from that uuid. As mentioned, it's a workaround, but not a very good one. EDIT 2: In response to the boot0, boot1, and rpmb partitions. These (minus the rpmb) seem to be an alternative way to boot off of an eMMC to make flashing a bootloader easier for OEM. Every eMMC device after 4.something has these partitions as something called "alternate boot mode". Instead of putting the uboot and other boot bins on the main userspace area of the eMMC (/dev/mmcblk0), you can put them in a boot partition to keep it separate from the kernel and roots. The rockpro64 doesn't require the use of these extra partitions and instead loads the uboot and friends from the userspace partition. RE: EMMC not booting while SD does. - Apokalypz - 09-21-2018 I just tested the new board and it boots off the eMMC without any problems! So it definitely is a board defect if the board won't boot eMMC. Ameridroid said they suspect the eMMC card connector might be at fault. RE: EMMC not booting while SD does. - Takenover83 - 09-21-2018 I somehow screwed my board up hooking a fan up. No longer boots anything :/ But I will have a new one from Ameridroid in a couple days. Hopefully it boots. Edit: No go. New board and the emmc still does not boot. RE: EMMC not booting while SD does. - dukla2000 - 09-23-2018 (09-21-2018, 03:11 PM)Apokalypz Wrote: I just tested the new board and it boots off the eMMC without any problems! So it definitely is a board defect if the board won't boot eMMC. Ameridroid said they suspect the eMMC card connector might be at fault. Glad all is well that ends in your case. Interesting Takenover83 report that the same eMMC fails on a different board as well. Earlier I was not throwing stones at Ameridroid - I was just wondering if they were unfortunate to get a contiguous batch of something bad. RE: EMMC not booting while SD does. - jnoxon - 09-25-2018 I got my first RockPro64 today (ordered directly from Pine), and mine also will not boot from eMMC (I tried using etcher with both Ubuntu and Debian.) When I connect the serial console I get nothing but garbage out when I use Pine's adapter, and I get nothing at all when I use a FTDI adapter. Both adapters test fine with RX/TX jumpered together. After seeing this thread, I decided to try using a microSD card, and it booted straight up. I guess there is no point trying to RMA this board back to China, but I am open to suggestions. RE: EMMC not booting while SD does. - mocara - 09-26-2018 Hi, Just received v2.1 RockPro64 board yesterday, together with NAS Case, 64GB EMMC card and SATA board. For the first boot, I wanted to keep it as simple as possible. I didn't order the USB/EMMC adaptor. Instead as per Wiki and forum instructions I used Etcher on a Windows 10 PC to burn the latest Linux distro to an existing SanDisk 8GB SDCard. Used apt-get to update software. Once I was happy that RockPro64 booted from that, then added EMMC card and DD'd to it using instructions on this forum. Removed SDCard and rebooted to make sure I was really booting from EMMC card. I know a bit paranoid!!. Again, used forum instructions to manually expand the file system. All went fine for me, so next steps are to complete build with SATA board, and SSD's, then try the same approach but this time with the OMV build. So far, so good. Mocara |