pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

Raspberry Pi fedoraでkernel make に挑戦-4!(FOMAで電話OKよん(^_^))

2013-04-01 08:34:29 | Linux

Raspberry Pi fedoraでkernel make に挑戦ということで
新しいkernelが出来たので勇気をもってrebootしたけど
うまく立ち上がったみたいなので

ログインして確認を
Last login: Mon Apr 1 08:09:50 2013 from 192.168.2.8
[root@remote-hand ~]# uname -r
3.6.11-pepo
[root@remote-hand ~]#
おーと、originalのkernelで立ち上がってるやん

ついでにFOMAを接続してみる
[root@remote-hand ~]# tail /var/log/messages
Mar 8 05:12:44 localhost kernel: [ 513.445493] usb 1-1.3: Product: FOMA N09A
Mar 8 05:12:44 localhost kernel: [ 513.445506] usb 1-1.3: Manufacturer: NEC
Mar 8 05:12:44 localhost kernel: [ 513.445518] usb 1-1.3: SerialNumber: 356759021861597
Mar 8 05:12:44 localhost kernel: [ 513.534517] acm_FOMA 1-1.3:1.0: ttyACM0: USB ACM device
Mar 8 05:12:44 localhost kernel: [ 513.541804] acm_FOMA 1-1.3:1.2: ttyACM1: USB ACM device
Mar 8 05:12:44 localhost kernel: [ 513.549886] acm_FOMA 1-1.3:1.4: Control and data interfaces are not separated!
Mar 8 05:12:44 localhost kernel: [ 513.549901] acm_FOMA 1-1.3:1.4: This needs exactly 3 endpoints
Mar 8 05:12:44 localhost kernel: [ 513.567280] acm_FOMA 1-1.3:1.4: ttyACM2: USB ACM device
Mar 8 05:12:44 localhost kernel: [ 513.585230] usbcore: registered new interface driver acm_FOMA
Mar 8 05:12:44 localhost kernel: [ 513.585262] acm_FOMA: v0.26-FOMA.10:USB driver for docomo FOMA Cellular phone
[root@remote-hand ~]#

[root@remote-hand ~]# epicon -l /dev/ttyACM2

** Welcome to epicon Version-5.0 Copyright Isamu Yamauchi compiled:Mar 8 2013 **
exec shell ~!
send binary files ~f
call rz,sz,sx,rx ~rz,~sz,~sx,~rx
call kermit ~sk,~rk
external command ~C
change speed ~c
exit ~.
Connected /dev/ttyACM2
ath0901234567890#
OK
ath
OK

Disconnected
[root@remote-hand ~]#

OKや 

pepoと


Raspberry Pi fedoraでkernel make に挑戦-3!

2013-04-01 08:20:57 | Linux

Raspberry Pi fedoraでkernel make に挑戦で
新しいkernelが出来たけど手動でインストールせえーという事で
[root@remote-hand raspberrypi-linux-c5cb0b5]# cd /boot/
[root@remote-hand boot]# ls
bootcode.bin
cmdline.txt
config-3.6.11-2.20130205gitc5cb0b5.rpfr18
config.txt
config.txt.hdmi_nooverscan
config.txt.hdmi_overscan
config.txt.ntsc_japan
config.txt.ntsc_northamerica
config.txt.pal
config.txt.pal_brazil
fixup.dat
grub
kernel-3.6.11-2.20130205gitc5cb0b5.rpfr18.img
kernel.img
start.elf
start.elf.desc
System.map-3.6.11-pepo
vmlinux-3.6.11-pepo
ネットでいろいろ調べるとどうもgrubでconfigとを行かないようなので手動コピーする
[root@remote-hand boot]# cp kernel.img kernel.old_20130401
[root@remote-hand boot]# cp vmlinux-3.6.11-pepo kernel.img
cp: overwrite ‘kernel.img’? y
[root@remote-hand boot]# ll
total 33288
-rwxr-xr-x 1 root root 17764 Nov 23 12:50 bootcode.bin
-rwxr-xr-x 1 root root 134 Nov 19 12:09 cmdline.txt
-rwxr-xr-x 1 root root 92407 Feb 15 14:10 config-3.6.11-2.20130205gitc5cb0b5.rpfr18
-rwxr-xr-x 1 root root 541 Mar 7 20:20 config.txt
-rwxr-xr-x 1 root root 465 Nov 19 12:09 config.txt.hdmi_nooverscan
-rwxr-xr-x 1 root root 540 Nov 19 12:09 config.txt.hdmi_overscan
-rwxr-xr-x 1 root root 524 Nov 19 12:09 config.txt.ntsc_japan
-rwxr-xr-x 1 root root 541 Nov 19 12:09 config.txt.ntsc_northamerica
-rwxr-xr-x 1 root root 495 Nov 19 12:09 config.txt.pal
-rwxr-xr-x 1 root root 498 Nov 19 12:09 config.txt.pal_brazil
-rwxr-xr-x 1 root root 5284 Nov 23 12:50 fixup.dat
drwxr-xr-x 2 root root 2048 Mar 7 16:00 grub
-rwxr-xr-x 1 root root 7537004 Feb 15 14:09 kernel-3.6.11-2.20130205gitc5cb0b5.rpfr18.img
-rwxr-xr-x 1 root root 7504236 Apr 1 08:20 kernel.img
-rwxr-xr-x 1 root root 7537004 Apr 1 08:19 kernel.old_20130401
-rwxr-xr-x 1 root root 2353656 Nov 23 12:50 start.elf
-rwxr-xr-x 1 root root 407 Nov 19 12:09 start.elf.desc
-rwxr-xr-x 1 root root 1502707 Apr 1 08:11 System.map-3.6.11-pepo
-rwxr-xr-x 1 root root 7504236 Apr 1 08:11 vmlinux-3.6.11-pepo
えーい、rebootや
[root@remote-hand boot]# reboot
pepoと 


Raspberry Pi fedoraでkernel make に挑戦-2!

2013-04-01 08:01:16 | Linux

Raspberry Pi fedoraでkernel make に挑戦だが
さて、kernelがmake出来たか確認をする
[root@remote-hand ~]# cd ./rpmbuild/BUILD/raspberrypi-linux-c5cb0b5/
[root@remote-hand raspberrypi-linux-c5cb0b5]# ls
arch first32k.bin lib README usr
block fs MAINTAINERS REPORTING-BUGS virt
COPYING include Makefile samples vmlinux
CREDITS init mm scripts vmlinux.o
crypto ipc modules.builtin security
Documentation Kbuild modules.order sound
drivers Kconfig Module.symvers System.map
firmware kernel net tools 
 
patchを入れたFOMAのdriverも出来ているようだ
[root@remote-hand raspberrypi-linux-c5cb0b5]# ls /lib/modules/3.6.11-pepo/kernel/drivers/usb/class/acm-FOMA.ko
/lib/modules/3.6.11-pepo/kernel/drivers/usb/class/acm-FOMA.ko

ついでにinstall
[root@remote-hand raspberrypi-linux-c5cb0b5]# make install
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
/bin/sh /root/rpmbuild/BUILD/raspberrypi-linux-c5cb0b5/arch/arm/boot/install.sh 3.6.11-pepo \
arch/arm/boot/Image System.map "/boot"
Installing normal kernel
You have to install it yourself
[root@remote-hand raspberrypi-linux-c5cb0b5]#
You have to install it yourself:うーと、自分でインストールが必要だって

pepoと