test SIE's uSD
Carlos Camargo
cicamargoba at gmail.com
Thu Aug 26 07:37:19 EDT 2010
Hi Adam
Here [1] you can find an image with uSD support
Best Regards
Carlos
[1]
http://projects.qi-hardware.com/index.php/p/nn-usb-fpga/source/tree/master/binaries/kernel-2.6.32.16/uImage
On Wed, Aug 25, 2010 at 9:51 PM, Carlos Camargo <cicamargoba at gmail.com>wrote:
> This is a kernel problem, maybe you are using a kernel without uSD 1 bit
> CMD
>
> Carlos
>
>
> On Wed, Aug 25, 2010 at 9:35 PM, Adam Wang <adam at sharism.cc> wrote:
>
>> Hi Carlos,
>>
>> After reflash your new kernel file,
>>
>> http://projects.qi-hardware.com/index.php/p/nn-usb-fpga/source/commit/1ef32f42c726e0771adcf2f1857746f14ceaf37a/
>> I still can not get detect uSD:
>>
>> root at BenNanoNote:/# ls -l /dev/mmc*
>> ls: /dev/mmc*: No such file or directory
>>
>>
>> root at BenNanoNote:/# more /sys/kernel/debug/gpio
>>
>> gpio-87 (spi_gpio.1 ) out lo
>> gpio-91 (MMC detect change ) in lo irq-147 edge-both
>> gpio-94 (jz nand busy line ) in hi
>>
>> GPIOs 96-127, Bank D:
>> gpio-104 (MSC_CMD ) in hi
>> gpio-105 (MSC_CLK ) in lo
>> gpio-106 (MSC_DATA0 ) in hi
>> gpio-124 (gpio-charger.0 ) in hi irq-180 edge-both
>>
>> So the detect pin is low active!
>>
>> root at BenNanoNote:/# dmesg
>> [ 0.000000] Linux version 2.6.32.16 (juan64bits at Maximus) (gcc version
>> 4.3.3 (GCC) ) #5 PREEMPT Mon Aug 9 19:31:58 COT 2010
>> [ 0.000000] bootconsole [early0] enabled
>> [ 0.000000] CPU revision is: 0ad0024f (Ingenic JZRISC)
>> [ 0.000000] Determined physical RAM map:
>> [ 0.000000] memory: 04000000 @ 00000000 (usable)
>> [ 0.000000] User-defined physical RAM map:
>> [ 0.000000] memory: 02000000 @ 00000000 (usable)
>> [ 0.000000] Zone PFN ranges:
>> [ 0.000000] Normal 0x00000000 -> 0x00002000
>> [ 0.000000] Movable zone start PFN for each node
>> [ 0.000000] early_node_map[1] active PFN ranges
>> [ 0.000000] 0: 0x00000000 -> 0x00002000
>> [ 0.000000] On node 0 totalpages: 8192
>> [ 0.000000] free_area_init_node: node 0, pgdat 803beb30, node_mem_map
>> 81000000
>> [ 0.000000] Normal zone: 64 pages used for memmap
>> [ 0.000000] Normal zone: 0 pages reserved
>> [ 0.000000] Normal zone: 8128 pages, LIFO batch:0
>> [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
>> Total pages: 8128
>> [ 0.000000] Kernel command line: mem=32M console=tty0
>> console=ttyS0,57600n8 ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs rw
>> rootwait
>> [ 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] Primary instruction cache 16kB, VIPT, 4-way, linesize 32
>> bytes.
>> [ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize
>> 32 bytes
>> [ 0.000000] Memory: 28260k/32768k available (2818k kernel code, 4508k
>> reserved, 953k data, 204k init, 0k highmem)
>> [ 0.000000] Hierarchical RCU implementation.
>> [ 0.000000] NR_IRQS:184
>> [ 0.000000] Console: colour dummy device 80x25
>> [ 0.000000] console [tty0] enabled
>> [ 0.000000] console [ttyS0] enabled, bootconsole disabled
>> [ 0.030000] Calibrating delay loop... 335.05 BogoMIPS (lpj=1675264)
>> [ 0.270000] Mount-cache hash table entries: 512
>> [ 0.290000] NET: Registered protocol family 16
>> [ 0.310000] Qi Hardware JZ4740 QI_LB60 setup
>> [ 0.320000] JZ GPIO initalized
>> [ 0.380000] bio: create slab <bio-0> at 0
>> [ 0.400000] Switching to clocksource jz4740-timer
>> [ 0.420000] NET: Registered protocol family 2
>> [ 0.430000] IP route cache hash table entries: 1024 (order: 0, 4096
>> bytes)
>> [ 0.440000] TCP established hash table entries: 1024 (order: 1, 8192
>> bytes)
>> [ 0.450000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
>> [ 0.460000] TCP: Hash tables configured (established 1024 bind 1024)
>> [ 0.470000] TCP reno registered
>> [ 0.480000] NET: Registered protocol family 1
>> [ 0.500000] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat,
>> Inc.
>> [ 0.510000] msgmni has been set to 55
>> [ 0.520000] io scheduler noop registered
>> [ 0.530000] io scheduler anticipatory registered (default)
>> [ 0.540000] io scheduler deadline registered
>> [ 0.550000] io scheduler cfq registered
>> [ 0.580000] Console: switching to colour frame buffer device 53x21
>> [ 0.710000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
>> [ 0.720000] serial8250: ttyS0 at MMIO 0x0 (irq = 17) is a 16550A
>> [ 0.730000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung
>> NAND 2GiB 3,3V 8-bit)
>> [ 0.740000] Scanning device for bad blocks
>> [ 1.020000] Creating 4 MTD partitions on "jz4740-nand":
>> [ 1.030000] 0x000000000000-0x000000400000 : "NAND BOOT partition"
>> [ 1.050000] 0x000000400000-0x000000800000 : "NAND KERNEL partition"
>> [ 1.060000] 0x000000800000-0x000010800000 : "NAND ROOTFS partition"
>> [ 1.070000] 0x000010800000-0x000080000000 : "NAND DATA partition"
>> [ 1.080000] jz4740-nand jz4740-nand.0: Successfully registered JZ4740
>> NAND driver
>> [ 1.100000] UBI: attaching mtd2 to ubi0
>> [ 1.110000] UBI: physical eraseblock size: 524288 bytes (512 KiB)
>> [ 1.120000] UBI: logical eraseblock size: 516096 bytes
>> [ 1.130000] UBI: smallest flash I/O unit: 4096
>> [ 1.140000] UBI: VID header offset: 4096 (aligned 4096)
>> [ 1.150000] UBI: data offset: 8192
>> [ 2.240000] UBI: attached mtd2 to ubi0
>> [ 2.250000] UBI: MTD device name: "NAND ROOTFS partition"
>> [ 2.260000] UBI: MTD device size: 256 MiB
>> [ 2.270000] UBI: number of good PEBs: 512
>> [ 2.280000] UBI: number of bad PEBs: 0
>> [ 2.290000] UBI: max. allowed volumes: 128
>> [ 2.300000] UBI: wear-leveling threshold: 4096
>> [ 2.310000] UBI: number of internal volumes: 1
>> [ 2.320000] UBI: number of user volumes: 1
>> [ 2.330000] UBI: available PEBs: 0
>> [ 2.340000] UBI: total number of reserved PEBs: 512
>> [ 2.350000] UBI: number of PEBs reserved for bad PEB handling: 5
>> [ 2.360000] UBI: max/mean erase counter: 2/0
>> [ 2.370000] UBI: image sequence number: 0
>> [ 2.380000] UBI: background thread "ubi_bgt0d" started, PID 205
>> [ 2.400000] g_ether gadget: using random self ethernet address
>> [ 2.410000] g_ether gadget: using random host ethernet address
>> [ 2.430000] usb0: MAC be:0e:4f:d8:41:27
>> [ 2.440000] usb0: HOST MAC 7e:52:d6:9c:8c:ff
>> [ 2.450000] g_ether gadget: controller 'jz-udc' not recognized; trying
>> CDC Ethernet (ECM)
>> [ 2.460000] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
>> [ 2.470000] g_ether gadget: g_ether ready
>> [ 2.480000] jz4740-rtc jz4740-rtc: rtc core: registered jz4740-rtc as
>> rtc0
>> [ 2.500000] JZ SD/MMC card driver registered
>> [ 2.520000] TCP cubic registered
>> [ 2.530000] NET: Registered protocol family 17
>> [ 2.550000] jz4740-rtc jz4740-rtc: setting system clock to 1970-01-01
>> 00:00:00 UTC (0)
>> [ 2.830000] g_ether gadget: high speed config #1: CDC Ethernet (ECM)
>> [ 2.890000] UBIFS: recovery needed
>> [ 3.420000] UBIFS: recovery completed
>> [ 3.430000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
>> [ 3.440000] UBIFS: file system size: 254435328 bytes (248472 KiB, 242
>> MiB, 493 LEBs)
>> [ 3.450000] UBIFS: journal size: 10452992 bytes (10208 KiB, 9
>> MiB, 21 LEBs)
>> [ 3.460000] UBIFS: media format: w4/r0 (latest is w4/r0)
>> [ 3.470000] UBIFS: default compressor: zlib
>> [ 3.480000] UBIFS: reserved for root: 0 bytes (0 KiB)
>> [ 3.490000] VFS: Mounted root (ubifs filesystem) on device 0:11.
>> [ 3.510000] Freeing unused kernel memory: 204k freed
>> [ 3.540000] Please be patient, while OpenWrt loads ...
>>
>>
>> Did I forget something to set or need to use different rootfs?
>>
>> --
>> Best Regards
>> Adam Wang
>> http://www.nanonote.cc
>>
>> _______________________________________________
>> Qi Hardware Discussion List
>> Mail to list (members only): discussion at lists.en.qi-hardware.com
>> Subscribe or Unsubscribe:
>> http://lists.en.qi-hardware.com/mailman/listinfo/discussion
>>
>
>
>
> --
> Carlos Iván Camargo Bareño
> Profesor Asistente
> Departamento de Ingeniería Eléctrica y Electrónica
> Universidad Nacional de Colombia
> cicamargoba at unal.edu.co
>
--
Carlos Iván Camargo Bareño
Profesor Asistente
Departamento de Ingeniería Eléctrica y Electrónica
Universidad Nacional de Colombia
cicamargoba at unal.edu.co
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.en.qi-hardware.com/pipermail/discussion/attachments/20100826/9d8ebb6a/attachment.htm>
More information about the discussion
mailing list