04-28-2022, 10:23 AM (This post was last modified: 04-28-2022, 10:36 AM by Pino64.
Edit Reason: Facepalm emoticon not working
)
(04-28-2022, 03:01 AM)wdt Wrote: replace /dev/emmc with appropriate /dev/mmcblkX (where X=0,1,2,,, whichever)
lsblk,,, the one with .../boot[0,1]
Do NOT use any partition, just the whole raw device
Oops , sorry for making you go Facepalm.
I think I eventually succeeded to make a copy but when I open the resulting 4.2MB file in GHex I see only 00’s on every line.
Quote:I think that with my limited linux skill set my best bet at the moment is to get Tow-Boot to work from the SPI with that new SD card and then see if I can get Bullseye to boot off the emmc with that.
Unfortunately the Tow-Boot spi installer doesn’t want to boot from the new class 4 SD card either. Maybe I’ll have to go the nandwrite way..
Since in OP you said there was a green led (I assume no SD inserted) there must be something on emmc
When no uboot (really idbloader) can be found, there are no leds, you think it is dead
So, you must have done something wrong
Point ghex at /dev/emmc (mmcblk....) and go sector 64
idbloader ALWAYS (all versions) has file signature 3b 8c dc fc
This is how the boot rom 'knows' that is 'right' code (and to stop looking)
or dd if=/dev/emmc of=idb.test bs=512 skip=64 count=512 (idbloader varies,, 160K-210K)
(04-28-2022, 11:04 AM)wdt Wrote: Since in OP you said there was a green led (I assume no SD inserted) there must be something on emmc
When no uboot (really idbloader) can be found, there are no leds, you think it is dead
So, you must have done something wrong
Point ghex at /dev/emmc (mmcblk....) and go sector 64
idbloader ALWAYS (all versions) has file signature 3b 8c dc fc
This is how the boot rom 'knows' that is 'right' code (and to stop looking)
or dd if=/dev/emmc of=idb.test bs=512 skip=64 count=512 (idbloader varies,, 160K-210K)
Yes, there is a green LED when booting without an SD or with the Tow-Boot installer SD.
Yesterday I dd’d the emmc (mmcblk2) while chrooted into the emmc. I tried again just now while booted into Debian 11 from SD with the emmc mounted. The result was the same: Only 00’s in the display pane and dots in the ASCII column.
Then I tried your last (imdb.test) suggestion. This produced something more interesting. I’m afraid I have no idea how to point GHex to sector 64 so I tried a search for 3b 8c dc fc but that did not produce anything. There is human readable information in the ASCII column but nothing that means much to me..
04-29-2022, 12:54 PM (This post was last modified: 04-29-2022, 12:57 PM by wdt.)
[quote pid="109500" dateline="1651172012"]
Then I tried your last (imdb.test) suggestion. This produced something more interesting. I’m afraid I have no idea how to point GHex to sector 64 so I tried a search for 3b 8c dc fc but that did not produce anything. There is human readable information in the ASCII column but nothing that means much to me..
[/quote]
chroot will not change device enumeration
attached mrfixit bsp uboot (ver2.0),, if it works,,, if not send me msg with email addy
For output use seek,,, idb seek=64 (default bs=512(B)), uboot seek=8 bs=1M, trust seek=12 bs=1M
(example: dd if=trust.img of=/dev/mmcblk2 seek=12 bs=1M)
(input uses skip)
----
to convert sectors to Bytes, *512,, so 64*512,, but this is decimal, ghex uses hex
so 0x200*0x40 = 0x8000
use kcalc for simplicity
Quote:## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: u-boot-update
default l0
menu title U-Boot menu
prompt 0
timeout 10
so.... check LABEL= is right,,,, sudo blkid ,,,, and that the dtb is where stated, not in a dtb directory
the line(s) linux /vmlinuz-5.10.0-13-arm64
Strongly suggest that /boot is a separate partition, should show that in blkid above
If there is only 1 partition, that is wrong
explanation: uboot looks for (and I'm not sure what order) boot.scr, extlinux/extlinux.conf, efi/aarch64.efi
(or boot/boot.scr,, boot/extlinux/extlinux.conf ,,, etc)
If there is only 1 partition, those are preceded by /boot/
If there are 2, well, fstab and mounting has not happened yet, so as far as uboot
knows, these are in the root of what uboot recognizes as the file system
If you have a 3.3V serial cable and flip the headphone/serial switch then you will know more
Even then, some dtb's do not set up video correctly
My extlinux.conf for buster also has (in the append line) modprobe.blacklist=panfrost
and maxcpus=6 (This will just make it a LOT slower,using the 4 m55 cores)
I won't have much time to do anything until at least the end of the week. I have a UART that I bought together with my PBP. I will not be around my main computer for potentially months though so I'll bring my keyboard equipped PP and see if I can have that hooked up with my PBP at some point.
Some busy time has passed since my last post but I am quarantining on the other side of the planet now and have some time on my hands again.
I brought the UART but decided it is probably wise not to use it as it likely uses the wrong voltage: I got it from the Pine store together with my PBP al the way back in 2019.
Starting with the good news though: I finally managed to install Tow-Boot to SPI! Disabling the eMMC with the switch on the mainboard did the trick.
The not so good news is that booting Debian from the eMMC is still not working. The process stops when starting the kernel, with a black screen and a red power LED.
To make matters worse, I no longer can boot Debian from the SD card I have been using lately either. The boot process seems to get a little further than from the eMMC: Past a red to a green LED, but the screen remains black.
I’ll try to attach some PDFs with the screen output during the boot process in the hope someone smarter than me sees something in there that might help make my PBP useable again.
My digital life has been unraveling a bit lately. I lost my iPad last week on the first day of several months away from home. My phone is a dumb one so I’m now using a borrowed iPhone with a broken mic as a mini-iPad until my new iPad arrives in 2-3 weeks time. They seem to be in short supply.
Luckily I was able to get Tow-Boot installed and Mobian reinstalled on my PP yesterday as it hadn’t been booting since a failed upgrade to bookworm a while ago.