|
Subject: Root on SD with Altboot HOWTO Newsgroups: gmane.comp.handhelds.openzaurus.user Date: 2005-07-19 20:07:02 GMT (3 years, 50 weeks, 1 day, 7 hours and 44 minutes ago) Hello, i just got a Zaurus 5500 last friday and have been hacking it a lot and asking stupid questions on IRC. Here's my first contribution to the community, a quick doc how to set up boot from SD using altboot. Thanks for CoreDump for the software and support on my first installation. This doc uses scripts from root on SD howto. Feel free to edit and publish this howto on openzaurus web pages. Altboot documentation can be found at: http://hentges.net/misc/openzaurus/docs/altboot.shtml Setup used while making this howto is a 5500 with 256mb SD card and 256mb CF card and OpenZaurus 3.5.3. 1. Get the 64-0 zImage from http://www.openzaurus.org/official/unstable/3.5.3/sl5000,sl5500/zImage- collie-64-0-20050407102515.bin you don't need the ram disk so use all internal ram as memory. 2. Flash. 3. Boot the system. Set up networking so you can ssh to the Zaurus (this is not necessary if you enter commands locally and install files via memory card). 4. SSH to zaurus, partition and format the SD card. root <at> collie:~# umount /media/card root <at> collie:~# fdisk /dev/mmcda ### create a single large partition and write to disk: ### Device Boot Start End Blocks Id System /dev/mmcda1 1 1933 247408 83 Linux root <at> collie:~# mkfs.ext2 /dev/mmcda1 root <at> collie:~# mount -t ext2 /dev/mmcda1 /media/card/ 5. Create and format a image file to boot from (a ext2 image on ext2 partition): root <at> collie:~# mkdir /media/card/boot-images ### you can set the image size with count parameter in kb. This creates a 150mb image file: ### root <at> collie:~# dd of=/media/card/boot-images/opie-rootfs.bin if=/dev/zero bs=1024 count=150000 root <at> collie:~# mkfs.ext2 /media/card/boot-images/opie-rootfs.bin 6. Mount the image root <at> collie:~# losetup /dev/loop0 /media/card/boot-images/opie- rootfs.bin root <at> collie:~# mkdir /media/image root <at> collie:~# mount -t ext2 /dev/loop0 /media/image 7. Install the rboot scripts from root on SD howto: root <at> collie:~# wget http://mysite.verizon.net/~dfsteen/rboot-3.5.3.tar.gz root <at> collie:~# gunzip rboot-3.5.3.tar.gz root <at> collie:~# tar xvf rboot-3.5.3.tar 8. Copy the root to image file: ### i'm not sure what this does - it is from rboot's scripts: ### root <at> collie:~# mkdir /dev.tmp root <at> collie:~# mount -o move /dev /dev.tmp root <at> collie:~# cp -a /dev.tmp/mmcda1 /dev.tmp/loop0 /dev root <at> collie:~# mount -o move /dev.tmp /dev root <at> collie:~# rmdir /dev.tmp root <at> collie:~# cd rboot-3.5.3/ root <at> collie:~/rboot-3.5.3# ./copy_files.sh /media/image/ 9. Install altboot: root <at> collie:~/rboot-3.5.3# cd .. root <at> collie:~# wget http://hentges.net/tmp/altboot/altboot_20050618- r1_collie.ipk root <at> collie:~# ipkg install altboot_20050618-r1_collie.ipk 10. That's all folks! root <at> collie:~# sync root <at> collie:~# reboot On next boot altboot asks for a master password. Enter it. Altboot works much like grub. It prompts to press any key to choose where to boot. If user doesn't respond in time, it boots the last used boot method. Altboot displays a menu if user presses a key in time. Go to menu and choose [4] Boot from SD card. Now you should have more space on root: root <at> collie:~# df -h Filesystem Size Used Available Use% Mounted on /dev/loop1 14.1M 12.8M 1.3M 91% /media/ROM /dev/mmcda1 234.0M 147.1M 74.8M 66% /media/card /dev/loop1 141.9M 24.2M 110.3M 18% / /dev/mtdblock4 141.9M 24.2M 110.3M 18% / tmpfs 30.5M 56.0k 30.4M 0% /var /dev/hda1 124.8M 81.1M 43.8M 65% /media/cf -- -- Ville Ranki oh3gbq ville.ranki@... 040-757 2533 http://www.vip.fi/~cosmo/ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click |
|
|