- Identify the partition of microSD card
Run sudo fdisk -l
, insert the microSD card and re-run sudo fdisk -l
again. Identify the newly inserted device which partition is normally /dev/sdc
or /dev/mmcblk0
, then export it as variable and enter Sudo mode:
sudo su
export sd=/dev/mmcblk0
- Format the SD card
Warning: This will destroy all the data from the microSD card.
Run fdisk $sd
and type in the following (<E>
means enter, ignore the spaces):
o <E> n <E> <E> <E> +30M <E> t <E> c <E> n <E> <E> <E> w <E>
For your information, this will create 2 partitions on the disk (fat32
and linux
).
- Installation
Build the Linux filesystem
mkfs.vfat ${sd}1
mkfs.ext4 ${sd}2
Mount the partitions
mkdir -p /mnt/boot /mnt/root
mount ${sd}1 /mnt/boot
mount ${sd}2 /mnt/root
Download Webconverger (be patient)
rm -rf /mnt/root/*
git clone git://github.com/Webconverger/rpi2.git /mnt/root
Setup the boot partition
cp -r /mnt/root/boot/* /mnt/boot/
Unmount the partitions and ready to go
sync
umount /mnt/boot /mnt/root
For more info, please refer to https://Webconverger.org/rpi2/.
Add boot_append=debug
to your configuration or append debug
to fat partition's cmdline.txt
Arch Linux ARM installation - http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2