Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 23:41:56 +0100
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        freebsd-arm@freebsd.org
Subject:   sheevaplug nand type not recognized?
Message-ID:  <op.wo76n6x58527sy@212-182-167-131.ip.telfort.nl>

next in thread | raw e-mail | index | archive | help
Hello,

I just compiled a FreeBSD-10-current (src from 22 Nov.) kernel+world and  
installed it on a usb stick.
It has NAND support compiled in, but I see no nand devices in /dev.
Dmesg does not list a lnand0 device like the example in  
http://wiki.freebsd.org/NAND#NAND_Framework.

Booting Debian finds this:
...
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB  
3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 168 at 0x000001500000
Bad eraseblock 169 at 0x000001520000
Bad eraseblock 1193 at 0x000009520000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
UBI: attaching mtd1 to ubi0
...

I don't see this Samsung version in sys/dev/nand/nand_id.c.
Would it be easy to add it? I understand the manufacturer id and chip id,  
but I don't know what I should change more.

uname + bootinfo:
FreeBSD sh10.klop.ws 10.0-CURRENT FreeBSD 10.0-CURRENT #1: Wed Dec 12  
23:16:43 CET 2012      
root@mailjail.klop.ws:/usr/obj/arm.arm/usr/src/sys/SHEEVAPLUG  arm

          __  __                      _ _
         |  \/  | __ _ _ ____   _____| | |
         | |\/| |/ _` | '__\ \ / / _ \ | |
         | |  | | (_| | |   \ V /  __/ | |
         |_|  |_|\__,_|_|    \_/ \___|_|_|
  _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
  \___/    |____/ \___/ \___/ \__|
  ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Jul 19 2009 - 16:03:28) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> usb start; fatload usb 0:1 0x900000 kernel.bin; go 0x900000;
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
        scanning bus for storage devices... 1 Storage Device(s) found
reading kernel.bin
...................................................................................................................................................................................................................................................................................................................................................

3473528 bytes read
## Starting application at 0x00900000 ...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-CURRENT #1: Wed Dec 12 23:16:43 CET 2012
     root@mailjail.klop.ws:/usr/obj/arm.arm/usr/src/sys/SHEEVAPLUG arm
CPU: Feroceon 88FR131 rev 1 (Marvell core)
   Little-endian DC enabled IC enabled WA disabled DC streaming enabled
   BTB disabled L2 enabled L2 prefetch enabled
   WB enabled EABT branch prediction enabled
   16KB/32B 4-way instruction cache
   16KB/32B 4-way write-back-locking-C data cache
real memory  = 536870912 (512 MB)
avail memory = 519700480 (495 MB)
SOC: Marvell 88F6281 rev A0, TClock 200MHz
   Instruction cache prefetch enabled, data cache prefetch enabled
   256KB 4-way set-associative write-through unified L2 cache
random device not loaded; using insecure entropy
localbus0: <Marvell device bus> on fdtbus0
nand0: <Marvell NAND controller> mem 0xf9300000-0xf93fffff on localbus0
nandbus0: <NAND bus> on nand0
simplebus0: <Flattened device tree simple bus> on fdtbus0
ic0: <Marvell Integrated Interrupt Controller> mem 0xf1020200-0xf102023b  
on simplebus0
timer0: <Marvell CPU Timer> mem 0xf1020300-0xf102032f irq 1 on simplebus0
Event timer "CPUTimer0" frequency 200000000 Hz quality 1000
Timecounter "CPUTimer1" frequency 200000000 Hz quality 1000
gpio0: <Marvell Integrated GPIO Controller> mem 0xf1010100-0xf101011f irq  
35,36,37,38,39,40,41 on simplebus0
rtc0: <Marvell Integrated RTC> mem 0xf1010300-0xf1010307 on simplebus0
mge0: <Marvell Gigabit Ethernet controller> mem 0xf1072000-0xf1073fff irq  
12,13,14,11,46 on simplebus0
mge0: Ethernet address: 00:50:43:01:6d:4c
miibus0: <MII bus> on mge0
e1000phy0: <Marvell 88E1116R Gigabit PHY> PHY 0 on miibus0
e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,  
1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
uart0: <16550 or compatible> mem 0xf1012000-0xf101201f irq 33 on simplebus0
uart0: console (1066,n,8,1)
uart1: <16550 or compatible> mem 0xf1012100-0xf101211f irq 34 on simplebus0
cesa0: <Marvell Cryptographic Engine and Security Accelerator> mem  
0xf1030000-0xf103ffff irq 22 on simplebus0
ehci0: <Marvell Integrated USB 2.0 controller> mem 0xf1050000-0xf1050fff  
irq 48,19 on simplebus0
usbus0: EHCI version 1.0
usbus0: set host controller mode
usbus0 on ehci0
cryptosoft0: <software crypto>
Timecounters tick every 1.000 msec
ipfw2 initialized, divert loadable, nat loadable, default to accept,  
logging disabled
usbus0: 480Mbps High Speed USB v2.0
ugen0.1: <Marvell> at usbus0
uhub0: <Marvell EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
uhub0: 1 port with 1 removable, self powered
Root mount waiting for: usbus0
ugen0.2: <USB 2.0> at usbus0
umass0: <USB 2.0 USB Flash Drive, class 0/0, rev 2.00/11.00, addr 2> on  
usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:0:0:-1: Attached to scbus0
Trying to mount root from ufs:/dev/da0s2 []...
mountroot: waiting for device /dev/da0s2 ...
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <USB 2.0 USB Flash Drive 1100> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 3894MB (7975296 512 byte sectors: 255H 63S/T 496C)




Regards,
Ronald.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.wo76n6x58527sy>