Changeset 4804
- Timestamp:
- 11/20/08 01:16:49 (5 years ago)
- Location:
- developers/werner/myroot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
developers/werner/myroot/README
r4803 r4804 121 121 122 122 123 Using Qi 124 -------- 125 126 *** UNTESTED !!! *** 127 128 To use the bootable SD card with Qi instead of u-boot, omit the 129 option -u when invoking mksd. 130 131 132 Using GTA01 133 ----------- 134 135 *** UNTESTED !!! *** 136 137 For GTA01 instead of GTA02, use the option -m gta01 with mkjffs2 138 and mksd. 139 140 123 141 Bugs and future improvements 124 142 ============================ -
developers/werner/myroot/mkjffs2
r4786 r4804 1 1 #!/bin/sh 2 # 3 # GTA02 ! 4 # 2 3 4 usage() 5 { 6 echo "usage: $0 [-m gta01|gta02] [dirname]" 1>&2 7 exit 1 8 } 9 10 11 mach=gta02 12 13 while true; do 14 case "$1" in 15 -m) 16 shift 17 mach="$1";; 18 -*) 19 usage;; 20 *) 21 break;; 22 esac 23 shift 24 done 5 25 6 26 dir=${1:-root} … … 12 32 fi 13 33 14 mkfs.jffs2 --eraseblock=0x20000 --pagesize=0x800 --no-cleanmarkers \ 34 case $mach in 35 gta01) 36 eb=0x4000;; 37 gta02) 38 eb=0x20000 39 ps_opt="--pagesize=0x800";; 40 *) 41 usage;; 42 esac 43 44 mkfs.jffs2 --eraseblock=$eb $ps_opt --no-cleanmarkers \ 15 45 --little-endian --pad -o _tmp -d $dir 16 sumtool --eraseblock= 0x20000--no-cleanmarkers \46 sumtool --eraseblock=$eb --no-cleanmarkers \ 17 47 --littleendian --pad -i _tmp -o $name.jffs2 18 48 rm -f _tmp -
developers/werner/myroot/mksd
r4803 r4804 39 39 # @@@ shouldn't we rather do this in mkext2 ? 40 40 41 mkdir -p _m ount41 mkdir -p _mnt 42 42 mount -o loop "$fs" _mnt 43 43 44 mkdir -p _mnt/boot 44 cp "$kernel" _mnt/boot/uImage-GTA02.bin45 umont _mnt46 rm -f _mnt45 rm -f _mnt/boot/uImage-GTA01.bin 46 rm -f _mnt/boot/uImage-GTA02.bin 47 cp "$kernel" _mnt/boot/uImage-$mach_uc.bin 47 48 48 49 sd_image "$fs" 50 51 rm -f _mnt/boot/uImage-GTA01.bin 52 rm -f _mnt/boot/uImage-GTA02.bin 53 rmdir --ignore-fail-on-non-empty _mnt/boot 54 55 umount _mnt 56 rmdir _mnt 49 57 } 50 58 … … 79 87 usage() 80 88 { 81 echo "usage: $0 [-u] [-o sd_image] kernel [ext2_image]" 1>&2 89 echo \ 90 "usage: $0 [-u] [-m gta01|gta02] [-o sd_image] kernel [ext2_image]" 1>&2 82 91 exit 1 83 92 } … … 86 95 qi=true 87 96 sd=sd_image 97 mach=gta02 88 98 89 99 while true; do 90 100 case "$1" in 91 -u) 92 qi=false;; 93 -o) 94 shift 95 sd="$1";; 96 -*) 97 usage;; 98 *) 99 break;; 101 -m) 102 shift 103 mach="$1";; 104 -o) 105 shift 106 sd="$1";; 107 -u) 108 qi=false;; 109 -*) 110 usage;; 111 *) 112 break;; 100 113 esac 101 114 shift 102 115 done 116 117 case "$mach" in 118 gta01) 119 mach_uc=GTA01;; 120 gta02) 121 mach_uc=GTA02;; 122 *) 123 usage;; 124 esac 103 125 104 126 kernel=$1 … … 118 140 119 141 if $qi; then 120 do_ iq142 do_qi 121 143 else 122 144 do_uboot
Note: See TracChangeset
for help on using the changeset viewer.
