ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: 7800 eraseall "not found" error

To:
Subject: Re: [ts-7000] Re: 7800 eraseall "not found" error
From: Robert Ulbrich <>
Date: Thu, 22 Oct 2009 12:13:30 -0500


You definitely have shared library problems, you'd be best to just recompile a static version:

Take a look at the following message (for some reason the yahoo groups search feature seems broken).

Rob

--- In .com, Eddie Dawydiuk m("...","eddie");"><> wrote:
>
> Robert,
>
> > I had to build a static version of eraseall myself, the mtd utilities are open
> > source (yay!). They are available here:
> >
> > http://www.linux-mtd.infradead.org/source.html
>
> Thanks for pointing out where to download the source...
>
> FYI GIT repository: git://git.infradead.org/mtd-utils.git
>
> We simply commented out the code that checks if a block has been marked bad.
> Keep in mind the mtd drivers need to have this same logic commented out as the
> mtd kernel code does the same type of check.
>
> "flash_eraseall.

c" 291L, 7412C written
> :mtd-utils$ diff -u orig.flash_eraseall.c flash_eraseall.c
> --- orig.flash_eraseall.c 2009-08-17 13:21:30.000000000 -0700
> +++ flash_eraseall.c 2009-08-17 13:21:51.000000000 -0700
> @@ -127,6 +127,7 @@
> for (erase.start = 0; erase.start < meminfo.size; erase.start +=
> meminfo.erasesize) {
> if (bbtest) {
> loff_t offset = erase.start;
> + /*
> int ret = ioctl(fd, MEMGETBADBLOCK, &offset);
> if (ret > 0) {
> if (!quiet)
> @@ -144,6 +145,7 @@
> return 1;
> }
> }
> + */
> }
>
> if (!quiet)
> :mtd-utils$
>
> As I've mentioned earlier on this list, if you have any questions please give us
> a call or an email. We're more than happy to help you out and I promise we won't
> bite :)
>
>
Eddie.
many thanks for posting the diff, I thought it was probably a simple mod like that and I already had the original GPL source but this is not the kind of area where suck and see is a valid option. I think you do provide the source along with the vmlinux.bin on the ftp server so that should be easy to check.

I would respectfully point out however that posting a diff here is not GPL compliance. You should make the full source available. Exactly the source that builds the binary.

I'm sure it's an over sight and since you have asked to be notified of any cases on non compliance ,,, it would be nice not to have to call transatlantic or email and wait the weekend for a reply. Having a source tarball on the server next to the binary would save you and "us" time and effort. As well as fulfilling your license obligations.

This is exactly what GPL is about. You profit from the work of others and if you make a mod, you contribute that back in.

Thanks again for your help. I hope this can undo the damage done by yaffs2. There are reports on the aleph1 site about some chips becoming unusable after this sort of erase.

Do you do anything else before mkfs on boards that you get back with this sort of problem?

Best regards.



Harold wrote:
 

The "not found" probably means that it did not find a shared library that the executable needs. Try "ldd eraseall" to see what shared libraries it needs.

--- In .com, "eric.robishaw" m("...","eric");"><> wrote:
>
> Note also...
> of all the files in the directory, I can only execute 'ts7800ctl'
>
> It's not a corrupt file system either, because I can mount from multiple places and have the same behavior (nfs, sd, usb, etc...).
>
> It's got to be something with the fastboot environment... yet when I fastboot using the TS supplied SD card, I can run eraseall.
>
> What's the diff?
>



__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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