Date: Thu, 21 Dec 2017 16:53:10 +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: <554872.85153.qm@web101719.mail.ssk.yahoo.co.jp> In-Reply-To: <115897.36610.qm@web101713.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> <115897.36610.qm@web101713.mail.ssk.yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi.=0A=0AI found some time failed reboot -r. Log is here.=C2=A0=0A=0AJan=C2= =A0 1 09:01:04 init: cannot mount tmpfs on /dev/reroot: No space left on de= vice=0AJan=C2=A0 1 09:01:04 init: reroot failed; going to single user mode= =0A=0AI checked code.=C2=A0This error come from TMPFS_PAGES_MINRESERVED=0Ac= heek in=C2=A0sys/fs/tmpfs/tmpfs_vfsops.c.=0A=0ANow=C2=A0TMPFS_PAGES_MINRESE= RVED is 4MByte. This is big because of=0Amy target have only 16MByte or 32B= yte memory.=0A=0AI want change smaller value to=C2=A0TMPFS_PAGES_MINRESERVE= D.=0A=0AHow to modify code?=0A=0ARegards=0A=0AHiroki Mori=0A=0A----- Origin= al Message -----=0A> From: Mori Hiroki <yamori813@yahoo.co.jp>=0A> To: Euge= ne Grosbein <eugen@grosbein.net>; "freebsd-mips@freebsd.org" <freebsd-mips@= freebsd.org>=0A> Cc: =0A> Date: 2017/11/29, Wed 20:41=0A> Subject: Re: rebo= ot -r on mips=0A> =0A> Hi=0A> =0A> I found new method at upgrade. That is u= se pipe.=0A> =0A> This is upgrade script. This method only use 6MByte md=0A= > any size flash.=0A> =0A> #!/bin/sh=0A> =0A> ZBOARD=3D`uname -i`=0A> =0A> = . /etc/upgrade.conf=0A> =0A> cd /tmp=0A> mkdir bin=0A> mkdir sbin=0A> mkdir= libexec=0A> mkdir dev=0A> mkdir lib=0A> mkdir etc=0A> mkdir -p usr/bin=0A>= cp /sbin/init sbin/=0A> cp /bin/sh bin/=0A> cp /bin/dd bin/=0A> cp /bin/ki= ll bin/=0A> cp /libexec/ld-elf.so.1 libexec/=0A> cp /etc/login.conf.db etc/= =0A> cp /usr/bin/tftp usr/bin/=0A> cp /lib/libedit.so.7 lib/=0A> cp /lib/li= bncursesw.so.8 lib/=0A> cp /lib/libc.so.7 lib/=0A> mkfifo flashpipe=0A> =0A= > kenv vfs.root.mountfrom=3D"ufs:md0"=0A> =0A> #echo ${ZBOARD}.zimage=0A> = =0A> echo "#!/bin/sh" > etc/rc=0A> echo "dd if=3D/flashpipe of=3D${UPGRADED= EV} obs=3D${UPGRADEBS} conv=3Dosync =0A> &" >> etc/rc=0A> echo "echo =C2=A5= "bin=0A> get ${ZBOARD}.zimage /flashpipe=0A> quit=C2=A5" | tftp ${UPGRADETF= TP} 69" >> etc/rc=0A> echo "kill -INT 1" >> etc/rc=0A> chmod a+x etc/rc=0A>= =0A> reboot -r=0A> =0A> Hiroki Mori=0A> =0A> ----- Original Message -----= =0A>>=C2=A0=C2=A0From: Mori Hiroki <yamori813@yahoo.co.jp>=0A>>=C2=A0=C2=A0= To: Eugene Grosbein <eugen@grosbein.net>; =0A> "freebsd-mips@freebsd.org" <= freebsd-mips@freebsd.org>=0A>>=C2=A0=C2=A0Cc: =0A>>=C2=A0=C2=A0Date: 2017/1= 1/28, Tue 16:38=0A>>=C2=A0=C2=A0Subject: Re: reboot -r on mips=0A>> =0A>>= =C2=A0=C2=A0Hi=0A>> =0A>>=C2=A0=C2=A0Thanks for your advice. I missing your= mail.=0A>> =0A>>=C2=A0=C2=A0I use ZRouter build system. This build use md = file system at /tmp.=0A>> =0A>>=C2=A0=C2=A0But small(10M) than 8M flash upg= rade. Then I do this way.=0A>> =0A>>=C2=A0=C2=A01. nomal boot process=0A>> = =0A>>=C2=A0=C2=A02. set kenv to prepareupgrade=3D1=0A>> =0A>>=C2=A0=C2=A03.= reboot -r=0A>> =0A>>=C2=A0=C2=A04. if set=C2=A0prepareupgrade then=C2=A0de= lete old md and make big(16M) md in rc.=0A>> =0A>>=C2=A0=C2=A05. make minim= um rootfs in md and save new image by tftp.=0A>> =0A>>=C2=A0=C2=A06. reboot= -r=0A>> =0A>>=C2=A0=C2=A07. image to flash by dd=0A>> =0A>>=C2=A0=C2=A08.= =C2=A0kill -INT 1=0A>> =0A>>=C2=A0=C2=A0Thanks again.=0A>> =0A>>=C2=A0=C2= =A0Hiroki Mori=0A>> =0A>>=C2=A0=C2=A0----- Original Message -----=0A>>> =C2= =A0=C2=A0From: Eugene Grosbein <eugen@grosbein.net>=0A>>> =C2=A0=C2=A0To: M= ori Hiroki <yamori813@yahoo.co.jp>; =0A>>=C2=A0=C2=A0"freebsd-mips@freebsd.= org" <freebsd-mips@freebsd.org>=0A>>> =C2=A0=C2=A0Cc: =0A>>> =C2=A0=C2=A0Da= te: 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=C2=A0=C2=A0 Hi.=0A>>>> =0A>>>>=C2=A0=C2=A0=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=C2=A0=C2=A0 This function make co= mplete 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-mip= s/2016-February/004431.html=0A>>> =0A>>=C2=A0=C2=A0________________________= _______________________=0A>>=C2=A0=C2=A0freebsd-mips@freebsd.org mailing li= st=0A>>=C2=A0=C2=A0https://lists.freebsd.org/mailman/listinfo/freebsd-mips= =0A>>=C2=A0=C2=A0To unsubscribe, send any mail to =0A>>=C2=A0=C2=A0"freebsd= -mips-unsubscribe@freebsd.org"=0A>> =0A> __________________________________= _____________=0A> freebsd-mips@freebsd.org mailing list=0A> https://lists.f= reebsd.org/mailman/listinfo/freebsd-mips=0A> To unsubscribe, send any mail = to =0A> "freebsd-mips-unsubscribe@freebsd.org"=0A>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?554872.85153.qm>