nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

freedombox.img

Fri Sep 14, 2012 3:21 am

Is there a chance i could test the freedombox.img on the raspberry pi?
https://www.freedomboxfoundation.org/code/
with this download link:
http://hackervisions.org/doc/freedombox ... 011.img.xz
If no, could i emulate it in qemu?
Speaking of that, i would also like to emulate raspbian or debian image with qemu or, if possible, VirtualBox.

Thanks (bit off-topic here, but i didn't find a better place)

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: freedombox.img

Sun Sep 16, 2012 3:28 pm

AFAIK freedombox has no usable features yet, it's just a basic debian... so why not use the official image and configure it to do whatever you want (proxy, tor, adbloock, ptp, etc)?
32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

Re: freedombox.img

Mon Sep 17, 2012 2:24 pm

I found this:
https://balau82.wordpress.com/2010/04/1 ... -qemu-arm/
but am not sure if it is what i am looking for. arm is heavy stuff.

stefek99
Posts: 16
Joined: Mon Jul 30, 2012 8:54 am

Re: freedombox.img

Sat Sep 29, 2012 12:52 am

I was just about to ask whether RasPi would ran freedombox-kickstarter-release.img.xz

To succed freedom box will be probably a box :)

nadir
Posts: 112
Joined: Sun Jun 10, 2012 5:45 am

Re: freedombox.img

Sat Sep 29, 2012 12:41 pm

I gave up for now, it is beyond my level of knowledge,
but the following is as far i could get.

In short i used parted to find the info about the img,
dd to extract the needed partition
and qemu-user-static to make use of chroot.

1) download and extract
mkdir ~/Distributionen/FreedomBox && cd !$
download freedombox-kickstarter-release.img.xz from the torrent
xz --decompress freedombox*gz
from now on:
su

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 = 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


http://www.digriz.org.uk/debian/debootstrap
http://www.andremiller.net/content/moun ... sing-linux

fjr
Posts: 95
Joined: Thu Aug 15, 2013 8:18 pm

Re: freedombox.img

Sat Oct 05, 2013 11:06 am

https://www.youtube.com/watch?v=e1LpYX2zVYg
In the video a freedombox board member says, version 1 might be released 2013.
He explicitly mentions raspberry pi as applicable hardware.

Return to “Debian”