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
 CONFIG_PWM=y
138
 CONFIG_PWM=y
139
 CONFIG_PWM_MXS=y
139
 CONFIG_PWM_MXS=y
140
 CONFIG_EXT4_FS=y
140
 CONFIG_EXT4_FS=y
141
+CONFIG_MSDOS_FS=y
142
+CONFIG_VFAT_FS=y
141
 CONFIG_TMPFS=y
143
 CONFIG_TMPFS=y
142
 CONFIG_TMPFS_POSIX_ACL=y
144
 CONFIG_TMPFS_POSIX_ACL=y
143
 # CONFIG_MISC_FILESYSTEMS is not set
145
 # CONFIG_MISC_FILESYSTEMS is not set
144
 # CONFIG_NETWORK_FILESYSTEMS is not set
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
 CONFIG_PRINTK_TIME=y
151
 CONFIG_PRINTK_TIME=y
146
 CONFIG_FRAME_WARN=2048
152
 CONFIG_FRAME_WARN=2048
147
 CONFIG_UNUSED_SYMBOLS=y
153
 CONFIG_UNUSED_SYMBOLS=y

+ 10
- 3
flash.sh View File

51
 
51
 
52
 	echo Copying root filesystem
52
 	echo Copying root filesystem
53
 	sudo tar xfp output/images/rootfs.tar -C /media/rootfs
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
 else
61
 else
55
 	echo Writing root filesystem
62
 	echo Writing root filesystem
56
 	sudo dd if=output/images/rootfs.ext2 of="$1"2 bs=512
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