Hello all,
I have upgraded to lucid and some problems with rootstock appeared.
Rootstock couldn't finish successfully.
First issue: Rootstock's error message "792: Bad substitution"
Second one: Rootstock's error message "segmentation fault"
After some googling, I ended up with the following work-arounds:
Edit /usr/bin/rootstock file:
1) first line, change "#!/bin/sh" to "#!/bin/bash"
2) function setup_kernel_image(), line 381 for me, change
"KERNEL_IMG_REL=${KERNEL_IMG_REL/_*_armel.deb}" to "KERNEL_IMG_REL=$
{KERNEL_IMG_REL%%_*}"
Hope it will be useful and time-saving for those who struggle with the
same problem.
Cheers
Meereck
Hmm, doesnt seem to be solved.
Perhaps, too many seed packages cause a problem.
The following fails:
"
#!/bin/sh
sudo rootstock --fqdn BeagleBoard --login ubuntu --password lucid --
imagesize 2G --dist lucid \
--serial ttyS2 --seed mc,minicom,openssh-
server,apache2,php5,libapache2-mod-php5,wget,linux-firmware,wireless-
tools,usbutils,build-essential,xfce4,gdm,xubuntu-gdm-theme,xubuntu-
artwork \
--script fixup.sh --components "main universe multiverse" \
--kernel-image http://rcn-ee.net/deb/lucid/v2.6.33.4-l3/linux-image-2.6.33.4-l3_1.0lucid_armel.deb
"
ends up with:
"
Setting up build-essential (11.4build1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
Processing triggers for python-support ...
/usr/bin/rootstock: line 282: 32083 Segmentation fault qemu-
system-arm $QEMUOPTS -append "${APPEND}" > $QEMUFIFO 2>&1
I: Virtual Machine done
I: Creating tarball from rootfs
I: Mounting temporary Image
I: ARM rootfs created as /home/meereck/BeagleBoard/UbuntuLucid/armel-
rootfs-201005282218.tgz
I: Extracting vmlinuz from *.deb
cp: cannot stat `/tmp/tmp.wGlYBYizCA/tmpmount/boot/initrd.img-*': No
such file or directory
"
Has anyone experienced similar behaviour?
Thanks
Yeap, both are known bugs... the bashism fix has been submitted,
upstream (ubuntu) just hasn't released rootstock with the fix it yet..
https://bugs.launchpad.net/project-rootstock/+bug/575854
the other bug can be fixed by dropping 'xfce4 and gdm' from your seed..
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/532733
https://bugs.launchpad.net/project-rootstock
Regards,
Thanks,
will it work similarly if I install xfce4 and gdm packages after the
board is running?
Regards
Meereck
Yeap, that'll work just fine...
Regards
Still not working:
"
#!/bin/sh
sudo rootstock --fqdn BeagleBoard --login ubuntu --password lucid --
imagesize 2G --dist lucid \
--serial ttyS2 --seed mc,minicom,openssh-
server,apache2,php5,libapache2-mod-php5,wget,linux-firmware,wireless-
tools,usbutils,build-essential \
--swapsize 256 --script fixup.sh --components "main universe
multiverse" \
--kernel-image http://rcn-ee.net/deb/lucid/v2.6.33.4-l3/linux-image-2.6.33.4-l3_1.0lucid_armel.deb
"
yields:
"
Setting up build-essential (11.4build1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
/usr/bin/rootstock: line 282: 16627 Segmentation fault qemu-
system-arm $QEMUOPTS -append "${APPEND}" > $QEMUFIFO 2>&1
I: Virtual Machine done
I: Creating tarball from rootfs
I: Mounting temporary Image
I: ARM rootfs created as /home/meereck/BeagleBoard/UbuntuLucid/armel-
rootfs-201005311235.tgz
I: Extracting vmlinuz from *.deb
cp: cannot stat `/tmp/tmp.pFO8QWTIYD/tmpmount/boot/initrd.img-*': No
such file or directory
"
It might be related to this bug: https://bugs.launchpad.net/project-rootstock/+bug/585810
However, if I run it without "--swapsize 256", it hangs.
I have no other clues what to do:(
regards M.
Still not working:
"
#!/bin/sh
sudo rootstock --fqdn BeagleBoard --login ubuntu --password lucid --
imagesize 2G --dist lucid \
--serial ttyS2 --seed mc,minicom,openssh-
server,apache2,php5,libapache2-mod-php5,wget,linux-firmware,wireless-
tools,usbutils,build-essential \
--swapsize 256 --script fixup.sh --components "main universe
multiverse" \
--kernel-image http://rcn-ee.net/deb/lucid/v2.6.33.4-l3/linux-image-2.6.33.4-l3_1.0lucid_armel.deb
"
yields:
"
Setting up build-essential (11.4build1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
/usr/bin/rootstock: line 282: 16627 Segmentation fault qemu-
system-arm $QEMUOPTS -append "${APPEND}" > $QEMUFIFO 2>&1
I: Virtual Machine done
I: Creating tarball from rootfs
I: Mounting temporary Image
I: ARM rootfs created as /home/meereck/BeagleBoard/UbuntuLucid/armel-
rootfs-201005311235.tgz
I: Extracting vmlinuz from *.deb
cp: cannot stat `/tmp/tmp.pFO8QWTIYD/tmpmount/boot/initrd.img-*': No
such file or directory
"
It might be related to this bug: https://bugs.launchpad.net/project-rootstock/+bug/585810
Yeap it is. Two nasty bugs in rootstock...
I have no other clues what to do:(
Remove some more 'seed' values and install later.. apache, build-essential
Regards,