LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-18-2010, 07:40 AM   #1
n57green
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Rep: Reputation: 1
Building or compiling rootfs


Dear All

I am a rookie to Linux. I have two units of TWO-WAY Linux router Boxes{Platform: iDirect iDS Platform (XScale})


BOX "A" is ok. No problems. While BOX "B" had some errors so I had a thought to format the flash

I init the BOX B by using the command

"fis init"

I noticed that these below entries are missing (Linux and RootFS) on BOX B
Redboot>Fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x50000000 0x50000000 0x00040000 0x00000000
FIS directory 0x50FE0000 0x50FE0000 0x0001F000 0x00000000
RedBoot config 0x50FFF000 0x50FFF000 0x00001000 0x00000000

Missing (Linux and RootFS)
Linux 0x50060000 0x01600000 0x00100000 0x01600000
RootFS 0x50160000 0x50160000 0x00E80000 0x01600000


I got this from BOX A

Redboot>Fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x50000000 0x50000000 0x00040000 0x00000000
Linux 0x50060000 0x01600000 0x00100000 0x01600000
RootFS 0x50160000 0x50160000 0x00E80000 0x01600000
FIS directory 0x50FE0000 0x50FE0000 0x0001F000 0x00000000
RedBoot config 0x50FFF000 0x50FFF000 0x00001000 0x00000000


>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


I have managed to get back Linux entry using a zimage file I got from BOX A (Working BOX)

I need the RootFS to make my BOX B come alive again



Question?

Can I build/compile RootFS image file from the working BOX A so I can install into BOX B?

>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

File information of BOX A


# ls
bin dev etc exec fis lib opt proc root sbin tmp usr var

/lib # ls
ld-2.3.2.so libm.so.6 libpthread-0.10.so
ld-linux.so.2 libmemusage.so libpthread.so.0
libBrokenLocale-2.3.2.so libnsl-2.3.2.so libresolv-2.3.2.so
libBrokenLocale.so.1 libnsl.so.1 libresolv.so.2
libSegFault.so libnss_compat-2.3.2.so librt-2.3.2.so
libanl-2.3.2.so libnss_compat.so.2 librt.so.1
libanl.so.1 libnss_dns-2.3.2.so libssl.so.0
libc-2.3.2.so libnss_dns.so.2 libssl.so.0.9.7
libc.so.6 libnss_files-2.3.2.so libstdc++.so.5
libcrypt-2.3.2.so libnss_files.so.2 libstdc++.so.5.0.5
libcrypt.so.1 libnss_hesiod-2.3.2.so libthread_db-1.0.so
libcrypto.so.0 libnss_hesiod.so.2 libthread_db.so.1
libcrypto.so.0.9.7 libnss_nis-2.3.2.so libutil-2.3.2.so
libdl-2.3.2.so libnss_nis.so.2 libutil.so.1
libdl.so.2 libnss_nisplus-2.3.2.so modules
libgcc_s.so.1 libnss_nisplus.so.2
libm-2.3.2.so libpcprofile.so


/lib # cd /proc
/proc # ls
1 6 cpu ide meminfo slabinfo
2 61 cpuinfo interrupts misc stat
200 63 devices iomem modules swaps
201 65 dma ioports mounts sys
205 8 driver kcore mtd sysvipc
3 board_info execdomains kmsg net tty
4 bus filesystems ksyms partitions uptime
42 cmdline fpga loadavg pci version
5 cpld fs locks self


/proc # cd /sbin
/sbin # ls
depmod ifdown modprobe shutdown
doc_loadbios ifup mtd_debug start-stop-daemon
einfo init nanddump sulogin
erase insmod nandtest sysctl
eraseall killall5 nandwrite syslogd
fcp klogd nftl_format tcpdump
fdisk lock nftldump telinit
ftl_check logread poweroff udhcpc
ftl_format lsmod reboot unlock
getty makedevs rmmod update-rc
halt mkfs.jffs route vconfig
hdparm mkfs.jffs2 runlevel
ifconfig mkswap service
/sbin #


/bin # ls
addgroup delgroup gzip more rmdir true
adduser deluser hostname mount rpm umount
ash df ip mv run-parts uname
busybox dmesg kill netstat sed uncompress
cat echo ln package sh usleep
chgrp egrep login pidof sleep vi
chmod false ls ping stty zcat
chown fgrep mii-diag ps su
cp getopt mkdir ptylogin sync
date grep mknod pwd tar
dd gunzip mktemp rm touch
/bin #

>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Snap of BOX A below

DRAM Test ................
DRAM Test Successful
+Ethernet eth0: MAC address 00:60:43:00:00:00
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.2
Default server: 192.168.0.2

RedBoot(tm) bootstrap and debug environment [ROM]
release, version "iDirect 1.1" - built 16:16:40, Apr 29 2005

Platform: iDirect iDS Platform (XScale)
Copyright (C) 2004, 2005 iDirect Technologies, Inc.

Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x10000000, [0x0001c540-0x01fd1000] available
FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
== Executing boot script in 5.000 seconds - Press <Space Bar> to abort
RedBoot>
RedBoot> fis load linux
RedBoot> exec -c "root=/dev/mtdblock2 console=ttyS1,9600 single"
Using base address 0x01600000 and length 0x00100000
Uncompressing Linux................................................................... done, booting the kernel.
Linux version 2.4.24-uc0-iDirect0 (root@s1100bld) (gcc version 3.3.2) #1 Thu Feb 1 11:13:30 EST 2007
CPU: XScale-IXP4xx/IXC11xx revision 1
Machine: iDirect Phoenix Platform
alloc_bootmem_low
memtable_init
Security risk: creating user accessible mapping for 0x51000000 at 0xf1000000
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 console=ttyS1,9600 single
Calibrating delay loop... 266.24 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62572KB available (1678K code, 471K data, 72K init)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: bus0: Fast back to back transfers enabled
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010825)
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xff000003 (irq = 15) is a XScale UART
ttyS01 at 0xff001003 (irq = 13) is a XScale UART
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Creating 6 MTD partitions on "IXP425 Flash":
0x00000000-0x00040000 : "RedBoot"
0x00060000-0x00160000 : "Linux"
0x00160000-0x00fe0000 : "RootFS"
0x00fe0000-0x00fff000 : "FIS directory"
mtd: partition "FIS directory" doesn't end on an erase block -- force read-only
0x00fff000-0x01000000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't start on an erase block boundary -- force read-only
0x00fe0000-0x01000000 : "FIS Overlap"
pktgen.c: v1.3: Packet Generator for packet performance testing.
pktgen: Error: your machine does not have working cycle counter.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (512 buckets, 4096 max) - 320 bytes per conntrack
ip_conntrack_pptp version $Revision: 1.1.1.1 $ loaded
ip_nat_pptp version $Revision: 1.1.1.1 $ loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
ip6_tables: (C) 2000-2002 Netfilter core team
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Other stuff added by David S. Miller <davem@redhat.com>
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 72K
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.85 booting
Calculating module dependencies... done.
Loading modules: alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
Warning: loading /lib/modules/2.4.24-uc0-iDirect0/kernel/drivers/char/ds2430a.o will taint the kernel: non-GPL license - copyright iDirect Technologies- 2004
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module ds2430a loaded, with warnings
Warning: loading /lib/modules/2.4.24-uc0-iDirect0/kernel/drivers/ixp400/ixp400.o will taint the kernel: no license
Module init.
Module ixp400 loaded, with warnings
Warning: loading /lib/modules/2.ixp425_eth:
4.24-uc0-iDirect0/kernel/drivers/net/ixp425_eth.o will taint theInitializing IXP425 NPE Ethernet driver software v. 0.1.9 (1_4)
kernel: non-GPL license - Copyright (c) Intel Corporation. 2002-2003
ixp425_eth: ixp0 is using the PHY at address 0
ixp425_eth: ixp1 is using the PHY at address 1
ixp425_eth: CPU clock speed (approx) = 266 MHz
Module ixp425_eth loaded, with warnings
alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
modprobe: Can't locate module tun
alifpga: Feb 1 2007 11:26:22
as Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alicpld: Feb 1 2007 11:18:11
as Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alias Note: /etc/modules.conf is morawio: Feb 1 2007 11:30:49
re recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep

Mounting local filesystems...
Setting up IP spoofing protection: rp_filter.
Disable TCP/IP Explicit Congestion Notification: done.
Configuring network interfaces: done.
Cleaning: /tmp /var/lock /var/run.
net.ipv4.ip_forward = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.arp_filter = 1
Initializing random number generator... done.
/ #


>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Snap of BOX B Below

RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x50000000 0x50000000 0x00040000 0x00000000
Linux 0x50060000 0x50060000 0x00100000 0x01600000
FIS directory 0x50FE0000 0x50FE0000 0x0001F000 0x00000000
RedBoot config 0x50FFF000 0x50FFF000 0x00001000 0x00000000
RedBoot>
>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

RedBoot> fis load -b 0x01600000 linux
RedBoot> go 0x01600000
Uncompressing Linux................................................................... done, booting the kernel.
Linux version 2.4.24-uc0-iDirect0 (root@s1100bld) (gcc version 3.3.2) #1 Thu Feb 1 11:13:30 EST 2007
CPU: XScale-IXP4xx/IXC11xx revision 1
Machine: iDirect Phoenix Platform
Warning: bad configuration page, trying to continue
alloc_bootmem_low
memtable_init
Security risk: creating user accessible mapping for 0x51000000 at 0xf1000000
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS1,9600 root=/dev/mtdblock2
Calibrating delay loop... 266.24 BogoMIPS
Memory: 16MB = 16MB total
Memory: 13948KB available (1678K code, 471K data, 72K init)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
PCI: bus0: Fast back to back transfers enabled
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010825)
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xff000003 (irq = 15) is a XScale UART
ttyS01 at 0xff001003 (irq = 13) is a XScale UART
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Creating 6 MTD partitions on "IXP425 Flash":
0x00000000-0x00040000 : "RedBoot"
0x00060000-0x00160000 : "Linux"
0x00160000-0x00fe0000 : "unallocated space"
0x00fe0000-0x00fff000 : "FIS directory"
mtd: partition "FIS directory" doesn't end on an erase block -- force read-only
0x00fff000-0x01000000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't start on an erase block boundary -- force read-only
0x00fe0000-0x01000000 : "FIS Overlap"
pktgen.c: v1.3: Packet Generator for packet performance testing.
pktgen: Error: your machine does not have working cycle counter.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (128 buckets, 1024 max) - 320 bytes per conntrack
ip_conntrack_pptp version $Revision: 1.1.1.1 $ loaded
ip_nat_pptp version $Revision: 1.1.1.1 $ loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
ip6_tables: (C) 2000-2002 Netfilter core team
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Other stuff added by David S. Miller <davem@redhat.com>
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing init memory: 72K
Warning: unable to open an initial console.
Kernel panic: No init found. Try passing init= option to kernel.

I need Help!!!!! to build or compile rootfs from box A

Thank you
 
Old 02-01-2012, 07:57 PM   #2
kosogor
LQ Newbie
 
Registered: Feb 2012
Location: Russia, Irkutsk
Posts: 5

Rep: Reputation: Disabled
Building or compiling rootfs

Are you interested in resolving this problem yet ?

Your main mistake is using "fis init" which destroyed all
the files in the flash (only Redboot loader files remained).
It's like if you whould use "format C: /yes" command
and after that asked to restore your hard disk drive.


Quote:
Originally Posted by n57green View Post
Dear All

I am a rookie to Linux. I have two units of TWO-WAY Linux router Boxes{Platform: iDirect iDS Platform (XScale})


BOX "A" is ok. No problems. While BOX "B" had some errors so I had a thought to format the flash

I init the BOX B by using the command

"fis init"

I noticed that these below entries are missing (Linux and RootFS) on BOX B
Redboot>Fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x50000000 0x50000000 0x00040000 0x00000000
FIS directory 0x50FE0000 0x50FE0000 0x0001F000 0x00000000
RedBoot config 0x50FFF000 0x50FFF000 0x00001000 0x00000000

Missing (Linux and RootFS)
Linux 0x50060000 0x01600000 0x00100000 0x01600000
RootFS 0x50160000 0x50160000 0x00E80000 0x01600000


I got this from BOX A

Redboot>Fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x50000000 0x50000000 0x00040000 0x00000000
Linux 0x50060000 0x01600000 0x00100000 0x01600000
RootFS 0x50160000 0x50160000 0x00E80000 0x01600000
FIS directory 0x50FE0000 0x50FE0000 0x0001F000 0x00000000
RedBoot config 0x50FFF000 0x50FFF000 0x00001000 0x00000000


>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


I have managed to get back Linux entry using a zimage file I got from BOX A (Working BOX)

I need the RootFS to make my BOX B come alive again



Question?

Can I build/compile RootFS image file from the working BOX A so I can install into BOX B?

>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

File information of BOX A


# ls
bin dev etc exec fis lib opt proc root sbin tmp usr var

/lib # ls
ld-2.3.2.so libm.so.6 libpthread-0.10.so
ld-linux.so.2 libmemusage.so libpthread.so.0
libBrokenLocale-2.3.2.so libnsl-2.3.2.so libresolv-2.3.2.so
libBrokenLocale.so.1 libnsl.so.1 libresolv.so.2
libSegFault.so libnss_compat-2.3.2.so librt-2.3.2.so
libanl-2.3.2.so libnss_compat.so.2 librt.so.1
libanl.so.1 libnss_dns-2.3.2.so libssl.so.0
libc-2.3.2.so libnss_dns.so.2 libssl.so.0.9.7
libc.so.6 libnss_files-2.3.2.so libstdc++.so.5
libcrypt-2.3.2.so libnss_files.so.2 libstdc++.so.5.0.5
libcrypt.so.1 libnss_hesiod-2.3.2.so libthread_db-1.0.so
libcrypto.so.0 libnss_hesiod.so.2 libthread_db.so.1
libcrypto.so.0.9.7 libnss_nis-2.3.2.so libutil-2.3.2.so
libdl-2.3.2.so libnss_nis.so.2 libutil.so.1
libdl.so.2 libnss_nisplus-2.3.2.so modules
libgcc_s.so.1 libnss_nisplus.so.2
libm-2.3.2.so libpcprofile.so


/lib # cd /proc
/proc # ls
1 6 cpu ide meminfo slabinfo
2 61 cpuinfo interrupts misc stat
200 63 devices iomem modules swaps
201 65 dma ioports mounts sys
205 8 driver kcore mtd sysvipc
3 board_info execdomains kmsg net tty
4 bus filesystems ksyms partitions uptime
42 cmdline fpga loadavg pci version
5 cpld fs locks self


/proc # cd /sbin
/sbin # ls
depmod ifdown modprobe shutdown
doc_loadbios ifup mtd_debug start-stop-daemon
einfo init nanddump sulogin
erase insmod nandtest sysctl
eraseall killall5 nandwrite syslogd
fcp klogd nftl_format tcpdump
fdisk lock nftldump telinit
ftl_check logread poweroff udhcpc
ftl_format lsmod reboot unlock
getty makedevs rmmod update-rc
halt mkfs.jffs route vconfig
hdparm mkfs.jffs2 runlevel
ifconfig mkswap service
/sbin #


/bin # ls
addgroup delgroup gzip more rmdir true
adduser deluser hostname mount rpm umount
ash df ip mv run-parts uname
busybox dmesg kill netstat sed uncompress
cat echo ln package sh usleep
chgrp egrep login pidof sleep vi
chmod false ls ping stty zcat
chown fgrep mii-diag ps su
cp getopt mkdir ptylogin sync
date grep mknod pwd tar
dd gunzip mktemp rm touch
/bin #

>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Snap of BOX A below

DRAM Test ................
DRAM Test Successful
+Ethernet eth0: MAC address 00:60:43:00:00:00
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.2
Default server: 192.168.0.2

RedBoot(tm) bootstrap and debug environment [ROM]
release, version "iDirect 1.1" - built 16:16:40, Apr 29 2005

Platform: iDirect iDS Platform (XScale)
Copyright (C) 2004, 2005 iDirect Technologies, Inc.

Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x10000000, [0x0001c540-0x01fd1000] available
FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
== Executing boot script in 5.000 seconds - Press <Space Bar> to abort
RedBoot>
RedBoot> fis load linux
RedBoot> exec -c "root=/dev/mtdblock2 console=ttyS1,9600 single"
Using base address 0x01600000 and length 0x00100000
Uncompressing Linux................................................................... done, booting the kernel.
Linux version 2.4.24-uc0-iDirect0 (root@s1100bld) (gcc version 3.3.2) #1 Thu Feb 1 11:13:30 EST 2007
CPU: XScale-IXP4xx/IXC11xx revision 1
Machine: iDirect Phoenix Platform
alloc_bootmem_low
memtable_init
Security risk: creating user accessible mapping for 0x51000000 at 0xf1000000
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 console=ttyS1,9600 single
Calibrating delay loop... 266.24 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62572KB available (1678K code, 471K data, 72K init)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: bus0: Fast back to back transfers enabled
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010825)
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xff000003 (irq = 15) is a XScale UART
ttyS01 at 0xff001003 (irq = 13) is a XScale UART
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Creating 6 MTD partitions on "IXP425 Flash":
0x00000000-0x00040000 : "RedBoot"
0x00060000-0x00160000 : "Linux"
0x00160000-0x00fe0000 : "RootFS"
0x00fe0000-0x00fff000 : "FIS directory"
mtd: partition "FIS directory" doesn't end on an erase block -- force read-only
0x00fff000-0x01000000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't start on an erase block boundary -- force read-only
0x00fe0000-0x01000000 : "FIS Overlap"
pktgen.c: v1.3: Packet Generator for packet performance testing.
pktgen: Error: your machine does not have working cycle counter.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (512 buckets, 4096 max) - 320 bytes per conntrack
ip_conntrack_pptp version $Revision: 1.1.1.1 $ loaded
ip_nat_pptp version $Revision: 1.1.1.1 $ loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
ip6_tables: (C) 2000-2002 Netfilter core team
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Other stuff added by David S. Miller <davem@redhat.com>
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 72K
modprobe: Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.85 booting
Calculating module dependencies... done.
Loading modules: alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
Warning: loading /lib/modules/2.4.24-uc0-iDirect0/kernel/drivers/char/ds2430a.o will taint the kernel: non-GPL license - copyright iDirect Technologies- 2004
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module ds2430a loaded, with warnings
Warning: loading /lib/modules/2.4.24-uc0-iDirect0/kernel/drivers/ixp400/ixp400.o will taint the kernel: no license
Module init.
Module ixp400 loaded, with warnings
Warning: loading /lib/modules/2.ixp425_eth:
4.24-uc0-iDirect0/kernel/drivers/net/ixp425_eth.o will taint theInitializing IXP425 NPE Ethernet driver software v. 0.1.9 (1_4)
kernel: non-GPL license - Copyright (c) Intel Corporation. 2002-2003
ixp425_eth: ixp0 is using the PHY at address 0
ixp425_eth: ixp1 is using the PHY at address 1
ixp425_eth: CPU clock speed (approx) = 266 MHz
Module ixp425_eth loaded, with warnings
alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
modprobe: Can't locate module tun
alifpga: Feb 1 2007 11:26:22
as Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alicpld: Feb 1 2007 11:18:11
as Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alias Note: /etc/modules.conf is morawio: Feb 1 2007 11:30:49
re recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep
alias Note: /etc/modules.conf is more recent than /lib/modules/2.4.24-uc0-iDirect0/modules.dep

Mounting local filesystems...
Setting up IP spoofing protection: rp_filter.
Disable TCP/IP Explicit Congestion Notification: done.
Configuring network interfaces: done.
Cleaning: /tmp /var/lock /var/run.
net.ipv4.ip_forward = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.arp_filter = 1
Initializing random number generator... done.
/ #


>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Snap of BOX B Below

RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0x50000000 0x50000000 0x00040000 0x00000000
Linux 0x50060000 0x50060000 0x00100000 0x01600000
FIS directory 0x50FE0000 0x50FE0000 0x0001F000 0x00000000
RedBoot config 0x50FFF000 0x50FFF000 0x00001000 0x00000000
RedBoot>
>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

RedBoot> fis load -b 0x01600000 linux
RedBoot> go 0x01600000
Uncompressing Linux................................................................... done, booting the kernel.
Linux version 2.4.24-uc0-iDirect0 (root@s1100bld) (gcc version 3.3.2) #1 Thu Feb 1 11:13:30 EST 2007
CPU: XScale-IXP4xx/IXC11xx revision 1
Machine: iDirect Phoenix Platform
Warning: bad configuration page, trying to continue
alloc_bootmem_low
memtable_init
Security risk: creating user accessible mapping for 0x51000000 at 0xf1000000
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS1,9600 root=/dev/mtdblock2
Calibrating delay loop... 266.24 BogoMIPS
Memory: 16MB = 16MB total
Memory: 13948KB available (1678K code, 471K data, 72K init)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
PCI: bus0: Fast back to back transfers enabled
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010825)
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xff000003 (irq = 15) is a XScale UART
ttyS01 at 0xff001003 (irq = 13) is a XScale UART
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Creating 6 MTD partitions on "IXP425 Flash":
0x00000000-0x00040000 : "RedBoot"
0x00060000-0x00160000 : "Linux"
0x00160000-0x00fe0000 : "unallocated space"
0x00fe0000-0x00fff000 : "FIS directory"
mtd: partition "FIS directory" doesn't end on an erase block -- force read-only
0x00fff000-0x01000000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't start on an erase block boundary -- force read-only
0x00fe0000-0x01000000 : "FIS Overlap"
pktgen.c: v1.3: Packet Generator for packet performance testing.
pktgen: Error: your machine does not have working cycle counter.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (128 buckets, 1024 max) - 320 bytes per conntrack
ip_conntrack_pptp version $Revision: 1.1.1.1 $ loaded
ip_nat_pptp version $Revision: 1.1.1.1 $ loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
ip6_tables: (C) 2000-2002 Netfilter core team
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Other stuff added by David S. Miller <davem@redhat.com>
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing init memory: 72K
Warning: unable to open an initial console.
Kernel panic: No init found. Try passing init= option to kernel.

I need Help!!!!! to build or compile rootfs from box A

Thank you
 
Old 02-20-2012, 12:14 AM   #3
n57green
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Hi,
I am still trying to fix a 3100 modem. I followed the steps from linux forum.

The box can boot to prompt #
But cant identify the network card

/ # ethtool eth0
/bin/sh: ethtool: not found
/ #

therefore ifconfig cant respond

can you help?

Green
 
Old 02-22-2012, 09:07 AM   #4
kosogor
LQ Newbie
 
Registered: Feb 2012
Location: Russia, Irkutsk
Posts: 5

Rep: Reputation: Disabled
Re: Building or compiling rootfs

The main problem to recover iDirect modem is that each of them includes its own calibration file.
This file is unique for each of the modems. It's produced by calibration station.
When you erase RedBoot fis RootFS image (among others), then you erase this calibration file.
This file contains frequency and power corrections for the modem for all the working L-band frequency range,
though without this calibration file your iDirect modem cannot work in satellite iDirect network correctly.

So, you can recover RootFS image, but you cannot recover this calibration file though.
That's the main problem.

As for recovering RootFS image itself, try this file: http://letitbit.net/download/54535.5...8/111.zip.html

Use it with your TFTP server (as with zImage),
in RedBoot interface type the following commands:

load RootFS.bin -v -b 0x00020000 -r -m tftp -h <IP address of your TFTP server with RootFS.bin file>
fis create RootFS -b 0x00020000 -l 0x00E80000 -f 0x50160000 -e 0x01600000 -r 0x50160000

Last edited by kosogor; 02-22-2012 at 09:26 AM.
 
Old 02-23-2012, 08:04 AM   #5
n57green
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Dear kosogor,
Thank you for your input,
I will give it a try ASAP and let you the outcome.
Regard

Green A. O.
 
Old 02-23-2012, 10:05 AM   #6
n57green
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Original Poster
Rep: Reputation: 1
kosogor,
Thanks a million. The box is alive. and doing well

Do you have RootFS image for Evolution X3.
or Can I used this same image for Evo X3
Many Many thanks

Green A. O.
 
Old 02-25-2012, 04:15 AM   #7
kosogor
LQ Newbie
 
Registered: Feb 2012
Location: Russia, Irkutsk
Posts: 5

Rep: Reputation: Disabled
Re: Building or compiling rootfs

No, not yet. I have not yet. And I did not try this image on X3 modem.
As I know, Evolution X3 modem has 'reset' button, which can make deep reset of the modem,
when it has such boot problems.
Of course, if you did not use 'fis init' command previously
Be careful with it.
 
Old 03-05-2012, 03:37 AM   #8
n57green
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Original Poster
Rep: Reputation: 1
hello,
how can load a rfs file of 30mb

each time i try, it does not load complete because of the memory allocation

i am trying to do this in redboot>

thank in advance
Green
 
Old 03-10-2012, 11:45 PM   #9
kosogor
LQ Newbie
 
Registered: Feb 2012
Location: Russia, Irkutsk
Posts: 5

Rep: Reputation: Disabled
Please give the log from your RedBoot, including memory allocation error message.

I've just tried to load sample file with the size of 31981568 bytes to
iDirect INFINITY 3100 modem without any problems:


RedBoot(tm) bootstrap and debug environment [ROM]
release, version "iDirect 1.1" - built 16:16:40, Apr 29 2005

Platform: iDirect iDS Platform (XScale)
Copyright (C) 2004, 2005 iDirect Technologies, Inc.

Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x10000000, [0x0001c540-0x01fd1000] available
FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
== Executing boot script in 5.000 seconds - Press <Space Bar> to abort
RedBoot> load File.bin -v -b 0x00020000 -r -m tftp -h 192.168.0.2
-
Raw file loaded 0x00020000-0x01e9ffff, assumed entry at 0x00020000
RedBoot>

So I think, if you have problems in this case, then probably there are some
problems with RAM memory of the device.

You also can find Redboot User's guide (search for 'redboot.pdf' file through Internet) in order to find out what you can do with Redboot

Last edited by kosogor; 03-10-2012 at 11:51 PM. Reason: Updated
 
Old 03-12-2012, 02:13 AM   #10
n57green
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Original Poster
Rep: Reputation: 1
ok,

I will read redboot files gain

I will update you
regards

Green A. O.
 
1 members found this post helpful.
Old 07-27-2012, 01:12 PM   #11
n57green
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Original Poster
Rep: Reputation: 1
rfs image file for iDirect x3?

Dear kosogor,
do you have rfs image file for iDirect x3?
Regards
 
Old 10-09-2012, 10:57 AM   #12
Fredyeng
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
Dear kosogor,

Please,
Do you have another link to download Roofs image??
if possible send this package directly through my email address: macaurelie@hotmail.com
I find it hard to download from the link above indicate.


thank you already
 
Old 10-25-2012, 09:13 AM   #13
moundy
LQ Newbie
 
Registered: Oct 2012
Location: Congo, Brazzaville
Posts: 2

Rep: Reputation: Disabled
Dear kosorog

I have the same problem on the modem iDirect Infinity 3000 series with the rootfs accidentally erased so I tried the link you gave http://letitbit.net/download/54535.5...8/111.zip.html the site returns me the following message: File not found.

You have another link to download RootFS.bin?

My e-mail: arkabwe@gmail.com
 
Old 05-31-2014, 09:30 AM   #14
kmbangwana
LQ Newbie
 
Registered: May 2014
Posts: 1

Rep: Reputation: Disabled
Dear kosogor and n57green. Is it still possible to have the link to the RootFS. I know it is a long time since this thread was last updated, but I need the file. Thanks
 
Old 11-07-2014, 08:43 AM   #15
alchuk
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
Thanks kosogor for pointing in right direction. I managed to recover stranded XLC-11 linecard.
BTW, I compared calibration files for two other linecards and found no difference.


Now in return I'm placing here some Rootfs images:
1. X3 remote
2. 3100 Remote
3. XLC11 linecard


And for those who has got two devices of the same hardware type one of which is broken: all you need is to 'dd' the Rootfs from healthy one.
Quote:
nms2# ssh root@<HEALTHY_MODEM_IP> "dd if=/dev/mtdblock2" | dd of=RootFS.bin

Last edited by alchuk; 11-07-2014 at 09:02 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling and Building where? matthewa Linux - General 7 06-24-2005 12:06 PM
building and compiling VCDImager-0.7.2 Kilahchris Linux - Software 0 05-17-2005 11:54 PM
Help with compiling/building RPM leisure Linux - Software 2 05-08-2005 11:18 PM
Building cross-compiling toolchain radhapriya Linux - Software 1 06-25-2004 12:01 AM
[Compiling - building - Installing] Please Help unk Linux - Newbie 2 08-04-2002 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration