PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - 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: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD (/showthread.php?tid=16559) |
RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - Pino64 - 04-28-2022 (04-28-2022, 03:01 AM)wdt Wrote: replace /dev/emmc with appropriate /dev/mmcblkX (where X=0,1,2,,, whichever) 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.. RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - wdt - 04-28-2022 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) RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - Pino64 - 04-28-2022 (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 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.. RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - wdt - 04-29-2022 [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 RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - Pino64 - 04-30-2022 Thanks a lot for mailing me mrfixit's uboot package and your instructions dtw! Writing the img files to eMMC seemed to go well: Quote:sudo dd if=uboot.img of=/dev/mmcblk2 seek=8 bs=1M I may have gotten something wrong though as the PBP still doesn't boot from the eMMC. The green power LED is the only sign of life.. RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - wdt - 04-30-2022 That is the right set of commands, it still boots from SD? Maybe look at extlinux.conf (on emmc) to see if it is right? RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - Pino64 - 04-30-2022 Yes, it still boots from SD. extlinux.conf: Quote:## /boot/extlinux/extlinux.conf RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - wdt - 04-30-2022 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) RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - Pino64 - 05-01-2022 Quote:sudo blkid 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. RE: PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD - Pino64 - 05-10-2022 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. On a side-note, as my PP will be my main computer for the time being: Is it safe to connect unpowered devices like USB thumb drives or (SD) card readers to the phone? The Wiki only mentions power sources, megi seems to be much more restrictive. https://wiki.pine64.org/wiki/PinePhone_(Pro)_Keyboard#Safety https://xnux.eu/pinephone-keyboard/faq.html#charging Any help will be greatly appreciated! |