まだ幾つか問題が有るケド,取り敢えずserial consoleとdropbear SSHが動いたので,
残っている別の作業をせねば.
以下,メモ.
1) kernelの.configを調整していない所為で,要らないモノが結構有る.
2) その所為でframbufferがboot中にどこかに逝って仕舞うし,CFのDMAが効かない.
3) udevを/dev/console, /dev/nullだけから動かしているのでbootが激しく遅い.
4) rootfsの大きさが100MB以上.
[K, it just works.
Some unstisfied thigies even are, though.
Serial cosole works, dropbear SSH works... So, I must do other codings.
Some memo are on the below.
1) Kernel's .config aren't sanitized, many unneeded config options are.
2) Due to 1), framebuffer got corrupted and CF's DMA are disabled ATM.
3) Using udev w/ only /dev/{console,null}. So, it makes boot time slowly.
4) Size of rootfs exceeded 100MB, it's too huge as embedded rootfs.]
追加:ヘボ英語入れるの忘れてた. :P
[ADD: Forgot to add eng"r"ish stubs. :P]
hiyuh@fukurou ~ $ /usr/bin/sudo /usr/bin/kermit -c
Connecting to /dev/tts/USB0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
Press any key to continue.
GNU GRUB version 0.97 (640K lower / 127488K upper memory)
+-------------------------------------------------------------------------+
| Gentoo Linux (2.6.17-gentoo-r5) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
+-------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, or 'c' for a command-line.
The highlighted entry will be booted automatically in 5 seconds.
Booting 'Gentoo Linux (2.6.17-gentoo-r5)'
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-2.6.17-gentoo-r5 hda=none hdb=none root=/dev/hdc1 conso
le=tty0 console=ttyS0,115200n8 udev
[Linux-bzImage, setup=0x1c00, size=0x16fc2e]
Linux version 2.6.17-gentoo-r5 (root@fukurou) (gcc version 3.4.6 (Gentoo 3.
4.6-r2, HTB-3.4.4-1.00, ssp-3.4.6-1.0, pie-8.7.9)) #1 PREEMPT Wed Aug 23 10
:05:52 UTC 2006
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000007d80000 (usable)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
125MB LOWMEM available.
DMI 2.2 present.
ACPI: Unable to locate RSDP
Allocating PCI resources starting at 10000000 (gap: 07d80000:f8270000)
Built 1 zonelists
Kernel command line: hda=none hdb=none root=/dev/hdc1 console=tty0 console=
ttyS0,115200n8 udev
ide_setup: hda=none
ide_setup: hdb=none
Initializing CPU#0
PID hash table entries: 512 (order: 9, 2048 bytes)
Detected 299.730 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 123832k/128512k available (1957k kernel code, 4280k reserved, 716k
data, 152k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 609.26 BogoMIPS (lpj=304633)
Mount-cache hash table entries: 512
Working around Cyrix MediaGX virtual DMA bugs.
Enable Memory-Write-back mode on Cyrix/NSC processor.
Enable Memory access reorder on Cyrix/NSC processor.
Enable Incrementor on Cyrix/NSC processor.
CPU: Cyrix Geode(TM) Integrated Processor by National Semi stepping 02
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 0k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfae00, last bus=0
Setting up standard PCI resources
ACPI: Subsystem revision 20060127
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Using IRQ router NatSemi [1078/0100] at 0000:00:12.0
PCI: Ignore bogus resource 6 [0:0] of 0000:00:12.4
PCI: Bus 1, cardbus bridge: 0000:00:09.0
IO window: 00001000-000010ff
IO window: 00001400-000014ff
PREFETCH window: 10000000-11ffffff
MEM window: 12000000-13ffffff
PCI: Assigned IRQ 11 for device 0000:00:09.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1156370080.571:1): initialized
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered (default)
gx1fb 0000:00:12.4: 2560 Kibyte of video memory at 0x40800000
Console: switching to colour frame buffer device 80x30
fb0: GX1 frame buffer device
vga16fb: mapped to 0xc00a0000
fb1: VGA16 VGA frame buffer device
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CS5530: IDE controller at PCI slot 0000:00:12.2
CS5530: chipset revision 0
CS5530: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:pio
input: AT Translated Set 2 keyboard as /class/input/input0
hdc: TRANSCEND, CFA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: max request size: 128KiB
hdc: 2030112 sectors (1039 MB) w/1KiB Cache, CHS=2014/16/63
hdc: hdc1
116x: driver isp116x-hcd, 03 Nov 2005
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
wbsd: Winbond W83L51xD SD/MMC card interface driver, 1.5
wbsd: Copyright(c) Pierre Ossman
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 152k freed
INIT: version 2.86 booting
Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2006 Gentoo Foundation; Distributed under the GPLv2
Press I to enter interactive boot mode
* Mounting proc at /proc ... [ ok ]
* Mounting sysfs at /sys ... [ ok ]
* Mounting /dev for udev ... [ ok ]
* Seeding /dev with needed nodes ... [ ok ]
* Setting up proper hotplug agent ...
* Using netlink for hotplug events...
[ ok ]
* Starting udevd ... [ ok ]
* Populating /dev with existing devices through uevents ... [ ok ]
* Letting udev process events ... [ ok ]
* Finalizing udev configuration ... [ ok ]
* Mounting devpts at /dev/pts ... [ ok ]
* Checking root filesystem .../dev/hdc1: clean, 11806/126976 files, 50553/253756 blocks
[ ok ]
* Remounting root filesystem read/write ... [ ok ]
* Checking all filesystems ... [ ok ]
* Mounting local filesystems ... [ ok ]
* Mounting USB device filesystem (usbfs) ... [ ok ]
* Activating (possible) swap ... [ ok ]
* Setting system clock using the hardware clock [Local Time] ... [ ok ]
* Configuring kernel parameters ... [ ok ]
* Updating environment ... [ ok ]
* Cleaning /var/lock, /var/run ... [ ok ]
* Cleaning /tmp directory ... [ ok ]
* Device initiated services:
* Setting hostname to bs_root ... [ ok ]
* Loading key mappings ... [ ok ]
* Setting terminal encoding to UTF-8 ... [ ok ]
* Setting user font ... [ ok ]
* Starting lo
* Bringing up lo
* 127.0.0.1/8
[ ok ]
* Adding routes
* 127.0.0.0/8 ... [ ok ]
* Initializing random number generator ... [ ok ]
INIT: Entering runlevel: 3
[ ok ]
* Starting syslog-ng ... [ ok ]
* Starting eth0
* Configuration not set for eth0 - assuming DHCP
* Bringing up eth0
* dhcp
* Running dhcpcd ... [ ok ]
* eth0 received address 192.9.200.253/24
* Starting dropbear ... [ ok ]
* Mounting network filesystems ... [ ok ]
* Starting vixie-cron ... [ ok ]
* Starting local ... [ ok ]
This is bs_root.unknown_domain (Linux i586 2.6.17-gentoo-r5) 21:57:39
bs_root login: hiyuh
Password:
Last login: Wed Aug 23 21:45:14 2006 on ttyS0
hiyuh@bs_root ~ $ uname -a
Linux bs_root 2.6.17-gentoo-r5 #1 PREEMPT Wed Aug 23 10:05:52 UTC 2006 i586
Geode(TM) Integrated Processor by National Semi CyrixInstead GNU/Linux
hiyuh@bs_root ~ $ cat /proc/cpuinfo
processor : 0
vendor_id : CyrixInstead
cpu family : 5
model : 9
model name : Geode(TM) Integrated Processor by National Semi
stepping : 2
cpu MHz : 299.730
cache size : 16 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu tsc msr cx8 cmov mmx cxmmx up
bogomips : 609.26
hiyuh@bs_root ~ $ gcc -v 2>&1 | sed -e "s/--/\n\ \ \ \ --/g"
Reading specs from /usr/lib/gcc/i586-pc-linux-uclibc/3.4.6/specs
Configured with: /var/tmp/portage/gcc-3.4.6-r2/work/gcc-3.4.6/configure
--prefix=/usr
--bindir=/usr/i586-pc-linux-uclibc/gcc-bin/3.4.6
--includedir=/usr/lib/gcc/i586-pc-linux-uclibc/3.4.6/include
--datadir=/usr/share/gcc-data/i586-pc-linux-uclibc/3.4.6
--mandir=/usr/share/gcc-data/i586-pc-linux-uclibc/3.4.6/man
--infodir=/usr/share/gcc-data/i586-pc-linux-uclibc/3.4.6/info
--with-gxx-include-dir=/usr/lib/gcc/i586-pc-linux-uclibc/3.4.6/include/g++-v3
--host=i586-pc-linux-uclibc
--build=i586-pc-linux-uclibc
--disable-altivec
--disable-nls
--with-system-zlib
--disable-checking
--disable-werror
--disable-libunwind-exceptions
--disable-multilib
--disable-libgcj
--enable-languages=c,c++
--enable-shared
--enable-threads=posix
--disable-__cxa_atexit
--enable-target-optspace
--enable-clocale=uclibc
Thread model: posix
gcc version 3.4.6 (Gentoo 3.4.6-r2, HTB-3.4.4-1.00, ssp-3.4.6-1.0, pie-8.7.9)
hiyuh@bs_root ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdc1 976M 183M 745M 20% /
udev 61M 152K 61M 1% /dev
shm 61M 0 61M 0% /dev/shm
hiyuh@bs_root ~ $ lsmod
Module Size Used by
rtc 8980 0
8139cp 20480 0
8139too 25088 0
mii 5376 2 8139cp,8139too
yenta_socket 24844 0
rsrc_nonstatic 10752 1 yenta_socket
pcmcia_core 38800 2 yenta_socket,rsrc_nonstatic
hiyuh@bs_root ~ $ su
Password:
root@bs_root hiyuh # shutdown -h now
Broadcast message from root (ttyS0) (Wed Aug 23 21:58:21 2006):
The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
* Stopping local ... [ ok ]
* Stopping vixie-cron ... [ ok ]
* Saving random seed ... [ ok ]
* Unmounting network filesystems ... [ ok ]
* Stopping dropbear ... [ ok ]
* Stopping eth0
* Bringing down eth0
* Stopping dhcpcd on eth0 ... [ ok ]
* Shutting down eth0 ... [ ok ]
* Stopping lo
* Bringing down lo
* Shutting down lo ... [ ok ]
* Stopping syslog-ng ... [ ok ]
* Unmounting filesystems ... [ ok ]
* Remounting remaining filesystems readonly ... [ ok ]
System halted.
(Back at localhost)
----------------------------------------------------
quit
0 件のコメント:
コメントを投稿