combine two similar scripts and fix error in the readme.txt file

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent b7acfb744a
commit b6239ae745

@ -461,15 +461,11 @@ These can be run from anywhere, but just in case change to "cd /boot/uboot"
Tools: Tools:
/tools/rebuild_uinitrd.sh "./tools/update_boot_files.sh"
Updated with a custom uImage and modules? Run "./tools/rebuild_uinitrd.sh" to regenerate the uInitrd used on boot... Updated with a custom uImage and modules or modified the boot.cmd/user.com files with new boot args? Run "./tools/update_boot_files.sh" to regenerate all boot files...
/tools/rebuild_uinitrd.sh "./tools/fix_zippy2.sh"
Modified boot.cmd or user.cmd and want to run your new boot args? Run "./tools/rebuild_uinitrd.sh" to regenerate boot.scr/user.scr...
/tools/fix_zippy2.sh
Early zippy2 boards had the wrong id in eeprom (zippy1).. Put a jumper on eeprom pin and run "./tools/fix_zippy2.sh" to update the eeprom contents for zippy2. Early zippy2 boards had the wrong id in eeprom (zippy1).. Put a jumper on eeprom pin and run "./tools/fix_zippy2.sh" to update the eeprom contents for zippy2.
@ -495,7 +491,7 @@ DSP work in progress.
script_readme script_readme
cat > ${TEMPDIR}/rebuild_uinitrd.sh <<rebuild_uinitrd cat > ${TEMPDIR}/update_boot_files.sh <<update_boot_files
#!/bin/sh #!/bin/sh
cd /boot/uboot cd /boot/uboot
@ -503,13 +499,6 @@ sudo mount -o remount,rw /boot/uboot
sudo update-initramfs -u -k \$(uname -r) sudo update-initramfs -u -k \$(uname -r)
sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-\$(uname -r) /boot/uboot/uInitrd sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-\$(uname -r) /boot/uboot/uInitrd
rebuild_uinitrd
cat > ${TEMPDIR}/boot_scripts.sh <<rebuild_scripts
#!/bin/sh
cd /boot/uboot
sudo mount -o remount,rw /boot/uboot
if ls /boot/uboot/boot.cmd >/dev/null 2>&1;then if ls /boot/uboot/boot.cmd >/dev/null 2>&1;then
sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Boot Script" -d /boot/uboot/boot.cmd /boot/uboot/boot.scr sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Boot Script" -d /boot/uboot/boot.cmd /boot/uboot/boot.scr
fi fi
@ -521,7 +510,7 @@ if ls /boot/uboot/user.cmd >/dev/null 2>&1;then
sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Reset Nand" -d /boot/uboot/user.cmd /boot/uboot/user.scr sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Reset Nand" -d /boot/uboot/user.cmd /boot/uboot/user.scr
fi fi
rebuild_scripts update_boot_files
cat > ${TEMPDIR}/fix_zippy2.sh <<fix_zippy2 cat > ${TEMPDIR}/fix_zippy2.sh <<fix_zippy2
#!/bin/sh #!/bin/sh
@ -760,11 +749,9 @@ installgst
sudo mkdir -p ${TEMPDIR}/disk/tools/dsp sudo mkdir -p ${TEMPDIR}/disk/tools/dsp
sudo cp -v ${TEMPDIR}/readme.txt ${TEMPDIR}/disk/tools/readme.txt sudo cp -v ${TEMPDIR}/readme.txt ${TEMPDIR}/disk/tools/readme.txt
sudo cp -v ${TEMPDIR}/rebuild_uinitrd.sh ${TEMPDIR}/disk/tools/rebuild_uinitrd.sh
sudo chmod +x ${TEMPDIR}/disk/tools/rebuild_uinitrd.sh
sudo cp -v ${TEMPDIR}/boot_scripts.sh ${TEMPDIR}/disk/tools/boot_scripts.sh sudo cp -v ${TEMPDIR}/rebuild_uinitrd.sh ${TEMPDIR}/disk/tools/update_boot_files.sh
sudo chmod +x ${TEMPDIR}/disk/tools/boot_scripts.sh sudo chmod +x ${TEMPDIR}/disk/tools/update_boot_files.sh
sudo cp -v ${TEMPDIR}/fix_zippy2.sh ${TEMPDIR}/disk/tools/fix_zippy2.sh sudo cp -v ${TEMPDIR}/fix_zippy2.sh ${TEMPDIR}/disk/tools/fix_zippy2.sh
sudo chmod +x ${TEMPDIR}/disk/tools/fix_zippy2.sh sudo chmod +x ${TEMPDIR}/disk/tools/fix_zippy2.sh

Loading…
Cancel
Save