Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound
#21
Yeah, you need a UART to troubleshoot further, then.

The reason the light doesn't come on with nothing on the eMMC and no SD card is because the firmware (loaded from eMMC or SD card) is what turns that light on.

There's a tiny bit of boot ROM in the system that looks on the SPI (hazardous to mess with - quite the pain to recover if you screw it up), the eMMC, then the SD card for the firmware files at the proper offsets. That firmware handles turning on the LED, general system bringup, and booting from, by default, the SD card then the eMMC. If you've got a bad firmware on the eMMC, the system won't progress to booting from the SD card (until you turn the switch off).

Serial will illuminate the problem. You don't have a 3.3V TTL USB to serial adapter and a spare 3.5mm stereo cord laying around? That's what I built mine from...
#22
Unfortunately I do not Sad . Would it be worth it to reflash the EMMC just to generate the dmesg log file? It wouldn't be live like UART, but at least then I could see what the error was, right? Fair warning: I am really new to the world of log files and UART debugging.
#23
Buy or build a proper adapter. Personally, I'd build an adapter as I've heard the Pine ones have some weird quirks to use, but... I also have a pile of TTL serial adapters laying around, and I've re-chipped most of them with proper FTDI chips. Wink
#24
What parts do I need to buy to build the adapter? I can probably find an aux cable to sacrifice, but I am really clueless on a) what parts to buy, and b) how to assemble the cable. If possible, could you link to the parts I will need on ebay US? Thanks!
#25
I'll tell you what you need, but it's on you to find parts.

You'll need a USB to TTL serial adapter that handles 3.3V (you must make sure it's 3.3V or you'll fry the board - a lot of them default to 5V, some are 5V only), then a 3 ring 3.5mm stereo headphone jack. I think the 4 ring ones work too, but that's not what I had laying around.

There are a few writeups floating around on how to wire stuff, though the pinout is on the wiki as well.;

However, if your cable uses at all standard colors, you'll put (on the TTL serial adapter side):
- Braid to ground
- White to RX
- Red to TX (optional, if you're just pulling logs off, no need to connect this)

Serial configuration is 1500000 baud (1.5Mbaud), 8N1, and you'll need to flip the switch inside the laptop to make the headphone jack work as the UART. See the wiki.
#26
Question 
Would this one work: https://www.ebay.com/itm/6-Pin-USB-2-0-t...0#rpdCntId? Also, what does the 3rd connection do (and why is it not necessary for pulling logs)?
#27
I'm not a huge fan of the CH340G, but as long as it does 1.5Mbaud, should be fine.

The third connection is the transmit line. From your remote machine to the device on the serial link... if all you want to do is receive from the remote device, you don't need the transmit line connected.

If you're not comfortable with serial links and such, this may not be the task for you.
#28
Question 
Would this one be better? https://www.ebay.com/itm/CP2102-FTDI-USB...SwOFFeNHTO It has an FTDI chip and comes with wires.
#29
Dude. As long as it's 3.3V, supported by your OS, and handles 1.5Mbaud, it'll work. Pick one. No idea how you set that one to 3.3V, some have jumpers, some require soldering.
#30
(06-23-2020, 02:08 PM)TDC_PBP Wrote:
(06-23-2020, 01:48 PM)Syonyk Wrote: And you unxz'd the image before copying it to the eMMC?

What does lsblk show on your eMMC after you've flashed the image and rebooted on the SD card?
After I flash the image, I can't boot from anything and just sit there with a yellow light forever. When I plugged the EMMC into my computer it looked like it had been flashed correctly  Huh . I am currently downloading a new image to see if the one I used the first few times was corrupt (I currently have flashed Q4OS to the EMMC just so I could boot again). I did unxz the file and DD the .img file, as well as use Etcher. On a side note, it seems Q4OS won't boot from SD even after flashing BSP uboot  Angry .

FWIW, I had the exact same experience trying to use ayufan's Ubuntu Focal image.  I could boot from SD, but dd to the emmc would not work.  

I ended up using Fedora, but I can't get audio working at all.


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to rewrite uboot to emmc pineitup 5 9,923 12-27-2020, 10:35 AM
Last Post: nightranger73
  How to install Ubuntu to eMMC and to install KDE (Neon) Wizzard 66 110,501 12-22-2020, 03:05 PM
Last Post: Wizzard
  Installing WPS Office on Manjaro brent.thierens 5 10,722 07-13-2020, 03:13 AM
Last Post: brent.thierens
Exclamation Flash dhivael's SPI uboot (risky) clover 51 60,193 06-20-2020, 03:24 PM
Last Post: craftkiller
  How to boot Manjaro from NVME with uboot on eMMC as400 47 64,140 06-07-2020, 02:37 AM
Last Post: as400
  Instructions for Installing VS Code on Manjaro clover 6 15,622 06-04-2020, 09:37 PM
Last Post: pfeerick
  Installing Docker on Pinebook Pro - update 1/18/20 SuperXkoodA 4 8,401 03-24-2020, 03:19 PM
Last Post: chaoskampf
  (almost) upstream uboot/atf User 15997 27 34,826 02-08-2020, 10:18 PM
Last Post: Natrox
  Quick Guide to installing Ubuntu Unity on your Pinebook Pro andybleaden@gmail.com 19 26,333 02-03-2020, 11:17 AM
Last Post: MIchael
  Installing Wine i386 on Pinebook Pro wrzomar 0 3,515 01-31-2020, 03:52 PM
Last Post: wrzomar

Forum Jump:


Users browsing this thread: 2 Guest(s)