> > > *Read everything below before half fast attempting such procedure * > > > > *If I understand what you're asking here, yes it is possible. I've > experimented with this personally. I talk about what I've done here in a > blog post. > http://www.embeddedhobbyist.com/2015/09/beaglebone-black-working-with-debianlinux-images/ > <http://www.embeddedhobbyist.com/2015/09/beaglebone-black-working-with-debianlinux-images/>* > > > > > *So here is the idea. First you would want to backup the MBR liek this: $ > sudo dd if=/dev/sdb of=/home/william/mbr-sdb.bak bs=1M count=1* > *Second You write the wanted MLO / uboot.img file into the first 512k of the MBR. As demonstrated on Roberts eewiki guide - Which I think you linked to already ?*
Before attempting the second step here. You would need to use tar to backup the rootfs as well. Because in effect you do have to wipe out the partition table. but it can be restored. *That *should* leave the partition table intact. But in case it fails, you > can put the whole partition table, plus original MLO, and uboot.image back > on the sdcard like so.* > > *$ sudo dd if=/home/william/mbr-sdb.bak of=/dev/sdb bs=1M count=1* > > **OR** *It would probably be safer / easier to just dd the whole block device into an image file stored in a safe place* On Thu, Oct 8, 2015 at 2:20 PM, William Hermans <[email protected]> wrote: > Sorry not finished and accidentally hit "send". But if you need more > information on the steps. I can test, and duplicate exact step in order for > you to do the same - In a safe way. > > On Thu, Oct 8, 2015 at 2:19 PM, William Hermans <[email protected]> wrote: > >> *Sorry that this is probably a dumb question, but is it possible to not >>> blow* >>> * away the partition table since I just want to swap the MLO and >>> u-boot.img?* >> >> >> *Read everything below before half fast attempting such procedure* >> >> If I understand what you're asking here, yes it is possible. I've >> experimented with this personally. I talk about what I've done here in a >> blog post. >> http://www.embeddedhobbyist.com/2015/09/beaglebone-black-working-with-debianlinux-images/ >> >> So here is the idea. >> >> First you would want to backup the MBR liek this: $ sudo dd if=/dev/sdb >> of=/home/william/mbr-sdb.bak bs=1M count=1 >> >> Second You write the wanted MLO / uboot.img file into the first 512k of >> the MBR. As demonstrated on Roberts eewiki guide - Which I think you linked >> to already ? >> >> That *should* leave the partition table intact. But in case it fails, you >> can put the whole partition table, plus original MLO, and uboot.image back >> on the sdcard like so. >> >> $ sudo dd if=/home/william/mbr-sdb.bak of=/dev/sdb bs=1M count=1 >> >> *OR* >> >> It would probably be safer / easier to just dd the whole block device >> into an image file stored in a safe place. >> >> Actually, the whole process is very similar to the exact steps I've laid out in my blog post. Except that instead of resizing the partition smaller. You create the partition size however large you want it, and then untar the rootfs backup to that. The whole process is pretty complex, so if you have any questions or doubts. Ask prior to attempting such a procedure. As there are ways to at minimum get back to where you started if things go wrong. Mainly, start off with "dd-ing" the whole top level block device. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
