ts-7000
[Top] [All Lists]

[ts-7000] TS-7400 -- 2.6 Kernel w/custom initrd

To:
Subject: [ts-7000] TS-7400 -- 2.6 Kernel w/custom initrd
From: "" <>
Date: Mon, 19 Apr 2010 01:37:05 -0000
Hello all  

I have a rather vanilla little 7400 system that I am attempting to follow the 
docs to get the 2.6.21 kernel compiled and running on. I actually am having no 
problems with the kernel itself, but am having no luck with either NFS or a 
custom initrd for the root file system.

It appears like I do not have a init parameter configured in the kernel command 
line OR like I don't have my inittab respawn directive set correctly for the 
ttyAM0...?

Does anything below stand out for anyone?

---
:tmp# insmod -f bootloader.o
Warning: loading bootloader.o will taint the kernel: non-GPL license - 
Proprietary
  See http://www.tux.org/lkml/#export-tainted for information about tainted 
modules
Warning: loading bootloader.o will taint the kernel: forced load
Module bootloader loaded, with warnings
:tmp# ./bootload_static --cmdline="root=/dev/ram 
console=ttyAM0,115200 earlyprintk=serial,ttyAM0,115200,keep init=/sbin/init 
debug" --initrd=initrd.gz  zImage_26test

Uncompressing 
Linux................................................................................................
 done, booting the kernel.
Linux version 2.6.21-ts  (gcc version 4.3.3) #4 PREEMPT Sun Apr 
4 14:52:43 MDT 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: Technologic Systems TS-72xx SBC
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
On node 1 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
On node 4 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
On node 5 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
On node 16 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
On node 17 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
On node 18 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
On node 19 totalpages: 2048
  DMA zone: 16 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 2032 pages, LIFO batch:0
  Normal zone: 0 pages used for memmap
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 8 zonelists.  Total pages: 16256
Kernel command line: root=/dev/ram console=ttyAM0,115200 
earlyprintk=serial,ttyAM0,115200,keep init=/bin/busybox debug
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: 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB = 64MB total
Memory: 59104KB available (2688K code, 246K data, 108K init)
Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
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
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 2752K
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
yaffs Apr  4 2010 13:49:13 Installing. 
io scheduler noop registered
io scheduler deadline registered (default)
ep93xx_wdt: EP93XX watchdog, driver version 0.3
ts72xx_wdt: cannot register miscdev on minor=130 (err=-16)
ts72xx_wdt: probe of ts72xx_wdt failed with error -16
Serial: AMBA driver $Revision: 1.1.1.1 $
apb:uart1: ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
apb:uart2: ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
apb:uart3: ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <>
ep93xx-eth version 0.1 loading
eth0: ep93xx on-chip ethernet, IRQ 39, 00:d0:69:40:6c:d5.
Linux video capture interface: v2.00
Searching for NAND flash...
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 
8-bit)
Scanning device for bad blocks
cmdlinepart partition parsing not available
Using static partition definition
Creating 3 MTD partitions on "ts7250-nand":
0x00000000-0x00020000 : "TS-BOOTROM"
0x00020000-0x01d20000 : "Linux"
0x01d20000-0x0201c000 : "RedBoot"
mtd: partition "RedBoot" extends beyond the end of device "ts7250-nand" -- size 
truncated to 0x2e0000
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: block sizes: ed 64 td 64
ep93xx-ohci ep93xx-ohci: EP93xx OHCI
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
ep93xx-ohci ep93xx-ohci: new USB bus registered, assigned bus number 1
ep93xx-ohci ep93xx-ohci: irq 56, io mem 0x80020000
ep93xx-ohci ep93xx-ohci: created debug files
ep93xx-ohci ep93xx-ohci: resetting from state 'reset', control = 0x8f
ep93xx-ohci ep93xx-ohci: OHCI controller state
ep93xx-ohci ep93xx-ohci: OHCI 1.0, NO legacy support registers
ep93xx-ohci ep93xx-ohci: control 0x083 HCFS=operational CBSR=3
ep93xx-ohci ep93xx-ohci: cmdstatus 0x00000 SOC=0
ep93xx-ohci ep93xx-ohci: intrstatus 0x00000004 SF
ep93xx-ohci ep93xx-ohci: intrenable 0x8000005a MIE RHSC UE RD WDH
ep93xx-ohci ep93xx-ohci: hcca frame #0023
ep93xx-ohci ep93xx-ohci: roothub.a 02001203 POTPGT=2 NOCP NPS NDP=3(3)
ep93xx-ohci ep93xx-ohci: roothub.b 00000000 PPCM=0000 DR=0000
ep93xx-ohci ep93xx-ohci: roothub.status 00008000 DRWE
ep93xx-ohci ep93xx-ohci: roothub.portstatus [0] 0x00000100 PPS
ep93xx-ohci ep93xx-ohci: roothub.portstatus [1] 0x00000100 PPS
ep93xx-ohci ep93xx-ohci: roothub.portstatus [2] 0x00000100 PPS
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EP93xx OHCI
usb usb1: Manufacturer: Linux 2.6.21-ts ohci_hcd
usb usb1: SerialNumber: ep93xx
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: no over-current protection
hub 1-0:1.0: power on to power good time: 4ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: trying to enable port power on non-switchable hub
hub 1-0:1.0: state 7 ports 3 chg 0000 evt 0000
drivers/usb/core/inode.c: creating file '001'
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
rtc-m48t86 rtc-m48t86: rtc core: registered m48t86 as rtc0
rtc-m48t86 rtc-m48t86: battery ok
ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx as rtc1
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <>
ieee80211_crypt: registered algorithm 'NULL'
ieee80211_crypt: registered algorithm 'WEP'
rtc-m48t86 rtc-m48t86: hctosys: invalid date/time
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 108K

( just sits here forever )

----

It appears to find and uncompress the initrd, and I don't see any more output 
so I believe it doesn't encounter any errors with that uncompression...??

My inittrab is the following (to allow busybox serial port access):

  1 ::sysinit:/etc/init.d/rcS
  2 
  3 ::askfirst:-/bin/sh
  4 tty2::askfirst:-/bin/sh
  5 tty3::askfirst:-/bin/sh
  6 tty4::askfirst:-/bin/sh
  7 
  8 ::respawn:/sbin/getty -L ttyAM0 115200 vt100
  9 ::respawn:/sbin/getty -L ttyAM1 115200 vt100

----

 Busybox is syn linked for my /sbin/init:

lrwxrwxrwx 1 root root 14 2010-04-14 23:27 init -> ../bin/busybox

----

Any thoughts?

-dave




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] TS-7400 -- 2.6 Kernel w/custom initrd, dave_gallant@ymail.com <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU