From owner-freebsd-arm@freebsd.org Fri Aug 10 05:55:55 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5CBF105D279 for ; Fri, 10 Aug 2018 05:55:55 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh504-vm10.bullet.mail.kks.yahoo.co.jp (nh504-vm10.bullet.mail.kks.yahoo.co.jp [183.79.57.96]) by mx1.freebsd.org (Postfix) with SMTP id A8F427A6CE for ; Fri, 10 Aug 2018 05:55:54 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.139] by nh504.bullet.mail.kks.yahoo.co.jp with NNFMP; 10 Aug 2018 05:52:52 -0000 Received: from [183.79.100.136] by t502.bullet.mail.kks.yahoo.co.jp with NNFMP; 10 Aug 2018 05:52:52 -0000 Received: from [127.0.0.1] by omp505.mail.kks.yahoo.co.jp with NNFMP; 10 Aug 2018 05:52:52 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 153868.2568.bm@omp505.mail.kks.yahoo.co.jp Received: (qmail 24710 invoked by uid 60001); 10 Aug 2018 05:52:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1533880371; bh=FqMjSz17ZPVdk4wwvDzfaeq8oF0ikNgHzm6kKoMC/e0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ANIW49fKX1hIEFC9+HVtlFbpueHGJ3/rRrYo7iC2lgEkWl1kfZpWhSCgSbl24fYdOrIMGIa6ekATC8YZKKzduUcoGHTleMhRgDEYhrCVc6q+ilDTKiBczAqgOKW7N9cFFdapA7RNUPv2+il9NqErbDJoX00cwc6IhJeymz1S96Y= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UyVnGA6SQs44HnF0PXETCyxacx0metNGtREEENd8xwTJ5GlirRcFiB7sL5R6UVyMsFrTesuWEt/amX39WjRCBy1tn3y4ULpB7ThPXMZi7FmVsZGKcxWxyczIOLxa+bzaSW/TWcBNLyZm2q1Md1iv5Vn/9uceztYcU6IeihcoAO4=; Message-ID: <920419.9428.qm@web103910.mail.ssk.yahoo.co.jp> X-YMail-OSG: Q5HZDbgVM1l_MjJdsePkI5ipiIcVsJzjY.eCAf3WaMONGq1c2K8e1_6T7s98t2mW5vHNHtHioUlHQmDkDEM2qDn0mg0vwXVbCu5yBzCTMDbO5J2Z6_QmfClMClhMzvW4eWCUqJdxslLRpMduLqK17NPXq2MXJAD8fa7QA2PzSRDQW.uxVqvAZJnZ2VlgowGJFMWX1J76AVlX8lu5KhNA.HYno4VQJojXAAOXpTzqQHilDAm4a6lndfBObaXLodsQxzgwssAL4WhZjYUSGrPoE56dY33adzMC4IFDZAEvrxPz2bFf8c7_lEfGL6NpD2SGjVjE_68hOfT0Nem00kVO55Hx4_mPUNrkqKApF139SyAwPTPYWXR8FmTq1OQUGwv4TWAnsXCRfDdz4t3Ha6nhz1VNs8cmhzpk8FoLg9MA3ke6BhZS3dPkMw0ffjuJsp_r2nkXphjcof3ZeE9gts4K6gn1flAGAC7O2BLFCvSqsTlssosD2aqdnX51gaCl_dUiBPVVkwyP1zq4o52qEDDeiX_mSQjG0j0E4njb1VTRJueaQSmRPMTcXANT0sZKAzOPikk.ZdubXb1auk9xN.t8PNnlX62AijzeyJ1ILVJ74K9ZUaBJKETCHTQa333K6bzG Received: from [203.165.91.75] by web103910.mail.ssk.yahoo.co.jp via HTTP; Fri, 10 Aug 2018 14:52:50 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: 9QFOJQwVM1nKlZbDrY3wCbe.OS6SiRWc6fg4xZLzwAQMnfSyKVppJLV8wDsDwhtSmWNtZoTspVFSGGZLXDCGeXPxcdIEwOvFZrg7qqWIoRoo.rWMak220yk3D9mooakQtrip References: <64850.63077.qm@web101706.mail.ssk.yahoo.co.jp> <387823.67007.qm@web101711.mail.ssk.yahoo.co.jp> <812183.70978.qm@web101705.mail.ssk.yahoo.co.jp> <892631.23713.qm@web101718.mail.ssk.yahoo.co.jp> <408.23467.qm@web101707.mail.ssk.yahoo.co.jp> Date: Fri, 10 Aug 2018 14:52:50 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: solved Re: still hang up arm/ralink To: Warner Losh Cc: Michael Zhilin , "freebsd-arm@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2018 05:55:55 -0000 Hi.=0A=0A----- Original Message -----=0A>From: Warner Losh = =0A>To: Mori Hiroki =0A>Cc: Michael Zhilin ; "freebsd-arm@freebsd.org" =0A>Date: 20= 18/8/10, Fri 11:16=0A>Subject: Re: solved Re: still hang up arm/ralink=0A> = =0A>=0A>Mori-san=0A>=0A>=0A>I took your advice and bought a Buffalo WZR2-G3= 00N off ebay. It arrived while I was on vacation. So, I spent a few minutes= with it today. I've installed header for serial port, puzzled out the pins= , found your blog that had the pins and the piece I was missing (the baud r= ate). I now have added it to my test lab's terminal server and hope to star= t building images for it once I get my test lab's CI infrastructure up and = running.=0A>=0A=0AThanks for your cooperation.=0A=0A>=0A>So, now I'm sittin= g at the "RT2860-EVB#" prompt from uboot hoping to boot the RT1310 kernel. = However, I lack instructions and can't seem to find all the details in your= posts or on your blog. How do I load/create the RAM disk referenced in the= kernel config file "options=A0 =A0 =A0 =A0 =A0ROOTDEVNAME=3D\"cd9660:/dev/= cfid0s.rootfs.uzip\"" ? what address do I load the kernel at (0x40800000 is= listed in a diagram, but 0x40000100 is shown in the dmesg) and which varia= tion of the kernel should I use? Thanks for any help you can offer.=0A>=0A= =0AI use ZRouter build system. But I am a suggestion normal build system.= =0A=0AI think=A0Buffalo WZR2-G300N is different u-boot on US and Japan mode= l.=0ABecause of my target prompt is "5VT1310-EVB#". =A0Be careful operation= .=0AYou can find some information=A0in printenv at u-boot.=0A=0ASorry I for= get memory address setting in build system. I add this to review.=0A=0Ahttp= s://reviews.freebsd.org/D16622=0A=0AIn this setting build kernel header is = this.=0A=0A% readelf -h Buffalo_WZR2-G300N_kernel=0AELF Header:=0A=A0 Magic= : =A0 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00=A0=0A=A0 Class: =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ELF32=0A=A0 Data:=A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2's complement, lit= tle endian=0A=A0 Version: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 1 (current)=0A=A0 OS/ABI:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 UNIX - FreeBSD=0A=A0 ABI Version: =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 0=0A=A0 Type:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 EXEC (Executable file)=0A=A0 Machine: =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ARM=0A=A0 Version: =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x1=0A=A0 Entry point address: =A0 =A0 =A0 =A0 = =A0 =A0 =A0 0xc0000100=0A=A0 Start of program headers:=A0 =A0 =A0 =A0 =A0 5= 2 (bytes into file)=0A=A0 Start of section headers:=A0 =A0 =A0 =A0 =A0 3633= 180 (bytes into file)=0A=A0 Flags: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 0x5000202, has entry point, Version5 EABI, =0A=A0 = Size of this header: =A0 =A0 =A0 =A0 =A0 =A0 =A0 52 (bytes)=0A=A0 Size of p= rogram headers: =A0 =A0 =A0 =A0 =A0 32 (bytes)=0A=A0 Number of program head= ers: =A0 =A0 =A0 =A0 6=0A=A0 Size of section headers: =A0 =A0 =A0 =A0 =A0 4= 0 (bytes)=0A=A0 Number of section headers: =A0 =A0 =A0 =A0 37=0A=A0 Section= header string table index: 34=0A=0ADo opjcopy and compress and make u-boot= image by load and entry address is=A00x40000100.=0A=0A% file Buffalo_WZR2-= G300N_kernel.kbin.oldlzma.uboot=0A=0ABuffalo_WZR2-G300N_kernel.kbin.oldlzma= .uboot: u-boot legacy uImage, FreeBSD Kernel Image, Linux/ARM, OS Kernel Im= age (lzma), 999004 bytes, Wed Aug=A0 8 22:50:36 2018, Load Address: 0x40000= 100, Entry Point: 0x40000100, Header CRC: 0xFEC4D6B9, Data CRC: 0xE650EDDF= =0A=0AIt can execute on memory. (not flash)=0AYou need set ipaddr and serve= rip on u-boot.=0A=0A5VT1310-EVB# tftpboot 00800000 Buffalo_WZR2-G300N_kerne= l.kbin.oldlzma.uboot=0ATFTP from server 10.10.10.3; our IP address is 10.10= .10.190=0AFilename 'Buffalo_WZR2-G300N_kernel.kbin.oldlzma.uboot'.=0ALoad a= ddress: 0x800000=0ALoading: ###############################################= ##################=0A######################################################= ###########=0A#############################################################= ####=0A#=0Adone=0ABytes transferred =3D 999068 (f3e9c hex)=0A5VT1310-EVB# b= ootm=0A## Booting image at 00800000 ...=0A=A0=A0 Image Name: =A0 FreeBSD Ke= rnel Image=0A=A0=A0 Image Type: =A0 ARM Linux Kernel Image (lzma compressed= )=0A=A0=A0 Data Size:=A0 =A0 999004 Bytes =3D 975.6 kB=0A=A0=A0 Load Addres= s: 40000100=0A=A0=A0 Entry Point:=A0 40000100=0A=A0=A0 Verifying Checksum .= .. OK=0A=A0=A0 Uncompressing LZMA Kernel Image ............................= ..............OK=0A=0AStarting kernel @40000100...=0A=0AKDB: debugger backe= nds: ddb=0AKDB: current backend: ddb=0ACopyright (c) 1992-2018 The FreeBSD = Project.=0ACopyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 19= 93, 1994=0AThe Regents of the University of California. All rights reserved= .=0A=0AIf you can execute kernel then stop at rootfs mount.=0A=0AI think th= is is first step.=0A=0AThanks=0A=0AHiroki Mori=0A=0A>=0A>Warner=0A>=0A>=0A>= On Sat, Mar 10, 2018 at 2:31 AM, Mori Hiroki wrote:= =0A>=0A>Hi=0A>>=0A>>I do try to todays current. It' work find on RT1310.=0A= >>=0A>>https://gist.github.com/ yamori813/ 88224f1c96c9c592fb611b12a15e4a b= 5=0A>>=0A>>=0A>>Thanks=0A>>=0A>>Hiroki Mori=0A>>___________________________= ___ _________________=0A>>freebsd-arm@freebsd.org mailing list=0A>>https://= lists.freebsd.org/ mailman/listinfo/freebsd-arm=0A>>To unsubscribe, send an= y mail to "freebsd-arm-unsubscribe@ freebsd.org"=0A>>=0A>=0A>=0A>