Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2017 10:05:21 +0200
From:      Aleksandr Rybalko <ray@ddteam.net>
To:        Mori Hiroki <yamori813@yahoo.co.jp>
Cc:        Eugene Grosbein <eugen@grosbein.net>,  "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: reboot -r on mips
Message-ID:  <CAJ1Oi8HKUZr%2B0pFAYZH%2Bhfc6dYzHmiGT27pS7mopChkfCPKRYA@mail.gmail.com>
In-Reply-To: <663673.1215.qm@web101715.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> <663673.1215.qm@web101715.mail.ssk.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi guys!

Thanks Hiroki, copy squashed rootfs to memory is great idea!
I like it.

Thanks!

2017-12-26 9:22 GMT+02:00 Mori Hiroki <yamori813@yahoo.co.jp>:

> Hi
>
> I have new good idea at upgrading flash.
>
> https://translate.google.com/translate?sl=3Dja&tl=3Den&js=3Dy&;
> prev=3D_t&hl=3Dja&ie=3DUTF-8&u=3Dhttps%3A%2F%2Fqiita.com%2Fyamori813%2Fit=
ems%
> 2F437dee80478fccac34ee&edit-text=3D
>
>
> ----- Original Message -----
> > From: Mori Hiroki <yamori813@yahoo.co.jp>
> > To: Eugene Grosbein <eugen@grosbein.net>; "freebsd-mips@freebsd.org" <
> freebsd-mips@freebsd.org>
> > Cc:
> > Date: 2017/12/21, Thu 16:53
> > Subject: Re: reboot -r on mips
> >
> > Hi.
> >
> > I found some time failed reboot -r. Log is here.
> >
> > Jan  1 09:01:04 init: cannot mount tmpfs on /dev/reroot: No space left
> on device
> > Jan  1 09:01:04 init: reroot failed; going to single user mode
> >
> > I checked code. This error come from TMPFS_PAGES_MINRESERVED
> > cheek in sys/fs/tmpfs/tmpfs_vfsops.c.
> >
> > Now TMPFS_PAGES_MINRESERVED is 4MByte. This is big because of
> > my target have only 16MByte or 32Byte memory.
> >
> > I want change smaller value to TMPFS_PAGES_MINRESERVED.
> >
> > How to modify code?
> >
> > Regards
> >
> > Hiroki Mori
> >
> > ----- Original Message -----
> >>  From: Mori Hiroki <yamori813@yahoo.co.jp>
> >>  To: Eugene Grosbein <eugen@grosbein.net>;
> > "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
> >>  Cc:
> >>  Date: 2017/11/29, Wed 20:41
> >>  Subject: Re: reboot -r on mips
> >>
> >>  Hi
> >>
> >>  I found new method at upgrade. That is use pipe.
> >>
> >>  This is upgrade script. This method only use 6MByte md
> >>  any size flash.
> >>
> >>  #!/bin/sh
> >>
> >>  ZBOARD=3D`uname -i`
> >>
> >>  . /etc/upgrade.conf
> >>
> >>  cd /tmp
> >>  mkdir bin
> >>  mkdir sbin
> >>  mkdir libexec
> >>  mkdir dev
> >>  mkdir lib
> >>  mkdir etc
> >>  mkdir -p usr/bin
> >>  cp /sbin/init sbin/
> >>  cp /bin/sh bin/
> >>  cp /bin/dd bin/
> >>  cp /bin/kill bin/
> >>  cp /libexec/ld-elf.so.1 libexec/
> >>  cp /etc/login.conf.db etc/
> >>  cp /usr/bin/tftp usr/bin/
> >>  cp /lib/libedit.so.7 lib/
> >>  cp /lib/libncursesw.so.8 lib/
> >>  cp /lib/libc.so.7 lib/
> >>  mkfifo flashpipe
> >>
> >>  kenv vfs.root.mountfrom=3D"ufs:md0"
> >>
> >>  #echo ${ZBOARD}.zimage
> >>
> >>  echo "#!/bin/sh" > etc/rc
> >>  echo "dd if=3D/flashpipe of=3D${UPGRADEDEV} obs=3D${UPGRADEBS} conv=
=3Dosync
> >>  &" >> etc/rc
> >>  echo "echo =C2=A5"bin
> >>  get ${ZBOARD}.zimage /flashpipe
> >>  quit=C2=A5" | tftp ${UPGRADETFTP} 69" >> etc/rc
> >>  echo "kill -INT 1" >> etc/rc
> >>  chmod a+x etc/rc
> >>
> >>  reboot -r
> >>
> >>  Hiroki Mori
> >>
> >>  ----- Original Message -----
> >>>   From: Mori Hiroki <yamori813@yahoo.co.jp>
> >>>   To: Eugene Grosbein <eugen@grosbein.net>;
> >>  "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
> >>>   Cc:
> >>>   Date: 2017/11/28, Tue 16:38
> >>>   Subject: Re: reboot -r on mips
> >>>
> >>>   Hi
> >>>
> >>>   Thanks for your advice. I missing your mail.
> >>>
> >>>   I use ZRouter build system. This build use md file system at /tmp.
> >>>
> >>>   But small(10M) than 8M flash upgrade. Then I do this way.
> >>>
> >>>   1. nomal boot process
> >>>
> >>>   2. set kenv to prepareupgrade=3D1
> >>>
> >>>   3. reboot -r
> >>>
> >>>   4. if set prepareupgrade then delete old md and make big(16M) md in
> > rc.
> >>>
> >>>   5. make minimum rootfs in md and save new image by tftp.
> >>>
> >>>   6. reboot -r
> >>>
> >>>   7. image to flash by dd
> >>>
> >>>   8. kill -INT 1
> >>>
> >>>   Thanks again.
> >>>
> >>>   Hiroki Mori
> >>>
> >>>   ----- Original Message -----
> >>>>    From: Eugene Grosbein <eugen@grosbein.net>
> >>>>    To: Mori Hiroki <yamori813@yahoo.co.jp>;
> >>>   "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
> >>>>    Cc:
> >>>>    Date: 2017/11/27, Mon 21:17
> >>>>    Subject: Re: reboot -r on mips
> >>>>
> >>>>    27.11.2017 18:56, Mori Hiroki =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> >>>>>     Hi.
> >>>>>
> >>>>>     I found reboot -r today. I try this function on my Atheros
> > AR9.
> >>>>
> >>>>    [skip]
> >>>>
> >>>>>     This function make complete flash update method.
> >>>>
> >>>>    Yes, it's great. Also, look at
> >>>>
> >   https://lists.freebsd.org/pipermail/freebsd-mips/2016-
> February/004431.html
> >>>>
> >>>   _______________________________________________
> >>>   freebsd-mips@freebsd.org mailing list
> >>>   https://lists.freebsd.org/mailman/listinfo/freebsd-mips
> >>>   To unsubscribe, send any mail to
> >>>   "freebsd-mips-unsubscribe@freebsd.org"
> >>>
> >>  _______________________________________________
> >>  freebsd-mips@freebsd.org mailing list
> >>  https://lists.freebsd.org/mailman/listinfo/freebsd-mips
> >>  To unsubscribe, send any mail to
> >>  "freebsd-mips-unsubscribe@freebsd.org"
> >>
> > _______________________________________________
> > freebsd-mips@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-mips
> > To unsubscribe, send any mail to
> > "freebsd-mips-unsubscribe@freebsd.org"
> >
> _______________________________________________
> freebsd-mips@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
>



--=20
WBW
-------
Rybalko Aleksandr <ray@ddteam.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ1Oi8HKUZr%2B0pFAYZH%2Bhfc6dYzHmiGT27pS7mopChkfCPKRYA>