Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to use jffs2 in flash ?
hi hippo I can cp -a some dirs to /mnt on uclinux with using initramfs. In other word, i have build rootfs in my flash(mtdblock0)that can mount it to /mnt dir, and i can see some dirs in /mnt...
Altera_Forum
Honored Contributor
20 years agohi hippo
I can copy files from usb compact flash to jffs2 drive(flash) in mnt dir, as following: <div class='quotetop'>QUOTE </div> --- Quote Start --- BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. # usb 1-2: new full speed USB device using isp1362-hcd and address 2 usb 1-2: configuration# 1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices Vendor: eUSB Model: Compact Flash Rev: 5.07 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sda: 250880 512-byte hdwr sectors (128 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 250880 512-byte hdwr sectors (128 MB) sda: Write Protect is off sda: assuming drive cache: write through sda: sda1 sd 0:0:0:0: Attached scsi removable disk sda # cd /mnt# mkdir usb flash# ls flash usb# cd /mnt# ls -l drwxr-xr-x 2 root root 0 Nov 29 17:00 flash drwxr-xr-x 2 root root 0 Nov 29 17:00 usb# mount -t vfat /dev/sda1 /mnt/usb# mount -t jffs2 /dev/mtdblock0 /mnt/flash# cd /mnt# cd /mnt/usb# ls Baby.wav Baby1.wav readme.txt# cp readme.txt /mnt/flash# cd /mnt/flash# ls bin home opt root tmp dev init proc sbin usr etc mnt readme.txt sys var# rm readme.txt# ls bin etc init opt root sys usr dev home mnt proc sbin tmp var# [/b] --- Quote End ---