突然消失するかもしれないブログ

”とつきえブログ”

N810のLinuxカーネルをハックする その1

(1)N810のLinuxカーネルソースをダウンロードする。

maemo.orgからダウンロードします。

maemoの最新版は、maemo-4.1(diablo)です。Linuxのカーネルの最新版は、2008.09.04にアップされた、kernel-source-diablo_2.6.21-200829maemo1です。

・まず、diablo用のカーネルをダウンロードします。

wget http://repository.maemo.org/pool/maemo4.1/free/k/kernel-source-diablo/kernel-source-diablo_2.6.21.orig.tar.gz

こちらのソースでは、N800までしか対応していない模様。

・次に、上記に対するmaemo.orgのパッチをダウンロードします。

こちらのパッチを適用すると、N810対応が追加されるようです。でも謎なんですよね。diabloがリリースされたのは2008.04頃のようですけど、N810は2007.11に北米で発売されたんですよね。

N810って最初の頃はN800とソースが共有だったんでしょうか?

wget http://repository.maemo.org/pool/maemo4.1/free/k/kernel-source-diablo/kernel-source-diablo_2.6.21-200829maemo1.diff.gz

(2)パッチを当てる

tar xvfz

cd kernel-source-diablo

zcat ../kernel-source-diablo_2.6.21-200829maemo1.diff.g
z | patch -b -p1

(3)どのファイルにパッチがあたったのか確認する。

↓かなり凄いことになってます。さすがGoogleのAndroid用Linuxカーネルとは変更量が違いますね。

ということで、観察は次のエントリーで。

./kernel-source/Documentation/filesystems/vfat.txt.orig
./kernel-source/arch/arm/configs/nokia_2420_defconfig.orig
./kernel-source/arch/arm/mach-omap2/board-n810.c.orig
./kernel-source/arch/arm/mach-omap2/board-n800-mmc.c.orig
./kernel-source/arch/arm/mach-omap2/usb-tusb6010.c.orig
./kernel-source/arch/arm/mach-omap2/memory.c.orig
./kernel-source/arch/arm/mach-omap2/board-n800.c.orig
./kernel-source/arch/arm/mach-omap2/board-n800-dvfs.c.orig
./kernel-source/arch/arm/mach-omap2/board-n800-flash.c.orig
./kernel-source/arch/arm/mach-omap2/Kconfig.orig
./kernel-source/arch/arm/mach-omap2/irq.c.orig
./kernel-source/arch/arm/mach-omap2/Makefile.orig
./kernel-source/arch/arm/mach-omap2/gpmc.c.orig
./kernel-source/arch/arm/mach-omap2/board-n810-keyboard.c.orig
./kernel-source/arch/arm/mach-omap2/scale_freq.h.orig
./kernel-source/arch/arm/mach-omap2/hs.c.orig
./kernel-source/arch/arm/mach-omap2/pm.c.orig
./kernel-source/arch/arm/mach-omap2/board-n800-audio.c.orig
./kernel-source/arch/arm/mach-omap2/dvfs.c.orig
./kernel-source/arch/arm/mach-omap2/dvs.c.orig
./kernel-source/arch/arm/mach-omap2/irq.h.orig
./kernel-source/arch/arm/mach-omap2/prcm.c.orig
./kernel-source/arch/arm/mach-omap2/board-n800-camera.c.orig
./kernel-source/arch/arm/mach-omap2/scale_freq.S.orig
./kernel-source/arch/arm/mach-omap2/board-n800-pm.c.orig
./kernel-source/arch/arm/mm/abort-ev6.S.orig
./kernel-source/arch/arm/mm/flush.c.orig
./kernel-source/arch/arm/mm/proc-v6.S.orig
./kernel-source/arch/arm/mm/cache-v6.S.orig
./kernel-source/arch/arm/plat-omap/dsp/task.c.orig
./kernel-source/arch/arm/plat-omap/dsp/dsp_core.c.orig
./kernel-source/arch/arm/plat-omap/dsp/mblog.c.orig
./kernel-source/arch/arm/plat-omap/dsp/Kconfig.orig
./kernel-source/arch/arm/plat-omap/dsp/dsp_mbcmd.h.orig
./kernel-source/arch/arm/plat-omap/dsp/dsp_common.h.orig
./kernel-source/arch/arm/plat-omap/dma.c.orig
./kernel-source/arch/arm/plat-omap/sec.c.orig
./kernel-source/arch/arm/plat-omap/dmtimer.c.orig
./kernel-source/arch/arm/plat-omap/pa.c.orig
./kernel-source/arch/arm/plat-omap/Kconfig.orig
./kernel-source/arch/arm/plat-omap/mmu.c.orig
./kernel-source/arch/arm/plat-omap/mailbox.c.orig
./kernel-source/arch/arm/plat-omap/timer32k.c.orig
./kernel-source/arch/arm/plat-omap/sram.c.orig
./kernel-source/arch/arm/tools/mach-types.orig
./kernel-source/arch/i386/boot/compressed/Makefile.orig
./kernel-source/arch/powerpc/kernel/vmlinux.lds.S.orig
./kernel-source/arch/ppc/boot/common/misc-common.c.orig
./kernel-source/arch/ppc/boot/simple/misc-prep.c.orig
./kernel-source/arch/ppc/boot/Makefile.orig
./kernel-source/drivers/bluetooth/hci_h4p/core.c.orig
./kernel-source/drivers/cbus/retu-headset.c.orig
./kernel-source/drivers/char/random.c.orig
./kernel-source/drivers/cpufreq/cpufreq_null.c.orig
./kernel-source/drivers/i2c/busses/i2c-omap.c.orig
./kernel-source/drivers/i2c/chips/menelaus.c.orig
./kernel-source/drivers/i2c/chips/lm8323.c.orig
./kernel-source/drivers/input/keyboard/tsc2301_kp.c.orig
./kernel-source/drivers/input/touchscreen/tsc2301_ts.c.orig
./kernel-source/drivers/input/touchscreen/tsc2005.c.orig
./kernel-source/drivers/input/touchscreen/Kconfig.orig
./kernel-source/drivers/input/touchscreen/Makefile.orig
./kernel-source/drivers/leds/leds-omap-pwm.c.orig
./kernel-source/drivers/media/video/omap/omap24xxcam.h.orig
./kernel-source/drivers/media/video/omap/omap24xxcam.c.orig
./kernel-source/drivers/media/video/omap/sensor_tcm825x.c.orig
./kernel-source/drivers/mmc/wbsd.h.orig
./kernel-source/drivers/mmc/sdhci.c.orig
./kernel-source/drivers/mmc/omap.c.orig
./kernel-source/drivers/mmc/Kconfig.orig
./kernel-source/drivers/mmc/mmc_block.c.orig
./kernel-source/drivers/mmc/wbsd.c.orig
./kernel-source/drivers/mmc/mmc.h.orig
./kernel-source/drivers/mmc/mmc.c.orig
./kernel-source/drivers/mmc/sdhci.h.orig
./kernel-source/drivers/mtd/onenand/onenand_base.c.orig
./kernel-source/drivers/mtd/onenand/omap2.c.orig
./kernel-source/drivers/mtd/mtdoops.c.orig
./kernel-source/drivers/mtd/Kconfig.orig
./kernel-source/drivers/mtd/mtdpart.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_osal.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_sdio.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_dm_bg.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if_sysfs.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_dm.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_cd.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if_sysfs.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_conf.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_conf.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_dm.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_dm_bg.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_spi.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_spi.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_i2c.h.orig
./kernel-source/drivers/net/wireless/pc2400m/Kconfig.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_chipif.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if_we.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_osal_trace.h.orig
./kernel-source/drivers/net/wireless/pc2400m/Makefile.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if_we.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_spi_fw.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_al.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_cd.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_traces.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_spi.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_osal.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_i2c.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_iffunc.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_spi.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_if.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_sdio.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_com.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_hdi.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_release.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if_netlink.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_com.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv_spi_fw.c.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_if_netlink.h.orig
./kernel-source/drivers/net/wireless/pc2400m/pc2400m_drv.h.orig
./kernel-source/drivers/serial/omap.c.orig
./kernel-source/drivers/spi/tsc2005.c.orig
./kernel-source/drivers/spi/Kconfig.orig
./kernel-source/drivers/spi/omap2_mcspi.c.orig
./kernel-source/drivers/usb/core/sysfs.c.orig
./kernel-source/drivers/usb/core/otg.c.orig
./kernel-source/drivers/usb/core/quirks.c.orig
./kernel-source/drivers/usb/core/hub.c.orig
./kernel-source/drivers/usb/core/generic.c.orig
./kernel-source/drivers/usb/gadget/file_storage.c.orig
./kernel-source/drivers/usb/misc/sisusbvga/sisusb.c.orig
./kernel-source/drivers/usb/misc/sisusbvga/Kconfig.orig
./kernel-source/drivers/usb/musb/musb_gadget_ep0.c.orig
./kernel-source/drivers/usb/musb/musb_hset.c.orig
./kernel-source/drivers/usb/musb/musb_debug.h.orig
./kernel-source/drivers/usb/musb/musbhsdma.c.orig
./kernel-source/drivers/usb/musb/musb_core.c.orig
./kernel-source/drivers/usb/musb/musb_host.c.orig
./kernel-source/drivers/usb/musb/davinci.c.orig
./kernel-source/drivers/usb/musb/tusb6010.c.orig
./kernel-source/drivers/usb/musb/cppi_dma.c.orig
./kernel-source/drivers/usb/musb/musb_host.h.orig
./kernel-source/drivers/usb/musb/musb_virthub.c.orig
./kernel-source/drivers/usb/musb/musb_core.h.orig
./kernel-source/drivers/usb/musb/musb_procfs.c.orig
./kernel-source/drivers/usb/musb/musb_io.h.orig
./kernel-source/drivers/usb/musb/musb_regs.h.orig
./kernel-source/drivers/usb/musb/tusb6010.h.orig
./kernel-source/drivers/usb/musb/omap2430.c.orig
./kernel-source/drivers/usb/musb/tusb6010_omap.c.orig
./kernel-source/drivers/usb/musb/davinci.h.orig
./kernel-source/drivers/usb/musb/musb_gadget.c.orig
./kernel-source/drivers/video/omap/omapfb_main.c.orig
./kernel-source/drivers/video/omap/blizzard.c.orig
./kernel-source/drivers/video/omap/Kconfig.orig
./kernel-source/drivers/video/omap/dispc.c.orig
./kernel-source/drivers/video/omap/lcd_mipid.c.orig
./kernel-source/fs/fat/inode.c.orig
./kernel-source/fs/jffs2/erase.c.orig
./kernel-source/include/asm-arm/arch-omap/mailbox.h.orig
./kernel-source/include/asm-arm/arch-omap/pm.h.orig
./kernel-source/include/asm-arm/arch-omap/dma.h.orig
./kernel-source/include/asm-arm/arch-omap/sec.h.orig
./kernel-source/include/asm-arm/arch-omap/dsp.h.orig
./kernel-source/include/asm-arm/arch-omap/gpmc.h.orig
./kernel-source/include/asm-arm/arch-omap/onenand.h.orig
./kernel-source/include/asm-arm/arch-omap/dsp_common.h.orig
./kernel-source/include/asm-arm/arch-omap/mmc.h.orig
./kernel-source/include/asm-arm/arch-omap/omapfb.h.orig
./kernel-source/include/asm-arm/arch-omap/board-nokia.h.orig
./kernel-source/include/asm-arm/arch-omap/menelaus.h.orig
./kernel-source/include/asm-arm/arch-omap/pa.h.orig
./kernel-source/include/asm-arm/arch-omap/mcspi.h.orig
./kernel-source/include/asm-arm/arch-omap/dvfs.h.orig
./kernel-source/include/asm-arm/arch-omap/mmu.h.orig
./kernel-source/include/asm-arm/pgtable.h.orig
./kernel-source/include/linux/mmc/host.h.orig
./kernel-source/include/linux/mmc/card.h.orig
./kernel-source/include/linux/mmc/protocol.h.orig
./kernel-source/include/linux/mtd/mtd.h.orig
./kernel-source/include/linux/spi/tsc2005.h.orig
./kernel-source/include/linux/spi/tsc2301.h.orig
./kernel-source/include/linux/usb/otg.h.orig
./kernel-source/include/linux/tlv320aic33.h.orig
./kernel-source/include/linux/msdos_fs.h.orig
./kernel-source/kernel/timer.c.orig
./kernel-source/kernel/sysctl.c.orig
./kernel-source/lib/bust_spinlocks.c.orig
./kernel-source/mm/slab.c.orig
./kernel-source/mm/swapfile.c.orig
./kernel-source/mm/page-writeback.c.orig
./kernel-source/net/bluetooth/hidp/core.c.orig
./kernel-source/net/bluetooth/hidp/hidp.h.orig
./kernel-source/net/core/neighbour.c.orig
./kernel-source/net/core/flow.c.orig
./kernel-source/net/ipv4/netfilter/ipt_IDLETIMER.c.orig
./kernel-source/net/ipv4/route.c.orig
./kernel-source/net/ipv4/ip_fragment.c.orig
./kernel-source/net/ipv4/tcp_input.c.orig
./kernel-source/net/ipv4/inetpeer.c.orig
./kernel-source/net/ipv6/exthdrs.c.orig
./kernel-source/sound/arm/omap/eac.c.orig
./kernel-source/sound/arm/omap/tlv320aic33.c.orig
./debian/compat.orig
./debian/changelog.orig
./debian/dirs.orig
./debian/rules.orig
./debian/official.orig
./debian/copyright.orig
./debian/control.orig
./debian/README.Debian.orig

 

広告

N810のLinuxカーネルをハックする その1」への1件のフィードバック

  1. ピンバック:ゾロ目ですが何か?

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中

%d人のブロガーが「いいね」をつけました。