Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound
#11
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.
#12
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??
#13
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: 187)
#14
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)
#15
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.
#16
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?
#17
(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!
#18
(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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  reset sound after suspend to memory (deep sleep) Der Geist der Maschine 15 3,964 09-21-2021, 01:08 PM
Last Post: JGkn
  UBOOT Errors after flashing new os to mmc aechanio 4 417 08-18-2021, 07:07 PM
Last Post: aechanio
  Sound stuttering on Manjaro gnome after latest kernel upgrade? pjsf 0 302 07-13-2021, 10:37 PM
Last Post: pjsf
Question Flashing updated uboot in Manjaro TDC_PBP 5 3,397 05-28-2021, 01:29 PM
Last Post: wdt
Music No sound on PBP default installation ivek 9 3,649 05-09-2021, 05:58 PM
Last Post: binholz
  Installing cinnamon on Manjaro PBP [SOLVED] quixote 1 575 05-09-2021, 01:39 PM
Last Post: quixote
Question Help: Pinebook Pro will not enter sleep [Manjaro 20.04] EverythingIsInput 49 29,924 05-07-2021, 06:21 AM
Last Post: line72
  After update in Ubuntu bionic mate system crashed Wawe 2 801 04-18-2021, 04:52 AM
Last Post: Wawe
  Anyone can get deep sleep fully works with NVME rootfs? plumlis 0 746 01-11-2021, 09:58 AM
Last Post: plumlis
  UBOOT - Mainline not booting from SD card / BSP OK Anarethos 1 1,084 01-10-2021, 12:33 AM
Last Post: Anarethos

Forum Jump:


Users browsing this thread: 2 Guest(s)