Refering back to step 2 on the Linux box, here are the commands/debug/proof of what i used to make the jffs2 image:
This created a jffs2 image with a file size of 2.3mb:
Code:
step2 debug output:
root@n4:~/mel/step2mel# ls
bin dev etc lib proc sbin sys tmp var
root@n4:~/mel/step2mel# ls -al
total 44
drwxr-xr-x 11 root root 4096 Apr 13 19:35 .
drwxr-xr-x 21 root root 4096 Apr 13 22:23 ..
drwxr-xr-x 2 root root 4096 Apr 13 22:22 bin
drwxr-xr-x 2 root root 4096 Apr 13 22:11 dev
drwxr-xr-x 3 root root 4096 Apr 13 19:18 etc
drwxr-xr-x 2 root root 4096 Apr 13 19:46 lib
drwxr-xr-x 2 root root 4096 Apr 13 19:18 proc
drwxr-xr-x 2 root root 4096 Apr 13 19:37 sbin
drwxr-xr-x 2 root root 4096 Apr 13 19:18 sys
drwxr-xr-x 2 root root 4096 Apr 13 19:18 tmp
drwxr-xr-x 4 root root 4096 Apr 13 19:19 var
root@n4:~/mel/step2mel# ls -al var/
total 16
drwxr-xr-x 4 root root 4096 Apr 13 19:19 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
drwxr-xr-x 2 root root 4096 Apr 13 19:19 lib
drwxr-xr-x 2 root root 4096 Apr 13 19:18 run
root@n4:~/mel/step2mel# ls -al etc/
total 12
drwxr-xr-x 3 root root 4096 Apr 13 19:18 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
drwxr-xr-x 2 root root 4096 Apr 13 19:40 init.d
root@n4:~/mel/step2mel#
root@n4:~/mel/step2mel/dev# history |grep mknod
426 mknod -m 622 console c 5 1
428 mknod -m 666 null c 1 3
429 mknod -m 444 random c 1 8
430 mknod -m 644 ttyS0 c 4 64
431 mknod -m 444 urandom c 1 9
432 mknod -m 666 zero c 1 5
root@n4:~/mel/step2mel/dev# ls -al
total 8
drwxr-xr-x 2 root root 4096 Apr 13 22:11 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
crw--w--w- 1 root root 5, 1 Apr 13 19:48 console
crw-rw-rw- 1 root root 1, 3 Apr 13 19:48 null
cr--r--r-- 1 root root 1, 8 Apr 13 19:48 random
crw-r--r-- 1 root root 4, 64 Apr 13 19:50 ttyS0
cr--r--r-- 1 root root 1, 9 Apr 13 19:50 urandom
crw-rw-rw- 1 root root 1, 5 Apr 13 19:50 zero
root@n4:~/mel/step2mel/bin# ls -al
total 956
drwxr-xr-x 2 root root 4096 Apr 13 22:22 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
lrwxrwxrwx 1 root root 7 Apr 13 19:24 bash -> busybox
-rwxr-xr-x 1 root root 683024 Apr 13 19:34 busybox
lrwxrwxrwx 1 root root 7 Apr 13 22:20 chmod -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 cp -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 22:21 echo -> busybox
-rwxr-xr-x 1 root root 9888 Apr 13 19:39 flash_eraseall
lrwxrwxrwx 1 root root 7 Apr 13 19:24 gunzip -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 gzip -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 ifconfig -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 22:21 ln -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 22:21 ls -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 mkdir -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 mount -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 mv -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 22:21 rm -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 rmdir -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 sh -> busybox
-rwxr-xr-x 1 root root 272880 Apr 13 19:39 tar
lrwxrwxrwx 1 root root 7 Apr 13 19:24 tftp -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 22:22 touch -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 umount -> busybox
lrwxrwxrwx 1 root root 7 Apr 13 19:24 vi -> busybox
root@n4:~/mel/step2mel/sbin# ls -al
total 8
drwxr-xr-x 2 root root 4096 Apr 13 19:37 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
lrwxrwxrwx 1 root root 14 Apr 13 19:37 init -> ../bin/busybox
root@n4:~/mel/step2mel/etc/init.d# ls -al rcS
-rwxr-xr-x 1 root root 51 Apr 13 19:40 rcS
root@n4:~/mel/step2mel/etc/init.d# cat rcS
mount -t proc none /proc
mount -t sysfs none /sys
root@n4:~/mel/step2mel/lib# ls -al
total 2420
drwxr-xr-x 2 root root 4096 Apr 13 19:46 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
-rwxr-xr-x 1 root root 136408 Apr 13 19:42 ld-2.17.so
lrwxrwxrwx 1 root root 10 Apr 13 19:43 ld-linux.so.2 -> ld-2.17.so
lrwxrwxrwx 1 root root 10 Apr 13 19:43 ld.so.1 -> ld-2.17.so
-rwxr-xr-x 1 root root 1469360 Apr 13 19:42 libc-2.17.so
-rwxr-xr-x 1 root root 34296 Apr 13 19:42 libcrypt-2.17.so
lrwxrwxrwx 1 root root 16 Apr 13 19:44 libcrypt.so.1 -> libcrypt-2.17.so
lrwxrwxrwx 1 root root 12 Apr 13 19:43 libc.so.6 -> libc-2.17.so
-rwxr-xr-x 1 root root 694592 Apr 13 19:42 libm-2.17.so
lrwxrwxrwx 1 root root 12 Apr 13 19:46 libm.so.6 -> libm-2.17.so
-rwxr-xr-x 1 root root 92376 Apr 13 19:43 libpthread-2.17.so
lrwxrwxrwx 1 root root 18 Apr 13 19:46 libpthread.so.0 -> libpthread-2.17.so
-rwxr-xr-x 1 root root 30704 Apr 13 19:43 librt-2.17.so
lrwxrwxrwx 1 root root 13 Apr 13 19:46 librt.so.1 -> librt-2.17.so
root@n4:~/mel/step2mel# history |grep mkfs.jffs2
513 mkfs.jffs2 --eraseblock=0x20000 --pagesize=2048 --pad --no-cleanmarkers --big-endian --squash-uids --root=step2mel --output=step2mel_jffs2_image
Code:
root@n4:~/mel# ls -alh step2mel_jffs2_image
-rw-r--r-- 1 root root 2.3M Apr 13 22:23 step2mel_jffs2_image
Last edited: