Mark,

First, assuming you're not working with 'trunk', do the following:

mkdir scripts
wget -P scripts -O shipit.sh 
'http://astlinux.svn.sourceforge.net/viewvc/astlinux/trunk/scripts/shipit.sh?revision=4337'
chmod a+x scripts/shipit.sh

and then if you need to use a particular port to ssh into your router, do:

export SHIPITPORT=22001 (or whatever #)


I usually upload to local routers where I'm inside the firewall, so port 22 
works fine (the default).

For the shipit.sh script to work best, you'll need to have root-ssh keys on 
your pbx.

You do this as:

ssh-copy-id -i ~/.ssh/id_rsa.pub r...@pbx


once to install your ssh public key on that machine.

Then after a successful instance of building an image, do:

scripts/shipit.sh N.N.N.N [reboot]


to upload a new image and restart the router. I don't recommend this for 
routers that aren't local... just in case you put the router into an 
unrebootable state.

And make sure that your VFAT partition has at least 60MB of space on it, 
because you will have two images... the newest one and the previous one (in 
/oldroot/cdrom/os.old) just in case you ever have to back out.

When you do need to back out, do the following...

mount -o remount,rw /oldroot/cdrom
cd /oldroot/cdrom
mv os os.broken
mv os.old os
sync
mount -o remount,ro /oldroot/cdrom
cd /
reboot


and that will put you back into the previous version of the build.

 From there, you can optionally do:

mount -o remount,rw /oldroot/cdrom
rm -rf /oldroot/cdrom/os.broken
mount -o remount,ro /oldroot/cdrom


to get the broken image off your system.

Can someone with editorial capabilities put whatever parts of this are 
appropriate into the wiki?

Mark: let me know if you have questions.

Thanks,

-Philip


On 8/22/10 6:10 AM, Mark Phillips wrote:
> This is what I followed to do my build. However, the docs just kinda
> stop right when it gets to the useful part.
>
>
>
> On 08/22/2010 01:12 AM, Darrick Hartman wrote:
>> Mark,
>>
>> Please follow this step by step:
>>
>> http://doc.astlinux.org/devdoc:documentation
>>
>> Some of those scripts are out-dated and should be removed.  The above
>> documentation is the current method used to build AstLinux.  After
>> you've followed, that ask away with any other questions.
>>
>> Darrick
>>
>> On 08/21/2010 09:48 PM, Mark Phillips wrote:
>>> Hi Folks,
>>>
>>> Are there any instructions on how to compile AstLinux?
>>>
>>> I've been able to download the sources and do an initial toolset build
>>> and AstLinux compile thanks to the devdoc notes but I'm unsure as to how
>>> to proceed.
>>>
>>> I'm left with 2 new files after the "make"; makeimage.sh and
>>> makerunnix.sh. Both of these scripts fail with various file not found
>>> errors etc. However I am left with a "disk.img" file and a mounted
>>> runnix environment in /mnt/runnix.
>>>
>>> Am I on the right track here?
>>


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to