Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Netbsd on hawkboard



hi,
My friend and I have worked on porting Netbsd on hawkboard, which
has TI's OMAPL-138 SOC. We have been able to boot with the root on the
usb -- getting networking to work is on
our TODO list. This work was based on the 5.1.2 release, and we are
currently working on forward-porting the changes to -current.

We want to submit these changes upstream, and had a couple of doubts
about patch submission.

- the documentation says that any change can be submitted only against
  a PR. Can we open a PR for this patch submission.

- Are the patches to be based on -current, or the latest stable
  release.

- Is there some document which lists the things that need to be taken
  care of before submitting the changes -- other open source projects
  like u-boot have such documentation which specifically mentions the
  do's and don'ts for patch submission.

This is my first mail to any netbsd mailing list, so apologies in
advance if i have broken any rules :)

-sughosh

Netbsd on hawk
--------------

U-Boot SPL 2012.10-rc3-00006-g8105985 (Oct 14 2012 - 12:10:50)


U-Boot 2012.10-rc3-00006-g8105985 (Oct 14 2012 - 12:10:50)

DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
ARM Clock : 300 MHz
Net:   DaVinci-EMAC
Hit any key to stop autoboot:
Using DaVinci-EMAC device
TFTP from server 192.168.1.3; our IP address is 192.168.1.4
Filename 'netbsd-raw.bin'.
Load address: 0xc0200000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ############
done
Bytes transferred = 2056752 (1f6230 hex)
## Starting application at 0xC0200000 ...

NetBSD/evbarm (HAWK) booting ...
initarm: Configuring system ...
Allocating page tables
Creating L1 page table at 0xc043c000
Mapping kernel
pmap_map_chunk: pa=0xc0000000 va=0xc0000000 size=0x3ef000 resid=0x3ef000 
prot=0x1 cache=1
SSSLLLLLLLLLLLLLLPPPPPPPPPPPPPPP
pmap_map_chunk: pa=0xc03ef000 va=0xc03ef000 size=0x4d000 resid=0x4d000 prot=0x3 
cache=1
PLLLLPPPPPPPPPPPP
Constructing L2 page tables
pmap_map_chunk: pa=0xc044c000 va=0xc044c000 size=0x1000 resid=0x1000 prot=0x3 
cache=1
P
pmap_map_chunk: pa=0xc044d000 va=0xc044d000 size=0x1000 resid=0x1000 prot=0x3 
cache=1
P
pmap_map_chunk: pa=0xc044e000 va=0xc044e000 size=0x1000 resid=0x1000 prot=0x3 
cache=1
P
pmap_map_chunk: pa=0xc044f000 va=0xc044f000 size=0x2000 resid=0x2000 prot=0x3 
cache=1
PP
pmap_map_chunk: pa=0xc043c000 va=0xc043c000 size=0x4000 resid=0x4000 prot=0x3 
cache=2
PPPP
pmap_map_chunk: pa=0xc0440000 va=0xc0440000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0441000 va=0xc0441000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0442000 va=0xc0442000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0443000 va=0xc0443000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0444000 va=0xc0444000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0445000 va=0xc0445000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0446000 va=0xc0446000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0447000 va=0xc0447000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0448000 va=0xc0448000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc0449000 va=0xc0449000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
pmap_map_chunk: pa=0xc044a000 va=0xc044a000 size=0x1000 resid=0x1000 prot=0x3 
cache=2
P
devmap: 01d00000 -> 01dfffff @ cd800000
pmap_map_chunk: pa=0x1d00000 va=0xcd800000 size=0x100000 resid=0x100000 
prot=0x3 cache=0
S
                             Physical              Virtual        Num
                       Starting    Ending    Starting    Ending   Pages
               SDRAM: 0xc0000000 0xc7ffffff 0xc0000000 0xc7ffffff 32768
        text section: 0xc0000000 0xc03ee984 0xc0000000 0xc03ee984 1007
        data section: 0xc03f0000 0xc03f6230 0xc03f0000 0xc03f6230 7
         bss section: 0xc03f6230 0xc043bc64 0xc03f6230 0xc043bc64 70
   L1 page directory: 0xc043c000 0xc043ffff 0xc043c000 0xc043ffff 4
   Exception Vectors: 0xc044b000 0xc044bfff 0xffff0000 0xffff0fff 1
           IRQ stack: 0xc044c000 0xc044cfff 0xc044c000 0xc044cfff 1
           ABT stack: 0xc044d000 0xc044dfff 0xc044d000 0xc044dfff 1
           UND stack: 0xc044e000 0xc044efff 0xc044e000 0xc044efff 1
           SVC stack: 0xc044f000 0xc0450fff 0xc044f000 0xc0450fff 2
      Message Buffer: 0xc0451000 0xc0451fff                       1
         Free Memory: 0xc0452000 0xc7ffffff 0xc0452000 0xc7ffffff 31662
switching to new L1 page table  @0xc043c000...bootstrap done.
init subsystems: stacks vectors undefined page pmap done.
[ Kernel symbol table missing! ]
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.1 (HAWK) #158: Sun Oct 14 11:54:47 IST 2012
        
sughosh@Sughoshs-MacBook-Pro.local:/Users/sughosh/hawk/src/netbsd/usr/objdir-hawk/sys/arch/evbarm/compile/HAWK
total memory = 128 MB
avail memory = 120 MB
mainbus0 (root)
cpu0 at mainbus0: ARM926EJ-S rev 5 (ARM9EJ-S core)
cpu0: DC enabled IC enabled WB enabled EABT branch prediction enabled
cpu0: 16KB/32B 4-way Instruction cache
cpu0: 16KB/32B 4-way write-back-locking-C Data cache
tipb0 at mainbus0: OMAP L1X Texas Instruments Peripheral Bus
omapl1xaintc0 at tipb0 addr 0xfffee000-0xfffeffff intr 0
omapl1xtimer0 at tipb0 addr 0x01c20000-0x01c20fff intr 21
omapl1xtimer1 at tipb0 addr 0x01f0c000-0x01f0cfff intr 68
omapl1xtimer2 at tipb0 addr 0x01f0d000-0x01f0dfff intr 96
omapl1xpsc0 at tipb0 addr 0x01e27000-0x01e27fffcom0 at tipb0 addr 
0x01d0d000-0x01d0dfff intr 61: ns16650, no ERS, working fifo
com0: console
ohci0 at tipb0 addr 0x01e25000-0x01e25fff intr 59ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
clock: hz=100 stathz=64
uhub0 at usb0: OMAPL1X OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: SanDisk Cruzer, rev 2.00/2.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <SanDisk, Cruzer, 8.02> disk removable
sd0: 1907 MB, 30528 cyl, 4 head, 32 sec, 512 bytes/sect x 3907583 sectors
boot device: <unknown>
root on sd0e dumps on sd0b
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
warning: no /dev/console
Mon Aug 13 19:22:43 UTC 2012
Starting file system checks:
/dev/rsd0e: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
kern.no_sa_support: 0 -> 1
ddb.onpanic: 1 -> 0
Starting network.
Hostname: Hawkboard
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Starting syslogd.
Mounting all filesystems...
mount: realpath /kern: No such file or directory
mount: realpath /proc: No such file or directory
Clearing temporary files.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting local daemons:.
Updating motd.
Mon Aug 13 19:22:59 UTC 2012

NetBSD/evbarm (Hawkboard) (console)

login: root
Password:
Login incorrect or refused on this terminal.
login: root
Aug 13 19:23:14 Hawkboard login: 1 LOGIN FAILURE ON console
Password:
Aug 13 19:23:17 Hawkboard login: ROOT LOGIN (root) ON console
Last login: Mon Aug 13 19:21:52 2012 on console
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.1 (HAWK) #158: Sun Oct 14 11:54:47 IST 2012

Welcome to NetBSD!

                                                                        
Terminal type is vt100.
We recommend creating a non-root account and using su(1) for root access.
Hawkboard# ls
.cshrc    .klogin   .login    .profile  .shrc     hawkie
Hawkboard# cat hawkie
Hello world usb
Hawkboard# shutdown -h now
Shutdown NOW!
shutdown: [pid 284]
Hawkboard# wall: You have write permission turned off; no reply possible

^G*** FINAL System shutdown message from root@Hawkboard ***^G
System going down IMMEDIATELY


Aug 13 19:23:43 Hawkboard shutdown: halt by root:

System shutdown time has arrived

About to run shutdown hooks...
Removing block-type swap devices
Mon Aug 13 19:23:47 UTC 2012

Done running shutdown hooks.
boot: howto=00000008 curproc=0xc25f83b8
syncing disks... 1 1 done
unmounting file systems... done
The operating system has halted.
Please press any key to reboot.


Home | Main Index | Thread Index | Old Index