Ник:
Пароль:

Контакты

E-mail: info@starterkit.ru
тел.: +7 922 680-21-73
тел.: +7 922 680-21-74
Телеграм: t.me/starterkit_ru

Способы оплаты

User Info


Добро пожаловать,
Guest

Регистрация или входРегистрация или вход
Потеряли пароль?Потеряли пароль?

Ник:
Пароль:

ПользователейПользователей:1
Поисковых ботовПоисковых ботов:3
ГостейГостей:1

ОбновитьПодробнееВсегоВсего:5
Форум » starterkit.ru » Embedded Linux
IMX233 и NAND512W3A2SN6E
Arm-a-bot
Добавлено 10.06.2013 09:43
0
Сообщение: 1
Arm-a-bot
0

Пункты: 1540
Регистрация: 16.01.2012
На плате установлена NAND512W3A2SN6E от Numonyx
[url=http://www.micron.com/~/media/Documents/Products/Data%20Sheet/NAND%20Flash/NAND512xxA2S.pdf][/url]

Electronic signature
– Manufacturer ID:
x8 device: 20h
– Device ID:
NAND512W3A2S: 76h
Ядро определяет микросхему как ST Micro( IDs правильные).
Division by zero in kernel.
Numonyx is a semiconductor company making flash memories, which was founded on March 31, 2008 by Intel Corporation, STMicroelectronics and Francisco Partners.
Возможно это и правильно, что ST Micro чип определился.
Но возникает "Division by zero in kernel."
В какую сторону смотреть для решения проблемы ?
Linux лог ниже.


Скрытый текст
Linux version 2.6.35.3-1129-g691c08a (sasa@sasa-laptop) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #100 PREEMPT Fri Jul 13 11:42:38 MSK 2012
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX23EVK board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyAM0,115200 ssp2=gpmi_nfc
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 57756k/57756k available, 7780k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xfde00000 - 0xffe00000 ( 32 MB)
vmalloc : 0xc4800000 - 0xf0000000 ( 696 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc04e7000 (4988 kB)
.text : 0xc04e7000 - 0xc06dd000 (2008 kB)
.data : 0xc06de000 - 0xc06fd2e0 ( 125 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:224
Console: colour dummy device 80x30
console [ttyAM0] enabled
Calibrating delay loop... 113.04 BogoMIPS (lpj=565248)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
regulator: vddd: 800 <--> 1575 mV at 1550 mV fast normal
regulator: vdddbo: 800 <--> 1575 mV fast normal
regulator: vdda: 1500 <--> 2275 mV at 1750 mV fast normal
regulator: vddio: 2800 <--> 3575 mV at 3300 mV fast normal
regulator: overall_current: fast normal
regulator: mxs-duart-1: fast normal
regulator: mxs-bl-1: fast normal
regulator: mxs-i2c-1: fast normal
regulator: mmc_ssp-1: fast normal
regulator: mmc_ssp-2: fast normal
regulator: charger-1: fast normal
regulator: power-test-1: fast normal
regulator: cpufreq-1: fast normal
i.MX IRAM pool: 28 KB@0xc4808000
usb: DR gadget (utmi) registered
bio: create slab <bio-0> at 0
SCSI subsystem initialized
Switching to clocksource mxs clock source
Bus freq driver module loaded
mxs_cpu_init: cpufreq init finished
msgmni has been set to 112
alg: No test for stdrng (krng)
cryptodev: driver loaded.
io scheduler noop registered (default)
mxs-duart.0: ttyAM0 at MMIO 0x80070000 (irq = 0) is a DebugUART
brd: module loaded
loop: module loaded
i.MX GPMI NFC
NFC: Version 0, 4-chip GPMI and BCH
Boot ROM: Version 0, Single/dual-chip boot area, no block mark swapping
Scanning for NAND Flash chips...
NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
-----------------
Boot ROM Geometry
-----------------
Boot Area Count : 1
Boot Area Size in Bytes : 20971520 (0x1400000)
Stride Size in Pages : 64
Search Area Stride Exponent: 2
Scanning for an NCB fingerprint...
Looking for a fingerprint in page 0x0
Looking for a fingerprint in page 0x40
Looking for a fingerprint in page 0x80
Looking for a fingerprint in page 0xc0
No fingerprint found
Transcribing bad block marks...
Division by zero in kernel.
Backtrace:
[<c04eb2bc>] (dump_backtrace+0x0/0x114) from [<c0672b0c>] (dump_stack+0x18/0x1c)
r6:00000000 r5:c3c8d1c8 r4:c3c8d000 r3:00000000
[<c0672af4>] (dump_stack+0x0/0x1c) from [<c04eb404>] (__div0+0x18/0x20)
[<c04eb3ec>] (__div0+0x0/0x20) from [<c05f093c>] (Ldiv0+0x8/0x10)
[<c0652d80>] (imx23_rom_extra_init+0x0/0x498) from [<c0653ffc>] (mil_scan_bbt+0xa0/0xcc)
[<c0653f5c>] (mil_scan_bbt+0x0/0xcc) from [<c0649ae0>] (nand_scan_tail+0x4fc/0x5bc)
r6:00000000 r5:c3c8d1c8 r4:c3c8d0a0 r3:00000001
[<c06495e4>] (nand_scan_tail+0x0/0x5bc) from [<c064b270>] (nand_scan+0x28/0x2c)
r6:c06e380c r5:c06e4c28 r4:c3c8d1c8 r3:00000000
[<c064b248>] (nand_scan+0x0/0x2c) from [<c065374c>] (gpmi_nfc_mil_init+0x114/0x6b0)
r4:c3c8d000 r3:00000002
[<c0653638>] (gpmi_nfc_mil_init+0x0/0x6b0) from [<c0650018>] (gpmi_nfc_probe+0x3e0/0x520)
[<c064fc38>] (gpmi_nfc_probe+0x0/0x520) from [<c062b1a0>] (platform_drv_probe+0x20/0x24)
[<c062b180>] (platform_drv_probe+0x0/0x24) from [<c062a174>] (driver_probe_device+0xb8/0x170)
[<c062a0bc>] (driver_probe_device+0x0/0x170) from [<c062a294>] (__driver_attach+0x68/0x8c)
r7:00000000 r6:c06fb720 r5:c06e4c5c r4:c06e4c28
[<c062a22c>] (__driver_attach+0x0/0x8c) from [<c062992c>] (bus_for_each_dev+0x54/0x84)
r6:00000000 r5:c062a22c r4:c06fb720 r3:00000000
[<c06298d8>] (bus_for_each_dev+0x0/0x84) from [<c0629fd0>] (driver_attach+0x20/0x28)
r6:c06f9c98 r5:c372aae0 r4:c06fb720
[<c0629fb0>] (driver_attach+0x0/0x28) from [<c0629204>] (bus_add_driver+0xa4/0x21c)
[<c0629160>] (bus_add_driver+0x0/0x21c) from [<c062a5ac>] (driver_register+0xb0/0x140)
[<c062a4fc>] (driver_register+0x0/0x140) from [<c062b604>] (platform_driver_register+0x4c/0x60)
r8:00000000 r7:00000013 r6:00000001 r5:c00083d0 r4:c00172c8
r3:00000000
[<c062b5b8>] (platform_driver_register+0x0/0x60) from [<c00172e4>] (gpmi_nfc_init+0x1c/0x40)
[<c00172c8>] (gpmi_nfc_init+0x0/0x40) from [<c04e73ac>] (do_one_initcall+0x64/0x1c4)
[<c04e7348>] (do_one_initcall+0x0/0x1c4) from [<c0008480>] (kernel_init+0xb0/0x170)
r7:00000013 r6:c0503798 r5:c00083d0 r4:c00198f0
[<c00083d0>] (kernel_init+0x0/0x170) from [<c0503798>] (do_exit+0x0/0x690)
r4:00000000 r3:00000000
--------------------
Search Area Geometry
--------------------
Search Area Size in Blocks : 0
Search Area Size in Strides: 4
Search Area Size in Pages : 256
Erasing the search area...
Writing NCB fingerprints...
Writing an NCB fingerprint in page 0x0
Writing an NCB fingerprint in page 0x40
Writing an NCB fingerprint in page 0x80
Writing an NCB fingerprint in page 0xc0
Scanning device for bad blocks
Bad eraseblock 2150 at 0x000002198000
Boot area protection is enabled.
gpmi-nfc gpmi-nfc.0: Boot area size is larger than a chip
ARC USBOTG Device Controller driver (1 August 2005)
check_parameters:UTP settings are in place now, overriding defaults
g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008
g_file_storage gadget: Number of LUNs=1
fsl-usb2-udc: bind to driver g_file_storage
dcp dcp.0: DCP crypto enabled.!
Freeing init memory: 4988K
Init: /etc/init.d/S00init: line 30: can't create /proc/sys/kernel/hotplug: nonexistent directory
g_file_storage gadget: high speed config #1
OK
Starting logging: OK
uuc 0.4 [built Jul 13 2012 10:05:45]
UTP: Waiting for device to appear
UTP: file/device node /dev/utp already exists
cpu_id is 23

Welcome to Buildroot
buildroot login: UTP: received command '$ flash_erase /dev/mtd0 0 0'
UTP: executing "flash_erase /dev/mtd0 0 0"
flash_erase: error!: /dev/mtd0
error 2 (No such file or directory)
UTP: sending Non-success to kernel for command $ flash_erase /dev/mtd0 0 0.
utp_poll: exit with status 65280
root
login[285]: root login on 'ttyAM0'
#
Спуститься к концу Подняться к началу
Персональная информация
Arm-a-bot
Добавлено 24.06.2013 16:37 Сообщение: 2
Arm-a-bot
0

Пункты: 1540
Регистрация: 16.01.2012
Код
In the i.MX23, there are no separate boot modes for each type of ECC level. The hardware ECC level to
use is embedded inside NCB block. The NCB data structure is itself protected using software ECC
(SEC-DED Hamming Codes). Driver reads raw 2112 bytes of first sector and runs through software ECC
engine that determines whether NCB data is valid or not.

У NAND512W3A2SN6E организация "512+16". Похоже, загрузиться с него не будет никакой возможности. Надо NAND с "2048+64".
Спуститься к концу Подняться к началу
Персональная информация
Arm-a-bot
Добавлено 25.07.2013 12:36 Сообщение: 3
Arm-a-bot
0

Пункты: 1540
Регистрация: 16.01.2012
Все проблемы решились использованием другого чипа
S34ML01G100TFI000
Код

HTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFC
ARM-A-BOT REV 1.01
PowerPrep Debug Version
PowerPrep start initialize power...
Battery Voltage = 0.20V
No battery or bad battery detected!!!.Disabling battery voltage measurements./r/nLLLCFeb 26 201214:36:57
EMI_CTRL 0x1C084040
FRAC 0x92926192
init_ddr_mt46v32m16_133Mhz
power 0x00820710
Frac 0x92926192
start change cpu freq
hbus 0x00000003
cpu 0x00010001
LLLLLLLLFCLJUncompressing Linux... done, booting the kernel.
Linux version 2.6.35.3 (user@debian6) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #107 PREEMPT Wed Jul 24 23:06:05 EEST 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: ARM-A-BOT board
Ignoring unrecognised tag 0x54410009
Memory policy: ECC disabled, Data cache writeback
INITRD: 0x40400000+0x00400000 overlaps in-use memory region - disabling initrd
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyAM0,115200 mem=64M
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 58576k/58576k available, 6960k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xfde00000 - 0xffe00000 ( 32 MB)
vmalloc : 0xc4800000 - 0xf0000000 ( 696 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0290000 (2592 kB)
.text : 0xc0290000 - 0xc0601000 (3524 kB)
.data : 0xc0602000 - 0xc062bf20 ( 168 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:224
Console: colour dummy device 80x30
console [ttyAM0] enabled
Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
NET: Registered protocol family 16
regulator: vddd: 800 <--> 1575 mV at 1550 mV fast normal
regulator: vdddbo: 800 <--> 1575 mV fast normal
regulator: vdda: 1500 <--> 2275 mV at 1750 mV fast normal
regulator: vddio: 2800 <--> 3575 mV at 3300 mV fast normal
regulator: overall_current: fast normal
regulator: mxs-duart-1: fast normal
regulator: mxs-bl-1: fast normal
regulator: mxs-i2c-1: fast normal
regulator: mmc_ssp-1: fast normal
regulator: mmc_ssp-2: fast normal
regulator: charger-1: fast normal
regulator: power-test-1: fast normal
regulator: cpufreq-1: fast normal
i.MX IRAM pool: 28 KB@0xc4808000
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource mxs clock source
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
Bus freq driver module loaded
mxs_cpu_init: cpufreq init finished
JFFS2 version 2.2. (NAND) б&#9560; 2001-2006 Red Hat, Inc.
msgmni has been set to 114
alg: No test for stdrng (krng)
cryptodev: driver loaded.
io scheduler noop registered
io scheduler cfq registered (default)
mxs-duart.0: ttyAM0 at MMIO 0x80070000 (irq = 0) is a DebugUART
brd: module loaded
loop: module loaded
SSFDC read-only Flash Translation layer
mtdoops: mtd device (mtddev=name/number) must be supplied
i.MX GPMI NFC
NFC: Version 0, 4-chip GPMI and BCH
Boot ROM: Version 0, Single/dual-chip boot area, no block mark swapping
Scanning for NAND Flash chips...
CHIP size: 134217728 PAGE size: 0
init_size defined
run init_size
INIT_SIZE ENTERED
AMD/SPANSION device info search...
TYPE 2
-----------------------------
NAND Flash Device Information
-----------------------------
Manufacturer : AMD/SPANSION (0x01)
Device Code : 0xf1
Cell Technology : SLC
Chip Size : 128 MiB
Pages per Block : 64
Page Geometry : 2048+64
ECC Strength : 4 bits
ECC Size : 512 B
Data Setup Time : 30 ns
Data Hold Time : 20 ns
Address Setup Time: 25 ns
GPMI Sample Delay : 6 ns
tREA : Unknown
tRLOH : Unknown
tRHOH : Unknown
Description : S34ML01G1
Block count : 3
Block size : 512
Metadata size: 10
Ecc strength : 4
Page size : 2112
------------
NFC Geometry
------------
ECC Algorithm : BCH
ECC Strength : 8
Page Size in Bytes : 2112
Metadata Size in Bytes : 10
ECC Chunk Size in Bytes: 512
ECC Chunk Count : 4
Payload Size in Bytes : 2048
Auxiliary Size in Bytes: 16
Auxiliary Status Offset: 12
Block Mark Byte Offset : 0
Block Mark Bit Offset : 0
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/SPANSION NAND 128MiB 3,3V 8-bit)
-----------------
Boot ROM Geometry
-----------------
Boot Area Count : 1
Boot Area Size in Bytes : 20971520 (0x1400000)
Stride Size in Pages : 64
Search Area Stride Exponent: 2
Scanning for an NCB fingerprint...
Looking for a fingerprint in page 0x0
Found a fingerprint
Scanning device for bad blocks
Bad eraseblock 187 at 0x000001760000
Bad eraseblock 1022 at 0x000007fc0000
Boot area protection is enabled.
Creating 2 MTD partitions on "gpmi-nfc-main":
0x000000000000-0x000001400000 : "gpmi-nfc-0-boot"
mtd: Giving out device 0 to gpmi-nfc-0-boot
0x000001400000-0x000008000000 : "gpmi-nfc-general-use"
mtd: Giving out device 1 to gpmi-nfc-general-use
ftl_cs: FTL header not found.
PPP generic driver version 2.4.2
usbcore: registered new interface driver asix
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci: irq 11, io base 0x80080000
fsl-ehci fsl-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
WARNING : No battery connected !
Aborting power driver initialization
mxs-battery: probe of mxs-battery.0 failed with error 1
mxs watchdog: initialized, heartbeat 19 sec
cpuidle: using governor ladder
cpuidle: using governor menu
dcp dcp.0: DCP crypto enabled.!
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Freeing init memory: 2592K


Starting ARM-A-BOT system...
VER 1.01

Please press Enter to activate this console.
[root@arm-a-bot /]$mkdir /mnt
[root@arm-a-bot /]$mkdir /mnt/nf
[root@arm-a-bot /]$mount -t jffs2 /dev/mtdblock1 /mnt/nf
JFFS2 doesn't use OOB.
[root@arm-a-bot /]$cd /mnt/nf
[root@arm-a-bot nf]$dir
nfi
[root@arm-a-bot nf]$cat nfi
This is a test file
[root@arm-a-bot nf]$df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock1 108.0M 2.8M 105.2M 3% /mnt/nf
[root@arm-a-bot nf]$
Спуститься к концу Подняться к началу
Персональная информация
Форум » starterkit.ru » Embedded Linux