boot RSPRO from usb
Monthadar Al Jaberi
monthadar at gmail.com
Tue Dec 6 12:24:29 UTC 2011
Hi,
On Mon, Dec 5, 2011 at 11:32 PM, Stefan Bethke <stb at lassitu.de> wrote:
> Am 05.12.2011 um 21:04 schrieb Monthadar Al Jaberi:
>
>> Hi,
>>
>> sorry if this is old and answered somewhere, but I cant seem to find a solution:
>>
>> I am trying to boot Freebsd current root file system @ RouterStation
>> Pro from usb (I did it before) but I cant remember how to do it.
>>
>> I know I need ROOTDEVNAME=\"ufs:/dev/da0\" but I dont seem to manage
>> to create a bottable root fs…
>
> How are you creating your filesystem? newfs on a little-endian machine will not do the right thing. You can use makefs -B big to create an image, then dd it to the partition.
yes I do it like this:
makefs -t ffs -B big -s 40m rootfs.img path/to/root
dd it if=rootfs.img of=/dev/da0 bs=1m
I found a very old kernel image I had and it boot root from usb, but
the one I am compiling gives this error:
Now booting linux kernel:
Base address 0x80050000 Entry 0x80050120
memsize=0x08000000
modetty0=0,n,8,1,hw
board=RouterStation PRO
ethaddr=00.15.6d.c3.30.e6
CPU platform: Atheros AR7161 rev 2
CPU Frequency=720 MHz
CPU DDR Frequency=360 MHz
CPU AHB Frequency=180 MHz
platform frequency: 720000000
arguments:
a0 = 00000002
a1 = 80050028
a2 = 80050000
a3 = 0000000a
Cmd line: ���������������������������������������������������������������������������
Environment:
memsize = 0x08000000
modetty0 = 0,n,8,1,hw
ethaddr = 00.15.6d.c3.30.e6
board = RouterStation PRO
Cache info:
picache_stride = 4096
picache_loopcount = 16
pdcache_stride = 4096
pdcache_loopcount = 8
cpu0: MIPS Technologies processor v116.147
MMU: Standard TLB, 16 entries
L1 i-cache: 4 ways of 512 sets, 32 bytes per line
L1 d-cache: 4 ways of 256 sets, 32 bytes per line
Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
Config3=0x20
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2011 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 9.0-CURRENT #8: Tue Dec 6 13:08:50 CET 2011
root@:/usr/obj/mips.mipseb/usr/src/sys/MONTHADAR mips
WARNING: WITNESS option enabled, expect reduced performance.
real memory = 134217728 (131072K bytes)
avail memory = 123727872 (117MB)
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" frequency 360000000 Hz quality 800
Event timer "MIPS32" frequency 360000000 Hz quality 800
apb0 at irq 4 on nexus0
uart0: <16550 or compatible> on apb0
uart0: console (115200,n,8,1)
ohci0: <AR71XX integrated OHCI controller> on apb0
usbus0 on ohci0
gpio0: <Atheros AR71XX GPIO driver> on apb0
gpio0: [GIANT-LOCKED]
gpioc0: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
gpioled0: <GPIO led> at pin(s) 2 on gpiobus0
ehci0: <AR71XX Integrated USB 2.0 controller> at mem
0x1b000000-0x1bffffff irq 1 on nexus0
usbus1: set host controller mode
usbus1: EHCI version 1.0
usbus1: set host controller mode
usbus1: <AR71XX Integrated USB 2.0 controller> on ehci0
pcib0 at irq 0 on nexus0
pci0: <PCI bus> on pcib0
pci0: <old, non-VGA display device> at device 0.0 (no driver attached)
pci0: <memory> at device 17.0 (no driver attached)
ath0: <Atheros 5413> irq 1 at device 18.0 on pci0
ath0: AR5413 mac 10.5 RF5413 phy 6.1
ath1: <Atheros 5413> irq 2 at device 19.0 on pci0
ath1: AR5413 mac 10.5 RF5413 phy 6.1
arge0: <Atheros AR71xx built-in ethernet interface> at mem
0x19000000-0x19000fff irq 2 on nexus0
miibus0: <MII bus> on arge0
ukphy0: <Generic IEEE 802.3u media interface> PHY 4 on miibus0
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseT-FDX, 1000baseT-FDX-master, auto
arge0: Ethernet address: 00:15:6d:c3:30:e6
arge1: <Atheros AR71xx built-in ethernet interface> at mem
0x1a000000-0x1a000fff irq 3 on nexus0
arge1: Ethernet address: 00:15:6d:c3:30:e7
spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0
spibus0: <spibus bus> on spi0
mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0
mx25l0: mx25ll128, sector 65536 bytes, 256 sectors
ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
WARNING: WITNESS option enabled, expect reduced performance.
ugen0.1: <Atheros> at usbus0
uhub0: <Atheros OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Atheros> at usbus1
uhub1: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
Root mount waiting for: usbus1 usbus0
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1
ugen1.2: <vendor 0x1221> at usbus1
umass0: <vendor 0x1221 Flash Disk, class 0/0, rev 2.00/0.00, addr 2> on usbus1
Root mount waiting for: usbus1
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: 2023MB (4143104 512 byte sectors: 255H 63S/T 257C)
ugen1.3: <Generic> at usbus1
umass1: <Generic USB Storage, class 0/0, rev 2.00/94.51, addr 3> on usbus1
Root mount waiting for: usbus1
Trying to mount root from ufs:/dev/da0 []...
(probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
(probe0:umass-sim1:1:0:0): SCSI status: Check Condition
(probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
warning: no time-of-day clock registered, system time will not be set accurately
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
g_vfs_done():da0[READ(offset=142827520, length=8192)]error = 5
ELF interpreter /libexec/ld-elf.so.1 not found
g_vfs_done():da0[READ(offset=5037056, length=1024)]error = 5
g_vfs_done():da0[READ(offset=5037056, length=1024)]error = 5
g_vfs_done():da0[READ(offset=782336, length=65536)]error = 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 0x49e398
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: 0x11111381 mulhi: 0xfffffffffffffd90 badvaddr: 0x49e398
cause: 0x10000008 pc: 0x49e398
pc address 0x49e398 is inaccessible, pde = 0x80c17000, pte = 0
Page table info for bad address 0x49e398: pde = 0x80c17000, pte = 0
g_vfs_done():da0[READ(offset=782336, length=65536)]error = 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 0x49e398
Trapframe Register Dump:
zero: 0 at: 0xffffffffffffffe0 v0: 0x21 v1: 0x4dc224
a0: 0x7ffeba20 a1: 0xd a2: 0x4dc1d0 a3: 0x7ffebaa8
t0: 0x1beec8 t1: 0 t2: 0x1beec8 t3: 0x8000000
t4: 0x1beec80 t5: 0 t6: 0 t7: 0
t8: 0x3d000 t9: 0x49e398 s0: 0x7ffeba20 s1: 0x7ffebaa8
s2: 0x7ffec708 s3: 0x4dc245 s4: 0x4dc24e s5: 0x4d55d4
s6: 0x7ffec7dc s7: 0x4d5ab4 k0: 0 k1: 0
gp: 0x4fefe0 sp: 0x7ffeb9f0 s8: 0x40301c ra: 0x456d5c
sr: 0xfc13 mullo: 0x555557c9 mulhi: 0xfffffffffffffd8c badvaddr: 0x49e398
cause: 0x10000008 pc: 0x49e398
pc address 0x49e398 is inaccessible, pde = 0x80c17000, pte = 0
Page table info for bad address 0x49e398: pde = 0x80c17000, pte = 0
g_vfs_done():da0[READ(offset=782336, length=65536)]error = 5
and the error message repeats all the time.....
br
>
>
> Stefan
>
> --
> Stefan Bethke <stb at lassitu.de> Fon +49 151 14070811
>
>
>
>
--
Monthadar Al Jaberi
More information about the freebsd-mips
mailing list