Intermittent Boot Issues
#12
(06-03-2020, 08:50 PM)lot378 Wrote: Were any error checks omitted in the excerpt above? The dd commands send stdout and stderr to null nothing to read.

Doing that without checking for errors or testing to verify may be a bad action.

The script I am looking at does a file check to make sure the image files exist. That is pretty much it...


Code:
echo "Updating U-Boot..."
SYSPART=$(findmnt -n -o SOURCE /)
if echo $SYSPART | grep -qE 'p[0-9]$' ; then
DEVID=$(echo $SYSPART | sed -e s+'p[0-9]$'+''+)
else
DEVID=$(echo $SYSPART | sed -e s+'[0-9]$'++)
fi
echo Identified $DEVID as device to flash uboot to...
if [ -f $DIR/idbloader.img ] ; then
echo "Upgrading idbloader.img..."
dd if=$DIR/idbloader.img of=$DEVID bs=32k seek=1 conv=fsync &>/dev/null
fi
if [ -f $DIR/uboot.img ] ; then
echo "Upgrading uboot.img..."
dd if=$DIR/uboot.img of=$DEVID bs=64k seek=128 conv=fsync &>/dev/null
fi
if [ -f $DIR/trust.img ] ; then
echo "Upgrading trust.img..."
dd if=$DIR/trust.img of=$DEVID bs=64k seek=192 conv=fsync &>/dev/null
fi


I wanted to sanity check before I ran it; so, echoed the dd commands instead.

The wiki identifies the eMMC as mmcblk1 (see: https://wiki.pine64.org/index.php/Pinebo...le_Storage). It enumerates as mmcblk2 on my PBP. All the partitions match up otherwise.


Messages In This Thread
Intermittent Boot Issues - by MrRoosevelt - 06-02-2020, 12:46 AM
RE: Intermittent Boot Issues - by KiteX3 - 06-02-2020, 09:15 AM
RE: Intermittent Boot Issues - by jiyong - 06-02-2020, 12:54 PM
RE: Intermittent Boot Issues - by khanku - 06-03-2020, 02:55 AM
RE: Intermittent Boot Issues - by yurievitch - 06-03-2020, 12:01 PM
RE: Intermittent Boot Issues - by Arwen - 06-03-2020, 09:07 AM
RE: Intermittent Boot Issues - by yurievitch - 06-04-2020, 07:20 AM
RE: Intermittent Boot Issues - by MrRoosevelt - 06-04-2020, 10:35 AM
RE: Intermittent Boot Issues - by boggle - 06-11-2020, 09:15 PM
RE: Intermittent Boot Issues - by Twig - 06-03-2020, 09:08 AM
RE: Intermittent Boot Issues - by tophneal - 06-03-2020, 11:32 AM
RE: Intermittent Boot Issues - by Arwen - 06-03-2020, 12:05 PM
RE: Intermittent Boot Issues - by MrRoosevelt - 06-03-2020, 07:29 PM
RE: Intermittent Boot Issues - by charlespine - 06-03-2020, 09:35 PM
RE: Intermittent Boot Issues - by khanku - 06-04-2020, 12:56 AM
RE: Intermittent Boot Issues - by lot378 - 06-03-2020, 08:50 PM
RE: Intermittent Boot Issues - by MrRoosevelt - 06-03-2020, 09:16 PM
RE: Intermittent Boot Issues - by Arwen - 06-12-2020, 09:54 AM
RE: Intermittent Boot Issues - by KiteX3 - 06-12-2020, 11:57 AM
RE: Intermittent Boot Issues - by khanku - 06-21-2020, 06:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bonk to boot biketool 2 652 10-21-2025, 09:08 AM
Last Post: biketool
  3 days in, slow/stuck or no boot. lgmpbp2 34 20,339 06-11-2025, 08:53 AM
Last Post: lgmpbp2
  upgrading u-boot--what version? where to get it? bsammon 14 13,032 04-03-2025, 07:47 AM
Last Post: Tazdevl
  Problem: Wi-Fi Connectivity Issues on Pinebook Pro markwood00 1 4,520 02-05-2025, 03:56 AM
Last Post: waylonwesley
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 9,893 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 3,221 12-25-2024, 10:12 PM
Last Post: jessipinkman
  Cant boot into an OS trashtendenz 3 4,319 10-23-2024, 03:49 AM
Last Post: chaylengordon
  Unable to boot? YossiS 4 2,810 09-04-2024, 10:35 AM
Last Post: wdt
  Audio Issues alvinsmith 1 1,594 08-10-2024, 01:50 AM
Last Post: sparkie
  uboot wont boot to SD card after upgrade jbradley419 7 6,484 01-19-2024, 02:29 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)