eastein / you-got-linuxed

0 stars 0 forks source link

virtualized boot-up from image #1

Open eastein opened 9 years ago

eastein commented 9 years ago

http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/

eastein commented 9 years ago

http://xecdesign.com/compiling-a-kernel/ shows the compile process for this kernel.

eastein commented 9 years ago

for my work, I intend on making it compile the kernel rather than downloading it from this xecdesign site... I don't know that guy so I don't want to just download & run his kernel.

eastein commented 9 years ago

I'm getting some fun issues on this right now - ubuntu 12.04 isn't supported without upgrading qemu.. so I'm gonna put this on hold for now.

http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=65641

eastein commented 9 years ago

https://github.com/vsinitsyn/fdisk.py/blob/master/fdisk.py is a good source of how to use pyparted

eastein commented 9 years ago

[14 10:54:04] < Zygo> I run btrfs on the Pis now, for three reasons: 1) wear levelling (ext4 pounds (1.812 kilograms) the same blocks over and over), 2) compression for that little bit more space, and 3) integrity checking, so the device fails immediately and visibly, instead of limping forward like a zombie for months with stuff half-broken

eastein commented 9 years ago

[14 11:32:18] < Zygo> nothing has failed since I started using btrfs on Pis in August [14 11:32:31] < Toba> oh nice [14 11:32:38] < Toba> what was the process of switching FSes like? [14 11:32:44] < Toba> I've never switched the root fs of an installed os [14 11:32:53] < Toba> did you build your own image? [14 11:32:55] < Toba> that was btrfs? [14 11:32:59] < Toba> or something else [14 11:32:59] < Zygo> the sane way to do it is to rsync the whole thing somewhere else, mkfs.btrfs, and rsync it back [14 11:33:15] < Toba> so mount the partition that the pi image came with [14 11:33:17] < Toba> copy the files out [14 11:33:23] < Toba> make a new fs on the devnode [14 11:33:24] < Zygo> but before you do that, you need to install btrfs-tools and rebuild the kernel with btrfs support [14 11:33:33] < Toba> oh i already have a kernel toolchain for arm set up [14 11:33:37] < Toba> for cross compiling [14 11:33:41] < Toba> that wont be too hard [14 11:33:45] < Toba_> :)

eastein commented 9 years ago

< Zygo> if btrfs is in the kernel then you just need to set rootfstype and rootflags in /boot/cmdline.txt