Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Dec 2011 13:24:01 +0100
From:      Monthadar Al Jaberi <monthadar@gmail.com>
To:        Aleksandr Rybalko <ray@dlink.ua>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: boot RSPRO from usb
Message-ID:  <CA%2BsBSoLp80B1KOsftVFNXA_8M=eLxsjU20FJZKaTyN7gm4S9ZA@mail.gmail.com>
In-Reply-To: <20111209133928.76cb2cdf.ray@dlink.ua>
References:  <CA%2BsBSoKdkEjE1ykuy6oHrn%2Bqv7unruWS_BSS2J73W-zajMkXvg@mail.gmail.com> <EF46DA86-6711-4F72-AB52-875967F75544@lassitu.de> <CA%2BsBSoKTVm69ULkMX4SjdGoxBjD-%2BqUHqz_bYjnrto1ZTwDy1A@mail.gmail.com> <CAJ-VmokuPGLnMxiks_vGD8E5zbnC0FbRRJbbEPc-ZgDk0B1AKQ@mail.gmail.com> <CA%2BsBSoJtLfc_sDtxDxtZtd205y-nb%2B2Rev7v0SJp3M6a_FoCHQ@mail.gmail.com> <20111209133928.76cb2cdf.ray@dlink.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 9, 2011 at 12:39 PM, Aleksandr Rybalko <ray@dlink.ua> wrote:
> On Fri, 9 Dec 2011 11:47:00 +0100
> Monthadar Al Jaberi <monthadar@gmail.com> wrote:
>
>>> On Wed, Dec 7, 2011 at 11:46 PM, Adrian Chadd <adrian@freebsd.org>
>>> wrote:
>>> > Are you using the right kernel config files? :)
>>> >
>>> > Did you set the USB alignment parameter in the kernel config?
>>>
>>> yes alignment parameter is set.
>>>
>>> my config file is following:
>>>
>>> ident =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0RSPRO_USB
>>> makeoptions =A0KERNLOADADDR=3D0x80050000
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0HZ=3D1000
>>>
>>> hints =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"AR71XX.hints"
>>> include =A0 =A0 =A0 =A0 =A0 =A0 =A0"../atheros/std.ar71xx"
>>>
>>> makeoptions =A0DEBUG=3D-g =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#Build kernel =
with gdb(1)
>>> debug symbols
>>> #makeoptions MODULES_OVERRIDE=3D""
>>>
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0DDB
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0KDB
>>>
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0SCHED_4BSD =A0 =A0 =A0 =A0 =A0 =A0 =
=A0#4BSD scheduler
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0INET =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0#InterNETworking
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0NFSCL =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 #Network
>>> Filesystem Client
>>> #options =A0 =A0 =A0 =A0 =A0 =A0 NFS_ROOT =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0#NFS usable as /,
>>> #requires NFSCL
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0PSEUDOFS =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0#Pseudo-filesystem
>>> framework options =A0 =A0 =A0 =A0 =A0 =A0_KPOSIX_PRIORITY_SCHEDULING #P=
osix
>>> P1003_1B real-time extensions
>>>
>>> # options =A0 =A0 =A0 =A0 =A0 =A0NFS_LEGACYRPC
>>> # Debugging for use in -current
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0DEADLKRES
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0INVARIANTS
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0INVARIANT_SUPPORT
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0WITNESS
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0WITNESS_SKIPSPIN
>>> options =A0 =A0 =A0 =A0 FFS =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 #Be=
rkeley Fast Filesystem
>>> options =A0 =A0 =A0 =A0 SOFTUPDATES =A0 =A0 =A0 =A0 =A0 =A0 #Enable FFS=
 soft updates
>>> support options =A0 =A0 =A0 =A0 UFS_ACL =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 #Support for access
>>> control lists options =A0 =A0 =A0 =A0 UFS_DIRHASH =A0 =A0 =A0 =A0 =A0 =
=A0 #Improve
>>> performance on big directories
>>>
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0ROOTDEVNAME=3D\"ufs:/dev/da0\"
>>>
>>> options =A0 =A0 =A0MSDOSFS =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 #MSDOS Files=
ystem
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 pci
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ar71xx_pci
>>>
>>> # Wireless NIC cards
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0IEEE80211_DEBUG
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0IEEE80211_SUPPORT_MESH
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0IEEE80211_SUPPORT_TDMA
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 wlan =A0 =A0 =A0 =A0 =A0 =A0# 802.11=
 support
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 wlan_wep =A0 =A0 =A0 =A0# 802.11 WEP=
 support
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 wlan_ccmp =A0 =A0 =A0 # 802.11 CCMP =
support
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 wlan_tkip =A0 =A0 =A0 # 802.11 TKIP =
support
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ath =A0 =A0 =A0 =A0 =A0 =A0 # Athero=
s NIC's
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ath_pci =A0 =A0 =A0 =A0 # Atheros pc=
i/cardbus
>>> glue options =A0 =A0 =A0 =A0 ATH_DEBUG
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ath_hal
>>> option =A0 =A0 =A0 =A0 =A0 =A0 =A0 AH_SUPPORT_AR5416
>>> option =A0 =A0 =A0 =A0 =A0 =A0 =A0 AH_RXCFG_SDMAMW_4BYTES =A0# See NOTE=
S for
>>> details of this WAR device =A0 =A0 =A0 =A0 =A0 ath_rate_sample
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 mii
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 arge
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 umass
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 scbus
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 da
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ohci
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ehci
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 usb
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0USB_HOST_ALIGN=3D32
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0USB_EHCI_BIG_ENDIAN_DESC =A0 =A0 =A0=
 =A0# handle
>>> big-endian byte order
>>> # options =A0 =A0 =A0 =A0 =A0 =A0USB_DEBUG
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 gpio
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 gpioled
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 spibus
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ar71xx_spi
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 mx25l
>>> # device =A0 =A0 geom_redboot
>>>
>>> options =A0 =A0 =A0 =A0 =A0 =A0 =A0GEOM_UZIP
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 geom_uzip
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ar71xx_wdog
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 uart
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 loop
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 ether
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 md
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 bpf
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 random
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 if_bridge
>>>
>>> device =A0 =A0 =A0 =A0 =A0 =A0 =A0 pcf2123_rtc
>>>
>>> >
>>> >
>>> > Adrian
>>>
>>>
>>>
>>> --
>>> Monthadar Al Jaberi
>>> _______________________________________________
>>> freebsd-mips@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
>>> To unsubscribe, send any mail to
>>> "freebsd-mips-unsubscribe@freebsd.org"
>
>
> Hi MIPS masters,
>
> hope you don't forget about kern.cam.scsi_delay=3D10000 or SCSI_DELAY? :)


I tried this option but what it did it delayed the discovery of
/dev/da0 so that I need to yeild for an extra second. In the end I got
same error:

Root mount waiting for: usbus1
Trying to mount root from ufs:/dev/da0 []...
mountroot: waiting for device /dev/da0 ...
Mounting from ufs:/dev/da0 failed with error 19.

Loader variables:

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/acd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> .
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <USB 2.0 Flash Disk 2.40> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 2022MB (4141056 512 byte sectors: 255H 63S/T 257C)
(probe1:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe1:umass-sim1:1:0:0): CAM status: SCSI Status Error
(probe1:umass-sim1:1:0:0): SCSI status: Check Condition
(probe1:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not prese=
nt)
da1 at umass-sim1 bus 1 scbus1 target 0 lun 0
da1: <Generic STORAGE DEVICE 9451> Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present

mountroot> ?

List of GEOM managed disk devices:
  da1 da0 flash/spi0

mountroot> ufs:/dev/da0
Trying to mount root from ufs:/dev/da0 []...
warning: no time-of-day clock registered, system time will not be set accur=
ately
g_vfs_done():da0[READ(offset=3D142729216, length=3D65536)]error =3D 5
vnode_pager_getpages: I/O read error
ELF interpreter /libexec/ld-elf.so.1 not found
g_vfs_done():da0[READ(offset=3D5037056, length=3D1024)]error =3D 5
g_vfs_done():da0[READ(offset=3D5037056, length=3D1024)]error =3D 5
g_vfs_done():da0[READ(offset=3D782336, length=3D65536)]error =3D 5
vnode_pager_getpages: I/O read error
vm_fault: pager read error, pid 1 (init)
BAD_PAGE_FAULT: pid 1 (init), uid 0: pc 0x49e398 got a read fault at 0x49e3=
98
Trapframe Register Dump:
	zero: 0	at: 0x513d20	v0: 0x21	v1: 0x4dc224
	a0: 0x7ffec9f8	a1: 0xd	a2: 0x4dc1d0	a3: 0x7ffeca80
	t0: 0x1beec8	t1: 0	t2: 0x1beec8	t3: 0x8000000
	t4: 0x1beec80	t5: 0	t6: 0	t7: 0
	t8: 0x3d000	t9: 0x49e398	s0: 0x7ffec9f8	s1: 0x7ffeca80
	s2: 0x7ffed6e0	s3: 0x4dc245	s4: 0x4dc24e	s5: 0x4d55d4
	s6: 0x7ffed7b4	s7: 0x4d5ab4	k0: 0	k1: 0
	gp: 0x4fefe0	sp: 0x7ffec9c8	s8: 0x40301c	ra: 0x456d5c
	sr: 0xfc13	mullo: 0x222222a2	mulhi: 0xffffffffffffff80	badvaddr: 0x49e398
	cause: 0x10000008	pc: 0x49e398
pc address 0x49e398 is inaccessible, pde =3D 0x80b9b000, pte =3D 0
Page table info for bad address 0x49e398: pde =3D 0x80b9b000, pte =3D 0



>
> --
> Alexandr Rybalko <ray@dlink.ua>
> aka Alex RAY <ray@ddteam.net>



--=20
Monthadar Al Jaberi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BsBSoLp80B1KOsftVFNXA_8M=eLxsjU20FJZKaTyN7gm4S9ZA>