buntuでお試しで入れてみたかったのでレポジトリを探したら
"Dillo 2.2 (.deb) - Super Fast Light Weight"
- Ubuntu-Linux: Dillo 2.2 (.deb) - Super Fast Light Weight Browser & Midori - Light Weight Browser - A Review (Google サイドウィキで表示)
インターネット上にある断片化された情報を切り取って、リブログする。 主にソフトウェア、Ubuntu関連、CPUなど気になったニュース、また、日々の面白い出来事やニュースもリブログします。
buntuでお試しで入れてみたかったのでレポジトリを探したら
"Dillo 2.2 (.deb) - Super Fast Light Weight"
- Ubuntu-Linux: Dillo 2.2 (.deb) - Super Fast Light Weight Browser & Midori - Light Weight Browser - A Review (Google サイドウィキで表示)
CPUクロック下がる変わりにグラフィックが一気に強化されるぽ
"現行の“Nile”(Athlon II Neo K325, K125)と比較すると“Brazos”はグラフィック性能が大幅に強化されます。一方でCPU性能の指標と位置づけられているであろうPC Mark VantageのスコアはDual-CoreのE350でもAthlon II Neo K325よりも数%劣るようです。"
- 北森瓦版 - “Zacate / Ontario”の詳細が公開される (Google サイドウィキで表示)
Pythonで直接Videoにアクセスできるコード。
"Python-v4l"
- Python-v4l: neat! (Google サイドウィキで表示)
すごく簡単。/dev/shmをマウントするのみ。
パラメータは
-t tmpfs -o size=256m
のように割り当てサイズを指定する。
"# mkdir /mnt/ramdisk# mount -t tmpfs -o size=256m /dev/shm /mnt/ramdisk# chmod 777 /mnt/ramdisk$ df -h"
- MARUのてくめも Debian(Ubuntu)上にRAMディスクを作ってみる (Google サイドウィキで表示)
Lenny環境でOpenCV1.
"import Image; import cv; camcapture = cv.CreateCameraCapture(0) cv.SetCaptureProperty(camcapture,cv.CV_CAP_PROP_FRAME_WIDTH, 640) cv.SetCaptureProperty(camcapture,cv.CV_CAP_PROP_FRAME_HEIGHT, 480); if not camcapture: print "Error opening WebCAM" sys.exit(1) while 1: frame = cv.QueryFrame(camcapture) if frame is None: break cv.ShowImage('Camera', frame) k=cv.WaitKey(10);"
- Developer Station: Reading data from WebCam on Python using OpenCV (Google サイドウィキで表示)
mkswap /dev/mmcblk0p3
内容:"# mkswap -c /dev/hda4"
- スワップ領域の操作 【mkswap、swapon、swapoff】 (Google サイドウィキで表示)
自分で使う時は、
luvcview -s 320x240 -f yuv -i 4 --display 0:0 &
"luvcview -s 640x480 -i 30 -d /dev/video0"
- luvcview - Home (Google サイドウィキで表示)
KernelやCross toolchainなどが手に入る。
内容:"mini2440 update(2010-8-18)"
- mini2440 update(2010-8-18) - FriendlyARM (Google サイドウィキで表示)
Mini2440でこのフォルダ使ってるのにw
内容:"[PATCH] ARM: S3C: Remove old plat-s3c directory and unused contents"
- [PATCH] ARM: S3C: Remove old plat-s3c directory and unused contents (Google サイドウィキで表示)
Module Size Used by
gspca_spca561 11132 0
gspca_main 23504 1 gspca_spca561
v4l2_common 16936 0
videodev 35560 2 gspca_main,v4l2_common
v4l1_compat 14780 1 videodev
$ sudo tar xvzopf [置き場所パス]/arm-linux-gcc-4.4.3.tgz $ vim ~/.bashrc 最後の行に export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin を追加。
#cd /dev
#mknod video0 c 81 0
#mknod radio0 c 81 64
#mknod vtx0 c 81 192
#mknod vbi0 c 81 224
#mknod i2c0 c 89 0
#ln -s video0 video
#ln -s radio0 radio
#ln -s vtx0 vtx
#ln -s vbi0 vbi
#ln -s i2c0 i2c
#chmod 666 video0 一般ユーザーがアクセスできるようにする
#chmod 666 radio0
#chmod 666 vtx0
#chmod 666 vbi0
#chmod 666 i2c0
"#cd /dev#mknod video0 c 81 0#mknod radio0 c 81 64#mknod vtx0 c 81 192#mknod vbi0 c 81 224#mknod i2c0 c 89 0#ln -s video0 video#ln -s radio0 radio#ln -s vtx0 vtx#ln -s vbi0 vbi#ln -s i2c0 i2c#chmod 666 video0 一般ユーザーがアクセスできるようにする#chmod 666 radio0#chmod 666 vtx0#chmod 666 vbi0 #chmod 666 i2c0"
- Linuxでテレビ (Google サイドウィキで表示)
Curses(カーシス)というのがある。
内容:"Curses(カーシス)はUNIX系システムでの端末制御ライブラリである。"
- Curses - Wikipedia (Google サイドウィキで表示)
・General setup Configure standard kernel features (for small systems):[*] ・Enable the black layer Supprt for large(2TB+) block devices and files:[ ] ・Kernel Features Use kernel mem{cpy,set}() for {copt_to,clear}_user():[*] ・CPU Power Management CPU Freqency scaling:[*] 'powersave' governor:[M] 'userspace' governor:[M] 'ondemand' cpufreq policy governor:[M] 'conservative' cpqfreq governor:[M] CPUfreq driver for Samsung S3C24XX series CPUs:[*] Support CPUfreq changing of PLL frequency:[*] Debug CPUfreq Samsung driver core:[*] ・System Type(CPU Power Managementを設定してから開く) S3C2440/S3C2442 CPU Frequency scaling support:[*] ・Device Drivers Hardware Monitoring support:[ ] Generic Thermal sysfs driver:[ ] Multifunction device drivers:[ ] ・Mulrimedia support:[M] Video For Linux:[M] Customize analog and hybrid tuner modules to build:[ ] ・Video capture adapters Autoselect pertinent:[*] V4L USB devices USB Video Class (UVC):[M] ・Radio Adaprts:[ ] ・Graphics support Direct Rendering Manager:[M] ・Special HID drivers 全部チェック外し ・USB support USB device filesystem:[ ] SanDisk SDDR-09:[ ] SanDisk SDDR-55:[ ] Lexar Jumpshot Compact Flash Reader:[ ] Olympus MAUSB-10/Fuji DPC-R1 support ・USB Gadget Support Audio Gadget:[M] MIDI Gadget:[M] Printer Gadget:[M] USB Webcam Gadget:[M] ・MMC/SD/SDIO card support SDHCI support on the platform specific bus:[*] SDHCI support on Samsung S3C SoC SDHCI DMA support on S3C SDHCI ・Kernel hacking Detect Hard and Soft Lockups[*] Detect Hung Tasks:[*] Verbose BUG() reporting (adds 70K):[ ]
<VirtualHost *:80> ... <Location "/mysite"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /mysite PythonDebug On PythonPath "['/var/www'] + sys.path" </Location> </VirtualHost>
<VirtualHost *:80> ... </VirtualHost> <Location "/media"> SetHandler None </Location>
まるごとコピー $ mkdir /var/www/media/ $ cp -Rp /usr/lib/python2.5/site-packages/django/contrib/admin/media/* /var/www/media/ シンボリックリンク(ショートカット)でもおk。 $ cd /var/www $ ls -s /usr/lib/python2.5/site-packages/django/contrib/admin/media media
#!/usr/bin/env python import pygtk import gtk import gtk.gdk import gtk.glade import gtkmozembed win = gtk.Window() browser = gtkmozembed.MozEmbed() win.add(browser) win.show_all() gtk.main()
sudo mount /dev/sdb2 /mnt/arm sudo mount /mnt/arm/boot sudo mount /dev/sdb1 /mnt/arm/boot sudo debootstrap --arch=armel --foreign lenny /mnt/arm http://ftp.de.debian.org/debian sudo cp -Rp ~/emv/kernel/kernel-modules/lib/* /mnt/arm/lib/ sudo cp ~/emv/kernel/mini2440/uImage /mnt/arm/boot/ cd ~/ sudo umount /mnt/arm/boot /mnt/arm
setenv bootcmd 'mmcinit ; fatload mmc 0:1 0x31000000 uimage ; bootm 0x31000000' setenv bootargs 'console=ttySAC0,115200n8 rootdelay=3 mini2440=3tb root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait' saveenv setenv bootargs 'console=ttySAC0,115200n8 noinitrd root=/dev/mmcblk0p2 rootwait=4 rw ip=dhcp init=/bin/sh' boot---
setenv bootcmd 'mmcinit ; ext2load mmc 0:1 0x31000000 /boot/uImage ; bootm 0x31000000' setenv bootargs 'console=ttySAC0,115200n8 rootdelay=3 mini2440=3tb root=/dev/mmcblk0p1 rw rootfstype=ext3 rootwait' saveenv setenv bootargs 'console=ttySAC0,115200n8 noinitrd root=/dev/mmcblk0p1 rootwait=4 rw ip=dhcp init=/bin/sh' boot
mount /proc /proc -t proc export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /debootstrap/debootstrap --second-stage40分くらいまってインストール完了。
mkswap /dev/mmcblk0p3 swapon /dev/mmcblk0p3 --- mknod dev/ttySAC0 c 204 64 printf "ttySAC0" >> /etc/securetty printf "T0:123:respawn:/sbin/getty 115200 ttySAC0\n" >> /etc/inittab printf "auto lo\niface lo inet loopback\n" > /etc/network/interfaces printf "auto eth0\niface eth0 inet dhcp\n" >> /etc/network/interfaces printf "nameserver 192.168.1.1" > /etc/resolv.conf printf "proc /proc proc none 0 0" > /etc/fstab printf "mini2440" > /etc/hostname printf '127.0.0.1 mini2440 localhost.localdomain localhost' > /etc/hosts printf 'deb http://ftp.jp.debian.org/debian lenny main contrib non-free' > /etc/apt/sources.list4.Xインストール
apt-get install hal xorg xserver-xorg-input-evtouch ・タッチパネル設定 cd /usr/lib/xf86-input-evtouch/ mini2440:/usr/lib/xf86-input-evtouch# cp /usr/share/xf86-input-evtouch/empty_curssor.xbm / mini2440:/usr/lib/xf86-input-evtouch# ./calibrate.sh設定ファイルが生成されたものをXConfに書く。
vim /etc/X11/xorg.conf
#!/usr/bin/python # codin: UTF-8 #プロット点を出力 t = [ 0, 0.3, 0.8, 1.1, 1.6, 2.3] y = [0.6, 0.67, 1.01, 1.35, 1.47, 1.25] plot(t,y,'o') # y = a*x^2 + b*x^1 + cの解を求める (a, b, c) = polyfit(t, y, 2) print "Y=(%f * X^2) + (%f * X^1) + %f" % (a, b, c) #最小二乗法のグラフを出力 tx = [] ty = [] for xx in range(0, 300, 1): v = float(xx) / 100 tx.append(v) ty.append( (a*v*v) + (b*v) + c ) plot(tx,ty,'-') show()
$ aptitude upgrade ... Preparing to replace coreutils 6.10-6 (using .../coreutils_8.5-1_armel.deb) ... Unpacking replacement coreutils ... dpkg: error processing /var/cache/apt/archives/coreutils_8.5-1_armel.deb (--unpack): corrupted filesystem tarfile - corrupted package archive configured to not write apport reports dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/coreutils_8.5-1_armel.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover:
$ rm /var/cache/apt/archives/coreutils_8.5-1_armel.deb $ aptitude upgrade
#!/usr/bin/python # coding: UTF-8 import csv filename = "table01.csv" csvfile = open(filename) for row in csv.reader(csvfile, delimiter = '\t'): print row for elem in row: print elem, print csvfile.close()
TextFieldParser parser = new TextFieldParser("text.csv", System.Text.Encoding.GetEncoding("Shift_JIS")); using (parser) { parser.TextFieldType = FieldType.Delimited; parser.SetDelimiters("\t"); while (!parser.EndOfData) { string[] row = parser.ReadFields(); foreach (string field in row) { string f = field; Console.Write(f + "\t"); // TAB区切りで出力 } Console.WriteLine(); }
$ diff -c <元ファイル名> <修正後ファイル名> > <パッチファイル> $ patch < <パッチファイル>
$ diff -crN <元フォルダ> <修正後フォルダ> > <パッチファイル> $ patch -p0 -E < <パッチファイル>
$ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cv >>> im = cv.LoadImageM("foo.jpg") >>> print type(im) <type 'cv.cvmat'> >>> cv.SaveImage("test.png", im) >>>
int main(void) { printf("hello\n"); return 0; }
$ CROSS_COMPILE=arm-linux- ARCH=arm make O=../kernel-bin/ mini2440_defconfig $ CROSS_COMPILE=arm-linux- ARCH=arm make O=../kernel-bin/ menuconfig $ CROSS_COMPILE=arm-linux- ARCH=arm make O=../kernel-bin/ $ ~/emv/uboot/mini2440/tools/mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d ../kernel-bin/arch/arm/boot/zImage uImage $ CROSS_COMPILE=arm-linux- ARCH=arm make O=../kernel-bin/ INSTALL_MOD_PATH=../kernel-modules modules_install
diff -crN ./linux-2.6.37-rc2-orig/arch/arm/Makefile ./linux-2.6.37-rc2/arch/arm/Makefile *** ./linux-2.6.37-rc2-orig/arch/arm/Makefile 2010-11-15 18:31:02.000000000 -0800 --- ./linux-2.6.37-rc2/arch/arm/Makefile 2010-11-16 23:52:28.904009998 -0800 *************** *** 78,84 **** tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM946E) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) ! tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM926T) :=-mtune=arm9tdmi --- 78,84 ---- tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM946E) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) ! tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm920t tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM926T) :=-mtune=arm9tdmi diff -crN ./linux-2.6.37-rc2-orig/arch/arm/mach-s3c2410/include/mach/leds-gpio.h ./linux-2.6.37-rc2/arch/arm/mach-s3c2410/include/mach/leds-gpio.h *** ./linux-2.6.37-rc2-orig/arch/arm/mach-s3c2410/include/mach/leds-gpio.h 2010-11-15 18:31:02.000000000 -0800 --- ./linux-2.6.37-rc2/arch/arm/mach-s3c2410/include/mach/leds-gpio.h 2010-11-16 23:58:02.868010000 -0800 *************** *** 16,21 **** --- 16,22 ---- #define S3C24XX_LEDF_ACTLOW (1<<0) /* LED is on when GPIO low */ #define S3C24XX_LEDF_TRISTATE (1<<1) /* tristate to turn off */ + #define S3C24XX_LEDF_STARTON (1<<2) /* Initialise 'on' */ struct s3c24xx_led_platdata { unsigned int gpio; diff -crN ./linux-2.6.37-rc2-orig/arch/arm/mach-s3c2440/mach-mini2440.c ./linux-2.6.37-rc2/arch/arm/mach-s3c2440/mach-mini2440.c *** ./linux-2.6.37-rc2-orig/arch/arm/mach-s3c2440/mach-mini2440.c 2010-11-15 18:31:02.000000000 -0800 --- ./linux-2.6.37-rc2/arch/arm/mach-s3c2440/mach-mini2440.c 2010-11-17 02:01:55.304009999 -0800 *************** *** 47,52 **** --- 47,53 ---- #include <plat/iic.h> #include <plat/mci.h> #include <plat/udc.h> + #include <plat/ts.h> #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> *************** *** 62,68 **** #define MACH_MINI2440_DM9K_BASE (S3C2410_CS4 + 0x300) ! static struct map_desc mini2440_iodesc[] __initdata = { /* nothing to declare, move along */ }; --- 63,69 ---- #define MACH_MINI2440_DM9K_BASE (S3C2410_CS4 + 0x300) ! static struct map_desc mini2440_iodesc[] = { /* nothing to declare, move along */ }; *************** *** 71,77 **** #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE ! static struct s3c2410_uartcfg mini2440_uartcfgs[] __initdata = { [0] = { .hwport = 0, .flags = 0, --- 72,78 ---- #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE ! static struct s3c2410_uartcfg mini2440_uartcfgs[] = { [0] = { .hwport = 0, .flags = 0, *************** *** 115,121 **** } } ! static struct s3c2410_udc_mach_info mini2440_udc_cfg __initdata = { .udc_command = mini2440_udc_pullup, }; --- 116,122 ---- } } ! static struct s3c2410_udc_mach_info mini2440_udc_cfg = { .udc_command = mini2440_udc_pullup, }; *************** *** 185,190 **** --- 186,215 ---- .lcdcon5 = (S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_HWSWP), }, + [3] = { /* mini2440 + 3.5" TFT + TS -- New model as Nov 2009 "T35" */ + _LCD_DECLARE( + 7, /* The 3.5 is quite fast */ + 240, 21, 25, 6, /* x timing */ + 320, 2, 4, 2, /* y timing */ + 40), /* refresh rate */ + .lcdcon5 = (S3C2410_LCDCON5_FRM565 | + S3C2410_LCDCON5_INVVLINE | + S3C2410_LCDCON5_INVVFRAME | + S3C2410_LCDCON5_INVVDEN | + S3C2410_LCDCON5_PWREN), + }, + [4] = { /* mini2440 + 5.6" TFT + touchscreen -- Innolux AT056TN52 */ + /* be sure the "power" jumper is set accordingly ! */ + _LCD_DECLARE( + 10, /* the 5.3" runs slower */ + 640, 41, 68, 22, /* x timing */ + 480, 26, 6, 2, /* y timing */ + 40), /* refresh rate */ + .lcdcon5 = (S3C2410_LCDCON5_FRM565 | + S3C2410_LCDCON5_INVVLINE | + S3C2410_LCDCON5_INVVFRAME | + S3C2410_LCDCON5_PWREN), + }, }; /* todo - put into gpio header */ *************** *** 234,240 **** /* MMC/SD */ ! static struct s3c24xx_mci_pdata mini2440_mmc_cfg __initdata = { .gpio_detect = S3C2410_GPG(8), .gpio_wprotect = S3C2410_GPH(8), .set_power = NULL, --- 259,265 ---- /* MMC/SD */ ! static struct s3c24xx_mci_pdata mini2440_mmc_cfg = { .gpio_detect = S3C2410_GPG(8), .gpio_wprotect = S3C2410_GPH(8), .set_power = NULL, *************** *** 243,249 **** /* NAND Flash on MINI2440 board */ ! static struct mtd_partition mini2440_default_nand_part[] __initdata = { [0] = { .name = "u-boot", .size = SZ_256K, --- 268,274 ---- /* NAND Flash on MINI2440 board */ ! static struct mtd_partition mini2440_default_nand_part[] = { [0] = { .name = "u-boot", .size = SZ_256K, *************** *** 268,274 **** }, }; ! static struct s3c2410_nand_set mini2440_nand_sets[] __initdata = { [0] = { .name = "nand", .nr_chips = 1, --- 293,299 ---- }, }; ! static struct s3c2410_nand_set mini2440_nand_sets[] = { [0] = { .name = "nand", .nr_chips = 1, *************** *** 431,436 **** --- 456,462 ---- static struct s3c24xx_led_platdata mini2440_led_backlight_pdata = { .name = "backlight", .gpio = S3C2410_GPG(4), + .flags = S3C24XX_LEDF_STARTON, .def_trigger = "backlight", }; *************** *** 499,512 **** .page_size = 16, }; ! static struct i2c_board_info mini2440_i2c_devs[] __initdata = { { I2C_BOARD_INFO("24c08", 0x50), .platform_data = &at24c08, }, }; ! static struct platform_device *mini2440_devices[] __initdata = { &s3c_device_ohci, &s3c_device_wdt, &s3c_device_i2c0, --- 525,543 ---- .page_size = 16, }; ! static struct i2c_board_info mini2440_i2c_devs[] = { { I2C_BOARD_INFO("24c08", 0x50), .platform_data = &at24c08, }, }; ! static struct s3c2410_ts_mach_info mini2440_ts_cfg = { ! .delay = 10000, ! .presc = 0xff, /* slow as we can go */ ! }; ! ! static struct platform_device *mini2440_devices[] = { &s3c_device_ohci, &s3c_device_wdt, &s3c_device_i2c0, *************** *** 522,527 **** --- 553,559 ---- &s3c_device_sdi, &s3c_device_iis, &mini2440_audio, + &s3c_device_adc, }; static void __init mini2440_map_io(void) *************** *** 605,612 **** features->done |= FEATURE_BACKLIGHT; break; case 't': ! printk(KERN_INFO "MINI2440: '%c' ignored, " ! "touchscreen not compiled in\n", f); break; case 'c': if (features->done & FEATURE_CAMERA) --- 637,649 ---- features->done |= FEATURE_BACKLIGHT; break; case 't': ! if (features->done & FEATURE_TOUCH) ! printk(KERN_INFO "MINI2440: '%c' ignored, " ! "touchscreen already set\n", f); ! else ! features->optional[features->count++] = ! &s3c_device_ts; ! features->done |= FEATURE_TOUCH; break; case 'c': if (features->done & FEATURE_CAMERA) *************** *** 677,682 **** --- 714,720 ---- s3c24xx_mci_set_platdata(&mini2440_mmc_cfg); s3c_nand_set_platdata(&mini2440_nand_info); s3c_i2c0_set_platdata(NULL); + s3c24xx_ts_set_platdata(&mini2440_ts_cfg); i2c_register_board_info(0, mini2440_i2c_devs, ARRAY_SIZE(mini2440_i2c_devs)); diff -crN ./linux-2.6.37-rc2-orig/drivers/leds/leds-s3c24xx.c ./linux-2.6.37-rc2/drivers/leds/leds-s3c24xx.c *** ./linux-2.6.37-rc2-orig/drivers/leds/leds-s3c24xx.c 2010-11-15 18:31:02.000000000 -0800 --- ./linux-2.6.37-rc2/drivers/leds/leds-s3c24xx.c 2010-11-16 23:51:47.716010000 -0800 *************** *** 85,90 **** --- 85,91 ---- led->cdev.default_trigger = pdata->def_trigger; led->cdev.name = pdata->name; led->cdev.flags |= LED_CORE_SUSPENDRESUME; + led->cdev.brightness = pdata->flags & S3C24XX_LEDF_STARTON ? 1 : 0; led->pdata = pdata; *************** *** 95,101 **** s3c2410_gpio_cfgpin(pdata->gpio, S3C2410_GPIO_INPUT); } else { s3c2410_gpio_pullup(pdata->gpio, 0); ! s3c2410_gpio_setpin(pdata->gpio, 0); s3c2410_gpio_cfgpin(pdata->gpio, S3C2410_GPIO_OUTPUT); } --- 96,103 ---- s3c2410_gpio_cfgpin(pdata->gpio, S3C2410_GPIO_INPUT); } else { s3c2410_gpio_pullup(pdata->gpio, 0); ! /* backlight led needs to be turned on early on */ ! s3c2410_gpio_setpin(pdata->gpio, led->cdev.brightness); s3c2410_gpio_cfgpin(pdata->gpio, S3C2410_GPIO_OUTPUT); } diff -crN ./linux-2.6.37-rc2-orig/drivers/serial/samsung.c ./linux-2.6.37-rc2/drivers/serial/samsung.c *** ./linux-2.6.37-rc2-orig/drivers/serial/samsung.c 2010-11-15 18:31:02.000000000 -0800 --- ./linux-2.6.37-rc2/drivers/serial/samsung.c 2010-11-17 01:54:39.248009997 -0800 *************** *** 883,889 **** static struct uart_driver s3c24xx_uart_drv = { .owner = THIS_MODULE, ! .dev_name = "s3c2410_serial", .nr = CONFIG_SERIAL_SAMSUNG_UARTS, .cons = S3C24XX_SERIAL_CONSOLE, .driver_name = S3C24XX_SERIAL_NAME, --- 883,889 ---- static struct uart_driver s3c24xx_uart_drv = { .owner = THIS_MODULE, ! .dev_name = S3C24XX_SERIAL_NAME, .nr = CONFIG_SERIAL_SAMSUNG_UARTS, .cons = S3C24XX_SERIAL_CONSOLE, .driver_name = S3C24XX_SERIAL_NAME, diff -crN ./linux-2.6.37-rc2-orig/sound/soc/s3c24xx/Kconfig ./linux-2.6.37-rc2/sound/soc/s3c24xx/Kconfig *** ./linux-2.6.37-rc2-orig/sound/soc/s3c24xx/Kconfig 2010-11-15 18:31:02.000000000 -0800 --- ./linux-2.6.37-rc2/sound/soc/s3c24xx/Kconfig 2010-11-16 17:32:14.572010082 -0800 *************** *** 2,7 **** --- 2,8 ---- tristate "SoC Audio for the Samsung S3CXXXX chips" depends on ARCH_S3C2410 || ARCH_S3C64XX || ARCH_S5PC100 || ARCH_S5PV210 select S3C64XX_DMA if ARCH_S3C64XX + select S3C2410_DMA if ARCH_S3C2410 help Say Y or M if you want to add support for codecs attached to the S3C24XX AC97 or I2S interfaces. You will also need to
$ cd /mnt/arm $ tar cvpzf ~/backup.tgz --exclude=./proc --exclude=./lost+found --exclude=./mnt --exclude=./sys --exclude=./media ./
cd /mnt/arm tar xvpfz backup.tgz -C ./ mkdir proc mkdir mnt mkdir sys mkdir media
次期リリースには取り入れられるらしいので、
そっちにアップグレードしてからインストール。
・lennyからsqueezeにアップグレード
vim /etc/apt/sources.list
→lennyからsqueezeに変更。
# aptitude update
# aptitude install aptitude
# aptitude upgrade
# aptitude dist-upgrade
・upstartを入れる
# aptitude remove sysvinit
# aptitude install upstart
②次に/etc/inittabを開き
1:2345:respawn:/sbin/mingetty tty1
を次のように変更
1:2345:respawn:/bin/login ユーザ名 /dev/tty1 2>/dev/tty1
"②次に/etc/inittabを開き 1:2345:respawn:/sbin/mingetty tty1 を次のように変更 1:2345:respawn:/bin/login ユーザ名 </dev/tty1 >/dev/tty1 2>/dev/tty1"
- Linux (Google サイドウィキで表示)
キーボードをUS105から106-JPに変更
コンソールの設定を変更します。
# dpkg-reconfigure console-data
リストから
Select keymap from full list
を選択して次に出てきたリストから
pc / qwerty / Japanese / Standard /Standard
を選択します。最後まで行くと保存して終了します。
---
http://d.hatena.ne.jp/zep/
もし、console-dataが入ってない場合は、
apt-get install hal
すると一緒についてくる。