corrupt PBP
#3
While I have not had to use these commands,,, busybox has fdisk, dd, mount, and fsck
So.... first try a fsck
fdisk -l to find correct partition,, maybe /dev/mmcblk2p2
fsck -y /dev/something
(to fix "bad" uboot)
To blank uboot on emmc... only if you are carefull (in busybox OR os)
fdisk -l ... to find correct mmcblkX,,, what is X
insert usb stick
mkdir /mnt ; mount /dev/sda1 /mnt ; mount ; ls -la /mnt (all cmds should complete without error, someplace to save mbr and 1st 16M)
(is emmc mbr or gpt partitioned, fdisk will tell,, 1 sector for mbr,, 34 sectors for gpt)
dd if=/dev/emmc of=/mnt/emmc.mbr count=(1 OR 34) (emmc appropriate mmcblkX,,, NOT mmcblkXpY)
dd if=/dev/emmc of=/mnt/1st-16.emmc bs=1M count=16
(blanking)
dd if=/dev/zero of=/dev/emmc bs=1M count=16
(restore mbr)
dd if=/mnt/emmc.mbr of=/dev/emmc (so emmc is available for whatever)
the ONLY uboot is on SD, with no SD will not boot, probably will ONLY boot SD****
So, copy the 1st 16MB from some SD to emmc, overwrite with saved emmc mbr
Which uboot? Your guess is as good as mine
But maybe you want to take off back?
**** to boot emmc, rename boot.scr OR extlinux.conf to some other name (on SD)
  Reply


Messages In This Thread
corrupt PBP - by jbradley419 - 07-15-2024, 08:21 AM
RE: corrupt PBP - by tophneal - 07-15-2024, 10:45 AM
RE: corrupt PBP - by wdt - 07-16-2024, 12:22 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)