ts-7000
[Top] [All Lists]

[ts-7000] Re: Problem with sd card on ts-7260 [solved]

To:
Subject: [ts-7000] Re: Problem with sd card on ts-7260 [solved]
From: "j.chitte" <>
Date: Wed, 18 Apr 2012 11:12:11 -0000

--- In  Ricardo Gabriel <> wrote:
>
>
>
> The issue in which I could not successfully compile the kernel (2.6.21-ts), 
> was that I was missing the tssdcore.c file.
>
> This file should be placed in: drivers/mmc/
>
> The kernel works very well. Allows boot the board from sd card, if you 
> compile with the option:
>
> CONFIG_TS_SDCARD=y.
>
> The SD card will show up as /dev/tssdcarda at the boot.
>
> I attached the tssdcore.c file.
>
>
> Regards,
>
>
> Ricardo Gabriel
>
>
>
> ________________________________
>  De: ricardogabriel5 <>
> Para: 
> Enviado: jueves, 8 de marzo de 2012 11:42
> Asunto: [ts-7000] Re: Problem with sd card on ts-7260
> 
>
>  
>
> I have compiled the kernel with CONFIG_TS_SDCARD=y
>
> But I have obtained the following error:
>
> :~/ts7260/2.6/linux-2.6.21-ts$ make
> CHK     include/linux/version.h
> make[1]: `include/asm-arm/mach-types.h' está actualizado.
> CHK     include/linux/utsrelease.h
> CHK     include/linux/compile.h
> CC      drivers/mmc/tssdcard.o
> drivers/mmc/tssdcard.c:57:22: tssdcore.c: No such file or directory
> drivers/mmc/tssdcard.c: In function `__check_name':
> drivers/mmc/tssdcard.c:160: warning: return from incompatible pointer type
> drivers/mmc/tssdcard.c: At top level:
> drivers/mmc/tssdcard.c:171: error: field `tssdcore' has incomplete type
> drivers/mmc/tssdcard.c: In function `tssdcard_dmastream':
> drivers/mmc/tssdcard.c:333: error: `SDDAT' undeclared (first use in this 
> function)
> drivers/mmc/tssdcard.c:333: error: (Each undeclared identifier is reported 
> only once
> drivers/mmc/tssdcard.c:333: error: for each function it appears in.)
> drivers/mmc/tssdcard.c:336: warning: `virt_to_bus' is deprecated (declared at 
> include/asm/memory.h:192)
> drivers/mmc/tssdcard.c: In function `tssdcard_transfer':
> drivers/mmc/tssdcard.c:476: warning: implicit declaration of function 
> `sdwrite'
> drivers/mmc/tssdcard.c:478: warning: implicit declaration of function 
> `sdreset'
> drivers/mmc/tssdcard.c:488: warning: implicit declaration of function `sdread'
> drivers/mmc/tssdcard.c: In function `tssdcard_fullreq_thread':
> drivers/mmc/tssdcard.c:705: warning: unused variable `bio'
> drivers/mmc/tssdcard.c: In function `tssdcard_open':
> drivers/mmc/tssdcard.c:732: warning: unused variable `ret'
> drivers/mmc/tssdcard.c: In function `setup_device':
> drivers/mmc/tssdcard.c:996: warning: implicit declaration of function 
> `register_reboot_notifier'
> drivers/mmc/tssdcard.c: At top level:
> drivers/mmc/tssdcard.c:154: warning: 'nsectors' defined but not used
> drivers/mmc/tssdcard.c:216: warning: 'int_handler' defined but not used
> make[2]: *** [drivers/mmc/tssdcard.o] Error 1
> make[1]: *** [drivers/mmc] Error 2
> make: *** [drivers] Error 2
>
> Is there anything else I should change?
>
> Regards,
>
> Ricardo
>
> --- In  Mark Featherston <mark@> wrote:
> >
> > Ricardo,
> >
> > I don't see the tssdcard output in that startup message.  It should include 
> > something like
> > "Technologic Systems SD card controller, address 0xâ?¦"
> >
> > Make sure you're compiling with CONFIG_TS_SDCARD=y.  This will show up as 
> > /dev/tssdcarda.
> >
> > Best Regards,
> > __________________________________________________________
> >  Mark Featherston, Technologic Systems | voice: (480) 837-5200
> >  16525 East Laser Drive                | fax: (480) 837-5300
> >  Fountain Hills, AZ 85268              | web: www.embeddedARM.com
> >
> >
> >
> > On Mar 7, 2012, at 10:23 AM, ricardogabriel5 wrote:
> >
> > > Hi!
> > >
> > > I have read the article "Compiling and running kernel 2.6" for TS-7260.
> > >
> > > http://www.simiolabs.com/developer/wiki/index.php?title=Compiling_and_running_kernel_2.6
> > >
> > > I have followed all the steps and the procedure has worked well for me 
> > > for a usb device.
> > >
> > > But for sd card I have not had success.
> > >
> > > I get the following lines to the screen and finally the error:
> > >
> > > VFS: Cannot open root device "hda1" or unknown-block(2,0)
> > > Please append a correct "root=" boot option
> > > Kernel panic - not syncing: VFS: Unable to mount root fs on 
> > > unknown-block(2,0)
> > >
> > > Here, the full lines on the screen:
> > >
> > > Uncompressing 
> > > Linux..................................................................................................
> > >  done, booting the kernel.
> > > Linux version 2.6.21-ts  (gcc version 
> > > 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #2 PREEMPT Wed Mar 7 
> > > 14:07:49 ART 2012
> > > CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=40007177
> > > Machine: Technologic Systems TS-72xx SBC
> > > Memory policy: ECC disabled, Data cache writeback
> > > 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: console=ttyAM0,115200 root=/dev/hda1 rootdelay=10
> > > 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: 61784KB available (2748K code, 254K data, 112K init)
> > > 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
> > > NetWinder Floating Point Emulator V0.97 (double precision)
> > > JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
> > > yaffs Mar 7 2012 13:37:43 Installing.
> > > io scheduler noop registered
> > > io scheduler deadline registered (default)
> > > ep93xx_wdt: EP93XX watchdog, driver version 0.3
> > > 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 4096K size 1024 blocksize
> > > loop: loaded (max 8 devices)
> > > tun: Universal TUN/TAP device driver, 1.6
> > > tun: (C) 1999-2004 Max Krasnyansky <maxk@>
> > > ep93xx-eth version 0.1 loading
> > > eth0: ep93xx on-chip ethernet, IRQ 39, 00:d0:69:44:bd:1a.
> > > 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
> > > 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: Product: EP93xx OHCI
> > > usb usb1: Manufacturer: Linux 2.6.21-ts 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
> > > 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 exhausted
> > > 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 <jketreno@>
> > > rtc-m48t86 rtc-m48t86: hctosys: invalid date/time
> > > Waiting 10sec before mounting root device...
> > > Root-NFS: No NFS server available, giving up.
> > > VFS: Unable to mount root fs via NFS, trying floppy.
> > > VFS: Cannot open root device "hda1" or unknown-block(2,0)
> > > Please append a correct "root=" boot option
> > > Kernel panic - not syncing: VFS: Unable to mount root fs on 
> > > unknown-block(2,0)
> > >
> > > I suppose, that the error is because the board does not recognize the sd 
> > > card.
> > >
> > > In the next line I tried to put:
> > >
> > > console=ttyAM0,115200 root=/dev/sda1 rootdelay=5
> > >
> > > or
> > >
> > > console=ttyAM0,115200 root=/dev/hda1 rootdelay=5
> > >
> > > But without success.
> > >
> > > How to recognize the ts7260 to the sd card? With /dev/?
> > >
> > > Best Regards,
> > >
> > > Ricardo
> > >
> > >
> >
>

Thanks for posting that.

Hasn't the SD thing been back engineer now? I would have thought we could skip 
the mystery secret bit (512bytes in that file) by now.





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

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