Targetinstall
Trilok Soni <[email protected]> Wed, 2 Apr 2003 03:41:38 -0800 (PST)
| Newsgroups | gmane.linux.qplus.devel |
|---|---|
| Message-ID | <[email protected]> |
--0-233770443-1049283698=:98568 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline Hi Hcyun, Thanx for your help. I have intergrated CDB89712 Dev Files into the tb. But modify update_pkg.sh - copy_newpkgs() as suggested before. Actually I am not confused on download process of files. But I want to say that it is not straight forward in my case. Condition: 1. Kernel image and rootfs image will be different, as both are downloaded at different location of board, 0x20000 and 0x400000 resp. So that I am not copying "zImage" into rootfs (targetinstall script), as you have done in iPAQ case. 2. shoehorn and hermit will be downloaded only once. So that we may not integrate steps for this tools in target install script. What we can do is to give another script, but then users have to execute this script from shell- not from tb. 3. We can intergrate steps for uploading kernel and rootfs after generation of rootfs (at the end of targetinstall script ) in tb. But all the time sers may not want to upload both files. So it is required to give select-case option here in target install script. You will get more idea if you look at download script attached with this e-mail. Apart from this my rootfs sized upto 1.3M (without kernel image in boot directory) with glibc, and kernel image sized upto 665k. Regards, Trilok Soni __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com --0-233770443-1049283698=:98568 Content-Type: text/plain; name=download Content-Description: download Content-Disposition: inline; filename=download #!/bin/sh #Date of initiation: 25/07/2002 #Date of Last Modification: 11/08/2002 15/08/2002 #script for downloading... # 1. shoehorn # 2. hermit for burning flash # 3. downloading arm linux kernel # 4. downloading ramdisk image #TODO: To make whole process of uploading programs to CDB89712 automated and interactive COMMAND=$1 PATHTOKIMAGE=$2 PATHTORAMDISK=$2 case "$COMMAND" in shoe) echo "This program will download bootloader on CDB89712" echo "Follow this instructions:" echo echo "1.Connect board with serial port1 (/dev/ttyS0) of your PC" echo "2.Power down the board" echo "3.Install JP31 onto board" echo "4.Power up the board , then press [ENTER] when you ready" read shoehorn --edb7211 --terminal --boot \ --loader=$ARM_ROOT/lib/shoehorn/loader.bin \ --kernel=$ARM_ROOT/lib/hermit/loader-cdb89712-boot.bin \ --initrd=/dev/null \ --port=/dev/ttyS0 echo "If finished, run . download burnflash" ;; burnflash) echo "This program will burn flash." echo echo "1. Push on board RESET, then push WAKEUP button" echo "Press [ENTER] when ready" read hermit download --input-file=$ARM_ROOT/lib/hermit/loader-cdb89712.bin --region=flash-1 --force-locked echo echo "If finished now, Power down the board, remove JP31 and Power up the board" echo"Now use . download kernel to download kernel on board" ;; kernel) echo "Use S9, S3 ,S4 ....Wake the board up and press [ENTER]" read echo "Downloading kernel..." echo $PATHTOKIMAGE hermit download -e --remote-mac=01:23:45:67:89:bf -i $PATHTOKIMAGE -a 0x20000 ;; ramdisk) echo "Press S9, S3, S4 ....To wake up the boad and press[ENTER]" read echo "Downloading Ramdisk" hermit download -e --remote-mac=01:23:45:67:89:bf -i $PATHTORAMDISK -a 0x400000 echo echo "Type : b" hermit terminal ;; *) echo "Please specify exact command" ;; esac --0-233770443-1049283698=:98568-- ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/