Compiling the kernel

unzip your stuff at a convenient place

Script started on Thu Jul 13 15:45:57 2006
ard@asus1:~$ cd /var/extra-mistar1/ard/ss4000e
ard@asus1:/var/extra-mistar1/ard/ss4000e$ unzip SS4000-E\ Open-Source\ Code\ 1.1.zip 
Archive:  SS4000-E Open-Source Code 1.1.zip
  inflating: Components in Firmware v1.1.xls  
  inflating: Components in Recovery CD v3.0.xls  
  inflating: readme.txt              

Because it was not really ok, fix the path without spaces

ard@asus1:/var/extra-mistar1/ard/ss4000e$ mv Firmware\ v1.1/ fwv1.1

We don't want stuff all over our systems: debianize it:

ard@asus1:/var/extra-mistar1/ard/ss4000e$ cd fwv1.1/ep219/toolchains/
ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/ep219/toolchains$ fakeroot alien arm-linux-tools-20031127.tar.gz 
arm-linux-tools_20031127-2_all.deb generated
ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/ep219/toolchains$ sudo dpkg -i arm-linux-tools_20031127-2_all.deb 
Selecting previously deselected package arm-linux-tools.
(Reading database ... 117169 files and directories currently installed.)
Unpacking arm-linux-tools (from arm-linux-tools_20031127-2_all.deb) ...
Setting up arm-linux-tools (20031127-2) ...

Now for the hard stuff: compiling the kernel:

ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/ep219/toolchains$ cd ../../kernel/
ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel$ sed -i "s:WORKING_DIR='/tmp':WORKING_DIR='`pwd`/build':g" Configure-linux-2.6.10-iop1-9
ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel$ grep WORKING_DIR= Configure-linux-2.6.10-iop1-9
WORKING_DIR='/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel/build'
ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel$ mkdir build
ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel$ sh -x Configure-linux-2.6.10-iop1-9 
++ pwd
+ SRC_DIR=/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel
+ WORKING_DIR=/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel/build
+ ARCH=arm
+ tar cjf /var/extra-mistar1/ard/ss4000e/fwv1.1/kernel/kernel-bin-2.6.10-iop1-9.tar.bz2 ./

all done now:

ard@asus1:/var/extra-mistar1/ard/ss4000e/fwv1.1/kernel$ exit

Script done on Thu Jul 13 17:46:22 2006

Trying the image

Get to your serial console and:

+No network interfaces found

EM-7210 ver.T04 2005-12-12 (For ver.AA)
== Executing boot script in 1.000 seconds - enter ^C to abort
^C
RedBoot> ^C
RedBoot> fis load ramdisk.gz
RedBoot> load -v -r -b 0x01008000 -m ymodem zImage

Now upload your zImage from fw1.1/kernel/buid/*.bin/boot/

Raw file loaded 0x01008000-0x0114f94b, assumed entry at 0x01008000
xyzModem - CRC mode, 10485(SOH)/0(STX)/0(CAN) packets, 3 retries
RedBoot> exec  -c "console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=256M@0xa0000000" -w 5
About to start execution at 0xa0008000 - abort with ^C within 5 seconds
Using base address 0x01008000 and length 0x0014794c
Uncompressing Linux........................................................................................ done, booting the kernel.
Linux version 2.6.10-iop1-9 (ard@asus1) (gcc version 3.3.2) #1 Thu Jul 13 16:17:00 CEST 2006
CPU: XScale-IOP8032x Family [69052e20] revision 0 (ARMv5TE)
CPU: D VIVT undefined 5 cache
CPU: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Machine: Intel IQ31244
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=256M@0xa0000000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB = 256MB total
Memory: 248576KB available (2151K code, 535K data, 88K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 8192K
NET: Registered protocol family 16
PCI: bus0: Fast back to back transfers disabled
SCSI subsystem initialized
Intel IOP3XX DMA Copyright(c) 2004 Intel Corporation
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
SGI XFS with ACLs, no debug enabled
SGI XFS Quota Management subsystem
I2C: M41ST85W RTC driver successfully loaded
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0xfe800000 (irq = 28) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
elevator: using anticipatory as default io scheduler
physmap flash device: 2000000 at f0000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
10 RedBoot partitions found on MTD device phys_mapped_flash
Creating 10 MTD partitions on "phys_mapped_flash":
0x00000000-0x00040000 : "RedBoot"
0x00040000-0x00060000 : "log"
0x00060000-0x000a0000 : "rammode"
0x000a0000-0x000c0000 : "naskey"
0x000c0000-0x002c0000 : "zImage"
0x002c0000-0x006c0000 : "ramdisk.gz"
0x006c0000-0x01f40000 : "vendor"
0x01f40000-0x01fc0000 : "wmdata"
0x01fc0000-0x01fc1000 : "RedBoot config"
0x01fe0000-0x02000000 : "FIS directory"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid10 personality registered as nr 9
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
   arm4regs  :   227.600 MB/sec
   8regs     :   262.000 MB/sec
   32regs    :   285.200 MB/sec
raid5: using function: 32regs (285.200 MB/sec)
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 88K
++ /bin/cat /etc/version
+ echo '======== /linuxrc  =(fs-bc - 1.1-b214)============='
======== /linuxrc  =(fs-bc - 1.1-b214)=============
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin
+ export PATH
+ UPGRADE_PKG=/sysroot/tmp/upgrade.tgz
+ SIGNATURE=FALCONSTOR@INTEL
+ SIGNATURE_LEN=16
+ UPGRADE_FLASH_ONLY_LOCK=/upgrade_flash_only
+ echo 'Mounting /proc filesystem ...'
Mounting /proc filesystem ...
+ /bin/mount -t proc /proc /proc
+ grep ' hda$' /proc/partitions
+ '[' 1x = 0x ']'
+ PHYSICAL_DISK=sda
+ echo Creating root device ...
Creating root device ...
+ echo 0x0100
+ /fs/hwtool -startdriver
gpiodrv: load, major number 211
eepromdrv: load, major number 212
mknod: /dev/i2c/0: File exists
SGPIO10...
SGPIO14...
SGPIO20...
SGPIO24...
SGPIO10...
SGPIO14...
SGPIO20...
SGPIO24...
Blinking LED...
Update RTC to date
+ ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
+ route add -net 127.0.0.0 netmask 255.0.0.0 lo
+ LoadModules
+ echo 'Loading modules...'
Loading modules...
+ '[' sda = sda ']'
+ insmod gd31244_lib.o
insmod: gd31244_lib.ko: no module by that name found
+ insmod gd31244.o
Using /lib/modules/2.6.10-iop1-9/kernel/drivers/scsi/gd31244/gd31244.ko
Intel(R) GD31244 SATA driver - version 1.264
Copyright (c) 2002-2005 Intel Corporation.
scsi0 : GD31244: Intel Sata Controller Driver Ver 1.264, Max 4 Channels, Max 1 devices per channel, Max 1 Luns per device
GD31244: 1 Controllers Detected.
+ insmod e1000
Using /lib/modules/2.6.10-iop1-9/kernel/drivers/net/e1000/e1000.ko
Intel(R) PRO/1000 Network Driver - version 5.5.4-k2-NAPI
Copyright (c) 1999-2004 Intel Corporation.
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
+ grep 'e1000$' /proc/iomem
+ '[' 0 '!=' 0 ']'
+ echo 1
+ StartDiskLed
++ grep ' - Connected' /proc/scsi/gd31244/0
++ awk '{printf "%d ",$2+1}'
+ diskno=
+ '[' disks '!=' '' ']'
+ CheckRaidSupport
+ RAIDON=y
+ grep sda /proc/partitions
+ '[' 1 = 1 ']'
+ StartRescueMode
+ exec /sbin/init
++ /bin/cat /etc/version
+ echo '======== /etc/init.d/rcS  =(fs-bc - 1.1-b214)============='
======== /etc/init.d/rcS  =(fs-bc - 1.1-b214)=============
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin
+ export PATH
+ PHYSICAL_DISK=sda
+ UPGRADE_PKG=/sysroot/tmp/upgrade.tgz
+ UPGRADE_PROG=/sysroot/upgrade.sh
+ UPGRADE_LOG=/sysroot/tmp/upgrade.log
+ SIGNATURE=FALCONSTOR@INTEL
+ SIGNATURE_LEN=16
+ UPGRADE_FLASH_ONLY_LOCK=/upgrade_flash_only
+ /fs/hwtool -startdaemon
Loading GPIO Button Daemon...
mknod: /dev/i2c/0: File exists
mknod: /dev/i2c/0: File exists
mknod: /dev/gpiodrv: File exists
mknod: /dev/eepromdrv: File exists
++ ls -la /sysroot/etc/localtime
ls: /sysroot/etc/localtime: No such file or directory
++ awk '{print $NF}'
+ cp /sysroot/ /etc/localtime
cp: /sysroot/: No such file or directory
+ '[' -f /sysroot/tmp/upgrade.tgz ']'
+ '[' -f /upgrade_flash_only ']'
+ StartRescueMode
+ ConfigurePasswdFromConf
+ '[' -f /sysroot/tmp/passwd.conf ']'
+ StartWebServer
+ ExtractWebImages
++ grep wmdata /proc/mtd
++ cut -d: -f1
Thu Jul 13 16:24:05 UTC 2006
++ head -1
+ MTD_WMDATA=mtd7
+ '[' mtd7 '!=' '' ']'
+ tar -C /tmp -xzvf /dev/mtd7
tar: Invalid gzip magic
+ cp -r '/tmp/www/*' /usr/local/wwwadmin/
cp: /tmp/www/*: No such file or directory
+ cd /usr/local/wwwadmin
++ ls -l /sysroot/usr/local/ipstor/www/html
ls: /sysroot/usr/local/ipstor/www/html: No such file or directory
++ awk '{print $NF}'
+ WEBLANGUAGE=
+ '[' '' '!=' '' ']'
+ '[' -f /etc/feature.conf ']'
+ . /etc/feature.conf
++ ALWAYS_REDIR_TO_HTTPS=1
++ JUMBO_FRAME_SUPPORT=1
+ '[' 1 = 1 ']'
+ '[' '!' -d /usr/local/wwwadmin/redirtohttps ']'
+ mkdir redirtohttps
+ '[' '!' -f /usr/local/wwwadmin/redirtohttps/index.cgi ']'
+ cat
+ chmod 755 /usr/local/wwwadmin/redirtohttps/index.cgi
+ cd /usr/local/wwwadmin/redirtohttps
+ /bin/mini_httpd -c '**.cgi' -u root -M 0
socket: No such file or directory
/bin/mini_httpd: started as root without requesting chroot(), warning only
+ sleep 2
+ cd /usr/local/wwwadmin
+ /bin/mini_httpd -c '**.cgi' -u root -M 0 -E mini_httpd.pem -S
socket: No such file or directory
/bin/mini_httpd: started as root without requesting chroot(), warning only
+ sleep 2
+ return
+ ConfigureNetwork
+ '[' -f /sysroot/tmp/net.conf ']'
+ ConfigureNetworkDefault
++ ifconfig eth0
++ grep 'eth0 '
++ awk '{print $5}'
++ awk -F: '{printf "fs_"$1$2$3$4$5$6}'
+ node_name=fs_000E0CB06836
+ hostname fs_000E0CB06836
+ /sbin/dhcpc.sh start eth0
e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
+ ifconfig eth1
+ '[' 0 = 0 ']'
+ /sbin/dhcpc.sh start eth1
/sbin/dhcpc.sh: line 106:   350 Killed                  udhcpc -i $2 -s /sbin/dhcpc.sh -b 1 `hostname` >/dev/null 2>&1
+ return
+ umount /sysroot
umount: /sysroot: No such file or directory
+ /fs/fsraid.sh stop /dev/md0
+ ARGS===== /fs/fsraid.sh stop /dev/md0 =============================================================
+ ACTION=stop
+ RAIDDEV=/dev/md0
+ RAIDLEVEL=
+ RAID5SPARE=
+ DEVS_PHY=
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=98
+ RAIDTYPE_MD1=98
++ cat /proc/mtd
++ grep vendor
++ head -1
++ cut -c 4
+ VENDOR_DEV=/dev/mtdblock6
+ DISK_PREFIX=sd
+ SIGNATURE=FALCONSTOR@INTEL
+ SIGNATURE_LEN=16
+ MAX_RAID_SYNC_SPEED=5000
+ MAX_RAID_SYNC_SPEED_RAID1=10000
+ ACSL2DEV=/usr/local/ipstor/bin/acsl2dev
+ '[' xstop = x -o x/dev/md0 = x ']'
+ Get_DEVS_PHY
+ '[' -x /usr/local/ipstor/bin/acsl2dev ']'
+ DEVS_PHY=
++ egrep 'sd[a-z]$|sd[a-z][a-z]$' /proc/partitions
++ awk '{print $4}'
+ '[' '' = '' ']'
+ echo 'No physical disks.'
No physical disks.
+ exit 1
+ mke2fs /dev/ram1
mke2fs 1.36 (05-Feb-2005)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
8192 inodes, 32768 blocks
1638 blocks (5.00%) reserved for the super user
First data block=1
4 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks: 
	8193, 24577

Writing inode tables: 0/41/42/43/4done                            
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
+ mount /dev/ram1 /tmpext3: No journal on filesystem on ram1

+ grep inetd /etc/inittab
+ '[' 1 '!=' 0 ']'
+ /usr/sbin/inetd
+ '[' -f /fs/sshd.sh ']'
+ /fs/sshd.sh service
/dev/ram0 on / type ext2 (rw)
/dev/ram1 on /tmp type ext2 (rw)
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
18:04:8a:d5:5e:c2:4f:08:c0:df:b8:81:cd:7a:95:a4 root@fs_000E0CB06836
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
3e:69:5b:c7:fa:d4:26:03:9f:fa:5c:6c:a6:d2:99:e5 root@fs_000E0CB06836
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
bb:3e:fe:83:b8:77:2b:cf:c6:2b:cf:d5:ff:a2:b4:84 root@fs_000E0CB06836
+ /fs/hwtool -systemready
/dev/ram0 on / type ext2 (rw)
severity = I  message_id = 60001  message = "System starting up"  number_param = 0
+ exit 0
/bin/discoverd: waiting for data on port UDP 11575

fs_000E0CB06836 login: root
Password: 
Welcome to

      _/_/_/  _/_/_/          _/_/_/    _/                            
       _/    _/    _/      _/        _/_/_/_/    _/_/    _/  _/_/     
      _/    _/_/_/          _/_/      _/      _/    _/  _/_/          
     _/    _/                  _/    _/      _/    _/  _/             
  _/_/_/  _/            _/_/_/        _/_/    _/_/    _/              

                    Powered by FalconStor Software, Inc.
                    Copyright 2001-2006 by FalconStor. 
                    All Rights Reserved.
                    http://www.falconstor.com
# cat /proc/version 
Linux version 2.6.10-iop1-9 (ard@asus1) (gcc version 3.3.2) #1 Thu Jul 13 16:17:00 CEST 2006
# w00W w00!
sh: w00w00!: command not found
#