Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2017 16:22:28 +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:  <663673.1215.qm@web101715.mail.ssk.yahoo.co.jp>
In-Reply-To: <554872.85153.qm@web101719.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> <554872.85153.qm@web101719.mail.ssk.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi=0A=0AI have new good idea at upgrading flash.=0A=0Ahttps://translate.goo=
gle.com/translate?sl=3Dja&tl=3Den&js=3Dy&prev=3D_t&hl=3Dja&ie=3DUTF-8&u=3Dh=
ttps%3A%2F%2Fqiita.com%2Fyamori813%2Fitems%2F437dee80478fccac34ee&edit-text=
=3D=0A=0A=0A----- Original Message -----=0A> From: Mori Hiroki <yamori813@y=
ahoo.co.jp>=0A> To: Eugene Grosbein <eugen@grosbein.net>; "freebsd-mips@fre=
ebsd.org" <freebsd-mips@freebsd.org>=0A> Cc: =0A> Date: 2017/12/21, Thu 16:=
53=0A> Subject: Re: reboot -r on mips=0A> =0A> Hi.=0A> =0A> I found some ti=
me failed reboot -r. Log is here.=C2=A0=0A> =0A> Jan=C2=A0 1 09:01:04 init:=
 cannot mount tmpfs on /dev/reroot: No space left on device=0A> Jan=C2=A0 1=
 09:01:04 init: reroot failed; going to single user mode=0A> =0A> I checked=
 code.=C2=A0This error come from TMPFS_PAGES_MINRESERVED=0A> cheek in=C2=A0=
sys/fs/tmpfs/tmpfs_vfsops.c.=0A> =0A> Now=C2=A0TMPFS_PAGES_MINRESERVED is 4=
MByte. This is big because of=0A> my target have only 16MByte or 32Byte mem=
ory.=0A> =0A> I want change smaller value to=C2=A0TMPFS_PAGES_MINRESERVED.=
=0A> =0A> How to modify code?=0A> =0A> Regards=0A> =0A> Hiroki Mori=0A> =0A=
> ----- Original Message -----=0A>>  From: Mori Hiroki <yamori813@yahoo.co.=
jp>=0A>>  To: Eugene Grosbein <eugen@grosbein.net>; =0A> "freebsd-mips@free=
bsd.org" <freebsd-mips@freebsd.org>=0A>>  Cc: =0A>>  Date: 2017/11/29, Wed =
20:41=0A>>  Subject: Re: reboot -r on mips=0A>> =0A>>  Hi=0A>> =0A>>  I fou=
nd new method at upgrade. That is use pipe.=0A>> =0A>>  This is upgrade scr=
ipt. This method only use 6MByte md=0A>>  any size flash.=0A>> =0A>>  #!/bi=
n/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>>  m=
kdir dev=0A>>  mkdir lib=0A>>  mkdir etc=0A>>  mkdir -p usr/bin=0A>>  cp /s=
bin/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/libncursesw.so.8 lib/=0A>>  cp /lib/libc.so.7 lib/=0A>>  mkfifo fla=
shpipe=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/f=
lashpipe of=3D${UPGRADEDEV} obs=3D${UPGRADEBS} conv=3Dosync =0A>>  &" >> et=
c/rc=0A>>  echo "echo =C2=A5"bin=0A>>  get ${ZBOARD}.zimage /flashpipe=0A>>=
  quit=C2=A5" | tftp ${UPGRADETFTP} 69" >> etc/rc=0A>>  echo "kill -INT 1" =
>> etc/rc=0A>>  chmod a+x etc/rc=0A>> =0A>>  reboot -r=0A>> =0A>>  Hiroki M=
ori=0A>> =0A>>  ----- Original Message -----=0A>>> =C2=A0=C2=A0From: Mori H=
iroki <yamori813@yahoo.co.jp>=0A>>> =C2=A0=C2=A0To: 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/11/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 syste=
m at /tmp.=0A>>> =0A>>> =C2=A0=C2=A0But small(10M) than 8M flash upgrade. T=
hen 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=A0=
3. reboot -r=0A>>> =0A>>> =C2=A0=C2=A04. if set=C2=A0prepareupgrade then=C2=
=A0delete old md and make big(16M) md in =0A> rc.=0A>>> =0A>>> =C2=A0=C2=A0=
5. make minimum 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 ag=
ain.=0A>>> =0A>>> =C2=A0=C2=A0Hiroki Mori=0A>>> =0A>>> =C2=A0=C2=A0----- Or=
iginal Message -----=0A>>>>  =C2=A0=C2=A0From: Eugene Grosbein <eugen@grosb=
ein.net>=0A>>>>  =C2=A0=C2=A0To: Mori 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=A0Date: 2017/11/27, Mon 21:17=0A>>>>  =
=C2=A0=C2=A0Subject: Re: reboot -r on mips=0A>>>> =0A>>>>  =C2=A0=C2=A027.1=
1.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 =0A> AR9.=0A>>>> =0A>>>>  =C2=A0=C2=A0[sk=
ip]=0A>>>> =0A>>>>> =C2=A0=C2=A0=C2=A0 This function make complete flash up=
date method.=0A>>>> =0A>>>>  =C2=A0=C2=A0Yes, it's great. Also, look at =0A=
>>>> =0A> =C2=A0=C2=A0https://lists.freebsd.org/pipermail/freebsd-mips/2016=
-February/004431.html=0A>>>> =0A>>> =C2=A0=C2=A0___________________________=
____________________=0A>>> =C2=A0=C2=A0freebsd-mips@freebsd.org mailing lis=
t=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"fre=
ebsd-mips-unsubscribe@freebsd.org"=0A>>> =0A>>  ___________________________=
____________________=0A>>  freebsd-mips@freebsd.org mailing list=0A>>  http=
s://lists.freebsd.org/mailman/listinfo/freebsd-mips=0A>>  To unsubscribe, s=
end any mail to =0A>>  "freebsd-mips-unsubscribe@freebsd.org"=0A>> =0A> ___=
____________________________________________=0A> freebsd-mips@freebsd.org m=
ailing list=0A> https://lists.freebsd.org/mailman/listinfo/freebsd-mips=0A>=
 To unsubscribe, send any mail to =0A> "freebsd-mips-unsubscribe@freebsd.or=
g"=0A> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?663673.1215.qm>