xf.li | bfc6e71 | 2025-02-07 01:54:34 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | if [ x"$PAGESIZE" = x"" ]; then | ||||
4 | PAGESIZE=0x800 | ||||
5 | fi | ||||
6 | |||||
7 | if [ x"$ERASEBLOCK" = x"" ]; then | ||||
8 | ERASEBLOCK=0x20000 | ||||
9 | fi | ||||
10 | |||||
11 | mkfs.jffs2 --pagesize=$PAGESIZE --eraseblock=$ERASEBLOCK --little-endian --no-cleanmarkers --squash -d $1 -o $2 | ||||
12 | if [ $? -ne 0 ]; then | ||||
13 | echo "mkfs.jffs2 error" | ||||
14 | exit -1 | ||||
15 | else | ||||
16 | echo "mkfs.jffs2 ok" | ||||
17 | fi | ||||
18 | |||||
19 | exit 0 |