Browse Source

Add FAT support, fix flash.sh (forgot to unmount).

Thomas Buck 8 years ago
parent
commit
54782ecd56
2 changed files with 16 additions and 3 deletions
  1. 6
    0
      board/olinuxino/linux-3.18.config
  2. 10
    3
      flash.sh

+ 6
- 0
board/olinuxino/linux-3.18.config View File

@@ -138,10 +138,16 @@ CONFIG_IIO_SYSFS_TRIGGER=y
138 138
 CONFIG_PWM=y
139 139
 CONFIG_PWM_MXS=y
140 140
 CONFIG_EXT4_FS=y
141
+CONFIG_MSDOS_FS=y
142
+CONFIG_VFAT_FS=y
141 143
 CONFIG_TMPFS=y
142 144
 CONFIG_TMPFS_POSIX_ACL=y
143 145
 # CONFIG_MISC_FILESYSTEMS is not set
144 146
 # CONFIG_NETWORK_FILESYSTEMS is not set
147
+CONFIG_NLS_CODEPAGE_437=y
148
+CONFIG_NLS_ASCII=y
149
+CONFIG_NLS_ISO8859_1=y
150
+CONFIG_NLS_UTF8=y
145 151
 CONFIG_PRINTK_TIME=y
146 152
 CONFIG_FRAME_WARN=2048
147 153
 CONFIG_UNUSED_SYMBOLS=y

+ 10
- 3
flash.sh View File

@@ -51,11 +51,18 @@ if [ -e output/images/rootfs.tar ] ; then
51 51
 
52 52
 	echo Copying root filesystem
53 53
 	sudo tar xfp output/images/rootfs.tar -C /media/rootfs
54
+
55
+	echo Synchronising changes to disk
56
+	sudo sync
57
+
58
+	echo Unmounting root filesystem
59
+	sudo umount /media/rootfs
60
+	sudo rm -rf /media/rootfs
54 61
 else
55 62
 	echo Writing root filesystem
56 63
 	sudo dd if=output/images/rootfs.ext2 of="$1"2 bs=512
57
-fi
58 64
 
59
-echo Synchronising changes to disk
60
-sudo sync
65
+	echo Synchronising changes to disk
66
+	sudo sync
67
+fi
61 68
 

Loading…
Cancel
Save