ts-7000
[Top] [All Lists]

Re: Long post - Linux kernel 2.6.34.7 for ts72xx and ts7400 + filesystem

To:
Subject: Re: Long post - Linux kernel 2.6.34.7 for ts72xx and ts7400 + filesystem(s) [Was: Re: [ts-7000] TS-7400 pppd on stock 2.4.26-ts11 kernel]
From: Bridges Seth <>
Date: Mon, 18 Oct 2010 23:52:05 -0700
Petr --

Thanks a ton for patching this thing up for me to test.  I really appreciate it.

Here's where I am:

1. Booting from standard ts-7400 into NAND flash.
2. Put your uClib tarball on my nfs server
3. using bootload to launch your new kernel

bootload -c "console=ttyAM0,115200 ip=dhcp root=/dev/nfs 
nfsroot=192.168.100.7:/home/sethb/ynezz" zImage-2.6.34-r3-ts72xx.bin

The first time it booted ok, but seemed to hang on the startup of the 
NTPclient.  I just moved the S65ntpclient file out of the way in /etc/rc5.d and 
it finished just fine!! (boot spew pasted a little bit below)

A couple of things look funny:

* MTD partitions look like they came from a 7200...standard spew looks like 
this:

Searching for NAND flash...
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 
8-bit)
Scanning device for bad blocks
Hardware ECC detected
Using MBR partition definition
Creating 4 MTD partitions on "NAND 32MiB 3,3V 8-bit":
0x00000000-0x02000000 : "whole chip"
0x00004000-0x00204000 : "kernel"
0x00204000-0x00404000 : "initrd"
0x00404000-0x02000000 : "rootfs"
yaffs: dev is 7939 name is "1f:03"
yaffs: Attempting MTD mount on 31.3, "1f:03"


* serial port ttyTS0 doesn't show up...the standard spew from the 2.4.26-ts11 
kernel looks like this:

ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
EP93XX_AMBA detected a TS-7400 with TS-7412 present
TS-UART/7400 detected a TS-7400 with TS-7412 present
ttyTS0 at MMIO 0x12400000 (irq = 33) is a TSUART

Although I tried many times, I could never get PPP to work at all. microcom 
would let me issue commands to the modem, but every time I try to "pppd call 
att", it goes through the chat script but never gets any response from the 
modem.

Also, I'd never heard of open embedded, so thanks for the heads up.

I'm not sure where to go from here (except to bed), but I wanted to let you 
know the results of what I'd tested so far.

Thanks again for the help!

-sb

<begin output spew from kernel boot>

$ bootload -c "console=ttyAM0,115200 ip=dhcp root=/dev/nfs 
nfsroot=192.168.100.7:/home/sethb/ynezz" zImage-2.6.34-r3-ts72xx.bin
Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 2.6.34.7  (gcc version 4.3.3 (GCC) ) 
#1 PREEMPT Tue Oct 19 01:23:38 CEST 2010
[    0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Technologic Systems TS-72xx SBC
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 8016
[    0.000000] Kernel command line: console=ttyAM0,115200 ip=dhcp root=/dev/nfs 
nfsroot=192.168.100.7:/home/sethb/ynezz
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 8MB 8MB 8MB 8MB = 32MB total
[    0.000000] Memory: 28696k/28696k available, 4072k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xc6000000 - 0xfe800000   ( 904 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc5800000   (  88 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc0022000   ( 104 kB)
[    0.000000]       .text : 0xc0022000 - 0xc0344000   (3208 kB)
[    0.000000]       .data : 0xc035c000 - 0xc037ccc0   ( 132 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:120
[    0.000000] VIC @fefb0000: id 0x00041190, vendor 0x41
[    0.000000] VIC @fefc0000: id 0x00041190, vendor 0x41
[    0.000000] Console: colour dummy device 80x30
[   16.470000] Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
[   16.660000] Security Framework initialized
[   16.660000] Mount-cache hash table entries: 512
[   16.660000] CPU: Testing write buffer coherency: ok
[   16.660000] devtmpfs: initialized
[   16.660000] NET: Registered protocol family 16
[   16.670000] ep93xx clock: PLL1 running at 400 MHz, PLL2 at 192 MHz
[   16.670000] ep93xx clock: FCLK 200 MHz, HCLK 100 MHz, PCLK 50 MHz
[   16.670000] ep93xx dma_m2p: M2P DMA subsystem initialized
[   16.670000] ep93xx dma_m2m: M2M DMA subsystem initialized
[   16.680000] bio: create slab <bio-0> at 0
[   16.690000] NET: Registered protocol family 2
[   16.690000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   16.690000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[   16.690000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   16.690000] TCP: Hash tables configured (established 1024 bind 1024)
[   16.690000] TCP reno registered
[   16.690000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   16.690000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   16.690000] NET: Registered protocol family 1
[   16.700000] RPC: Registered udp transport module.
[   16.700000] RPC: Registered tcp transport module.
[   16.700000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   16.700000] msgmni has been set to 56
[   16.720000] alg: No test for stdrng (krng)
[   16.720000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 
254)
[   16.720000] io scheduler noop registered
[   16.720000] io scheduler cfq registered (default)
[   16.760000] Serial: AMBA driver
[   16.760000] apb:uart1: ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
[   17.080000] console [ttyAM0] enabled
[   17.080000] apb:uart2: ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
[   17.100000] apb:uart3: ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
[   17.100000] amba-pl010.c: auto RS485 mode initialized
[   17.110000] loop: module loaded
[   17.250000] ts72xx-sdcard ts72xx-sdcard.0: SD card hardware revision: 
00000000
[   17.250000] ts72xx-sdcard ts72xx-sdcard.0: block device major number = 254
[   17.270000] ts72xx-sdcard ts72xx-sdcard.0: New SD card detected, name=tssda 
size=990976 (sectors)
[   17.280000]  tssda: tssda1 tssda2 tssda3
[   17.290000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 
32MiB 3,3V 8-bit)
[   17.290000] Scanning device for bad blocks
[   17.420000] Creating 3 MTD partitions on "gen_nand":
[   17.420000] 0x000000000000-0x000000004000 : "TS-BOOTROM"
[   17.440000] 0x000000004000-0x000001d04000 : "Linux"
[   17.450000] 0x000001d04000-0x000002000000 : "RedBoot"
[   17.460000] ep93xx_mii_bus: probed
[   17.460000] ep93xx_eth:ep93xx_mii_probe: PHY supports MII frame preamble 
suppression
[   17.480000] ep93xx_eth:ep93xx_mii_probe: attached PHY driver [Generic PHY] 
(mii_bus:phy_addr=0:01, irq=-1)
[   17.490000] net eth0: ep93xx on-chip ethernet, IRQ 39, 00:d0:69:42:42:0a
[   17.490000] ts72xx-wdt ts72xx-wdt: TS-72xx Watchdog driver
[   17.500000] TCP cubic registered
[   17.500000] NET: Registered protocol family 17
[   19.050000] Sending DHCP requests ., OK
[   19.260000] IP-Config: Got DHCP answer from 0.0.0.0, my address is 
192.168.100.10
[   19.260000] IP-Config: Complete:
[   19.280000]      device=eth0, addr=192.168.100.10, mask=255.255.255.0, 
gw=192.168.100.1,
[   19.280000]      host=192.168.100.10, domain=hsd1.wa.comcast.net., 
nis-domain=(none),
[   19.280000]      bootserver=0.0.0.0, rootserver=192.168.100.7, rootpath=, 
mtu=1492
[   19.290000] Looking up port of RPC 100003/2 on 192.168.100.7
[   19.320000] Looking up port of RPC 100005/1 on 192.168.100.7
[   19.340000] VFS: Mounted root (nfs filesystem) on device 0:12.
[   19.360000] devtmpfs: mounted
[   19.360000] Freeing init memory: 104K
[   19.460000] PHY: 0:01 - Link is Up - 100/Full
INIT: version 2.86 booting
Please wait: booting...
Starting udev
[   25.550000] udev: starting version 141
Remounting root file system...
Caching udev devnodes
Populating dev cache
[   36.890000] usbcore: registered new interface driver usbfs
[   37.020000] usbcore: registered new interface driver hub
[   37.130000] usbcore: registered new device driver usb
[   37.380000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   37.380000] ep93xx-ohci ep93xx-ohci: EP93xx OHCI
[   37.410000] ep93xx-ohci ep93xx-ohci: new USB bus registered, assigned bus 
number 1
[   37.410000] ep93xx-ohci ep93xx-ohci: irq 56, io mem 0x80020000
[   37.520000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[   37.550000] usb usb1: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[   37.550000] usb usb1: Product: EP93xx OHCI
[   37.570000] EXT2-fs (tssda3): warning: mounting unchecked fs, running e2fsck 
is recommended
[   37.580000] usb usb1: Manufacturer: Linux 2.6.34.7 ohci_hcd
[   37.600000] EXT2-fs (tssda2): warning: mounting unchecked fs, running e2fsck 
is recommended
[   37.620000] usb usb1: SerialNumber: ep93xx
[   37.650000] hub 1-0:1.0: USB hub found
[   37.650000] hub 1-0:1.0: 3 ports detected
[   38.660000] rtusb init --->
[   38.660000] usbcore: registered new interface driver rt2870
[   38.910000] ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx-rtc as rtc0
[   39.060000] rtc-m48t86 rtc-m48t86: rtc core: registered m48t86 as rtc1
[   39.060000] rtc-m48t86 rtc-m48t86: battery exhausted
root: mount: mount point /proc/bus/usb does not exist

NOT configuring network interfaces: / is an NFS mount
Tue Oct 19 02:20:00 CEST 2010
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Configuring leds:
  platform:grled: nand-disk
  platform:rdled: heartbeat
Starting Dropbear SSH server: dropbear.
Starting Vixie-cron.
Starting syslogd/klogd: done

             
              __               
.-----.---.-.|  |--.-----.-----.
|  _  |  _  ||  _  |  -__|     |
|___  |___._||_____|_____|__|__|
|_____|

Gaben embedded system ts72xx on ttyAM0

Angstrom 2010.7-test-20101013 ts72xx ttyAM0

ts72xx login:
On Oct 18, 2010, at 5:15 PM, Petr Štetiar wrote:

> Petr Štetiar <> [2010-10-18 21:02:07]:
>
>> Ah[1], I will include it. Thanks.
>>
>> 1. 
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e901bed4e053098f1c8411dcbf21324b7f61775
>
> So I've applied the patch and build the kernel again. I've uploaded also the
> filesystem(s) for testing. One is tar.bz2 which can be unzipped on SD card, 
> or can
> be used as the rootfs over NFS. It's using uClibc 0.9.31 as libc, contains
> really basic stuff for my testing, but Lua+rs232 module is included as is 
> quite
> decent pppd version 2.4.3 (latest is 2.4.5), mtd-utils and few kernel modules.
>
> I've also uploaded the UBIFS image(which might work only on ts72xx, but if the
> flash on the ts7400 is similar it should work), which you can flash to your
> NAND. What the hell is UBIFS and why should I use it, you might ask. You can
> find the answer here[1] and some rough "benchmarks" here[2].
>
> How I've flashed my ts7250 with UBIFS:
>
>       A) used 
> Angstrom-gaben-minimal-image-uclibc-ipk-2010.7-test-20101018-ts72xx.rootfs.tar.bz2
>  as my NFS root
>         * sudo tar xvjf ^filename -C nfs_root
>         * exported the nfs_root
>         * copied the 
> Angstrom-gaben-minimal-image-uclibc-ipk-2010.7-test-20101018-ts72xx.rootfs.ubi
>  to nfs_root
>         * booted my ts7250 with this nfs_root
>
>       B) flashed the above UBI image to NAND
>         :~# flash_eraseall --silent /dev/mtd1
>         :~# ubiformat /dev/mtd1 -f 
> /Angstrom-gaben-minimal-image-uclibc-ipk-2010.7-test-20101018-ts72xx.rootfs.ubi
>               ubiformat: mtd1 (nand), size 30408704 bytes (29.0 MiB), 1856 
> eraseblocks of 16384 bytes (16.0 KiB), min. I/O size 512 bytes
>               libscan: scanning eraseblock 1855 -- 100 % complete 
>               ubiformat: 1856 eraseblocks are supposedly empty
>               ubiformat: flashing eraseblock 515 -- 100 % complete 
>               ubiformat: formatting eraseblock 1855 -- 100 % complete
>         :~# ubiattach /dev/ubi_ctrl -m 1
>         :~# mount -t ubifs ubi0 /mnt       
>         :~# ls -al /mnt
>               drwxr-xr-x   16 root     root         1120 Oct 19 00:36 .
>               drwxr-xr-x   15 root     root         4096 Oct 19 00:29 ..
>               drwxr-xr-x    2 root     root         4880 Oct 19 00:36 bin
>               drwxr-xr-x    2 root     root          160 Oct 19 00:36 boot
>               [snip]
>         :~#
>
>       C) to boot into this new flashed filesystem you need to change the boot 
> params in RedBoot, mine:
>         RedBoot> fconfig -l
>         Run script at boot: true
>         Boot script:
>         .. load -v -r -b 0x00218000 -m http -h 192.168.1.90 /~ynezz/kernel
>         .. exec -c "console=ttyAM0,115200 ubi.mtd=1 root=ubi0:ts72xx-rootfs 
> rootfstype=ubifs"
>
> Kernel, modules and filesystemimages can be found here[3]. I've spent quite a
> lot of my spare time to do all this, so I would really appreciate if you can 
> at
> least try to boot it and give me some feedback. As I own only ts7250 and 
> ts7800
> I can't test it on all boards,so it's up to you :-)
>
> PS: This is all build using the great tool OpenEmbedded, using Angstrom
> distribution as the base. And this is just the beginning and if my spare time
> permits it, be prepared for the online image builder, SDK(s), online package
> repositories(yes, you can then update the packages on the board using one 
> command,
> similar to apt-get upgrade) and more...
>
> PS2: Majority of the patches used to build this images and kernel is in my
> local branch only, but should be soon in the OE, so you can build your own
> images soon. I'll then try to write some how-to also.
>
> 1. http://www.linux-mtd.infradead.org/doc/ubifs.html#L_overview
> 2. http://www.plugcomputer.org/plugwiki/index.php/Enabling_UBIFS#Appendix
> 3. http://ynezz.ibawizard.net/ts72xx/oe/latest/
>
> I'm writting this at 2 o'clock in the morning, so please forgive me some
> mistakes. Looking forward for any feedback. Thanks.
>
> -- ynezz
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>



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

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