Booting Debian from SD-card (Was: [fso] sending pin failed)

Rask Ingemann Lambertsen rask at
Sun Jan 18 21:45:06 CET 2009

On Sat, Jan 17, 2009 at 09:07:08PM +0100, Tomas Nackaerts wrote:
> i was also unable to boot a distribution like debian or hackable from a 8gb 
> sd-card, but i'm not sure it is related. 

   You're being cryptic here. Please explain how you know it isn't working.
Anyway, here's how I installed the Debian distribution to an 8 GB SD-card on
a Freerunner (still with Om 2007.2 in the NAND flash ROM):

--- begin Debian on Freerunner HOWTO ---
Install Debian on Neo Freerunner/1973 such that the default u-boot setup
works and dpkg, which doesn't support vfat partitions, is still happy.

Create two partitions (vfat+ext2) but install as if we only use one partition.
Manually copy the kernel image to the vfat partition after installation or
upgrade of the kernel package.

The details:
Read the instructions from the Debian Wiki and download for your

Remap the partitions for

# ln -s /dev/mmcblk0p2 /tmp/mmcblk0p1
# ln -s /dev/mmcblk0 /tmp/mmcblk0

Optionally: Verify your setup and set the system time:

# SD_PART1_FS=vfat SD_DEVICE=/tmp/mmcblk0 ./ testing time

Partition and format your SDcard. Either do so yourself or use

# SD_PART1_FS=vfat ./ partition format

Run the rest of the installation. Feel free to add options as you see fit:

# SINGLE_PART=true SD_DEVICE=/tmp/mmcblk0 ./ mount debian apt fso configuration kernel

Copy the kernel image to the vfat partition:

# mount -t vfat /dev/mmcblk0p1 /media/card
# cp -p /mnt/debian/boot/uImage.bin /media/card
# umount /media/card

Optionally: Copy your existing SSH setup:
# cp -a ~root/.ssh /mnt/debian/root

Unmount the Debian partition:

# SINGLE_PART=true SD_DEVICE=/tmp/mmcblk0 ./ unmount

Clean up:

# rm -f /tmp/mmcblk0 /tmp/mmcblk0p1 ./
--- end Debian on Freerunner HOWTO ---

Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

More information about the community mailing list