Kishima's Hateda log

はてなダイアリー記事の保管庫

Armadillo9でUst端末を作ってみよう(3)

久々に時間が取れたので、更新。

Linux Kernel 2.6.26のpre1をV4Lにチェック付でビルドできました。
http://armadillo.atmark-techno.com/news/100108/kernel-beta-release

まずmizoさんのコメントに従って試してみると、

こちらではlinux-2.6.26-at4-ep93xx-port-pre0.tar.gzビルドできてますよ?

開発環境でしょうかね?

[pc]:$ cat /etc/apt/sources.list
deb http://download.atmark-techno.com/debian etch/


[pc]:$ sudo apt-get update
[pc]:$ sudo apt-get install a9-development-environment

したらどうなります?

下記の「開発環境を構築したのにライブラリを発見できません」現象になってしまったので、一旦開発用パッケージを全部消して*1、入れなおしてみた。
http://armadillo.atmark-techno.com/howto/prepare-development-env-a500

新しい開発用のパッケージは http://armadillo.atmark-techno.com/filebrowser/armadillo-9/cross-dev/deb から最新をとってきた。
そうするとやっとビルドが通った*2
実機で動作確認する前に力尽きたので、明日あたり試してみる。

mizoさんどうもありがとうございました。

・・・

起動してみたら、起動しなかった。あれ、CFへの展開の仕方間違えたかな。確認しないと。
あ、まだ、CFドライバ未実装だったのですね…。
ドライバをマージする方向で調べてみますか。あとは大人しくドライバ対応カメラを買うか。

Hermit-At v1.1.6 (armadillo9/eth) compiled at 16:03:21, Nov 30 2006
Disk drive detected: 20051220 CF CARD 000004B6
/dev/hdc1: start=0x0000003f, size=0x001ef9e1
linux.bin.gz is found.
Copying kernel..done.
Uncompressing kernel..........................................................................................done.
Doing noinitrd
Doing root=/dev/hdc1
Doing console=ttyAM0,115200
Doing mtdparts=armadillo9-nor:0x10000(bootloader)ro,0x170000(kernel),0x670000(userland),-(config)
Linux version 2.6.26-at4-ep93xx-port-pre1 (2.6.26) (kishima@debian) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #2 PREEMPT Mon Mar 8 03:05:55 JST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0003177
Machine: Atmark Techno Armadillo9
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16192
Kernel command line: noinitrd root=/dev/hdc1 console=ttyAM0,115200 mtdparts=armadillo9-nor:0x10000(bootloader)ro,0x170000(kernel),0x670000(userland),-(config)
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB 32MB = 64MB total
Memory: 61920KB available (2652K code, 174K data, 124K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 480 bytes
NET: Registered protocol family 16
ep93xx: PLL1 running at 400 MHz, PLL2 at 192 MHz
ep93xx: FCLK 200 MHz, HCLK 100 MHz, PCLK 50 MHz
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
msgmni has been set to 121
io scheduler noop registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 80x30
fb0: EP93xx frame buffer at 640x480x16bpp
Serial: AMBA driver $Revision: 1.41 $
apb:uart1: ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
console [ttyAM0] enabled
apb:uart2: ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
apb:uart3: ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
brd: module loaded
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
armadillo2x0-nor: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
armadillo2x0-nor: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
armadillo2x0-nor: use default partitions(4)
Creating 4 MTD partitions on "armadillo2x0-nor":
0x00000000-0x00010000 : "bootloader"
0x00010000-0x00180000 : "kernel"
0x00180000-0x007f0000 : "userland"
0x007f0000-0x00800000 : "config"
ep93xx-ohci ep93xx-ohci: EP93xx OHCI
ep93xx-ohci ep93xx-ohci: new USB bus registered, assigned bus number 1
ep93xx-ohci ep93xx-ohci: irq 56, io mem 0x80020000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EP93xx OHCI
usb usb1: Manufacturer: Linux 2.6.26-at4-ep93xx-port-pre1 ohci_hcd
usb usb1: SerialNumber: ep93xx
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c-gpio i2c-gpio.0: using pins 12 (SDA) and 13 (SCL)
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
ep93xx-eth version 0.1 loading
eth0: ep93xx on-chip ethernet, IRQ 39, 00:11:0c:02:0e:eb.
VFS: Cannot open root device "hdc1" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 64 mtdblock0 (driver?)
1f01 1472 mtdblock1 (driver?)
1f02 6592 mtdblock2 (driver?)
1f03 64 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

*1:apt-get --purge remove hoge fuga

*2:pcapが無いとエラーが起きたので、古いのから持ってきた