如果使用JFFS2 file system,
JFFS2 mount時需掃描整個文件系統,導致速度降低。
文件系統接近滿時,因garbage collection問題也會導致速度降低。
YAFFS2
提供了損耗平衡和掉電保護機制,可以有效地避免意外掉電對文件系統一致性和完整性
2018年7月31日 星期二
2018年4月30日 星期一
新增Linux設備(mknod)
Usage: mknod [OPTION]... NAME TYPE [MAJOR MINOR]
Create the special file NAME of the given TYPE.
Mandatory arguments to long options are mandatory for short options too.
-m, --mode=MODE set file permission bits to MODE, not a=rw - umask
-Z, --context=CTX set the SELinux security context of NAME to CTX
--help display this help and exit
--version output version information and exit
Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X,
it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
otherwise, as decimal. TYPE may be:
b create a block (buffered) special file
c, u create a character (unbuffered) special file
p create a FIFO
NOTE: your shell may have its own version of mknod, which usually supersedes
the version described here. Please refer to your shell's documentation
for details about the options it supports.
Create the special file NAME of the given TYPE.
Mandatory arguments to long options are mandatory for short options too.
-m, --mode=MODE set file permission bits to MODE, not a=rw - umask
-Z, --context=CTX set the SELinux security context of NAME to CTX
--help display this help and exit
--version output version information and exit
Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X,
it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
otherwise, as decimal. TYPE may be:
b create a block (buffered) special file
c, u create a character (unbuffered) special file
p create a FIFO
NOTE: your shell may have its own version of mknod, which usually supersedes
the version described here. Please refer to your shell's documentation
for details about the options it supports.
2017年11月22日 星期三
Make openWRT出現util-linux-2.24.1.tar.xz錯誤
Make openWRT出現底下錯誤,無法下載util-linux-2.24.1.tar.xz
/home/victor/Workspace/openwrt-sdk/scripts/download.pl "/home/victor/Workspace/openwrt-sdk/dl" "util-linux-2.24.1.tar.xz" "88d46ae23ca599ac5af9cf96b531590f" "@KERNEL/linux/utils/util-linux/v2.24"
--2017-11-22 17:03:38-- ftp://ftp.all.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.xz
=> '-'
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.
因下載位置已改變,修改download.pl描述的下載路徑,
由
push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
改為
push @mirrors, "http://www.kernel.org/pub/$dir";
/home/victor/Workspace/openwrt-sdk/scripts/download.pl "/home/victor/Workspace/openwrt-sdk/dl" "util-linux-2.24.1.tar.xz" "88d46ae23ca599ac5af9cf96b531590f" "@KERNEL/linux/utils/util-linux/v2.24"
--2017-11-22 17:03:38-- ftp://ftp.all.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.xz
=> '-'
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.
因下載位置已改變,修改download.pl描述的下載路徑,
由
push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
改為
push @mirrors, "http://www.kernel.org/pub/$dir";
2017年11月7日 星期二
2017年7月24日 星期一
WinCE Eboot Boot-up Sequence
- F:\WINCE500\PLATFORM\COMMON\SRC\ARM\INTEL\PXA27X\STARTUP\startup.s
StartUp[Start] -> PreInit -> Put CPU in SVC mode and disable IRQ, FIQ ->
Disable MMU, caches, write-buffer and flush -> RCSR_HARD_RESET(2.) ->
RCSR_GPIO_RESET(3.) -> Continue_StartUp(4.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\startup.s
OALStartUp -> Init_HexLEDs -> Copy the bootloader image from flash to RAM ->
jump to the RAM image -> Enable the MMU -> Jump to main.c(5.)
- F:\WINCE500\PLATFORM\COMMON\SRC\ARM\INTEL\PXA27X\STARTUP\startup.s
RCSR_GPIO_RESET -> xlli_mem_init -> Continue_StartUp(4.)
- F:\WINCE500\PLATFORM\COMMON\SRC\ARM\INTEL\PXA27X\STARTUP\startup.s
Continue_StartUp -> xlli_intr_init(15.) -> EnableClks -> xlli_mem_Tmax(15.) ->
xlli_mem_restart(15.) -> OALXScaleSetFrequencies(16.)->
xlli_mem_Topt(15.) -> xlli_mem_restart(15.) -> xlli_ost_init(15.) ->
xlli_pwrmgr_init(15.) -> xlli_IMpwr_init(15.) -> OALStartUp(2.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
main -> BootloaderMain(6.)
- F:\WINCE500\PLATFORM\COMMON\SRC\COMMON\BOOT\BLCOMMON\blcommon.c
BootloaderMain -> KernelRelocate -> OEMDebugInit(7.) -> OEMPlatformInit(9.) ->
OEMPreDownload(10.) -> BL_DOWNLOAD(11.) -> BL_JUMP(14.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMDebugInit -> FlashInit -> InitDebugSerial(8.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\COMMON\DBGSERIAL\dbgserial.c
InitDebugSerial -> Return
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMPlatformInit -> Create menu -> InitSpecifiedEthDevice(Download image) -> Return
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMPreDownload -> Return
- F:\WINCE500\PLATFORM\COMMON\SRC\COMMON\BOOT\BLCOMMON\blcommon.c
DownloadImage(BL_DOWNLOAD) -> OEMReadData(12.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\utils.c
OEMReadData -> EbootEtherReadData(13.)
- F:\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\ETHDBG\EBOOT\ebsimp.c
EbootEtherReadData -> OEMLaunch(14.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMLaunch[End]
- F:\WINCE500\PUBLIC\COMMON\OAK\CSP\ARM\INTEL\PXA27X\XLLP\SOURCE\
xlli_lowlev_init.s
xlli_intr_init; xlli_mem_Tmax; xlli_mem_restart; xlli_mem_Topt; xlli_mem_restart;
xlli_ost_init; xlli_pwrmgr_init; xlli_IMpwr_init; xlli_GPIO_init
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\COMMON\FREQ\freq.s
OALXScaleSetFrequencies -> xlli_GPIO_init -> xlli_GPIO_init(15.)
2017年5月10日 星期三
縮小VDI檔案大小
於客體端
- sudo apt-get install zerofree
- 重開機進入Recovery Mode
- mount -n -o remount,ro -t ext3 /dev/sda1 /
- zerofree -v /dev/sda1
- VBoxManage modifymedium XXX.vdi --compact
2017年4月25日 星期二
chroot測試SDK出現cat /proc/cpuinfo錯誤
用chroot測試SDK,make時出現下面的錯誤
cat: /proc/cpuinfo: No such file or directory
解決,
sudo mount --bind /proc <chroot dir>/proc
cat: /proc/cpuinfo: No such file or directory
解決,
sudo mount --bind /proc <chroot dir>/proc
訂閱:
文章 (Atom)