Jump to content

Reinit boot loader


reamond

Recommended Posts

Unfortunately I was very hasty and in connection to my goal to copy between sdcards I used Paragon disk manager to shrink my original partition. Like I mentioned... bad move.

 

And now the partition is not bootable. Paragon wrote that I need to

"reinit boot loader"

, but I can not find any information how to do it. I can not believe it can be complicated... and again I have no idea what to do? Any help....

/R

Link to comment
Share on other sites

First, you need to make sure there is at least 1MB of unused space before first partition.

Second, you need to write u-boot to your SD card:

Download u-boot package for your board, assuming it is Orange Pi One, use this: http://apt.armbian.com/pool/main/l/linux-u-boot-orangepione-default/linux-u-boot-orangepione_5.16_armhf.deb

Extract u-boot-sunxi-with-spl.bin from this package:

dpkg -x linux-u-boot-orangepione_5.16_armhf.deb /tmp 

Write u-boot image: if your card appeared as /dev/sda (you need to verify this and use appropriate device name), execute

dd if=/tmp/usr/lib/linux-u-boot-orangepione_5.16_armhf/u-boot-sunxi-with-spl.bin of=/dev/sda bs=1024 seek=8
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines