https://elinux.org/index.php?title=EBC_Exercise_22_Recovering&feed=atom&action=historyEBC Exercise 22 Recovering - Revision history2024-03-28T08:54:36ZRevision history for this page on the wikiMediaWiki 1.31.0https://elinux.org/index.php?title=EBC_Exercise_22_Recovering&diff=291536&oldid=prevYoder: Fixed typo2013-10-11T15:35:06Z<p>Fixed typo</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 15:35, 11 October 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l2" >Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{YoderHead}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{YoderHead}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>What do you do if you've been working on the kernel or u-boot and now your BeagleBone Black won't boot? Here's what works if you've <del class="diffchange diffchange-inline">saven't </del>the .orig files as suggested. If you didn't save the files, goto [[EBC_Exercise_03_Installing_a_Beagle_OS]] and reflash the whole thing, see you in 45 minutes.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>What do you do if you've been working on the kernel or u-boot and now your BeagleBone Black won't boot? Here's what works if you've <ins class="diffchange diffchange-inline">saved </ins>the .orig files as suggested. If you didn't save the files, goto [[EBC_Exercise_03_Installing_a_Beagle_OS]] and reflash the whole thing, see you in 45 minutes.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>If you did make backups, follow along, this is much faster.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>If you did make backups, follow along, this is much faster.</div></td></tr>
<!-- diff cache key elinux:diff::1.12:old-283466:rev-291536 -->
</table>Yoderhttps://elinux.org/index.php?title=EBC_Exercise_22_Recovering&diff=283466&oldid=prevYoder: Initial Page2013-09-03T18:56:22Z<p>Initial Page</p>
<p><b>New page</b></p><div>[[Category:ECE497]]<br />
{{YoderHead}}<br />
<br />
What do you do if you've been working on the kernel or u-boot and now your BeagleBone Black won't boot? Here's what works if you've saven't the .orig files as suggested. If you didn't save the files, goto [[EBC_Exercise_03_Installing_a_Beagle_OS]] and reflash the whole thing, see you in 45 minutes.<br />
<br />
If you did make backups, follow along, this is much faster.<br />
<br />
== Getting the SD card image ==<br />
The first step is to set up an SD that you can boot off. Before, you created an SD card that would copy an image to the on board eMMC. This is different, now you will be booting off the SD card. No need for the 45 minute wait.<br />
<br />
Go to the [http://beagleboard.org/latest-images latest images] and download the first link (Angstrom Distribution (BeagleBone, BeagleBone Black - 4GB SD) 2013-06-20). Copy it to your SD card like you did for the eMMC image.<br />
<br />
== Boot off the SD card ==<br />
Once your SD card is ready, <br />
# power off the Bone<br />
# put SD card in the reader on the Bone<br />
# hold down the '''S2''' button. It's the one near pin 45 of P8<br />
# power up the bone, while still holding S2<br />
# wait for all the LEDs to light and the release S2.<br />
You are now booting off the SD card. Once booted, login and mount the eMMC partition.<br />
<br />
== Mounting the FAT partition ==<br />
If you are recovering from changing u-boot you need to mount the first (FAT) partition.<br />
beagle$ '''mkdir /media/BONE'''<br />
beagle$ '''mount /dev/mmcblk1p''1'' /media/BONE/'''<br />
beagle$ '''cd /media/BONE/'''<br />
beagle$ '''ls'''<br />
App Drivers LICENSE.txt README.md autorun.inf u-boot.img.new uEnv.txt<br />
Docs ID.txt MLO START.htm u-boot.img u-boot.img.orig<br />
<br />
You can now move the original u-boot image back<br />
beagle$ '''rm u-boot.img'''<br />
beagle$ '''cp u-boot.img.orig u-boot.img'''<br />
beagle$ '''cd ..'''<br />
beagle$ '''umount BONE'''<br />
<br />
== Mounting the ext4 partition ==<br />
If it's the kernel you need to recover, you need to mount the second (ext4) partition. It's like before, but you change one digit.<br />
beagle$ '''mkdir /media/BONE'''<br />
beagle$ '''mount /dev/mmcblk1p''2'' /media/BONE/'''<br />
beagle$ '''cd /media/BONE/'''<br />
beagle$ '''ls'''<br />
bin dev home lost+found mnt run sys usr<br />
boot etc lib media proc sbin tmp var<br />
beagle$ '''cd boot'''<br />
beagle$ '''ls'''<br />
am335x-bone.dtb omap3-evm.dtb uEnv.txt<br />
am335x-boneblack.dtb omap3-tobi.dtb uImage<br />
am335x-evm.dtb omap4-panda-a4.dtb uImage-3.8.13<br />
am335x-evmsk.dtb omap4-panda-es.dtb uImage-3.8.13-bone26.1<br />
am335x-tester.dtb omap4-panda.dtb uImage-3.8.13-bone27<br />
omap2420-h4.dtb omap4-sdp.dtb uImage_bak<br />
omap3-beagle-xm.dtb omap4-var-som.dtb<br />
omap3-beagle.dtb omap5-evm.dtb<br />
beagle$ '''rm uImage'''<br />
beagle$ '''ln -s uImage-3.8.13 uImage'''<br />
<br />
And then clean up<br />
beagle$ '''cd ../..'''<br />
beagle$ '''umount BONE'''<br />
<br />
== Rebooting ==<br />
You can't just run the '''reboot''' command at this point. You need to power off the Bone, remove the SD card and then reboot.<br />
beagle$ '''halt'''<br />
One the lights are off, eject the SD card and power up. You should be recovered.<br />
<br />
{{YoderFoot}}</div>Yoder