It appears that edits to the instructions for building the disk.img and
burning the CF card are being made.  This is a noble undertaking.  I
struggled to figure out a build pattern that works for me.  A good step by
step document on this would be most useful.  

The issues/problems/resolutions I brought up will hopefully provide those of
you who know what you are doing with some insight into what the unwashed
masses are struggling with.  Stuff that seems mindless and obvious to many
of you, may indeed be a mystery of the universe some of us.

Derrick is correct about my description of using "makeimage.sh".  I
miss-spoke.  Where I get the problem is when I use "dd" to actually copy the
disk.img to the CF card.  This seems to work more reliably when there are no
pre-existing partitions on the CF card.  

I am playing with various sizes for disk.img.  This is probably why removing
previous partitions helps for my situation.  Now that you mention it, this
makes perfect sense.  If image size is same, no need to clear old partition.
Cool.

DD and CAT both work pretty much the same?  No significant
advantage/disadvantage to either.  Cool.  

Derrick was also correct about the use of "cat" or "dd" against the device,
not an individual partition.  For this one I blame fat fingers on the
keyboard.  Knew what I wanted to say but my devious digits sabotaged me.

These are examples of why I would be hesitant to attempt to modify the
documentation myself.  I fear instructions from me would be more confusing
than helpful.  But I hope the issues I highlighted might help anyone who
takes this task on to better understand their audience.  Many of us out here
know just enough about what we are doing to be very dangerous.

What I did was create a "cheat sheet".  The cheat sheet is just a simple
text document with the build steps laid out.  I quite literally "cut &
paste" the commands into a terminal window to perform my build.  As I don't
do it everyday, this helps me because a month from now I would have
forgotten how to do it.  My cheat sheet follows.


GHendershot's build cheat sheet:


Get the latest:
Start in /root/

svn co https://svn.sourceforge.net/svnroot/astlinux/trunk astlinux/trunk

Update existing:
Start in /root/astlinux/trunk

svn update https://svn.sourceforge.net/svnroot/astlinux/trunk

cd astlinux/trunk
cp astlinux.config .config

make oldconfig
make menuconfig
make


At this point, make any modifications to the build that are required.
The build is located at "cd /root/astlinux/trunk/build_i586/root".
1)  insert custom sound files at /stat/var/lib/asterisk/sounds
2)  modify /boot/grub/grub.conf to permit boot from secondary IDE channel
(LEX NEO)
3)  modify defaults in /stat/etc/rc.conf (machine name, domain, time zone)


Now make the image (as root)


./makeimage.sh 64 <change size in MB to suit need>

->  Feedback from MAKEIMAGE.SH  <-

I will create a 'flat' hard disk image with

  cyl=130                  <- note this number for later
  heads=16                 <- note this number for later
  sectors per track=63     <- never seen it change but note it anyway
  total sectors=131040
  total size=63.98 megabytes

Writing: [] Done.

I wrote 67092480 bytes to disk.img.

The following line should appear in your bochsrc:
  ata0-master: type=disk, path="disk.img", mode=flat, cylinders=130,
heads=16, spt=63

You need to run fdisk manually to partition the image.
Please write down or memorize the following instructions:

press 'x' - extra functionality
press 'h' fill in heads - probably 16
press 's' fill in sectors - probably 63
press 'c' fill in cylinders - this changes - get value from "I will create"
above
press 'r' return to main menu
press 'n' to add new partition
press 'p' to choose primary partition
press '1' to set partition number
press Enter keys to choose default value of First Cylinder parameter.
press Enter keys to choose default value of Last Cylinder parameter.
press 'w' to write partition table and exit


grub> device (hd0) /dev/loop
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Copy image to CF card:

Note:
If CF card has old image on it and image size has changed, first use
FDISK to remove the existing partitions from the CF card.

CF card in USB reader use "dd if=disk.img of=/dev/sda;sync"
CF card in IDE slave use "dd if=disk.img of=/dev/hdb;sync"



Hope all this helps someone.

G.Hendershot




_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to