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
  Cant boot into an OS trashtendenz 3 663 10-23-2024, 03:49 AM
Last Post: chaylengordon
  3 days in, slow/stuck or no boot. lgmpbp2 30 3,688 09-05-2024, 08:49 AM
Last Post: lgmpbp2
  Unable to boot? YossiS 4 383 09-04-2024, 10:35 AM
Last Post: wdt
  Audio Issues alvinsmith 1 459 08-10-2024, 01:50 AM
Last Post: sparkie
  upgrading u-boot--what version? where to get it? bsammon 11 2,610 05-22-2024, 09:33 AM
Last Post: wdt
  uboot wont boot to SD card after upgrade jbradley419 7 2,280 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 630 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 3,723 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 1,468 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 1,044 11-22-2023, 11:47 AM
Last Post: fxc

Forum Jump:


Users browsing this thread: 1 Guest(s)