Ernesto Sanchez | 2 Dec 2011 12:48
Favicon

Alix 3d2 rescue system

I'm trying to make a rescue system for Alix 3D2, the original idea is to 
boot from a usb-stick and restore the file system of the compact flash 
burn the image again. Unfortunately TinyBIOS not support booting from 
USB devices, so I'm trying to do it from the grub installed on compact 
flash, I thought it could use the fallback option of grub ever tried 
making usb boot first and then the compact flash the problem is that 
grub does not detect the usb-stick.

I have also tried to copy the kernel and initrd to the compact fash 
keeping the root filesystem on / dev/sda1 and start correctly when the 
usb-stick is plugged in but not plugged when booting the kernel with a 
small shell saying no could not find the file system.

Does anyone have any ideas or suggestions to implement this system?

Thank you very much.

--

-- 
Ernesto Sanchez
Punky Tse | 2 Dec 2011 15:44
Favicon

Re: Alix 3d2 rescue system

Hi Ernesto,

Perhaps PXEBoot is your only option.

Regards,
Punky

On 12/2/2011 7:48 PM, Ernesto Sanchez wrote:
> I'm trying to make a rescue system for Alix 3D2, the original idea is 
> to boot from a usb-stick and restore the file system of the compact 
> flash burn the image again. Unfortunately TinyBIOS not support booting 
> from USB devices, so I'm trying to do it from the grub installed on 
> compact flash, I thought it could use the fallback option of grub ever 
> tried making usb boot first and then the compact flash the problem is 
> that grub does not detect the usb-stick.
>
> I have also tried to copy the kernel and initrd to the compact fash 
> keeping the root filesystem on / dev/sda1 and start correctly when the 
> usb-stick is plugged in but not plugged when booting the kernel with a 
> small shell saying no could not find the file system.
>
> Does anyone have any ideas or suggestions to implement this system?
>
> Thank you very much.
>

--

-- 

Regards,
Kim-man "Punky" Tse
(Continue reading)

Teco Boot | 2 Dec 2011 16:39
Picon

Re: Alix 3d2 rescue system

You can boot from CF with grub & kernel & initrd & NFS-server. 
With some luck, no console is needed.
After booting, CF is free.
On 0.8.0, I use the following lines in menu.lst:

root    (hd0,0)
kernel  /boot/vmlinuz-3.0.0-voyage boot=live netboot=nfs nfsroot=10.1.1.1:/home/voyage-0.8.0
live-getty noautologin console=ttyS0,9600n8
initrd  /boot/initrd.img-3.0.0-voyage-live

I use a copy of initrd from the 0.8.0 live image. Updating the tarball initrd is also an option, then the same
initrd file can be used for normal operation and netboot. But first busybox (and others?) must be instaled
and initrd be updated. Busybox is a little to big to include in tarball (Punky?).

Teco

Op 2 dec. 2011, om 15:44 heeft Punky Tse het volgende geschreven:

> Hi Ernesto,
> 
> Perhaps PXEBoot is your only option.
> 
> Regards,
> Punky
> 
> On 12/2/2011 7:48 PM, Ernesto Sanchez wrote:
>> I'm trying to make a rescue system for Alix 3D2, the original idea is to boot from a usb-stick and restore
the file system of the compact flash burn the image again. Unfortunately TinyBIOS not support booting
from USB devices, so I'm trying to do it from the grub installed on compact flash, I thought it could use the
fallback option of grub ever tried making usb boot first and then the compact flash the problem is that grub
(Continue reading)

Rich E Neese | 3 Dec 2011 20:57
Picon

Creating iso's

I need a more step by step of building a iso with voyage.

is there  such documnet or can some one take some time and go over
making a iso step by step ?
Punky Tse | 4 Dec 2011 04:14
Favicon

Re: Creating iso's

Here:

http://linux.voyage.hk/develop

On 12/4/2011 3:57 AM, Rich E Neese wrote:
> I need a more step by step of building a iso with voyage.
>
> is there  such documnet or can some one take some time and go over
> making a iso step by step ?
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux@...
> http://list.voyage.hk/mailman/listinfo/voyage-linux

--

-- 

Regards,
Kim-man "Punky" Tse

* Open Source Embedded Solutions and Systems
   - Voyage Linux (http://linux.voyage.hk)
   - Voyage ONE   (http://linux.voyage.hk/voyage-one)
   - Voyage MPD   (http://linux.voyage.hk/voyage-mpd)
* Voyage Store   (http://store.voyage.hk)
Steen Pedersen | 4 Dec 2011 11:26
Picon

problems with executing scripts during boot

Hi I need to execute a script during booting (I need to make sure the
extern USB HDD is mounted - which sometime it isn't). I think that
sometime Voyage starts so fast that it isn't ready when Voyage tries
to mount it.
I therefore would like to remount it, restart Samba and Minidlna late
in the booting process.

So I would like to execute this script (waitforusb) during booting.
Therefore I made the file waitforusb and put it here;
/etc/init.d/waitforusb

Waitforusb contains this:
#!/bin/sh
echo "sleep 20 then mount"
sleep 20
mount -a
echo "restart samba"
sleep 5
/etc/init.d/samba restart
sleep 10
minidlna -R

Then I did:
#chmod 755 /etc/init.d/waitforusb

Then I made links in the different runlevels
#ln -s /etc/init.d/waitforusb /etc/rcS.d/S25waitforusb
#ln -s /etc/init.d/waitforusb /etc/rc2.d/S25waitforusb
#ln -s /etc/init.d/waitforusb /etc/rc3.d/S25waitforusb
#ln -s /etc/init.d/waitforusb /etc/rc4.d/S25waitforusb
(Continue reading)

Picon
Favicon
Gravatar

RE: problems with executing scripts during boot

I got this problem.
With squeeze the init process run differently
You have to put a header like:
vi /etc/init.d/waitforusb
#!/bin/sh
### BEGIN INIT INFO
# Provides:       waitforusb
# Required-Start: $all
# Required-Stop: $network
# Default-Start:  2 3 5
# Default-Stop:
# Description:    Wait my usb disk
### END INIT INFO

echo "sleep 20 then mount"
sleep 20
mount -a
echo "restart samba"
sleep 5
/etc/init.d/samba restart
sleep 10
minidlna -R

run 
insserv waitforusb

and it should be OK

or run you script in /etc/rc.local

(Continue reading)

Gustin Johnson | 4 Dec 2011 17:49
Picon

Re: problems with executing scripts during boot

It is also a good idea to use the update-rc.d program to create the
actual links.

On Sun, Dec 4, 2011 at 5:54 AM, Thierry Museux - www.fwt.fr - <tm@...> wrote:
> I got this problem.
> With squeeze the init process run differently
> You have to put a header like:
> vi /etc/init.d/waitforusb
> #!/bin/sh
> ### BEGIN INIT INFO
> # Provides:       waitforusb
> # Required-Start: $all
> # Required-Stop: $network
> # Default-Start:  2 3 5
> # Default-Stop:
> # Description:    Wait my usb disk
> ### END INIT INFO
>
> echo "sleep 20 then mount"
> sleep 20
> mount -a
> echo "restart samba"
> sleep 5
> /etc/init.d/samba restart
> sleep 10
> minidlna -R
>
> run
> insserv waitforusb
>
(Continue reading)

Steen Pedersen | 4 Dec 2011 18:08
Picon

Re: problems with executing scripts during boot

Thank you both

As the easiest solution was the update-program I tried the update-rc.d
command - and now everything works

Steen

On Sun, Dec 4, 2011 at 5:49 PM, Gustin Johnson <gustin@...> wrote:
> It is also a good idea to use the update-rc.d program to create the
> actual links.
>
> On Sun, Dec 4, 2011 at 5:54 AM, Thierry Museux - www.fwt.fr - <tm@...> wrote:
>> I got this problem.
>> With squeeze the init process run differently
>> You have to put a header like:
>> vi /etc/init.d/waitforusb
>> #!/bin/sh
>> ### BEGIN INIT INFO
>> # Provides:       waitforusb
>> # Required-Start: $all
>> # Required-Stop: $network
>> # Default-Start:  2 3 5
>> # Default-Stop:
>> # Description:    Wait my usb disk
>> ### END INIT INFO
>>
>> echo "sleep 20 then mount"
>> sleep 20
>> mount -a
>> echo "restart samba"
(Continue reading)

Frank Hoeflich | 6 Dec 2011 04:17
Picon
Favicon

Install to regular file

Folks:

    I've done well installing my Voyage 0.6.5 and 0.7.5 systems directly to compact flash for my ALIX via
voyage.update from the SDK.  Is anyone out there installing directly to a dd'able, loopback-mounted
regular file for production?  I tried whacking a couple of the scripts to make this happen but still haven't
gotten a good burn from the file produced.  I can burn to CF first and then dd off the result to a regular file
(works), but would like to eliminate the burn step for production purposes.  Any shared experience will be appreciated.

--Frank

Gmane