Hmm I'm getting this error with freedom maker..<br><br>Running install script from source/install.sh<br>chroot: cannot run command `/install.sh': No such file or directory<br>make: *** [stamp-dreamplug-rootfs] Error 127<br>
<br><br>Markus<br><br><div class="gmail_quote">On Sun, Jul 8, 2012 at 11:33 PM, Markus Sabadello <span dir="ltr"><<a href="mailto:markus.sabadello@gmail.com" target="_blank">markus.sabadello@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Jul 6, 2012 at 12:28 AM, Nick Hardiman <span dir="ltr"><<a href="mailto:nick@internetmachines.co.uk" target="_blank">nick@internetmachines.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If, like me, you want to follow Nick's instructions for building a fresh image, here's the 18 step procedure I followed.<br>
<br>
I have a little sysadmin skill but I've never used multistrap or other esoteric build tools.<br>
<br>
I boooted the new image and got as far as the console login. I stopped there and thought I'd send these instructions on in case anyone wants a crack at the procedure over the weekend, before the hackfest.<br>
<br>
What do you think?<br>
<br>
Nick Hardiman<br>
<a href="mailto:nick@internetmachines.co.uk" target="_blank">nick@internetmachines.co.uk</a><br>
@intmachines<br>
<br>
<br>
<br>
Get ready<br>
<br>
1.      Start your workstation.<br>
2.      Use a Debian Wheezy OS (my host is called cms01). A virtual image, such as a VirtualBox image, is fine. Usually.<br>
3.      Use the root account.<br>
<br>
Prepare an SD card.<br>
<br>
4.      Find a microSD card with SD card holder. It must be at least 2GB in size.<br>
5.      Insert the card into your workstation.<br>
6.      Install a partition editor.  Install parted if you are a masochist.<br>
apt-get install parted<br>
7.      Create 2 partitions.  Use cfdisk, parted, gparted or similar.<br>
cfdisk  /dev/sdb<br>
a.      First partition: 128meg (no smaller or the kernel copy will run out of room and make - see below - will end with an error).<br>
b.      Second partition: 2GB (more or less, it doesn't matter).<br>
8.      Make a note of the SD card’s device name. Mine is /dev/sdb (my workstation’s layout is simple: one disk called /dev/sda and nothing else defined).<br>
9.      Format the two partitions.<br>
a.      First partition: FAT<br>
mkdosfs /dev/sdb1<br>
b.      Second partition: ext3<br>
mkfs.ext3 /dev/sdb2<br>
10.     Create a mountpoint on your workstation.<br>
mkdir /media/freedom<br>
11.     Mount the second partition.<br>
mount /dev/sdb2 /media/freedom/<br></blockquote></div></div><div><br>Did you forget this here?<br><br>mkdir /media/freedom/boot<br><br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


12.     Mount the first partition.<br>
mount /dev/sdb1 /media/freedom/boot/<br>
13.     Check your work.<br>
root@cms01:/media/freedom# mount<br>
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)<br>
…<br>
/dev/sdb2 on /media/freedom type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)<br>
/dev/sdb1 on /media/freedom/boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro)<br>
root@cms01:/media/freedom#<br>
<br>
Clone the git repository.<br>
<br>
14.     Install git.<br>
root@cms01:~# apt-get install git<br>
Reading package lists... Done<br>
Building dependency tree<br>
Reading state information... Done<br>
The following extra packages will be installed:<br>
  git-man liberror-perl rsync<br>
Suggested packages:<br>
  git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn<br>
  git-email git-gui gitk gitweb<br>
The following NEW packages will be installed:<br>
  git git-man liberror-perl rsync<br>
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.<br>
Need to get 8,086 kB of archives.<br>
After this operation, 15.3 MB of additional disk space will be used.<br>
Do you want to continue [Y/n]?<br>
Get:1 <a href="http://ftp.uk.debian.org/debian/" target="_blank">http://ftp.uk.debian.org/debian/</a> wheezy/main liberror-perl all 0.17-1 [23.6 kB]<br>
…<br>
root@cms01:~#<br>
15.     Clone Nick Daly’s repository.<br>
root@cms01:~# git clone <a href="https://github.com/NickDaly/freedom-maker.git" target="_blank">https://github.com/NickDaly/freedom-maker.git</a><br>
Cloning into 'freedom-maker'...<br>
remote: Counting objects: 377, done.<br>
remote: Compressing objects: 100% (174/174), done.<br>
remote: Total 377 (delta 193), reused 366 (delta 182)<br>
Receiving objects: 100% (377/377), 46.40 MiB | 175 KiB/s, done.<br>
Resolving deltas: 100% (193/193), done.<br>
root@cms01:~#<br>
<br>
<br>
Create the Debian OS.<br>
<br>
16.     Install tools.<br>
apt-get install multistrap qemu-user-static u-boot-tools git mercurial<br>
Even though this is mentioned in the Makefile, I had to manually install to avoid the error<br>
./mk_dreamplug_rootfs: line 72: multistrap: command not found<br>
17.     Change to the new directory.<br>
root@cms01:~# cd /root/freedom-maker/<br>
root@cms01:~/freedom-maker#<br>
18.     Kick off.<br>
make weekly-card<br>
<br>
<br>
<br>
The next part took about an hour, but required no input from me. Packages were downloaded. Commands like this were run.<br>
...<br>
apt-get  -o Apt::Architecture=armel -o Dir::Etc::TrustedParts=/root/freedom-maker/build/dreamplug/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/root/freedom-maker/build/dreamplug/etc/apt/trusted.gpg.d/trusted.gpg -o Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o Dir=/root/freedom-maker/build/dreamplug/ -o Dir::Etc=/root/freedom-maker/build/dreamplug/etc/apt/ -o APT::Default-Release=* -o Dir::State=/root/freedom-maker/build/dreamplug/var/lib/apt/ -o Dir::State::Status=/root/freedom-maker/build/dreamplug/var/lib/dpkg/status -o Dir::Cache=/root/freedom-maker/build/dreamplug/var/cache/apt/ update<br>


...<br>
What does that mean? I don’t know.<br>
<br>
<br>
Errors like this occurred.<br>
...<br>
Setting up sysvinit (2.88dsf-22.1) ...<br>
sysvinit: creating /run/initctl<br>
sysvinit: restarting...init: timeout opening/writing control channel /run/initctl<br>
.init: timeout opening/writing control channel /run/initctl<br>
.init: timeout opening/writing control channel /run/initctl<br>
.init: timeout opening/writing control channel /run/initctl<br>
.init: timeout opening/writing control channel /run/initctl<br>
.init: timeout opening/writing control channel /run/initctl<br>
.init: timeout opening/writing control channel /run/initctl<br>
.init: timeout opening/writing control channel /run/initctl<br>
 failed.<br>
...<br>
What does that mean? I still don’t know.<br>
<br>
<br>
There was good news like this.<br>
...<br>
Multistrap system installed successfully in /root/freedom-maker/build/dreamplug/.<br>
<br>
Copying the source directory to the FreedomBox root.<br>
...<br>
<br>
<br>
There was an enormous amount of this.<br>
...<br>
bin/bash<br>
      818092 100%    7.07MB/s    0:00:00 (xfer#1, to-check=1102/1123)<br>
bin/cat<br>
       42736 100%  362.91kB/s    0:00:00 (xfer#2, to-check=1101/1123)<br>
bin/chgrp<br>
       54996 100%  383.62kB/s    0:00:00 (xfer#3, to-check=1100/1123)<br>
...<br>
<br>
<br>
This stuff runs on and on for thousands of lines, until<br>
…<br>
var/log/prosody/prosody.err<br>
         402 100%    0.90kB/s    0:00:00 (xfer#31612, to-check=4/40089)<br>
var/log/prosody/prosody.log<br>
         859 100%    1.92kB/s    0:00:00 (xfer#31613, to-check=3/40089)<br>
var/mail/<br>
var/opt/<br>
var/spool/<br>
var/spool/mail -> ../mail<br>
var/spool/rsyslog/<br>
var/tmp/<br>
var/www/<br>
var/www/index.html<br>
         177 100%    0.40kB/s    0:00:00 (xfer#31614, to-check=0/40089)<br>
<br>
sent 295603363 bytes  received 632817 bytes  1145981.35 bytes/sec<br>
total size is 593183522  speedup is 2.00<br>
...<br>
<br>
<br>
File copying seems to have finished. Then it’s onto the kernel.<br>
...<br>
cp kernel/* /media/freedom/boot/<br>
cp build/dreamplug/boot/* /media/freedom/boot/<br>
sudo rm /media/freedom/sbin/copy2dream<br>
<br>
<br>
<br>
This won’t work. My SD card is device sdb, not sdc.<br>
...<br>
sudo sh -c "sed -e 's/sdc1/sda1/g' < source/etc/fstab > /media/freedom/etc/fstab"<br>
sync<br>
sleep 1<br>
umount /media/freedom/boot<br>
umount /media/freedom<br>
Build complete.<br>
...<br>
<br>
<br>
Finally an image is copied and zipped up.<br>
...<br>
dd if=/dev/sdb of="freedombox-unstable_`date +%Y.%m%d`.img" bs=1M<br>
3781+1 records in<br>
3781+1 records out<br>
3965190144 bytes (4.0 GB) copied, 266.174 s, 14.9 MB/s<br>
Image copied.  The microSD card may now be removed.<br>
tar -cjvf "freedombox-unstable_`date +%Y.%m%d`.tar.bz2" "freedombox-unstable_`date +%Y.%m%d`.img"<br>
freedombox-unstable_2012.0705.img<br>
root@cms01:~/freedom-maker#<br>
<br>
The end. Hooray! The SD card is ready for the DreamPlug.<br>
<br>
<br>
<br>
_______________________________________________<br>
Freedombox-discuss mailing list<br>
<a href="mailto:Freedombox-discuss@lists.alioth.debian.org" target="_blank">Freedombox-discuss@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss</a><br>
</blockquote></div></div></div><br><br clear="all"><br><br>
</blockquote></div><br><br clear="all"><br><br>