ts-7000
[Top] [All Lists]

[ts-7000] TS-7250 + Linux 2.6.31 reprise

To: ts <>
Subject: [ts-7000] TS-7250 + Linux 2.6.31 reprise
From:
Date: Wed, 23 Sep 2009 13:14:58 -0600
Ooops, hit send on that last email way too early. Resending...

Strongly encouraged by seeing Martin Guy's recent post on working crunch
support in gcc 4.3 ( http://martinwguy.co.uk/martin/crunch/ )

And some very clean, simple patches for my ts7250...

http://martinwguy.co.uk/martin/ts7250/KERNEL

I pulled my old TS-7250 out of storage and attempted to make it work,
first pulling down the emdebian tools and environment...

I happened to have the 2.6.31 git tree around, so I applied two of the
patches to correct for my very old redboot on this machine.

patch-force-machine-id-2.6.25.patch
            # Fixed erroneous machine ID supplied by TS RedBoot
arm920-force-fclk.patch
            # Workaround TS7250 RedBoot bug that makes the CPU run at half speed

The third patch, ep93xx-serial-uartbaud.diff
# Stop it erroneously halving the serial ports' baud rate at boot. 

for fixing the serial clock, appeared unnecessary (and seems to be the
case, as I get a correct boot log)

The fourth patch, involving the discontiguous memory support, was too
scary to apply at present and not required to just try out 2.6.31.

patch-discontigmem-ep93xx-linux-2.6.25.patch
            # Allow the disjoint and very distant memory banks of the TS7250
            # (8 x 8MB at 0x0[0145]00000 and 0xe[0145]000000)

My current progress is documented here: http://projects.teklibre.com/ts7250/

Updated versions of these patches against 2.6.31's git tree are also
there, or will be once I have some confidence this is going to actually work.

The kernel config file there is based on with the addition of more complete
iptables, ipv6, and usb device support, the slob, rather than slab
allocator, and the subtraction of the unsupported clock drivers.

This is very much WIP. It looks like I have 3 problems remaining on the
kernel side of the universe, before I can get into userspace issues.

1) Getting it to recognise 64MB ram (applying 4th patch above will probably
fix this)

2) Correctly identifying the flash. My assumption is that the flash
partition is actually on 0 not not the last block. Is there a known
working 2.6.25 .config for this board out there to start from (googling
deeper and recompiling now)

3) It would be nice if I knew how to get it to recognise the usb stick in
it without having to having to do a switch_root or whatever the
equivalent is nowadays. That way I could (hopefully) just boot right
into debian...


At the moment, the boot log looks like this:
RedBoot> ip_address -l 192.168.7.90/24 -h 192.168.7.140
RedBoot> load -r zImage.7250 -b 0x00218000
RedBoot> exec -c "console=ttyAM0,115200 root=/dev/mtdblock1 ip=dhcp"

Using base address 0x00218000 and length 0x001545d0
Uncompressing
Linux...............................................................
Linux version 2.6.31-00002-g6ab52c9  (gcc version
4.3.9
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=40007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Technologic Systems TS-72xx SBC
Memory policy: ECC disabled, Data cache writeback
Ignoring RAM at e0000000-e07fffff (vmalloc region overlap).
Ignoring RAM at e1000000-e17fffff (vmalloc region overlap).
Ignoring RAM at e4000000-e47fffff (vmalloc region overlap).
Ignoring RAM at e5000000-e57fffff (vmalloc region overlap).
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8016
Kernel command line: console=ttyAM0,115200 root=/dev/mtdblock1 ip=dhcp
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 8MB 8MB 8MB 8MB = 32MB total
Memory: 29584KB available (2448K code, 236K data, 92K init, 0K highmem)
NR_IRQS:120
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
M2P DMA subsystem initialized
bio: create slab <bio-0> at 0
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: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (extended precision)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) ÃÂÂÃÂ 2001-2006 Red Hat, Inc.
msgmni has been set to 57
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler cfq registered (default)
Serial: AMBA driver
apb:uart1: ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
console [ttyAM0] enabled
apb:uart2: ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
apb:uart3: ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
nbd: registered device at major 43
ep93xx-eth version 0.1 loading
eth0: ep93xx on-chip ethernet, IRQ 39, 00:d0:69:40:05:2d.
console [netcon0] enabled
netconsole: network logging started
Searching for NAND flash...
NAND device: Manufacturer ID: 0x20, Chip ID: 0x79 (ST Micro NAND 128MiB 3,3V
8-bi)
Scanning device for bad blocks
Using static partition definition
Creating 3 MTD partitions on "ts7250-nand":
0x000000000000-0x000000004000 : "TS-BOOTROM"
0x000000004000-0x000007d04000 : "Linux"
0x000007d04000-0x000008000000 : "RedBoot"
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ep93xx-ohci ep93xx-ohci: EP93xx OHCI
ep93xx-ohci ep93xx-ohci: new USB bus registered, assigned bus number 1
ep93xx-ohci ep93xx-ohci: irq 56, io mem 0x80020000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EP93xx OHCI
usb usb1: Manufacturer: Linux 2.6.31-00002-g6ab52c9 ohci_hcd
usb usb1: SerialNumber: ep93xx
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx-rtc as rtc0
i2c /dev entries driver
ep93xx_wdt: EP93XX watchdog, driver version 0.3
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
ep93xx-rtc ep93xx-rtc: setting system clock to 1970-01-01 00:01:46 UTC (106)
usb 1-3: new full speed USB device using ep93xx-ohci and address 2
usb 1-3: no configurations
usb 1-3: can't read configurations, error -22
usb 1-3: new full speed USB device using ep93xx-ohci and address 3
usb 1-3: no configurations
usb 1-3: can't read configurations, error -22
usb 1-3: new full speed USB device using ep93xx-ohci and address 4
usb 1-3: no configurations
usb 1-3: can't read configurations, error -22
usb 1-3: new full speed USB device using ep93xx-ohci and address 5
usb 1-3: no configurations
usb 1-3: can't read configurations, error -22
hub 1-0:1.0: unable to enumerate USB device on port 3
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 192.168.7.1, my address is 192.168.7.112
IP-Config: Complete:
device=eth0, addr=192.168.7.112, mask=255.255.255.0, gw=192.168.7.1,
host=192.168.7.112, domain=, nis-domain=(none),
bootserver=192.168.7.1, rootserver=192.168.7.1, rootpath=
List of all partitions:
1f00 16 mtdblock0 (driver?)
1f01 128000 mtdblock1 (driver?)
1f02 3056 mtdblock2 (driver?)
No filesystem could mount root, tried: ext3 ext2 squashfs vfat
Kernel panic - not syncing: VFS: Unable to mount

--
Dave Taht
http://the-edge.blogspot.com


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

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>
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