Date: Wed, 29 Nov 2017 20:41:23 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: Eugene Grosbein <eugen@grosbein.net>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: reboot -r on mips Message-ID: <115897.36610.qm@web101713.mail.ssk.yahoo.co.jp> In-Reply-To: <409601.10493.qm@web101716.mail.ssk.yahoo.co.jp> References: <129336.4485.qm@web101707.mail.ssk.yahoo.co.jp> <5A1C0240.8000102@grosbein.net> <409601.10493.qm@web101716.mail.ssk.yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi=0A=0AI found new method at upgrade. That is use pipe.=0A=0AThis is upgra= de script. This method only use 6MByte md=0Aany size flash.=0A=0A#!/bin/sh= =0A=0AZBOARD=3D`uname -i`=0A=0A. /etc/upgrade.conf=0A=0Acd /tmp=0Amkdir bin= =0Amkdir sbin=0Amkdir libexec=0Amkdir dev=0Amkdir lib=0Amkdir etc=0Amkdir -= p usr/bin=0Acp /sbin/init sbin/=0Acp /bin/sh bin/=0Acp /bin/dd bin/=0Acp /b= in/kill bin/=0Acp /libexec/ld-elf.so.1 libexec/=0Acp /etc/login.conf.db etc= /=0Acp /usr/bin/tftp usr/bin/=0Acp /lib/libedit.so.7 lib/=0Acp /lib/libncur= sesw.so.8 lib/=0Acp /lib/libc.so.7 lib/=0Amkfifo flashpipe=0A=0Akenv vfs.ro= ot.mountfrom=3D"ufs:md0"=0A=0A#echo ${ZBOARD}.zimage=0A=0Aecho "#!/bin/sh" = > etc/rc=0Aecho "dd if=3D/flashpipe of=3D${UPGRADEDEV} obs=3D${UPGRADEBS} c= onv=3Dosync &" >> etc/rc=0Aecho "echo =C2=A5"bin=0Aget ${ZBOARD}.zimage /fl= ashpipe=0Aquit=C2=A5" | tftp ${UPGRADETFTP} 69" >> etc/rc=0Aecho "kill -INT= 1" >> etc/rc=0Achmod a+x etc/rc=0A=0Areboot -r=0A=0AHiroki Mori=0A=0A-----= Original Message -----=0A> From: Mori Hiroki <yamori813@yahoo.co.jp>=0A> T= o: Eugene Grosbein <eugen@grosbein.net>; "freebsd-mips@freebsd.org" <freebs= d-mips@freebsd.org>=0A> Cc: =0A> Date: 2017/11/28, Tue 16:38=0A> Subject: R= e: reboot -r on mips=0A> =0A> Hi=0A> =0A> Thanks for your advice. I missing= your mail.=0A> =0A> I use ZRouter build system. This build use md file sys= tem at /tmp.=0A> =0A> But small(10M) than 8M flash upgrade. Then I do this = way.=0A> =0A> 1. nomal boot process=0A> =0A> 2. set kenv to prepareupgrade= =3D1=0A> =0A> 3. reboot -r=0A> =0A> 4. if set=C2=A0prepareupgrade then=C2= =A0delete old md and make big(16M) md in rc.=0A> =0A> 5. make minimum rootf= s in md and save new image by tftp.=0A> =0A> 6. reboot -r=0A> =0A> 7. image= to flash by dd=0A> =0A> 8.=C2=A0kill -INT 1=0A> =0A> Thanks again.=0A> =0A= > Hiroki Mori=0A> =0A> ----- Original Message -----=0A>>=C2=A0=C2=A0From: E= ugene Grosbein <eugen@grosbein.net>=0A>>=C2=A0=C2=A0To: Mori Hiroki <yamori= 813@yahoo.co.jp>; =0A> "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org= >=0A>>=C2=A0=C2=A0Cc: =0A>>=C2=A0=C2=A0Date: 2017/11/27, Mon 21:17=0A>>=C2= =A0=C2=A0Subject: Re: reboot -r on mips=0A>> =0A>>=C2=A0=C2=A027.11.2017 18= :56, Mori Hiroki =D0=BF=D0=B8=D1=88=D0=B5=D1=82:=0A>>> =C2=A0 Hi.=0A>>> =0A= >>> =C2=A0 I found reboot -r today. I try this function on my Atheros AR9.= =0A>> =0A>>=C2=A0=C2=A0[skip]=0A>> =0A>>> =C2=A0 This function make complet= e flash update method.=0A>> =0A>>=C2=A0=C2=A0Yes, it's great. Also, look at= =0A>>=C2=A0=C2=A0https://lists.freebsd.org/pipermail/freebsd-mips/2016-Feb= ruary/004431.html=0A>> =0A> _______________________________________________= =0A> freebsd-mips@freebsd.org mailing list=0A> https://lists.freebsd.org/ma= ilman/listinfo/freebsd-mips=0A> To unsubscribe, send any mail to =0A> "free= bsd-mips-unsubscribe@freebsd.org"=0A>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?115897.36610.qm>