KIYOHARA Takashi | 1 Aug 2010 13:52
Picon

Re: marvell relation support 20100413

Hi! all,

From: KIYOHARA Takashi <kiyohara <at> kk.iij4u.or.jp>
Date: Wed, 09 Jun 2010 14:16:16 +0900 (JST)

> Next, I want to be porting Kirkwood and Discovery Innovation with
> several developers.

I put newer patch and tar-file.

ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/marvell/marvell-20100801.diff
ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/marvell/marvell-20100801.tar.gz

+ This doesn't support L2 cache. We should implement L2 cache support
  of NetBSD/arm.

+ SheevaPlug is not supporting gtidmac now.

+ My SheevaPlug doesn't support SATA.  It doesn't permit the access to
  the PHY register.  Therefore, SHEEVAPLUG prohibits mvsata.  ;-)

+ GbE(mvgbe) doesn't work correctly.  I am debugging it now.
  For instance, it responds to ping(1) from the NFS server.  However,
  the NFS server reports on 'bad cksum' for ICMP echo reply.
  (By tcpdump(8))

Marvell>> tftp 2000000 netbsd.gz.ub
Using egiga0 device
TFTP from server 192.168.3.1; our IP address is 192.168.3.100
Filename 'netbsd.gz.ub'.
(Continue reading)

KIYOHARA Takashi | 21 Aug 2010 14:16
Picon

Re: marvell relation support 20100413

Hi! Allen,

From: Allen Wong <allen <at> submoron.org>
Date: Fri, 20 Aug 2010 22:18:42 -0700

> -> From: KIYOHARA Takashi <kiyohara <at> kk.iij4u.or.jp>
> -> Date: Wed, 09 Jun 2010 14:16:16 +0900 (JST)
> -> 
> -> > Next, I want to be porting Kirkwood and Discovery Innovation with
> -> > several developers.
> -> 
> -> I put newer patch and tar-file.
> -> 
> -> ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/marvell/marvell-20100801.diff
> -> ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/marvell/marvell-20100801.tar.gz
> -> 

> Unfortunately, my Sheevaplug can't boot the kernel (see u-boot messages below).
> I built this from the current source from Aug. 20 with the above patch applied
> and kernel files installed.
> 
> What information can I provide to troubleshoot this further?

> ## Booting image at 02000000 ...
>    Image Name:   NetBSD/sheevaplug 5.99.38
>    Created:      2010-08-20   4:27:22 UTC
>    Image Type:   ARM NetBSD Kernel Image (gzip compressed)
>    Data Size:    1991758 Bytes =  1.9 MB
>    Load Address: 00008000
>    Entry Point:  00008000
(Continue reading)

Allen Wong | 21 Aug 2010 16:41

Re: marvell relation support 20100413


Hello Kiyohara,

-> > ## Booting image at 02000000 ...
-> >    Image Name:   NetBSD/sheevaplug 5.99.38
-> >    Created:      2010-08-20   4:27:22 UTC
-> >    Image Type:   ARM NetBSD Kernel Image (gzip compressed)
-> >    Data Size:    1991758 Bytes =  1.9 MB
-> >    Load Address: 00008000
-> >    Entry Point:  00008000
-> >    Verifying Checksum ... OK
-> >    Uncompressing Kernel Image ... OK
-> > ## Transferring control to NetBSD stage-2 loader (at address 00008000) ...
-> > software interrupt
-> > pc : [<00008008>]          lr : [<0060022c>]
-> 
-> hmm...   ^^^^^^^^
-> I don't understand... ;-<
-> 
-> you Sheevaplug happen software-interrupt-exception at 0x8008.  netbsd's
-> entry point is 0x8000.
-> 
-> Can you try ?
-> 
->     # arm--netbsdelf-objdump -d your-SHEVAPLUG/netbsd
-> 
->     c0008000 <marvell_start>:
->     c0008000:       ee104f10        mrc     15, 0, r4, cr0, cr0, {0}
->     c0008004:       e3c4400f        bic     r4, r4, #15     ; 0xf
->     c0008008:       e28f50c4        add     r5, pc, #196    ; 0xc4
(Continue reading)

KIYOHARA Takashi | 22 Aug 2010 13:12
Picon

Re: marvell relation support 20100413

Hi! Allen,

From: Allen Wong <allen <at> submoron.org>
Date: Sat, 21 Aug 2010 07:41:51 -0700

> -> Do you try to boot my test kernel?
> -> # I replaced cpufunc_asm_sheeva.S to FreeBSD's.
> -> # I see message "/etc/rc.conf is " from /etc/rc.  And, it hung up.  ;-)
> -> 
> 
> Where do I get your test kernel?  I'd be happy to try it.  Thanks again!

I prepare to:

  ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/tmp/netbsd-SHEEVAPLUG.gz.ub

By the way, did your Sheevaplug confirm working with Linux?
For instance, will you see DRAM broken?

Thanks,
--
kiyohara

Izumi Tsutsui | 23 Aug 2010 13:42
Picon
Gravatar

NetBSD/hpcarm W-ZERO3 pre-installed disk image for SD media

Hi,

For easy trial of NetBSD/hpcarm on Sharp/Willcom W-ZERO3 smart phones,
I've created a pre-installed disk image for NetBSD/hpcarm W-ZERO3
that will fit 2GB SD card media:
 http://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/wzero3/

You can try NetBSD/hpcarm (including Xserver) on W-ZERO3 machines,
without complicated installation, by simply writing the image to
a 2GB SD card media by gunzip(1) and dd(1) on UNIX environments as:
 # gunzip -c [gzipped image] | dd of=/dev/rsdXd bs=64k
or using the brandnew Rawrite32.exe tool for Windows version 1.0.2.0:
 http://www.NetBSD.org/~martin/rawrite32/

The new Rawrite32 tool works fine with >2GB images against
removable drives and even on newer Windows Vista and Windows 7.
(Thanks martin!)

I've also prepared some useful pre-compiled pkgsrc-2010Q2 based
package binaries for NetBSD/hpcarm 5.99.38 on that image.

Please read README files for more details:
 http://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/wzero3/README
 http://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/wzero3/README.ja (Japanese)

For NetBSD/hpcarm itself and supported W-ZERO3 machines,
please refer NetBSD/hpcarm port page:
 http://www.NetBSD.org/ports/hpcarm/

Enjoy,
(Continue reading)

Arthur Accroc | 26 Aug 2010 12:06
Picon

Re: Gumstix Overo boot

Hi Sir,

could you please provide us a little "howto" to put the kernel and userland on a microSD please ?
i guess we need as the verdex to format the microSD with 2 partitions :
- 1 FAT16 at the start
- 1 EXT3 after
then use mkimage (from where ?) to adapt the netbsd kernel to the overo ?

thanks for the help
Arthur


2010/7/5 KIYOHARA Takashi <kiyohara <at> kk.iij4u.or.jp>
Hi! all


My Gumstix Overo Fire boots with Chestnut43(expansion board).
Overo works by same OMAP35xx as BeagleBoard.  Moreover, a lot of
expansion-boards exist like Gumstix.
(expansion-boards and Bluetooth, Wifi, MicroSD not support yet ;-)

 http://www.gumstix.com/

My Overo patch:
 ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/gumstix/overo-20100625.diff


## Starting application at 0x80200000 ...
not specified 'busheader=' in the boot args.

NetBSD/evbarm (overo) booting ...
[ Kernel symbol table missing! ]
Loaded initial symtab at 0x804656b0, strtab at 0x8048d158, # entries 10072
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
   2006, 2007, 2008, 2009, 2010
   The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
   The Regents of the University of California.  All rights reserved.

NetBSD 5.99.32 (OVERO) #3: Mon Jul  5 15:17:53 JST 2010
       lance <at> greed.sins.soum.co.jp:/usr/src/sys/arch/evbarm/compile/OVERO
total memory = 256 MB
avail memory = 245 MB
WARNING: module error: can't find builtin dependency `layerfs'
mainbus0 (root)
cpu0 at mainbus0: Cortex-A8 r1p3 (Cortex core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 16KB/64B 4-way Instruction cache
cpu0: 16KB/64B 4-way write-back-locking-C Data cache
obio0 at mainbus0 base 0x48000000-0x48ffffff: On-Board IO
omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
obio1 at mainbus0 base 0x48300000-0x4833ffff: On-Board IO
omapwdt32k0 at obio1 addr 0x48314000-0x483147ff: rev 3.1
obio2 at mainbus0 base 0x49000000-0x490fffff: On-Board IO
omapmputmr0 at obio2 addr 0x49032000-0x490320ff intr 38: OMAP MPU Timer #2
com0 at obio2 addr 0x49020000-0x490203ff intr 74: ns16550a, working fifo
com0: console
omapmputmr1 at obio2 addr 0x49034000-0x490340ff intr 39: OMAP MPU Timer #3
omapmputmr2 at obio2 addr 0x49036000-0x490360ff intr 40: OMAP MPU Timer #4
L3i0 at mainbus0: L3i Interconnect
gpmc0 at mainbus0 base 0x6e000000: General Purpose Memory Controller, rev 5.0
gpmc0: CS#0 valid, addr 0x30000000, size 128MB
clock: hz=100 stathz=64
WARNING: module error: can't find builtin dependency `layerfs'
boot device: <unknown>
root device: ?
use one of: ddb halt reboot
root device:

# hmm... Why gpmc0 says 'size 128MB'???  We have 256MB?

I will merge this patch in a few days.

Thanks,
--
kiyohara
 # And, it apologizes really.  Next, I will port Marvell SoC... ;-)

KIYOHARA Takashi | 27 Aug 2010 07:04
Picon

Re: Gumstix Overo boot

Hi! Arthur,

From: Arthur Accroc <arthur.accroc1 <at> gmail.com>
Date: Thu, 26 Aug 2010 12:06:18 +0200

> could you please provide us a little "howto" to put the kernel and userland
> on a microSD please ?

Oops...  Our Overo(OMAP35xx) not support sdmmc and USB yet.  X-<
You cannot be expecting it quite now.

Also not supports Ethernet yet at NetBSD source tree.
However, you are lucky.
I have just support Ethernet and boots on NFS at yesterday.  This
change will be merged on this weekend.  ;-)
# It tested Chesnut43 only.  Also maybe support Tobi and Tobi-Duo.
# Stagecoach not support.

> i guess we need as the verdex to format the microSD with 2 partitions :
> - 1 FAT16 at the start
> - 1 EXT3 after
> then use mkimage (from where ?) to adapt the netbsd kernel to the overo ?

It is only one filesystem of FAT or ext2(ext3) that it is necessary
for us now.

When OVERO is done in the build, some files are generated.

  # cd /usr/src/sys/arch/evbarm/compile/OVERO
  # ls netbsd*
  netbsd          netbsd.bin.gz   netbsd.gz.ub
  netbsd.bin      netbsd.gdb      netbsd.map

  netbsd	It is original NetBSD kernel.
  netbsd.bin	Striped kernel.  U-boot can load/go at 0x80200000.
  netbsd.gz.ub	U-boot image.  U-boot can handle appropriately.

Overo # mmc init
mmc1 is available

(My FAT mmc case)
Overo # fatls mmc 0 /
  1457763   netbsd.gz.ub 

1 file(s), 0 dir(s)

Overo # printenv loadaddr
loadaddr=0x82000000

Overo # fatload mmc 0 ${loadaddr} netbsd.gz.ub
reading netbsd.gz.ub

1457763 bytes read

Overo # bootm ${loadaddr} expansion=chestnut43
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   NetBSD/overo 5.99.38
   Image Type:   ARM NetBSD Kernel Image (gzip compressed)
   Data Size:    1457168 Bytes =  1.4 MB
   Load Address: 80200000
   Entry Point:  80200000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Transferring control to NetBSD stage-2 loader (at address 80200000) ...

NetBSD/evbarm (overo) booting ...
[ Kernel symbol table missing! ]
Loaded initial symtab at 0x804659d0, strtab at 0x8048e558, # entries 10342
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.38 (OVERO) #28: Thu Aug 26 20:19:36 JST 2010
        lance <at> greed.sins.soum.co.jp:/usr/src/sys/arch/evbarm/compile/OVERO
total memory = 256 MB
avail memory = 245 MB
mainbus0 (root)
cpu0 at mainbus0: Cortex-A8 r1p3 (Cortex core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 16KB/64B 4-way Instruction cache
cpu0: 16KB/64B 4-way write-back-locking-C Data cache
obio0 at mainbus0 base 0x48000000-0x48ffffff: On-Board IO
omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
obio1 at mainbus0 base 0x48300000-0x4833ffff: On-Board IO
omapgpio0 at obio1 addr 0x48310000-0x483103ff intr 29 intrbase 96: interrupts 96..127, intr 29
omapwdt32k0 at obio1 addr 0x48314000-0x483147ff: rev 3.1
obio2 at mainbus0 base 0x49000000-0x490fffff: On-Board IO
omapgpio1 at obio2 addr 0x49050000-0x490503ff intr 30 intrbase 128: interrupts 128..159, intr 30
omapgpio2 at obio2 addr 0x49052000-0x490523ff intr 31 intrbase 160: interrupts 160..191, intr 31
omapmputmr0 at obio2 addr 0x49032000-0x490320ff intr 38: OMAP MPU Timer #2
com0 at obio2 addr 0x49020000-0x490203ff intr 74: ns16550a, working fifo
com0: console
omapgpio3 at obio2 addr 0x49054000-0x490543ff intr 32 intrbase 192: interrupts 192..223, intr 32
omapgpio4 at obio2 addr 0x49056000-0x490563ff intr 33 intrbase 224: interrupts 224..255, intr 33
omapgpio5 at obio2 addr 0x49058000-0x490583ff intr 34 intrbase 256: interrupts 256..287, intr 34
omapmputmr1 at obio2 addr 0x49034000-0x490340ff intr 39: OMAP MPU Timer #3
omapmputmr2 at obio2 addr 0x49036000-0x490360ff intr 40: OMAP MPU Timer #4
L3i0 at mainbus0: L3i Interconnect
gpmc0 at mainbus0 base 0x6e000000: General Purpose Memory Controller, rev 5.0
gpmc0: CS#0 valid, addr 0x30000000, size 128MB
gpmc0: CS#5 valid, addr 0x01000000, size  16MB
smsh0 at gpmc0 addr 0x01000000 intr 272: SMSC LAN9221 Rev 0
smsh0: MAC address 00:15:c9:28:c3:a3
ukphy0 at smsh0 phy 1: OUI 0x00800f, model 0x000c, rev. 3
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
clock: hz=100 stathz=64
gpio0 at omapgpio0: 32 pins
gpio1 at omapgpio1: 32 pins
gpio2 at omapgpio2: 32 pins
gpio3 at omapgpio3: 32 pins
gpio4 at omapgpio4: 32 pins
gpio5 at omapgpio5: 32 pins
boot device: <unknown>
root device: smsh0
dump device: 
file system (default generic): 
root on smsh0
mountroot: trying nfs...
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 192.168.3.1
nfs_boot: my_addr=192.168.3.253
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=0.0.0.0
root on 192.168.3.1:/home/lance/obj/arm/destdir.evbarm
root time: 0x4c7744f1
root file system type: nfs
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
warning: no /dev/console
init path (default /sbin/init): 
init: copying out path `/sbin/init' 11
/etc/rc.conf is not configured.  Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh: 
Terminal type is vt100.                                                 
We recommend that you create a non-root account and use su(1) for root access.
# ls
.cshrc                    altroot                   rescue
.profile                  bin                       root
SETS.destdir.extra        dev                       sbin
SETS.destdir.missing      etc                       stand
SETS.dlist                lib                       tmp
SETS.flist                libdata                   usr
SETS.metalog.extra        libexec                   var
SETS.metalog.missing      mnt
# 

Thanks,
--
kiyohara

I have Overo Fire, Water, and Earth now.
And, it has Summit, Chestnut43, Tobi-Duo, and Stagecaoch as an expansion
board.
Does nobody have Tobi?

KIYOHARA Takashi | 27 Aug 2010 07:27
Picon

ARM L2 cache support?

Hi! All,

What status to support for ARM L2 cache?
CPU core new of recent has L2 cache.  For instance, it is Cortex and
Marvell Sheeva.
My neither Sheevaplug nor Overo seem to work if L2 is not disabled now.

Do you know the person who is doing the activity of the L2 cache support?

Thanks,
--
kiyohara

Adam Hoka | 27 Aug 2010 09:28
Picon
Gravatar

PRCM support for OMAP (beagle cold reset)

Hi!

I have patches to support the PRCM in omap to be able
to reboot my devkit8000 (beagle clone).

The only supported action is cold reset in fact, but
others could be supported too.

http://www.netbsd.org/~ahoka/patches/omap_prcm.diff
http://www.netbsd.org/~ahoka/patches/beagle_prcm_reboot.diff

Im not sure if I have to disable the MMU or something else
action before reset. Anyone can have a look?

This could be also useful for overo.

--

-- 
NetBSD - Simplicity is prerequisite for reliability

KIYOHARA Takashi | 27 Aug 2010 09:46
Picon

Re: PRCM support for OMAP (beagle cold reset)

Hi! Adam,

From: Adam Hoka <adam.hoka <at> gmail.com>
Date: Fri, 27 Aug 2010 09:28:43 +0200

> I have patches to support the PRCM in omap to be able
> to reboot my devkit8000 (beagle clone).

Cool!!

> The only supported action is cold reset in fact, but
> others could be supported too.
> 
> http://www.netbsd.org/~ahoka/patches/omap_prcm.diff
> http://www.netbsd.org/~ahoka/patches/beagle_prcm_reboot.diff
> 
> Im not sure if I have to disable the MMU or something else
> action before reset. Anyone can have a look?
> 
> This could be also useful for overo.

I will try to test your patch at tomorrow.

Thanks,
--
kiyohara


Gmane