eMMC boot help - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE H64 (https://forum.pine64.org/forumdisplay.php?fid=92) +--- Forum: General Discussion on PINE H64 (https://forum.pine64.org/forumdisplay.php?fid=93) +--- Thread: eMMC boot help (/showthread.php?tid=8369) Pages:
1
2
|
eMMC boot help - SuburbanDad - 11-18-2019 I am trying to get the [unsupported] armbian image to load from eMMC on my pine h64 model b. The armbian image https://dl.armbian.com/pineh64/archive/Armbian_5.90_Pineh64_Ubuntu_bionic_dev_5.1.15.7z seems to work like a charm on SD, but I'd like to get the os onto eMMC for faster io. I have been able to get the Android eMMC and AOSC builds to boot from eMMC on this board, but I'd really prefer Armbian, just because it is a known and will be similar to the rock64 boards I have running Armbian. However, flashing the image directly onto eMMC doesn't seem to work. Trying to boot just gives me a black cursor on the serial console. No activity at all, no u-boot or anything. As far as I can tell, this should work. The image seems to have the correct `eGON.BT0` header at the right offset in the image, so I presumed it would have/should have booted. But no dice I am new to u-boot, but took a stab at building and installing it onto the eMMC for the h6 anyway, using as a guide: http://linux-sunxi.org/Mainline_U-Boot After following the instructions, building u-boot on a rock64 (targeting the h6), and writing it to the eMMC at the 8kb offset, I pop the card onto the h6. However on boot I end up with : Quote:U-Boot SPL 2020.01-rc2-00035-g3ff1ff3ff7 (Nov 17 2019 - 10:16:56 +0000) and it just hangs there. AFAICT MMC2 is the correct device. Any pointers? is there a different branch of u-boot I should be using for the pine64 H6-b ? One of the complexities is that I can't seem to get the H6 to boot from SD and still be able to read/write to the eMMC device. Any changes I want to make to the eMMC has to be done on the rock64 and then plugged back onto the H6. If there is a way to get both SD and eMMC to play nicely on the H6 it would surely shorten the 'round trip' time for making changes. Any help is greatly appreciated. TIA RE: eMMC boot help - martinayotte - 11-18-2019 While having inserted Armbian SDCard, did you tried to stop u-boot to get into prompt and then do "mmc list" and something like "ls mmc X" where "X" is the eMMC ? RE: eMMC boot help - SuburbanDad - 11-18-2019 (11-18-2019, 10:54 AM)martinayotte Wrote: While having inserted Armbian SDCard, did you tried to stop u-boot to get into prompt and then do "mmc list" and something like "ls mmc X" where "X" is the eMMC ? Pretty sure I tried that scenario, but I don't recall the outcome. I will give that another try this evening. Thx RE: eMMC boot help - tophneal - 11-18-2019 I can't help much since I don't have an H6, but does the Armbianimage include the emmc installer, or are you having to install using another computer? RE: eMMC boot help - martinayotte - 11-18-2019 (11-18-2019, 02:51 PM)tophneal Wrote: I can't help much since I don't have an H6, but does the Armbianimage include the emmc installer, or are you having to install using another computer?Of course, Armbian is providing "nand-sata-install" script ... RE: eMMC boot help - SuburbanDad - 11-18-2019 (11-18-2019, 10:54 AM)martinayotte Wrote: While having inserted Armbian SDCard, did you tried to stop u-boot to get into prompt and then do "mmc list" and something like "ls mmc X" where "X" is the eMMC ? mmc reads fine from u-boot, as long as u-boot image comes from the SD card: Quote:=> mmc list what is the nand-sata-install script? EDIT: it looks like the `nand-sata-install` script requires the ability to read eMMC and SD at the same time - which so far I have not been able to do. The eMMC device shows up when I boot from SD, but as soon as I attempt to read it, the app hangs (fdisk, mount, etc) TIA RE: eMMC boot help - SuburbanDad - 11-19-2019 update, it appears that using the rock64 as an eMMC writer is a strategy that only works for other rock64 devices. A USB eMMC writer showed up today and I used it and etcher to write the armbian pine h64 image to the eMMC card. Now it at least *tries* to boot. It gets all the way to the point where it does: Quote:... but just hangs at the point I'd expect it to load the kernel and/or mount the root fs. I modified armbianEnv.txt to point the root fs to /dev/mmcblk2p1 and ran mkimage to generate a new boot.scr. To no avail however. Very much closer at this point. I get the same behavior if I pause the bootloader from the SD card and specify the eMMC device to boot. RE: eMMC boot help - martinayotte - 11-19-2019 (11-18-2019, 09:48 PM)SuburbanDad Wrote: The eMMC device shows up when I boot from SD, but as soon as I attempt to read it, the app hangs (fdisk, mount, etc)If booting SD allows you to see /dev/mmcblk2, but you are unable to do "fdisk /dev/mmcblk2", there is maybe an hardware issue. What do you see doing "dmesg | grep mmc" ? RE: eMMC boot help - xalius - 11-19-2019 Is there maybe one of the two supply voltages for eMMC missing? RE: eMMC boot help - SuburbanDad - 11-20-2019 (11-19-2019, 10:49 AM)martinayotte Wrote: If booting SD allows you to see /dev/mmcblk2, but you are unable to do "fdisk /dev/mmcblk2", there is maybe an hardware issue. Quote:# dmesg |grep mmc The data error stop command were emitted when I tried to access the eMMC device. (11-19-2019, 03:29 PM)xalius Wrote: Is there maybe one of the two supply voltages for eMMC missing? How would I check for that? Is a missing supply voltage something that would allow for partial function? It is worth noting that the android eMMC and the aosc images linked on the pine64 wiki boot fine from eMMC. So I have been operating under the assumption this was a software only problem. |