My blog is running on current software..again.
But major Raspberry Pi news:
It is now running on Gentoo.
But still lot to do, forgot the login..:))
Why is this a big thing?
Well, I only have Gentoo on my VirtualBox here.
And mounting a SD Card does not work, at least as a non Windows device.
So, create a hdd.img.
dd if=/dev/zero of=hdd.img bs=1024 count=15360000
15GB, my SD is 16GB and I am not sure, how broken it is.
Fdisk that image:
fdisk /mnt/vir/hdd.img
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /mnt/vir/hdd.img: 14.7 GiB, 15728640000 bytes, 30720000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5b32974e
Device Boot Start End Sectors Size Id Type
/mnt/vir/hdd.img1 2048 268287 266240 130M c W95 FAT32 (LBA)
/mnt/vir/hdd.img2 268288 30719999 30451712 14.5G 83 Linux
Oh yeah, /mnt/vir?
Well, my vdi was only 8GB, so I needed a new HDD on that VM ..
And mounted it quickly there.
And now the complicated part:
Get those partitions mounted.
For that we need to create some loop devices:
losetup -o 1048576 --sizelimit 137362944 /dev/loop1 hdd.img
losetup -o 137363456 --sizelimit 15728639488 /dev/loop2 hdd.img
From here on just follow the directions given in the Gentoo Wiki.
Copy the hdd.img to Windows and write it on the SD Card.
Next Steps:
– Get Login working (should be adjusting /etc/shadow
)
– Cross Compilation (I have no idea..yet)