If you want to make you own custom jffs2 images, see my download page for the mkfs.jffs2 binary I compiled from the MTD CVS source from Junc 23, 2001 (for linux x86). See the man page mkfs.jffs2(1). The erase block size on the iPAQ H3600 is 0x40000. Usage:
# mkfs.jffs2 -r dir-to-image -o output-file.jffs2 -e 0x40000 -l -p
If you want to set the flash params from the command like while linux is running. Also on my download page Usage:
ipaqbb version 0.03
Usage:
-s, --set NAME=VALUE Set NAME to VALUE
-x, --show NAME Show only value if variable NAME
-d, --delete NAME Delete NAME
-l, --list List all settings and exit
-b, --bootldr=FILE Use different bootldr block (default: /dev/mtdblock/0)
-p, --params=FILE Use different params block (default: /dev/mtdblock/1)
-v, --verbose Show what is being written to the flash
-h, --help This help
boot> params reset boot> set copy_ramdisk 0x0 boot> set baudrate 115200Setup the partiaions on the iPAQ as follows:
boot> partition reset
boot> partition define kernel 0x80000 0xC0000 0
boot> partition define root 0x200000 0xE00000 16
boot> partition define root 0x200000 0x1E00000 16
boot> partition define kernel2 0x140000 0xC0000 0
boot> partition show
argv[1]=partition
npartitions=00000004
bootldr
base: 00000000
size: 00040000 ( 262144 bytes)
flags: 00000002
params
base: 00040000
size: 00040000 ( 262144 bytes)
flags: 00000000
kernel
base: 00080000
size: 00080000 ( 524288 bytes)
flags: 00000000
root
base: 00100000
size: 00F00000 (15728640 bytes)
flags: 00000010
boot>
This new seutp on the 16MB flash version is (I added the /dev/mtdblock#):
boot> partition show
argv[1]=partition
npartitions=00000005
bootldr (/dev/mtdblock0)
base: 00000000
size: 00040000 ( 262144 bytes)
flags: 00000002
params (/dev/mtdblock1)
base: 00040000
size: 00040000 ( 262144 bytes)
flags: 00000000
kernel (/dev/mtdblock2)
base: 00080000
size: 000C0000 ( 786432 bytes)
flags: 00000000
root (/dev/mtdblock3)
base: 00200000
size: 00E00000 (14680064 bytes)
flags: 00000010
kernel2 (/dev/mtdblock4)
base: 00140000
size: 00EC0000 ( 786432 bytes)
flags: 00000000
boot>
# cardctl scheme homeUse the default scheme (*,*,*) by:
# cardctl scheme default
# /etc/init.d/pcmcia restart
# vi /etc/ssh/sshd_config ... Protocol 2,1 ... HostKey=/etc/ssh/ssh_host_key <-- existing HostKey=/etc/ssh/ssh_host_dsa_key <-- ADD # need newer version of ssh-keygen #HostKey /etc/ssh/ssh_host_rsa_key ...Now generate the keys:
// gen RSA key for ssh1 proto # ssh-keygen -f /etc/ssh/ssh_host_key -N "" // gen DSA key for ssh2 proto # ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N ""For some reason, the ssh-keygen installed with Familiar is not up to date with 2.5.2p2 (the version installed), so it does not support the -t rsa/dsa switch and will not generate ssh2 rsa keys (/etc/ssh/ssh_host_rsa_key). You will need to generate this on Intimate and edit /etc/ssh/sshd_config later if you want to use ssh2 rsa keys.