Updating the SBC Installation
From HotDec
[edit]
Introduction
To be able to keep track of things there is the "official" root directory in /home3/sbc . Any fixes/update you need to make to any SBC should also be repoduced here.
[edit]
Updating the SBC root directory using /home3/sbc
- Make a compressed tar achive of home3/sbc (the example puts the tar file in /tmp)
ssh user@elegy.mie.uiuc.edu cd /home3 tar cvjf /tmp/sbc_root.tar.bz2 sbc
- Connect the harddrive (with linux already on it) to the SBC. It is not possible (AFAIK) to overwrite the files on the partition that is currently being run off of.
- Start the SBC, use grub to boot into a linux installation on a partition other than the one to be updated
- Mount the partition that is going to be updated (for example the flash drive)
mount /dev/nftla1 /mnt
- Clear out all the files on the paritition (be carefull)
rm -rf /mnt/*
- Copy tar file of root directory to mounted drive
scp user@elegy.mie.uiuc.edu:/home3/sbc_root.tar.bz2 /tmp
- Uncompress and unpack tar file
cd /mnt tar xvjf /tmp/sbc_root.tar.bz2
- Unmount the partition (this will flush the write buffers to the actuall drive -- may take a while for flash)
cd / umount /mnt
[edit]
Updating the SBC kernel/root filesystem
- Download most recent version of busybox. Configure, make, make install
- Compare old library files on SBC, copy updated versions into build directory
- tar the new_build directory.
- connect the SBC to the peripheral board, video board and SBC-update hard drive
- boot from the hda1 partition
- mount /dev/nftla1 on /mnt
- scp new_build.tar to the SBC-update hard drive /root directory
- delete old filesystem for the SBC
- untar new_build.tar onto the SBC
- sync
- check /etc/init.d/default.sh for correct CRAFT ID.
- reboot
- boot onto the DOC-SBC
- mount / -o rewritable,rw
- do ldconfig to reconfigure the libraries
- check to make sure all apps work (sshd, scp, ssh in particular)
