u-Boot location on the disk
#1
Question 
(I've initially intended to ask in the Linux-specific sub-forum, but I guess this is not limited to Linux only. Corrections welcome)

To be ready for un-bricking my horrible experiments that are bound to come, I'm slowly working on gathering information on how this wonderful creature boots.

Mrfixit (thanks!) clarified on IRC that the u-Boot bootloader is stored in an off-set on the eMMC, not directly accessible (~not in one of the two actual partitions, I assume).
So my questions would be:
- Where is it exactly?
- How do I find it?
- How do I recognize that I have actually found it?


I have also had a look at the ChromiumOS image, and in it, there are two interesting files in /boot: boot.scr and bootloader.bin.
(disclaimer: I'm away from the PBP and SD card, so I may be misremembering the filenames. Corrections will follow.)
When I run "file boot.scr", this is identified as an u-Boot bootloader image. The other file is simply data.
==> this brings a side-question: can the bootloader then be stored completely in the /boot partition? Or am I misunderstanding the purpose of these two files?

Upon further googling and reading, I've stumbled upon these links:
https://linux-sunxi.org/Bootable_SD_card
https://linux-sunxi.org/Mainline_U-Boot

These suggest specific places on the eMMC for the location of u-boot. I have also noticed that there are "gaps" at the beginning of the mmcblk1 disk and between the two "readable" partitions.
I've tried to copy various amounts of data from the above start locations using dd into a file and then tried to identify them with "file", but had no luck so far.

Am I looking into the wrong place?
Am I applying a completely wrong approach to find and identify u-Boot?

Ultimately, the question can be boiled down to: Once I have a u-Boot binary, where do I put it on the disk?
Apologies if these questions are too dumb, but I sort of figured this might be useful to document somewhere on the forums/wiki.


Messages In This Thread
u-Boot location on the disk - by tsago - 10-28-2019, 04:30 AM
RE: u-Boot location on the disk - by fire219 - 10-28-2019, 09:24 AM
RE: u-Boot location on the disk - by Arwen - 10-28-2019, 04:22 PM
RE: u-Boot location on the disk - by z4v4l - 10-28-2019, 07:04 PM
RE: u-Boot location on the disk - by Arwen - 10-29-2019, 05:02 AM
RE: u-Boot location on the disk - by tllim - 10-30-2019, 08:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 3,536 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 159 12-25-2024, 10:12 PM
Last Post: jessipinkman
  Cant boot into an OS trashtendenz 3 815 10-23-2024, 03:49 AM
Last Post: chaylengordon
  3 days in, slow/stuck or no boot. lgmpbp2 30 4,893 09-05-2024, 08:49 AM
Last Post: lgmpbp2
  Unable to boot? YossiS 4 511 09-04-2024, 10:35 AM
Last Post: wdt
  upgrading u-boot--what version? where to get it? bsammon 11 3,237 05-22-2024, 09:33 AM
Last Post: wdt
  uboot wont boot to SD card after upgrade jbradley419 7 2,568 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 687 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 4,052 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 1,598 12-13-2023, 08:17 PM
Last Post: trillobite

Forum Jump:


Users browsing this thread: 2 Guest(s)