Date: Mon, 29 Aug 2022 10:15:13 +0800 From: Archimedes Gaviola <archimedes.gaviola@gmail.com> To: Mori Hiroki <yamori813@yahoo.co.jp> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: Ralink RT3050F Message-ID: <CAJFbk7H7arAr7xmuS297gzyVntLmBEM5b0KN134gZa1CEWM8oA@mail.gmail.com> In-Reply-To: <CAJFbk7FUfsHUbNR6geuW_QzyzPp%2BBuXj8i7MgAtbxC0tq5himw@mail.gmail.com> References: <CAJFbk7Hk3PR2%2Bf9-rkOmSZJ7cmCRvSEZ=fHArxWtv0gXez5a=A@mail.gmail.com> <1424252983.14315.1660869185156.JavaMail.yahoo@mail.yahoo.co.jp> <CAJFbk7Eq=6fR32CVq5JuEghuzyuxrc=G3vjV3_PnW2dTJNgoNQ@mail.gmail.com> <CAJFbk7FUfsHUbNR6geuW_QzyzPp%2BBuXj8i7MgAtbxC0tq5himw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000008b9da05e757d71d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Aug 28, 2022 at 4:15 PM Archimedes Gaviola < archimedes.gaviola@gmail.com> wrote: > Hi, > > After I successfully accessed the serial console, I proceeded to load the > kernel image (this is an old D-link DIR-600 (B2) Wi-Fi device) and > encountered this error -> > > Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover= . > > Any idea what have I missed? After this failure, it booted to the default > image of the Linux system. Haven't flashed the image yet when this error > occurred. > > TFTP from server 192.168.1.209; our IP address is 192.168.1.188 > Filename 'dlink/kernel.bin.lzma.uboot'. > > TIMEOUT_COUNT=3D10,Load address: 0x80800000 > Loading: Got ARP REQUEST, return our IP > > ArpTimeoutCheck > Got ARP REPLY, set server/gtwy eth addr (b8:27:eb:64:8b:57) > Got it > ################################################################# > ################################################################= # > ################################################################= # > ################################################ > done > Bytes transferred =3D 1243362 (12f8e2 hex) > NetBootFileXferSize=3D 0012f8e2 > > RT3052 # bootm 0x80800000 > ## Booting image at 80800000 ... > Image Name: FreeBSD Kernel Image > Created: 2022-08-18 5:51:56 UTC > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1243298 Bytes =3D 1.2 MB > Load Address: 80001100 > Entry Point: 80001100 > Verifying Checksum ... OK > Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to > recover > > > U-Boot 1.1.3 (Jan 12 2011 - 21:35:28) (ALPHA) > > SVN revision: 482 > Target board: WRG-N23 > > Board: Ralink APSoC DRAM: 32 MB > config usb..*** Error: D+/D- is 1/1, config usb failed. > ..*** Error: D+/D- is 1/1, config usb failed. > > ****************************** > Software System Reset Occurred > ****************************** > > Set info->start[0]=3DBF000000 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Ralink UBoot Version: 3.5.1.0 > -------------------------------------------- > ASIC 3052_MP2 (Port5<->None) > DRAM component: 256 Mbits SDR > DRAM bus: 16 bit > Total memory: 32 MBytes > Flash component: NOR Flash > Date:Jan 12 2011 Time:21:35:28 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > icache: sets:256, ways:4, linesz:32 ,total:32768 > dcache: sets:128, ways:4, linesz:32 ,total:16384 > ## Powering down port 0 ~ 3. > > Please choose the operation: > 1: Load system code to SDRAM via TFTP. > 2: Load system code then write to Flash via TFTP. > 3: Boot system code via Flash (default). > 4: Entr boot command line interface. > 7: Load Boot Loader code then write to Flash via Serial. > 9: Load Boot Loader code then write to Flash via TFTP. > 0 > > 3: System Boot system code via Flash. > ## Booting image at bf050000 ... > addr:bf050000 > We have SEAMA, Image Size =3D 3506208 > Verifying Checksum ... > Uncompressing SEAMA linux.lzma ... OK > ## Transferring control to Linux (at address 81f46ec0) ... > ## Giving linux memsize in MB, 32 > > Starting kernel ... > > LINUX started... > > THIS IS ASIC > is_RT3052 =3D 0, is_RT3352 =3D 0 > is_RT3350 =3D 1, is_RT5350 =3D 0 > Linux version 2.6.33.2 (kwest@enzo) (gcc version 4.3.3 (GCC) ) #1 Fri Dec > 10 17:24:50 CST 2010 > ... > > Thanks and best regards, > Archimedes > Hi, Alright I made some progress, I used gzip compression instead of LZMA and the kernel image is now booting. U-Boot 1.1.3 (Jan 12 2011 - 21:35:28) (ALPHA) SVN revision: 482 Target board: WRG-N23 Board: Ralink APSoC DRAM: 32 MB config usb..*** Error: D+/D- is 1/1, config usb failed. ..*** Error: D+/D- is 1/1, config usb failed. ****************************** Software System Reset Occurred ****************************** Set info->start[0]=3DBF000000 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ralink UBoot Version: 3.5.1.0 -------------------------------------------- ASIC 3052_MP2 (Port5<->None) DRAM component: 256 Mbits SDR DRAM bus: 16 bit Total memory: 32 MBytes Flash component: NOR Flash Date:Jan 12 2011 Time:21:35:28 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D icache: sets:256, ways:4, linesz:32 ,total:32768 dcache: sets:128, ways:4, linesz:32 ,total:16384 ## Powering down port 0 ~ 3. Please choose the operation: 1: Load system code to SDRAM via TFTP. 2: Load system code then write to Flash via TFTP. 3: Boot system code via Flash (default). 4: Entr boot command line interface. 7: Load Boot Loader code then write to Flash via Serial. 9: Load Boot Loader code then write to Flash via TFTP. 0 3: System Boot system code via Flash. ## Booting image at bf050000 ... Image Name: FreeBSD Kernel Image Created: 2022-08-29 1:55:22 UTC Image Type: MIPS Linux Kernel Image (gzip compressed) Data Size: 1724519 Bytes =3D 1.6 MB Load Address: 80001100 Entry Point: 80001100 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting kernel ... U-Boot args (from 0 args): None Environment: entry: mips_init() Cache info: picache_stride =3D 4096 picache_loopcount =3D 8 pdcache_stride =3D 4096 pdcache_loopcount =3D 4 cpu0: MIPS Technologies processor v76.150 MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) L1 i-cache: 4 ways of 256 sets, 32 bytes per line L1 d-cache: 4 ways of 128 sets, 32 bytes per line L2 cache: disabled Config1=3D0xbea3319e<PerfCount,WatchRegs,MIPS16,EJTAG> Config2=3D0x80000000 Config3=3D0x420 Physical memory chunk(s): 0x438000 - 0x1ffffff, 29130752 bytes (7112 pages) Maxmem is 0x2000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2020 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.4-RELEASE #1: Sun Aug 28 18:35:56 UTC 2022 root@:/usr/obj/mips.mipsel/usr/src/sys/RT305X mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0x804323d0. real memory =3D 33554432 (32768K bytes) Physical memory chunk(s): 0x004c4000 - 0x01f46fff, 27799552 bytes (6787 pages) avail memory =3D 27365376 (26MB) ULE: setup cpu 0 wlan: <802.11 Link Layer> random: entropy device external interface mem: <memory> null: <full device, null device, zero device> nfslock: pseudo-device nexus0: <MIPS32 root nexus> random: harvesting attach, 8 bytes (4 bits) from nexus0 nvram2env0: base=3D0x1f030000 sig=3D0xe5e60a74 maxsize=3D0x00002000 flags=3D0x00000003 nvram2env1: base=3D0x1f032000 sig=3D0x5a045e94 maxsize=3D0x00004000 flags=3D0x00000003 clock0: <Generic MIPS32 ticker> on nexus0 Timecounter "MIPS32" frequency 192000000 Hz quality 800 Event timer "MIPS32" frequency 192000000 Hz quality 800 random: harvesting attach, 8 bytes (4 bits) from clock0 obio0 at mem 0x10000000-0x1fffffff on nexus0 rt305x_sysctl0: <RT305X System Control driver> at mem 0x10000000-0x100000ff irq 0 on obio0 Chip ID: "RT3350 " SYSCTL_SYSCFG=3D0x3400000 GE0 mode 3 Boot from 0x1f000000 Boot from 0 Bootstrap test code 0 SRAM_CS mode 0 8mA SDRAM_CLK driving SYSCTL_CLKCFG0=3D0x40000000 SDRAM_CLK_SKEW 1ns SYSCTL_CLKCFG1=3D0x04283c USB OTG clock is enabled I2S clock is internal 15.625MHz I2S clock divider 40 PCM clock is internal 15.625MHz PCM clock divider 60 SYSCTL_GPIOMODE=3D0x00039c random: harvesting attach, 8 bytes (4 bits) from rt305x_sysctl0 rt305x_ic0: <RT305X Interrupt Controller driver> at mem 0x10000200-0x100002ff on obio0 random: harvesting attach, 8 bytes (4 bits) from rt305x_ic0 uart0: <rt305x_uart> at mem 0x10000500-0x100005ff irq 5 on obio0 uart0: fast interrupt uart0: PPS capture mode: DCDinvalid random: harvesting attach, 8 bytes (4 bits) from uart0 gpio0: <RT305X GPIO driver> at mem 0x10000600-0x100006ff irq 6 on obio0 gpio0: Use reset_gpio 10 gpiobus0: <GPIO bus> on gpio0 gpiobus0: <unknown device> at pin 0 gpiobus0: <unknown device> at pin 7 gpioled0: <GPIO led> at pin 8 on gpiobus0 random: harvesting attach, 8 bytes (4 bits) from gpioled0 gpioled1: <GPIO led> at pin 9 on gpiobus0 random: harvesting attach, 8 bytes (4 bits) from gpioled1 gpiobus0: <unknown device> at pin 10 gpiobus0: <unknown device> at pin 11 gpioled2: <GPIO led> at pin 14 on gpiobus0 random: harvesting attach, 8 bytes (4 bits) from gpioled2 random: harvesting attach, 8 bytes (4 bits) from gpiobus0 gpioc0: <GPIO controller> on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpioc0 random: harvesting attach, 8 bytes (4 bits) from gpio0 uart1: <rt305x_uart> at mem 0x10000c00-0x10000cff irq 12 on obio0 uart1: console (115200,n,8,1) uart1: fast interrupt uart1: PPS capture mode: DCDinvalid random: harvesting attach, 8 bytes (4 bits) from uart1 random: harvesting attach, 8 bytes (4 bits) from obio0 rt0: <Ralink RT3050 onChip Ethernet driver> at mem 0x10100000-0x1010ffff irq 3 on nexus0 rt0: RT305XF Ethernet MAC (rev 0x00000000) rt0: use hardcoded 00:18:e7:d5:83:90 macaddr rt0: bpf attached rt0: Ethernet address: 00:18:e7:d5:83:90 random: harvesting attach, 8 bytes (4 bits) from rt0 Device configuration finished. Timecounters tick every 10.000 msec vlan: initialized, using hash tables with chaining lo0: bpf attached tcp_init: net.inet.tcp.tcbhashsize auto tuned to 512 bootpc_init: wired to interface 'rt0' Sending DHCP Discover packet from interface rt0 (00:18:e7:d5:83:90) Received DHCP Offer packet on rt0 from 192.168.1.1 (accepted) Received DHCP Offer packet on rt0 from 192.168.1.1 (ignored) Sending DHCP Request packet from interface rt0 (00:18:e7:d5:83:90) Received DHCP Ack packet on rt0 from 192.168.1.1 (accepted) rt0 at 192.168.1.225 server 192.168.1.1 subnet mask 255.255.255.0 router 192.168.1.1 Adjusted interface rt0 Trying to mount root from cd9660:/dev/map/rootfs.uzip []... mountroot: waiting for device /dev/map/rootfs.uzip... Mounting from cd9660:/dev/map/rootfs.uzip 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/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) <empty line> Abort manual input mountroot> Another challenge is this last part on mounting the root filesystem? Any ideas? I'm almost there. Thanks and best regards, Archimedes > > > > On Fri, Aug 19, 2022 at 8:56 AM Archimedes Gaviola < > archimedes.gaviola@gmail.com> wrote: > >> >> >> On Fri, Aug 19, 2022 at 8:33 AM Mori Hiroki <yamori813@yahoo.co.jp> >> wrote: >> >>> Hi. >>> >>> 0x80800000 is only u-boot image load offset. You will do bootm command >>> on u-boot then start at 0x80001100 if you create this address by >>> uboot_mkimage . >>> >>> Hiroki Mori >>> >> >> Hi Hiroki Mori, >> >> Oh I see, got it, thanks for the explanation! >> >> Best regards, >> Archimedes >> >> >>> >>> ----- Original Message ----- >>> >>> From: "Archimedes Gaviola" <archimedes.gaviola@gmail.com> >>> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> >>> Date: 2022/08/18 =E6=9C=A8 21:38 >>> Subject: Ralink RT3050F >>> >>> >>> Hi, >>> >>> I have successfully compiled an RT3050F SoC kernel image with FreeBSD >>> 11.4-RELEASE by following this reference here >>> https://wiki.freebsd.org/mips/RT3052F. However, I want to know how this >>> value 0x80800000 is derived for the tftpboot? My generated image entry >>> point value address is 80001100. >>> >>> root@freebsd114:/usr/obj/mips.mipsel/usr/src/sys/RT305X # readelf -h >>> kernel | grep 'Entry point address:' >>> Entry point address: 0x80001100 >>> >>> Thanks and best regards, >>> Archimedes >>> >>> --00000000000008b9da05e757d71d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail= _attr">On Sun, Aug 28, 2022 at 4:15 PM Archimedes Gaviola <<a href=3D"ma= ilto:archimedes.gaviola@gmail.com">archimedes.gaviola@gmail.com</a>> wro= te:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px = 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"= ltr"><div>Hi,</div><div><br></div><div>After I successfully accessed the se= rial console, I proceeded to load the kernel image (this is an old D-link D= IR-600 (B2) Wi-Fi device) and encountered this error -> <br></div><div><= br></div><div>Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET boar= d to recover.</div><div><br></div><div>Any idea what have I missed? After t= his failure, it booted to the default image of the Linux system. Haven'= t flashed the image yet when this error occurred.<br> </div><div><br></div><div>TFTP from server 192.168.1.209; our IP address is= 192.168.1.188<br>Filename 'dlink/kernel.bin.lzma.uboot'.<br><br>= =C2=A0TIMEOUT_COUNT=3D10,Load address: 0x80800000<br>Loading: Got ARP REQUE= ST, return our IP<br><br>ArpTimeoutCheck<br>Got ARP REPLY, set server/gtwy = eth addr (b8:27:eb:64:8b:57)<br>Got it<br>#################################= ################################<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#####= ############################################################<br>=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0###################################################= ##############<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#######################= #########################<br>done<br>Bytes transferred =3D 1243362 (12f8e2 = hex)<br>NetBootFileXferSize=3D 0012f8e2<br><br>RT3052 # bootm 0x80800000<br= >## Booting image at 80800000 ...<br>=C2=A0 =C2=A0Image Name: =C2=A0 FreeBS= D Kernel Image<br>=C2=A0 =C2=A0Created: =C2=A0 =C2=A0 =C2=A02022-08-18 =C2= =A0 5:51:56 UTC<br>=C2=A0 =C2=A0Image Type: =C2=A0 MIPS Linux Kernel Image = (lzma compressed)<br>=C2=A0 =C2=A0Data Size: =C2=A0 =C2=A01243298 Bytes =3D= =C2=A01.2 MB<br>=C2=A0 =C2=A0Load Address: 80001100<br>=C2=A0 =C2=A0Entry = Point: =C2=A080001100<br>=C2=A0 =C2=A0Verifying Checksum ... OK<br>=C2=A0 = =C2=A0Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to rec= over<br><br><br>U-Boot 1.1.3 (Jan 12 2011 - 21:35:28) (ALPHA)<br><br>SVN re= vision: 482<br>Target board: WRG-N23<br><br>Board: Ralink APSoC DRAM: =C2= =A032 MB<br>config usb..*** Error: D+/D- is 1/1, config usb failed.<br>..**= * Error: D+/D- is 1/1, config usb failed.<br><br>**************************= ****<br>Software System Reset Occurred<br>******************************<br= ><br>=C2=A0Set info->start[0]=3DBF000000<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Ralink UBoot Version: 3.5.1.0<br>--------= ------------------------------------<br>ASIC 3052_MP2 (Port5<->None)<= br>DRAM component: 256 Mbits SDR<br>DRAM bus: 16 bit<br>Total memory: 32 MB= ytes<br>Flash component: NOR Flash<br>Date:Jan 12 2011 =C2=A0Time:21:35:28<= br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>icache: set= s:256, ways:4, linesz:32 ,total:32768<br>dcache: sets:128, ways:4, linesz:3= 2 ,total:16384<br>## Powering down port 0 ~ 3.<br><br>Please choose the ope= ration:<br>=C2=A0 =C2=A01: Load system code to SDRAM via TFTP.<br>=C2=A0 = =C2=A02: Load system code then write to Flash via TFTP.<br>=C2=A0 =C2=A03: = Boot system code via Flash (default).<br>=C2=A0 =C2=A04: Entr boot command = line interface.<br>=C2=A0 =C2=A07: Load Boot Loader code then write to Flas= h via Serial.<br>=C2=A0 =C2=A09: Load Boot Loader code then write to Flash = via TFTP. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00<br><br>3: System B= oot system code via Flash.<br>## Booting image at bf050000 ...<br>addr:bf05= 0000<br>We have SEAMA, Image Size =3D 3506208<br>Verifying Checksum ...<br>= Uncompressing SEAMA linux.lzma ... OK<br>## Transferring control to Linux (= at address 81f46ec0) ...<br>## Giving linux memsize in MB, 32<br><br>Starti= ng kernel ...<br><br>LINUX started...<br><br>=C2=A0THIS IS ASIC<br>is_RT305= 2 =3D 0, is_RT3352 =3D 0<br>is_RT3350 =3D 1, is_RT5350 =3D 0<br>Linux versi= on 2.6.33.2 (kwest@enzo) (gcc version 4.3.3 (GCC) ) #1 Fri Dec 10 17:24:50 = CST 2010</div><div>...<br></div><div><br></div><div>Thanks and best regards= ,</div><div>Archimedes<br></div></div></blockquote><div><br></div><div> <div>Hi,</div><div><br></div><div>Alright I made some progress, I used gzip= compression instead of LZMA and the kernel image is now booting.</div><div= ><br></div><div>U-Boot 1.1.3 (Jan 12 2011 - 21:35:28) (ALPHA)<br><br>SVN re= vision: 482<br>Target board: WRG-N23<br><br>Board: Ralink APSoC DRAM: =C2= =A032 MB<br>config usb..*** Error: D+/D- is 1/1, config usb failed.<br>..**= * Error: D+/D- is 1/1, config usb failed.<br><br>**************************= ****<br>Software System Reset Occurred<br>******************************<br= ><br>=C2=A0Set info->start[0]=3DBF000000<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Ralink UBoot Version: 3.5.1.0<br>--------= ------------------------------------<br>ASIC 3052_MP2 (Port5<->None)<= br>DRAM component: 256 Mbits SDR<br>DRAM bus: 16 bit<br>Total memory: 32 MB= ytes<br>Flash component: NOR Flash<br>Date:Jan 12 2011 =C2=A0Time:21:35:28<= br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>icache: set= s:256, ways:4, linesz:32 ,total:32768<br>dcache: sets:128, ways:4, linesz:3= 2 ,total:16384<br>## Powering down port 0 ~ 3.<br><br>Please choose the ope= ration:<br>=C2=A0 =C2=A01: Load system code to SDRAM via TFTP.<br>=C2=A0 = =C2=A02: Load system code then write to Flash via TFTP.<br>=C2=A0 =C2=A03: = Boot system code via Flash (default).<br>=C2=A0 =C2=A04: Entr boot command = line interface.<br>=C2=A0 =C2=A07: Load Boot Loader code then write to Flas= h via Serial.<br>=C2=A0 =C2=A09: Load Boot Loader code then write to Flash = via TFTP. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00<br><br>3: System B= oot system code via Flash.<br>## Booting image at bf050000 ...<br>=C2=A0 = =C2=A0Image Name: =C2=A0 FreeBSD Kernel Image<br>=C2=A0 =C2=A0Created: =C2= =A0 =C2=A0 =C2=A02022-08-29 =C2=A0 1:55:22 UTC<br>=C2=A0 =C2=A0Image Type: = =C2=A0 MIPS Linux Kernel Image (gzip compressed)<br>=C2=A0 =C2=A0Data Size:= =C2=A0 =C2=A01724519 Bytes =3D =C2=A01.6 MB<br>=C2=A0 =C2=A0Load Address: = 80001100<br>=C2=A0 =C2=A0Entry Point: =C2=A080001100<br>=C2=A0 =C2=A0Verify= ing Checksum ... OK<br>=C2=A0 =C2=A0Uncompressing Kernel Image ... OK<br><b= r>Starting kernel ...<br><br>U-Boot args (from 0 args):<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 None<br>Environment:<br>entry: mips_init()<br>Cache info:<br>= =C2=A0 picache_stride =C2=A0 =C2=A0=3D 4096<br>=C2=A0 picache_loopcount =3D= 8<br>=C2=A0 pdcache_stride =C2=A0 =C2=A0=3D 4096<br>=C2=A0 pdcache_loopcou= nt =3D 4<br>cpu0: MIPS Technologies processor v76.150<br>=C2=A0 MMU: Standa= rd TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)<br>=C2=A0 L1 = i-cache: 4 ways of 256 sets, 32 bytes per line<br>=C2=A0 L1 d-cache: 4 ways= of 128 sets, 32 bytes per line<br>=C2=A0 L2 cache: disabled<br>=C2=A0 Conf= ig1=3D0xbea3319e<PerfCount,WatchRegs,MIPS16,EJTAG><br>=C2=A0 Config2= =3D0x80000000<br>=C2=A0 Config3=3D0x420<br>Physical memory chunk(s):<br>0x4= 38000 - 0x1ffffff, 29130752 bytes (7112 pages)<br>Maxmem is 0x2000000<br>KD= B: debugger backends: ddb<br>KDB: current backend: ddb<br>Copyright (c) 199= 2-2020 The FreeBSD Project.<br>Copyright (c) 1979, 1980, 1983, 1986, 1988, = 1989, 1991, 1992, 1993, 1994<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 The Regents of = the University of California. All rights reserved.<br>FreeBSD is a register= ed trademark of The FreeBSD Foundation.<br>FreeBSD 11.4-RELEASE #1: Sun Aug= 28 18:35:56 UTC 2022<br>=C2=A0 =C2=A0 root@:/usr/obj/mips.mipsel/usr/src/s= ys/RT305X mips<br>gcc version 4.2.1 20070831 patched [FreeBSD]<br>Preloaded= elf kernel "kernel" at 0x804323d0.<br>real memory =C2=A0=3D 3355= 4432 (32768K bytes)<br>Physical memory chunk(s):<br>0x004c4000 - 0x01f46fff= , 27799552 bytes (6787 pages)<br>avail memory =3D 27365376 (26MB)<br>ULE: s= etup cpu 0<br>wlan: <802.11 Link Layer><br>random: entropy device ext= ernal interface<br>mem: <memory><br>null: <full device, null devic= e, zero device><br>nfslock: pseudo-device<br>nexus0: <MIPS32 root nex= us><br>random: harvesting attach, 8 bytes (4 bits) from nexus0<br>nvram2= env0: base=3D0x1f030000 sig=3D0xe5e60a74 maxsize=3D0x00002000 flags=3D0x000= 00003<br>nvram2env1: base=3D0x1f032000 sig=3D0x5a045e94 maxsize=3D0x0000400= 0 flags=3D0x00000003<br>clock0: <Generic MIPS32 ticker> on nexus0<br>= Timecounter "MIPS32" frequency 192000000 Hz quality 800<br>Event = timer "MIPS32" frequency 192000000 Hz quality 800<br>random: harv= esting attach, 8 bytes (4 bits) from clock0<br>obio0 at mem 0x10000000-0x1f= ffffff on nexus0<br>rt305x_sysctl0: <RT305X System Control driver> at= mem 0x10000000-0x100000ff irq 0 on obio0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 Ch= ip ID: "RT3350 =C2=A0"<br>=C2=A0 =C2=A0 SYSCTL_SYSCFG=3D0x3400000= <br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 GE0 mode 3<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 B= oot from 0x1f000000<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 Boot from 0<br>=C2=A0 = =C2=A0 =C2=A0 =C2=A0 Bootstrap test code 0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 S= RAM_CS mode 0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 8mA SDRAM_CLK driving<br>=C2= =A0 =C2=A0 SYSCTL_CLKCFG0=3D0x40000000<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 SDRAM= _CLK_SKEW 1ns<br>=C2=A0 =C2=A0 SYSCTL_CLKCFG1=3D0x04283c<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 USB OTG clock is enabled<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 I2S c= lock is internal 15.625MHz<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 I2S clock divider= 40<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 PCM clock is internal 15.625MHz<br>=C2= =A0 =C2=A0 =C2=A0 =C2=A0 PCM clock divider 60<br>=C2=A0 =C2=A0 SYSCTL_GPIOM= ODE=3D0x00039c<br>random: harvesting attach, 8 bytes (4 bits) from rt305x_s= ysctl0<br>rt305x_ic0: <RT305X Interrupt Controller driver> at mem 0x1= 0000200-0x100002ff on obio0<br>random: harvesting attach, 8 bytes (4 bits) = from rt305x_ic0<br>uart0: <rt305x_uart> at mem 0x10000500-0x100005ff = irq 5 on obio0<br>uart0: fast interrupt<br>uart0: PPS capture mode: DCDinva= lid<br>random: harvesting attach, 8 bytes (4 bits) from uart0<br>gpio0: <= ;RT305X GPIO driver> at mem 0x10000600-0x100006ff irq 6 on obio0<br>gpio= 0: =C2=A0Use reset_gpio 10<br>gpiobus0: <GPIO bus> on gpio0<br>gpiobu= s0: <unknown device> at pin 0<br>gpiobus0: <unknown device> at = pin 7<br>gpioled0: <GPIO led> at pin 8 on gpiobus0<br>random: harvest= ing attach, 8 bytes (4 bits) from gpioled0<br>gpioled1: <GPIO led> at= pin 9 on gpiobus0<br>random: harvesting attach, 8 bytes (4 bits) from gpio= led1<br>gpiobus0: <unknown device> at pin 10<br>gpiobus0: <unknown= device> at pin 11<br>gpioled2: <GPIO led> at pin 14 on gpiobus0<b= r>random: harvesting attach, 8 bytes (4 bits) from gpioled2<br>random: harv= esting attach, 8 bytes (4 bits) from gpiobus0<br>gpioc0: <GPIO controlle= r> on gpio0<br>random: harvesting attach, 8 bytes (4 bits) from gpioc0<b= r>random: harvesting attach, 8 bytes (4 bits) from gpio0<br>uart1: <rt30= 5x_uart> at mem 0x10000c00-0x10000cff irq 12 on obio0<br>uart1: console = (115200,n,8,1)<br>uart1: fast interrupt<br>uart1: PPS capture mode: DCDinva= lid<br>random: harvesting attach, 8 bytes (4 bits) from uart1<br>random: ha= rvesting attach, 8 bytes (4 bits) from obio0<br>rt0: <Ralink RT3050 onCh= ip Ethernet driver> at mem 0x10100000-0x1010ffff irq 3 on nexus0<br>rt0:= RT305XF Ethernet MAC (rev 0x00000000)<br>rt0: use hardcoded 00:18:e7:d5:83= :90 macaddr<br>rt0: bpf attached<br>rt0: Ethernet address: 00:18:e7:d5:83:9= 0<br>random: harvesting attach, 8 bytes (4 bits) from rt0<br>Device configu= ration finished.<br>Timecounters tick every 10.000 msec<br>vlan: initialize= d, using hash tables with chaining<br>lo0: bpf attached<br>tcp_init: net.in= et.tcp.tcbhashsize auto tuned to 512<br>bootpc_init: wired to interface = 9;rt0'<br>Sending DHCP Discover packet from interface rt0 (00:18:e7:d5:= 83:90)<br>Received DHCP Offer packet on rt0 from 192.168.1.1 (accepted)<br>= Received DHCP Offer packet on rt0 from 192.168.1.1 (ignored)<br>Sending DHC= P Request packet from interface rt0 (00:18:e7:d5:83:90)<br>Received DHCP Ac= k packet on rt0 from 192.168.1.1 (accepted)<br>rt0 at 192.168.1.225 server = 192.168.1.1<br>subnet mask 255.255.255.0 router 192.168.1.1<br>Adjusted int= erface rt0<br>Trying to mount root from cd9660:/dev/map/rootfs.uzip []...<b= r>mountroot: waiting for device /dev/map/rootfs.uzip...<br>Mounting from cd= 9660:/dev/map/rootfs.uzip failed with error 19.<br><br>Loader variables:<br= ><br>Manual root filesystem specification:<br>=C2=A0 <fstype>:<dev= ice> [options]<br>=C2=A0 =C2=A0 =C2=A0 Mount <device> using filesy= stem <fstype><br>=C2=A0 =C2=A0 =C2=A0 and with the specified (optiona= l) option list.<br><br>=C2=A0 =C2=A0 eg. ufs:/dev/da0s1a<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 zfs:tank<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd9660:/dev/cd0 ro<br= >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (which is equivalent to: mount -t cd966= 0 -o ro /dev/cd0 /)<br><br>=C2=A0 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 List valid disk boot devices<br>=C2=A0 . =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 Yield 1 second (for background tasks)<br>=C2=A0= <empty line> =C2=A0 =C2=A0Abort manual input<br><br>mountroot></d= iv><div><br></div><div>Another challenge is this last part on mounting the = root filesystem? Any ideas? I'm almost there.<br></div><div><br></div><= div>Thanks and best regards,</div><div>Archimedes</div>=C2=A0 <br></div><bl= ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef= t:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div></div>= <div><br></div><div><br></div></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Fri, Aug 19, 2022 at 8:56 AM Archimedes Ga= viola <<a href=3D"mailto:archimedes.gaviola@gmail.com" target=3D"_blank"= >archimedes.gaviola@gmail.com</a>> wrote:<br></div><blockquote class=3D"= gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><b= r><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, = Aug 19, 2022 at 8:33 AM Mori Hiroki <<a href=3D"mailto:yamori813@yahoo.c= o.jp" target=3D"_blank">yamori813@yahoo.co.jp</a>> wrote:<br></div><bloc= kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:= 1px solid rgb(204,204,204);padding-left:1ex">Hi.<br> <br> 0x80800000=C2=A0 is only u-boot image load offset. You will do bootm comman= d <br> on u-boot then start at 0x80001100 if you create this address by uboot_mkim= age .<br> <br> Hiroki Mori<br></blockquote><div><br></div><div> <div>Hi Hiroki Mori,</div><div><br></div><div>Oh I see, got it, thanks for = the explanation!</div><div><br></div><div>Best regards,</div><div>Archimede= s</div>=C2=A0 <br></div><blockquote class=3D"gmail_quote" style=3D"margin:0= px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br> ----- Original Message -----<br> <br> From: "Archimedes Gaviola" <<a href=3D"mailto:archimedes.gavio= la@gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</a>><br> To: "<a href=3D"mailto:freebsd-mips@freebsd.org" target=3D"_blank">fre= ebsd-mips@freebsd.org</a>" <<a href=3D"mailto:freebsd-mips@freebsd.= org" target=3D"_blank">freebsd-mips@freebsd.org</a>><br> Date: 2022/08/18 =E6=9C=A8 21:38<br> Subject: Ralink RT3050F<br> <br> <br> Hi,<br> <br> I have successfully compiled an RT3050F SoC kernel image with FreeBSD 11.4-= RELEASE by following this reference here <a href=3D"https://wiki.freebsd.or= g/mips/RT3052F" rel=3D"noreferrer" target=3D"_blank">https://wiki.freebsd.o= rg/mips/RT3052F</a>. However, I want to know how this value 0x80800000 is d= erived for the tftpboot? My generated image entry point value address is 80= 001100.<br> <br> root@freebsd114:/usr/obj/mips.mipsel/usr/src/sys/RT305X # readelf -h kernel= | grep 'Entry point address:'<br> =C2=A0Entry point address:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A00x80001= 100<br> <br> Thanks and best regards,<br> Archimedes<br> <br> </blockquote></div></div> </blockquote></div> </blockquote></div></div> --00000000000008b9da05e757d71d--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7H7arAr7xmuS297gzyVntLmBEM5b0KN134gZa1CEWM8oA>