ts-7000
[Top] [All Lists]

Long post - Linux kernel 2.6.34.7 for ts72xx and ts7400 + filesystem(s)

To:
Subject: 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: Petr Štetiar <>
Date: Tue, 19 Oct 2010 02:15:02 +0200
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

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