Date: Sun, 28 Aug 2022 16:15:32 +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: <CAJFbk7FUfsHUbNR6geuW_QzyzPp%2BBuXj8i7MgAtbxC0tq5himw@mail.gmail.com> In-Reply-To: <CAJFbk7Eq=6fR32CVq5JuEghuzyuxrc=G3vjV3_PnW2dTJNgoNQ@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ed388605e748c000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 recove= r 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 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 >> >> --000000000000ed388605e748c000 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi,</div><div><br></div><div>After I successfully acc= essed 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 -> <br>= </div><div><br></div><div>Uncompressing Kernel Image ... LZMA ERROR 1 - mus= t RESET board to recover.</div><div><br></div><div>Any idea what have I mis= sed? After this 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><br></div><div><br></div></div><br><di= v class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Aug 1= 9, 2022 at 8:56 AM Archimedes Gaviola <<a href=3D"mailto:archimedes.gavi= ola@gmail.com">archimedes.gaviola@gmail.com</a>> wrote:<br></div><blockq= uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p= x solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr= "><br></div><br><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:yam= ori813@yahoo.co.jp" target=3D"_blank">yamori813@yahoo.co.jp</a>> wrote:<= br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e= x;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> --000000000000ed388605e748c000--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7FUfsHUbNR6geuW_QzyzPp%2BBuXj8i7MgAtbxC0tq5himw>