[Milkymist-devel] Kernel 2.6.33

Takeshi Matsuya macchan at sfc.wide.ad.jp
Fri Feb 26 02:06:16 PST 2010


Hi,
I tried some network commands on the latest kernel and busybox.
But the kernel is unstable yet.

Test binaries are here.
http://www.sfc.wide.ad.jp/~macchan/milkymist_linux_0226.tgz
(Serial console version)
http://www.sfc.wide.ad.jp/~macchan/milkymist_linux_vga_0226.tgz
(VGA and PS2 keyboard version)
http://www.sfc.wide.ad.jp/~macchan/milkymist_0226.tgz
(Test ML401 bit file)

--------(Console Log)------------
Booting from CF card...
Read a 2753932 byte image from BOOT.BIN, CRC32 c3ab7525
Read a 14 byte image from CMDLINE.TXT, CRC32 57a863a8
Read a 8388608 byte image from INITRD.BIN, CRC32 ffc597fd
Booting...
Linux version 2.6.33 (tmatsuya at tmatsuya-pc) (gcc version 4.4.0 (GCC) )
#347 Fri Feb 26 18:00:20 JST 2010
bootconsole [early0] enabled
memory from 402be000 - 44000000
reserving initrd memory: 41002000 size 800000
start_mem is 0x402be000
virtual_end is 0x44000000
before free_area_init
free_area_init -> start_mem is 0x402be000
virtual_end is 0x44000000
after free_area_init
Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
138720
Kernel command line: root=/dev/ram

PID hash table entries: 4096 (order: 1, 16384 bytes)
Dentry cache hash table entries: 262144 (order: 7, 1048576 bytes)
Inode-cache hash table entries: 131072 (order: 6, 524288 bytes)
Memory available: 48616k/65536k RAM, (2624k kernel code, 116k data)
Hierarchical RCU implementation.
NR_IRQS:32
Console: colour dummy device 80x25
console [tty0] enabled, bootconsole disabled
Linux version 2.6.33 (tmatsuya at tmatsuya-pc) (gcc version 4.4.0 (GCC) )
#347 Fri Feb 26 18:00:20 JST 2010
bootconsole [early0] enabled
memory from 402be000 - 44000000
reserving initrd memory: 41002000 size 800000
start_mem is 0x402be000
virtual_end is 0x44000000
before free_area_init
free_area_init -> start_mem is 0x402be000
virtual_end is 0x44000000
after free_area_init
Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
138720
Kernel command line: root=/dev/ram

PID hash table entries: 4096 (order: 1, 16384 bytes)
Dentry cache hash table entries: 262144 (order: 7, 1048576 bytes)
Inode-cache hash table entries: 131072 (order: 6, 524288 bytes)
Memory available: 48616k/65536k RAM, (2624k kernel code, 116k data)
Hierarchical RCU implementation.
NR_IRQS:32
Console: colour dummy device 80x25
console [tty0] enabled, bootconsole disabled
console [ttyS0] enabled
milkymist_uart: registered real console
Calibrating delay loop... 157.28 BogoMIPS (lpj=786432)
Mount-cache hash table entries: 1024
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 3, 65536 bytes)
TCP established hash table entries: 65536 (order: 6, 524288 bytes)
TCP bind hash table entries: 65536 (order: 5, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like
an initrd
Freeing initrd mem: 8191k freed
ROMFS MTD (C) 2007 Red Hat, Inc.
io scheduler noop registered (default)
milkymist_uart: Milkymist UART driver
ttyS0 at I/O 0x0 (irq = 3) is a milkymist_uart
milkymist_uart: added port 0 with irq 3-4 at 0x80000000
brd: module loaded
loop: module loaded
xsysace xsysace.0: Xilinx SystemACE revision 1.0.12
xsysace xsysace.0: capacity: 3992688 sectors
 xsa: xsa1
Xilinx SystemACE device driver, major=254
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
CSLIP: code copyright 1989 Regents of the University of California.
ethoc-mdio: probed
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 8192KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) readonly on device 1:0.

starting pid 15, tty '': '/etc/init.d/rcS'
udhcpc (v1.16.0) started
Setting IP address 0.0.0.0 on eth0
Sending discover...
Sending select for XXX.XXX.143.199...
Lease of XXX.XXX.143.199 obtained, lease time 600
Setting IP address XXX.XXX.143.199 on eth0
Deleting routers
Adding router XXX.XXX.143.84
Recreating /etc/resolv.conf
 Adding DNS server XXX.XXX.142.148
 Adding DNS server XXX.XXX.136.62

starting pid 30, tty '': '/sbin/getty -L ttyS0 115200 vt100'


milkymist_ml401 login: root

Welcome to the Milkymist Linux


     |\  /|'||      |\  /|'   |
     | \/ ||||_/\  /| \/ ||(~~|~
     |    |||| \ \/ |    ||_) |
                _/ 

http://www.milkymist.org/

Jan  1 00:00:22 login[30]: root login on 'ttyS0'



BusyBox v1.16.0 (2010-02-24 23:49:27 JST) hush - the humble shell
Enter 'help' for a list of built-in commands.

root:~# uname -a
Linux milkymist_ml401 2.6.33 #347 Fri Feb 26 18:00:20 JST 2010 lm32
GNU/Linux
root:~# cat /proc/cpuinfo
CPU:            lm32
MMU:            none
FPU:            none
Clocking:       98.3MHz
BogoMips:       157.28
Calibration:    78643200 loops
root:~# free
              total         used         free       shared      buffers
  Mem:        56800        16840        39960            0          112
 Swap:            0            0            0
Total:        56800        16840        39960
root:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr DA:AC:26:0A:57:86  
          inet addr:XXX.XXX.143.199  Bcast:XXX.XXX.143.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:236 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:1 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:16713 (16.3 KiB)  TX bytes:1180 (1.1 KiB)
          Interrupt:13 Memory:42a20000-42a28000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root:~# rdate time.bora.net
Fri Feb 26 09:18:56 2010
root:~# 
root:~# netstat -an|more
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address
State       
tcp        0      0 0.0.0.0:37              0.0.0.0:*
LISTEN      
tcp        0      0 0.0.0.0:7               0.0.0.0:*
LISTEN      
tcp        0      0 0.0.0.0:13              0.0.0.0:*
LISTEN      
tcp        0      0 0.0.0.0:21              0.0.0.0:*
LISTEN      
tcp        0      0 0.0.0.0:23              0.0.0.0:*
LISTEN      
udp        0      0 0.0.0.0:7
0.0.0.0:*                           
udp        0      0 0.0.0.0:13
0.0.0.0:*                           
udp        0      0 0.0.0.0:37
0.0.0.0:*                           
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
root:~# 
root:~# mount *******.****.****.ad.jp:/export 2/mnt -t nfs -o
nolock,vers=2
root:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,errors=continue)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
*******.****.****.ad.jp:/export2 on /mnt type nfs
(rw,relatime,vers=2,rsize=8192,wsize=8192,namlen=255,hard,nolock,proto=udp,port=65535,timeo=7,retrans=3,sec=sys,mountport=65535,mountproto=,addr=XXX.XXX.142.144)
root:~# df
Filesystem           1024-blocks    Used Available Use% Mounted on
/dev/root                 7931      1340      6591  17% /
*******.****.****.ad.jp:/export2
                     2037408512 1615193680 318720488  84% /mnt
root:~# cd /mnt/HOME3/macchan/tmp
root:/mnt/HOME3/macchan/tmp# ls
crc32            dev.tar          maui-attend.csv  profile.csv
crc32.c          ipsum            maui2009
dev              ipsum.c          plan.csv
root:/mnt/HOME3/macchan/tmp# cd
root:~# 
root:~# cd /tmp
root:/tmp# wget http://www.milkymist.org
Connecting to www.milkymist.org (69.163.150.252:80)

index.html             0% |                               |     0
--:--:-- ETA
index.html           100% |*******************************|  4837
--:--:-- ETA
root:/tmp# more index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
        <meta http-equiv="Content-Type" content="text/html;
charset=utf-8"/>

        <title>Milkymist&trade; - eyecandy on a chip</title>
        
        <link rel="stylesheet" type="text/css" media="screen"
href="style.css" />
        <link rel="icon" type="image/png" href="favicon.png" />
</head>

<body>

<div id="header">
        <div id="headerinside">
                <div id="logo"></div>
                <ul id="menu">
                        <li><a href="http://lekernel.net">&laquo;
lekernel.net</a></li>
                        <li><a class="selected"
href="index.html">home</a></li>
--More-- (13% of 4837 bytes)
                            
root:/tmp# cd
root:~# 
root:~# adduser tmatsuya
Changing password for tmatsuya
New password: 
Bad password: too weak
Retype password: 
Password for tmatsuya changed by root
root:~# telnet 127.0.0.1


Entering character mode

Escape character is '^]'.


milkymist_ml401 login: tmatsuya
Password: 

Welcome to the Milkymist Linux


     |\  /|'||      |\  /|'   |
     | \/ ||||_/\  /| \/ ||(~~|~
     |    |||| \ \/ |    ||_) |
                _/ 

http://www.milkymist.org/



BusyBox v1.16.0 (2010-02-24 23:49:27 JST) hush - the humble shell
Enter 'help' for a list of built-in commands.

tmatsuya:~$ who
USER       TTY      IDLE      TIME            HOST
root       ttyS0    00:00     Jan  1 00:00:22 
tmatsuya   pts/0    00:00     Feb 26 09:20:45 
tmatsuya:~$ ps ax
PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [ksoftirqd/0]
    4 root     [events/0]
    5 root     [khelper]
    6 root     [async/mgr]
    7 root     [sync_supers]
    8 root     [bdi-default]
    9 root     [kblockd/0]
   10 root     [rpciod/0]
   11 root     [kswapd0]
   12 root     [aio/0]
   13 root     [nfsiod]
   14 root     [flush-1:0]
   29 root     /usr/sbin/inetd
   30 root     -sh
   47 root     telnet 127.0.0.1
   48 root     telnetd
   49 tmatsuya -sh
   50 root     ftpd
   52 tmatsuya ps ax
tmatsuya:~$ 
tmatsuya:~$ [tab]
[              cut            hostname       od             touch
[[             date           hush           passwd         traceroute
addgroup       dd             id             patch          true
adduser        delgroup       ip             ping           tty
ar             deluser        kill           printenv       umount
awk            df             killall        ps             uname
basename       diff           last           pwd            uncompress
bunzip2        dirname        less           reset          unzip
busybox        dmesg          ln             rm             uptime
bzcat          dnsdomainname  login          rmdir          vi
bzip2          echo           logname        sed            wc
cal            egrep          ls             sh             wget
cat            false          mkdir          sleep          which
chgrp          fgrep          mkfifo         sort           who
chmod          free           mknod          stty           whoami
chown          fsync          more           su             xargs
clear          ftpget         mount          sync           yes
cmp            ftpput         mv             tar            zcat
cp             grep           netstat        telnet
cpio           gunzip         nice           test
crontab        gzip           nslookup       top

tmatsuya:~$ halt
sh: can't execute 'halt': No such file or directory
tmatsuya:~$ reboot
sh: can't execute 'reboot': No such file or directory
tmatsuya:~$ exit

Connection closed by foreign host
root:~# halt
root:~# 
starting pid 57, tty '': '/bin/umount -a -r'

The system is going down NOW!

Sent SIGTERM to all processes

Sent SIGKILL to all processes

Requesting system halt
System halted.
arch/lm32/kernel/process.c:104: machine_halt() is not possible on lm32

------------------------------------------------------------------
Takeshi




More information about the Devel mailing list