Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2015 13:04:00 +0200
From:      Berislav Purgar <bpurgar@gmail.com>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: avila boot2 problem ?
Message-ID:  <CAAUsrB5yDLYZVjd=-eTjT_0mZ51h27%2BvH7=0ZWKooh4cr3BJsg@mail.gmail.com>
In-Reply-To: <20150718183218.GI8523@funkthat.com>
References:  <CAAUsrB4QWx-eJAw-JiUejMHX%2B9Z6tGY8rqgGiARe4ButjgJeAA@mail.gmail.com> <20150718183218.GI8523@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok . finnaly it works

Trying NPE-B...success. Using NPE-B with PHY 0.
Ethernet eth0: MAC address 00:d0:12:03:59:23
IP: 192.168.0.11/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.0.111

RedBoot(tm) bootstrap and debug environment [ROM]
Gateworks certified release, version 2.04.4 - built 08:43:39, Jul 29 2008

Platform: Gateworks Avila GW23XX (IXP42X 533MHz) BE
Model Number: GW2345
Manufacture Date: 08-30-2007
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2007 Free Software Foundation,
Inc.
Copyright (C) 2004 - 2008 Gateworks Corporation

RAM: 0x00000000-0x04000000, [0x00029f80-0x03fc1000] available
FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
== Executing boot script in 5.000 seconds - enter ^C to abort
RedBoot> fis load boot2.freebsd
RedBoot> go
FreeBSD ARM (Gateworks Avila) boot2 v0.4
\
Default: /boot/kernel/kernel
boot:
Could not locate "ufs:ROOTDEVNAME" to fix kernel boot device, check
ROOTDEVNAME is set
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2015 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 11.0-CURRENT #5 r285655M: Sun Jul 19 12:54:08 CEST 2015
    root@pila:/usr/obj/arm.armeb/root/avila/sys/AVILA arm
FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525
CPU: IXP425 533MHz rev 1 (ARMv5TE) (XScale core)
  Big-endian DC enabled IC enabled WB enabled LABT branch prediction enabled
  32KB/32B 32-way instruction cache
  32KB/32B 32-way write-back-locking data cache
real memory  = 67104768 (63 MB)
avail memory = 57970688 (55 MB)
random: entropy device external interface
ixp0: <Intel IXP4XX>
ixp0: 37fff<RCOMP,USB,HASH,AES,DES,HDLC,AAL,HSS,UTOPIA,ETH0,ETH1,PCI>
pcib0: <IXP4XX PCI Bus> on ixp0
pci0: <PCI bus> on pcib0
ixpclk0: <IXP4XX Timer> on ixp0
ixpiic0: <IXP4XX GPIO-Based I2C Interface> on ixp0
iicbb0: <I2C bit-banging driver> on ixpiic0
iicbus0: <Philips I2C bus> on iicbb0 master-only
iic0: <I2C generic I/O> on iicbus0
ad74180: <Analog Devices AD7418 ADC> at addr 0x50 on iicbus0
ds1672_rtc0: <Dallas Semiconductor DS1672 RTC> at addr 0xd0 on iicbus0
ixpwdog0: <IXP4XX Watchdog Timer> on ixp0
uart0: <Non-standard ns8250 class UART with FIFOs> on ixp0
uart0: console (115200,n,8,1)
uart1: <Non-standard ns8250 class UART with FIFOs> on ixp0
ixpqmgr0: <IXP4XX Q-Manager> on ixp0
npe0: <IXP NPE-B> on ixp0
npe0: load fw image IXP425.NPE-B Func 0x2 Rev 2.1
miibus0: <MII bus> on npe0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
npe0: Ethernet address: 00:d0:12:03:59:23
npe1: <IXP NPE-C> on ixp0
npe1: load fw image IXP425.NPE-C Func 0x5 Rev 2.1
miibus1: <MII bus> on npe1
ukphy1: <Generic IEEE 802.3u media interface> PHY 5 on miibus1
ukphy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
npe1: Ethernet address: 00:d0:12:13:59:23
ata_avila0: <Gateworks Avila IDE/CF Controller> on ixp0
ata0: <ATA channel 0> on ata_avila0
led_avila0: <Gateworks Avila Front Panel LED> on ixp0
Timecounter "IXP4XX Timer" frequency 66666600 Hz quality 1000
Timecounters tick every 10.000 msec
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <TS4GCF133 20110407> CFA-7 device
ada0: Serial Number B04931AF29124B0007A6
ada0: 16.700MB/s transfers (PIO4, PIO 512bytes)
ada0: 3823MB (7831152 512 byte sectors: 16H 63S/T 7769C)
ada0: Previously was known as ad0
hwpmc: SOFT/16/64/0x67<INT,USR,SYS,REA,WRI>
XSCALE/4/32/0x1ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA>
Trying to mount root from ufs:ada0 []...
Setting hostuuid: 897f7ec2-2e05-11e5-8600-00d012035923.
Setting hostid: 0x55415f1e.
Starting file system checks:
/dev/ada0: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0: clean, 1703204 free (780 frags, 212803 blocks, 0.0%
fragmentation)
Mounting local file systems:.
Setting hostname: avila.
Setting up
harvesting:[HIGH_PERFORMANCE],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy:random: unblocking device.
.
npe0: ixpnpe_intr: status 0x60000
npe0: link state changed to UP
Starting Network: lo0 npe0 npe1.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
    inet 127.0.0.1 netmask 0xff000000
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
npe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=80008<VLAN_MTU,LINKSTATE>
    ether 00:d0:12:03:59:23
    inet 192.168.0.11 netmask 0xffffff00 broadcast 192.168.0.255
    media: Ethernet autoselect (100baseTX <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
npe1: link state changed to DOWNEX,MULTICAST> metric 0 mtu 1500

    options=80008<VLAN_MTU,LINKSTATE>
    ether 00:d0:12:13:59:23
    media: Ethernet autoselect (none)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Starting devd.
Starting Network: npe1.
npe1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=80008<VLAN_MTU,LINKSTATE>
    ether 00:d0:12:13:59:23
    media: Ethernet autoselect (none)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Starting casperd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Performing sanity check on sshd configuration.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.

Sun Jul 19 12:12:57 UTC 2015

FreeBSD/arm (avila) (ttyu0)

login:


On Sat, Jul 18, 2015 at 8:32 PM, John-Mark Gurney <jmg@funkthat.com> wrote:

> Berislav Purgar wrote this message on Sat, Jul 18, 2015 at 18:51 +0200:
> > i got this when trying to compile boot2 for avila board :
>
> Hmm.. maybe it's been a while since I built for arm, but this should
> be easy to fix... Looks like the proper END is missing...
>
> Can you try to see if this patch fixes things?  If it does, I'll commit
> it...
>
> Thanks for the report...
>
> diff --git a/sys/boot/arm/ixp425/boot2/arm_init.S
> b/sys/boot/arm/ixp425/boot2/arm_init.S
> index 9ede9fc..15e1e6c 100644
> --- a/sys/boot/arm/ixp425/boot2/arm_init.S
> +++ b/sys/boot/arm/ixp425/boot2/arm_init.S
> @@ -43,6 +43,7 @@ ASENTRY_NP(start)
>  /* main should not return.  If it does, spin forever           */
>  infiniteLoop:
>         b       infiniteLoop
> +END(start)
>
>  .Lstart:
>         .word   _edata
> @@ -52,5 +53,6 @@ infiniteLoop:
>  ENTRY(cpu_id)
>         mrc     p15, 0, r0, c0, c0, 0
>         RET
> +END(cpu_id)
>
>  /* End */
>
> --
>   John-Mark Gurney                              Voice: +1 415 225 5579
>
>      "All that I will do, has been done, All that I have, has not."
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAUsrB5yDLYZVjd=-eTjT_0mZ51h27%2BvH7=0ZWKooh4cr3BJsg>