PINE64
Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound (/showthread.php?tid=10264)

Pages: 1 2


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - Syonyk - 07-08-2020

Well, the top is unreadable with all the control characters in it - can you strip those out?

The bottom is more clear, it's unable to read anything it thinks it should be able to boot from.

I'm not sure if the block read error means it can't read the block, or can't find anything valid there.

Can you try with dd? I've had zero luck with Etcher writing out the images properly - though mine is at least kind enough to refuse to write the image instead of writing something invalid. Either your SD card is bad, your SD card reader is bad, or there's not data where it's supposed to be. My experience with Etcher for these images leads me to believe the last is the most likely. I don't know why there's a difference, and I haven't felt the desire to find out when dd works fine.

Step 1: Get it booting off the SD card. Record the serial log from the boot.
Step 2: DD the image onto the eMMC while booted into the SD card.
Step 3: Boot (which should pull the firmware blobs and such off the eMMC), and see what serial says.


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - TDC_PBP - 07-09-2020

I just tried to write the image to the MicroSD card with DD using the exact same command you gave in your how-to post (except for changing the of in DD to match my MicroSD card) and then boot with the EMMC disabled...no luck. I got the same error:
U-Boot TPL 2020.01-ayufan-2013-gdb96b24f (Apr 13 2020 - 08:44:03)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2020.01-ayufan-2013-gdb96b24f (Apr 13 2020 - 08:44:03 +0000)
Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
Trying to boot from MMC2
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

Then I re-enabled the EMMC (which has Ubuntu on it), and now I have the same error, except now the serial output is stopped on the line: Trying to boot from MMC2.

So the Ubuntu .img file boots just fine from MicroSD card when a different bootable OS is installed on the EMMC, but when there isn't (or the EMMC is disabled or the OS on the EMMC is Ubuntu), the image suddenly just doesn't boot??


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - TDC_PBP - 07-09-2020

PROGRESS! I flashed the BSP uboot onto the MicroSD card Ubuntu install and it actually (I think) tried to boot! Unfortunately, it got stuck on a lot of GPT-related error messages (see attached log), and I can't figure out how to fix them (flashing the BSP uboot probably messed up some stuff). Ideas? Is there a way to fix the GPT from the recovery command line with the gpt (or other) command?
.txt   log.txt (Size: 70.09 KB / Downloads: 401)


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - wdt - 07-09-2020

When you flash uboot (and friends), it is easiest to flash whole 16M
But that will overwrite mbr (1 sector) or gpt-mbr (34 sectors)
So, the trick is to save it first, 1 sector or 34, depending on disk partition system,
and then write it back at end, a lot easier than typing a bunch of numbers,
all of which have to be right
The easiest way to get whole 16M is a mrfixit install on SD, updated
Also a good emergency recovery SD
Save all this on usb key (16M, original 16M (you may change mind), mbr, all appropriately named)


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - Syonyk - 07-10-2020

Sorry, I'm totally out of ideas. Are you sure that whatever you're writing the SD card with is correct? Not writing from a VM or anything that might drop USB packets?

You might try reading it back and validating before you try to boot. Something is seriously wrong if you're getting GPT header magic mismatches, and I've no idea where in your setup it is.


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - FeMike - 11-17-2020

Sorry for bumping an older thread, but do we have to use ubuntu? I'm not that experienced to know what to mix and match. I currently have Manjaro running on the Emmc, can I use this on my current Manjaro to have deep sleep?


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - tophneal - 11-17-2020

(11-17-2020, 02:25 PM)FeMike Wrote: Sorry for bumping an older thread, but do we have to use ubuntu? I'm not that experienced to know what to mix and match. I currently have Manjaro running on the Emmc, can I use this on my current Manjaro to have deep sleep?

The BSp uboot package in the OP is actually Manjaro's BSP uboot. You can download and install it from their repos, and if you do it through terminal, it'll give you the line-by-line instructions to write it to the emmc, too!


RE: Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound - FeMike - 11-19-2020

(11-17-2020, 03:08 PM)tophneal Wrote:
(11-17-2020, 02:25 PM)FeMike Wrote: Sorry for bumping an older thread, but do we have to use ubuntu? I'm not that experienced to know what to mix and match. I currently have Manjaro running on the Emmc, can I use this on my current Manjaro to have deep sleep?

The BSp uboot package in the OP is actually Manjaro's BSP uboot. You can download and install it from their repos, and if you do it through terminal, it'll give you the line-by-line instructions to write it to the emmc, too!
wasn't sure and I read thru the pages to see before asking. Thank you for clearing that up for me.