On Sun, Feb 14, 2016 at 6:26 PM, joelk <[email protected]> wrote:
>
> I downloaded the debian 7.9 console image
> (bone-debian-7.9-console-armhf-2015-11-03-2gb.img) and wrote it to a micro
> sd card using dd:
>
> dd bs=4M if=bone-debian-7.9-console-armhf-2015-11-03-2gb.img of=/dev/sdb
>
> I notice that after flashing, the sdb1 partition on the card begins at
> sector 2048.  The original formatting of these cards have the data area
> beginning at sector 8192 and other sd card images that I've written (e.g.
> Raspbian Jessie) also start at sector 8192.  I was under the impression that
> this was done to reduce the number of pages that have to be rewritten when
> data is saved to the card.
>
> Am I wrong about that?  Is there a reason why this debian image starts at
> 2048?  Is there a way to control where the image is written to the sd card?

Feel free to play around with this setting yourself:

bone-debian-7.9-console-armhf-2015-11-03-2gb.img came from
debian-7.9-console-armhf-2015-11-03.tar.xz

So:

wget 
https://rcn-ee.net/rootfs/bb.org/release/2015-11-03/console/debian-7.9-console-armhf-2015-11-03.tar.xz
tar debian-7.9-console-armhf-2015-11-03.tar.xz
cd debian-7.9-console-armhf-2015-11-03

The "2048" = 1MB setting is hardcoded here:

https://github.com/RobertCNelson/omap-image-builder/blob/103aea2682053767c333a64586155dead9fbf7c2/tools/setup_sdcard.sh#L1466

So modify it to "4" = 8192...

Then run:

sudo ./setup_sdcard.sh \
--img-2gb bone-debian-7.9-console-armhf-2015-11-03 \
--dtb beaglebone --beagleboard.org-production \
--boot_label BEAGLEBONE --rootfs_label rootfs \
--bbb-old-bootloader-in-emmc --hostname beaglebone \
--enable-systemd

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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.

Reply via email to