[Freedombox-discuss] freedombox.img with qemu

tornow at riseup.net tornow at riseup.net
Fri Sep 21 16:27:20 UTC 2012


On Sun, 16 Sep 2012 12:00:23 +0000
freedombox-discuss-request at lists.alioth.debian.org wrote:

>  Re: freedombox.img with qemu

After a couple of days, and help from another user,  the best i could
find is using chroot and qemu-arm-static, after "unpacking" the img with
parted and dd,  
like this:


1) download freedombox.img and xz --decompress it.

2) parted to extract the ext2 from the img

# parted freedombox-kickstarter-release.img
GNU Parted 2.3
Using /home/me/Distributionen/Freedombox/freedombox-kickstarter-release.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit
Unit? [compact]? B
(parted) print
Model: (file)
Disk /home/me/Distributionen/Freedombox/freedombox-kickstarter-release.img: 2001731584B
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1048576B 135266303B 134217728B primary fat32
2 135266304B 2001731583B 1866465280B primary ext2

(parted)

3) dd with the output from parted:

skip is Number 2 from parted output, Start size and count is Number 2,
Size size
 skip = 135266304 / 512 = 264192
count = 1866465280/ 4 = 466616320
hence:
dd if=freedombox-kickstarter-release.img of=chroot.img bs=512
skip=264192 count=466616320

4) chroot
apt-get install qemu-user-static
mount -o loop chroot.img /media/freedombox
cp /usr/bin/qemu-arm-static /media/freedombox/usr/bin
chroot /media/freedombox

--------
I am not sure if that is of any use, because i couldn't find a way to
make the chroot act as if it was an external device yet
(i would like to test freedombox-privxoy and plinth in the local
browser). 


 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/freedombox-discuss/attachments/20120921/cf6374da/attachment.pgp>


More information about the Freedombox-discuss mailing list