2011年7月22日 星期五

[Linux] Make NTFS writable

Use NTFS-3G to write NTFS file system and ntfslabel to get the partition information(UUID/Label).

http://www.tuxera.com/open-source/release-ntfs-3g-ntfsprogs-2011-4-12/

[Linux] Make HFS+ writeable

Disable journaled function in USB by MAC system.

http://grep.tw/blog/?p=986

[Linux] Busybox Project

http://www.busybox.net/

[Linux] Read USB Label volume

1. Use blkid to make it possible.
2. refer to Ubuntu document.
3. Filesystem explain.

2011年7月13日 星期三

[Android] MIPS on Android - Application

1. Getting Started with Android

2. Android on MIPS Source Code

3. Build MIPS platform
$ export TARGET_PRODUCT=generic
$ export TARGET_ARCH=mips
$ export TARGET_ARCH_VARIANT=mips32-fp
$ source build/envsetup.sh
$ make -j4

2011年7月1日 星期五

[Linux] callback function

Callback function
The program did "call" the function is initiative, but "callback" function is passive. For example, interrupt handler or event handler was called in some specific situations, they were "callback" functions.
The implementation for callback function is typically a function point in C.

The use of function point is like an abstraction layer. Every driver has to implement the same functions, just like r8169.c ethernet driver must implement the functions related to the pci_driver struct needed.


static struct pci_driver rtl8169_pci_driver = {
        .name           = MODULENAME,
        .id_table       = rtl8169_pci_tbl,
        .probe          = rtl8169_init_one,
        .remove         = __devexit_p(rtl8169_remove_one),
#ifdef CONFIG_PM
        .suspend        = rtl8169_suspend,
        .resume         = rtl8169_resume,
        .shutdown       = rtl_shutdown,
#endif
};